/* =========================================
   CSS Variables & Theme Setup
   ========================================= */
:root {
    /* User Requested Colors */
    --clr-cloud: #F5F6FA;      /* Primary Light / Background elements */
    --clr-electric: #0984E3;   /* Secondary / Accents / Interactions */
    --clr-night: #1E272E;      /* Dark / Text / Deep Backgrounds */

    /* Extended Palette */
    --clr-night-light: #2d3842;
    --clr-electric-glow: rgba(9, 132, 227, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--clr-electric) 0%, #00b894 100%);
    --gradient-glass: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-night);
    color: var(--clr-cloud);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    opacity: 0;
    animation: bodyFadeIn 0.8s ease-out forwards;
}

@keyframes bodyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--clr-night);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 3D Canvas Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Behind all content */
    pointer-events: none; /* Let clicks pass through */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   Components (Buttons, Cards, Glass)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: none;
    outline: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-primary {
    background-color: var(--clr-electric);
    color: #fff;
    box-shadow: 0 4px 15px var(--clr-electric-glow);
}

.btn-primary:hover {
    background-color: #0870c2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--clr-electric-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-cloud);
    border: 1px solid rgba(245, 246, 250, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(245, 246, 250, 0.1);
    border-color: var(--clr-cloud);
    transform: translateY(-2px);
}

.glass-panel {
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(30, 39, 46, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-cloud);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo .logo-text span {
    color: var(--clr-electric);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: rgba(245, 246, 250, 0.8);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--clr-electric);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-electric);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for header */
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    color: var(--clr-cloud);
}

.hero-title span {
    color: var(--clr-electric);
    display: inline-block;
    position: relative;
}

/* Glow effect behind the span text */
.hero-title span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 10%;
    left: 0;
    background: var(--clr-electric);
    opacity: 0.3;
    filter: blur(15px);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(245, 246, 250, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   Services Section
   ========================================= */
.services {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: rgba(245, 246, 250, 0.7);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: rgba(30, 39, 46, 0.6); /* Slightly more opaque background to stand out */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 2; /* Ensure it stays above canvas */
    display: flex; /* Flexbox to ensure consistent layout inside */
    flex-direction: column;
}

/* Hover Effect for Card */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(9, 132, 227, 0.2), transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(9, 132, 227, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
    z-index: 10;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-cloud);
}

.service-card p {
    color: rgba(245, 246, 250, 0.7);
    font-size: 0.95rem;
}

/* =========================================
   About Section
   ========================================= */
.about-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(30, 39, 46, 0.8));
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: rgba(245, 246, 250, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.text-electric {
    color: var(--clr-electric);
}

/* Live Intelligence Dashboard */
.live-dashboard {
    flex: 1;
    max-width: 450px;
    height: 320px;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(9, 132, 227, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: rgba(30, 39, 46, 0.4);
    z-index: 10;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--clr-cloud);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4757;
    animation: alertPulse 1.5s infinite;
}

@keyframes alertPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

#live-clock {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(245, 246, 250, 0.6);
}

.dashboard-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.intelligence-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--clr-electric);
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    animation: slideInRight 0.5s ease-out forwards;
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.intelligence-item strong {
    color: var(--clr-electric);
    font-weight: 600;
}

.intelligence-item .company {
    color: rgba(245, 246, 250, 0.6);
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

.dashboard-footer {
    font-size: 0.7rem;
    color: rgba(245, 246, 250, 0.4);
    text-align: right;
    padding-top: 0.5rem;
}

/* =========================================
   Pricing Section
   ========================================= */
.pricing-section {
    padding: 8rem 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.pricing-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(9, 132, 227, 0.3);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--clr-electric);
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Click Interaction States */
.pricing-card.clicked-focus {
    transform: scale(1.08) translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    border-color: var(--clr-electric) !important;
    z-index: 50 !important;
}

.pricing-card.clicked-blur {
    filter: blur(4px);
    opacity: 0.6;
    transform: scale(0.96) !important;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--clr-cloud);
}

.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--clr-electric);
    margin-bottom: 1.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: rgba(245, 246, 250, 0.6);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    padding: 0.8rem 0;
    color: rgba(245, 246, 250, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* =========================================
   Pricing Tabs
   ========================================= */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 2rem;
    flex-wrap: wrap;
}

.pricing-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(245, 246, 250, 0.7);
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.pricing-tab:hover {
    background: rgba(9, 132, 227, 0.15);
    border-color: rgba(9, 132, 227, 0.4);
    color: var(--clr-cloud);
}

.pricing-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(9, 132, 227, 0.4);
}

/* Pricing Panels */
.pricing-panel {
    display: none;
    animation: fadeInPanel 0.4s ease;
}

.pricing-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pricing Cards Grid */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

/* Individual Pricing Card overrides for new system */
.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(9, 132, 227, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card--featured {
    background: rgba(9, 132, 227, 0.08);
    border: 1.5px solid rgba(9, 132, 227, 0.4);
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(9, 132, 227, 0.2);
}

.pricing-card--featured:hover {
    transform: scale(1.04) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    border: 1px solid transparent;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(245, 246, 250, 0.5);
    font-weight: 700;
    margin-top: 0.5rem;
}

.plan-price {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--clr-electric);
    line-height: 1;
    margin: 0.5rem 0;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(245, 246, 250, 0.5);
}

.plan-desc {
    font-size: 0.85rem;
    color: rgba(245, 246, 250, 0.55);
    margin-bottom: 0.5rem;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.plan-features li {
    font-size: 0.88rem;
    color: rgba(245, 246, 250, 0.8);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-btn {
    margin-top: auto;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

/* CRM Coming Soon Box */
.coming-soon-box {
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
    padding: 3rem 2rem;
    border: 1px dashed rgba(9, 132, 227, 0.4);
    border-radius: 20px;
    background: rgba(9, 132, 227, 0.04);
}

.coming-soon-box .cs-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coming-soon-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--clr-cloud);
}

.coming-soon-box p {
    color: rgba(245, 246, 250, 0.6);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card--featured {
        transform: scale(1);
    }
    .pricing-card--featured:hover {
        transform: translateY(-8px);
    }
    .pricing-tabs {
        gap: 0.5rem;
    }
    .pricing-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

.cta-section {
    padding: 4rem 0 8rem;
}

.cta-content {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 24px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(245, 246, 250, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #171d22; /* Slightly darker than Night Black */
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(245, 246, 250, 0.6);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--clr-cloud);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(245, 246, 250, 0.6);
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-electric);
}

.footer-bottom {
    text-align: center;
    color: rgba(245, 246, 250, 0.4);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-social {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    margin-top: 1.5rem;
    justify-content: flex-start;
    align-items: center;
}

.footer-links .social-icon {
    width: 38px;
    height: 38px;
    background-color: #ffffff; /* Pure white background */
    color: #000000; /* Black icon */
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0 !important; /* Override inherited margin */
    padding: 0;
    text-decoration: none;
}

.social-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    background-color: #ffffff; /* Keep white */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, implement hamburger menu */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =========================================
   AI Chatbot UI
   ========================================= */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--clr-electric-glow);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.chatbot-toggle:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px var(--clr-electric-glow);
}

.chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px; /* Reduced from 350px */
    height: 440px; /* Reduced from 500px */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    /* iOS style smooth spring animation */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    padding: 1rem 1.5rem;
    background: rgba(30, 39, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-cloud);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00b894;
    border-radius: 50%;
    box-shadow: 0 0 10px #00b894;
}

.chatbot-close {
    background: none;
    border: none;
    color: rgba(245, 246, 250, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-close:hover {
    color: var(--clr-cloud);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Scrollbar for messages */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.chat-msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-bot {
    background: rgba(9, 132, 227, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--clr-cloud);
    border: 1px solid rgba(9, 132, 227, 0.3);
}

.msg-user {
    background: var(--gradient-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: white;
}

.chatbot-input-area {
    padding: 1rem;
    background: rgba(30, 39, 46, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 20px;
    color: var(--clr-cloud);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.chatbot-input-area input:focus {
    border-color: var(--clr-electric);
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-input-area input::placeholder {
    color: rgba(245, 246, 250, 0.4);
}

.chatbot-input-area button {
    background: var(--clr-electric);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-input-area button:hover {
    background: #0870c2;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 90%;
        bottom: 100px;
        right: 5%;
        height: 60vh;
    }
}

/* =========================================
   Service Modals & Learn More Links
   ========================================= */

.learn-more-link:hover {
    opacity: 0.8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 20, 25, 0.85); /* Darkened significantly to hide background text */
    backdrop-filter: blur(20px); /* Maximize blur */
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.service-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 20px;
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    background: rgba(20, 26, 33, 0.98) !important; /* Extremely opaque to prevent text bleeding */
}

/* Custom Scrollbar for Service Modal */
.service-modal::-webkit-scrollbar {
    width: 6px;
}
.service-modal::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 1rem 0; /* Keeps scrollbar away from top/bottom edges slightly */
}
.service-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.service-modal::-webkit-scrollbar-thumb:hover {
    background: var(--clr-electric);
}

.service-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.service-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--clr-cloud);
}

.service-modal p {
    color: rgba(245, 246, 250, 0.8);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(245, 246, 250, 0.6);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--clr-cloud);
    transform: rotate(90deg);
}
