/* ==========================================================================
   AC VISUAL - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --color-bg: #f5f5f7;
    --color-dark: #0a0a0a;
    --color-dark-card: #121212;
    --color-light: #ffffff;
    --color-grey-light: #f0f0f0;
    --color-text-dark: #121212;
    --color-text-light: #ffffff;
    --color-text-muted: #6e6e73;
    --color-text-muted-light: #a1a1a6;

    --color-cyan: #2bc4d9;
    --color-cyan-bg: #e6f8fa;
    --color-orange: #ff7d1a;
    --color-orange-dark: #c45a1a;
    --color-orange-bg: #fff2e6;
    --color-purple: #8854d0;
    --color-purple-bg: #f3ebf9;

    --container-max: 1540px;
    --container-narrow: 1400px;
    --radius-card-lg: 50px;
    --radius-card-md: 32px;
    --radius-card-sm: 24px;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background-color: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px; /* Increased from 32px to make it larger and fit logo_black_text.svg */
    width: auto;
    transition: var(--transition-smooth);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 36px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 36px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-text-dark);
    position: relative;
    padding: 4px 0;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #000;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid var(--color-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.header-cta-icon {
    width: 14px;
    height: 14px;
}

.cta-button-header:hover {
    background-color: var(--color-cyan);
    border-color: var(--color-cyan);
    color: var(--color-text-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(43, 196, 217, 0.25);
}

.main-content {
    width: 100%;
}

.hero-section {
    padding-top: 164px;
    padding-bottom: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    
}

.hero-bg-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero-subtitles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.45rem, 0.55vw, 0.6rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    padding: 0 40px;
    max-width: 1200px;
}

.hero-subtitle-sep {
    opacity: 0.35;
    font-weight: 400;
}

.hero-title-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    padding: 35px 24px;
}

.hero-title {
    font-size: clamp(17.5rem, 6vw, 4rem);
    /* font-size: clamp(72px, 13.5vw, 230px); */
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.09em;
    color: var(--color-dark);
    text-transform: uppercase;
    user-select: none;
    margin: 0;
}

/* Floating Drone Remote Overlay — overlaps title AND card top edge */
.drone-remote-container {
    position: absolute;
    top: 120px; /* Centered overlap */
    left: 50%;
    transform: translateX(-50%);
    width: 38vw; /* Large scale to match laptop mockup screen precisely */
    min-width: 480px;
    max-width: 700px;
    z-index: 20; /* Overlays the title text and the card */
    pointer-events: none;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.18));
}

.drone-remote-img {
    width: 100%;
    height: auto;
    animation: floatDrone 6s ease-in-out infinite;
}

@keyframes floatDrone {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-tagline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    font-size: clamp(0.82rem, 0.9vw, 1.05rem); /* Increased size for readability */
    font-weight: 800; /* Made slightly bolder to match mockup weight */
    letter-spacing: 0.16em;
    color: var(--color-text-dark);
    margin: 0 auto 36px;
    z-index: 5;
    text-transform: uppercase;
}

.hero-tagline-left {
    width: 50%;
    text-align: right;
    padding-right: 300px; /* Increased to fully clear the 550px controller overlay width */
    white-space: nowrap;
}

.hero-tagline-right {
    width: 50%;
    text-align: left;
    padding-left: 300px; /* Increased to fully clear the 550px controller overlay width */
    white-space: nowrap;
}

/* Transparent wrapper since cards are styled individually */
.mega-dark-card {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 10;
}

.mega-dark-card::before {
    display: none; /* Removed unified background to allow transparent features row sides */
}

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

.hero-card {
    background-color: var(--color-dark-card);
    border-radius: 85px; /* Rounded corners to mask/clip the laptop body */
    padding: 75px 65px 65px 75px;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden; /* Mask/clip laptop image */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    min-height: 450px;
    z-index: 5;
}

.hero-card-content {
    width: 38%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.hero-card-title {
    color: var(--color-text-light);
    font-size: clamp(1.5rem, 2.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.hero-card-text {
    color: var(--color-text-muted-light);
    font-size: 0.75rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 460px;
}

/* Hero Card Button — solid white pill with dark icon circle */
.hero-card-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff !important;
    color: #111111 !important;
    padding: 10px 28px 10px 10px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 20;
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important;
    transition: var(--transition-bounce);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hero-card-btn .btn-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111111 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-bounce);
}

.hero-card-btn .btn-icon-circle svg {
    width: 20px;
    height: 20px;
}

/* Generic btn-icon-circle (used in execution section) */
.btn-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-light);
    color: var(--color-dark);
    transition: var(--transition-bounce);
}

.btn-icon-circle svg {
    width: 14px;
    height: 14px;
}

.hero-card-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-card-btn:hover .btn-icon-circle {
    transform: rotate(45deg);
    background: var(--color-orange) !important;
}

.hero-card-image-wrapper {
    position: absolute;
    right: -30px;
    top: -40px;
    bottom: -20px;
    width: 58%;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.hero-laptop-img {
    width: 100%;
    max-width: none;
    height: 115%;
    object-fit: contain;
    object-position: right bottom;
    transform: rotate(-3deg) translate(20px, 10px);
    filter: drop-shadow(-12px 16px 30px rgba(0,0,0,0.45));
}

/* Features inside mega-card */
.mega-dark-card .features-grid {
    width: 100%;
    max-width: 1400px; /* Recessed grid compared to hero card */
    margin: 100px auto; /* Push down to create modern, spacious and clean margins */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 12;
}


/* MEGA CARD V2 */




.feature-card {
    background-color: var(--color-light);
    border-radius: 36px; /* Matching mockup rounded card style */
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none; /* Reset anchor link default style */
    color: inherit;
    z-index: 2;
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: var(--transition-smooth);
}

.feature-icon {
    width: 22px;
    height: 22px;
}

/* Colors for features icons */
.cyan-bg { background-color: var(--color-cyan-bg); }
.cyan-bg .feature-icon { filter: invert(56%) sepia(91%) saturate(1814%) hue-rotate(152deg) brightness(97%) contrast(85%); }

.orange-bg { background-color: var(--color-orange-bg); }
.orange-bg .feature-icon { filter: invert(55%) sepia(90%) saturate(1810%) hue-rotate(344deg) brightness(101%) contrast(101%); }

.purple-bg { background-color: var(--color-purple-bg); }
.purple-bg .feature-icon { filter: invert(36%) sepia(61%) saturate(1510%) hue-rotate(235deg) brightness(87%) contrast(92%); }

.feature-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.feature-card-text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.card-arrow {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.card-arrow svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.2;
}

.feature-card:hover .card-arrow {
    color: var(--color-light) !important;
    transform: translate(4px, -4px);
}

/* Card-specific brand color hovers */
#card-brand:hover {
    background-color: var(--color-cyan);
    border-color: var(--color-cyan);
    box-shadow: 0 20px 40px rgba(43, 196, 217, 0.25);
}

#card-product:hover {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    box-shadow: 0 20px 40px rgba(255, 125, 26, 0.25);
}

#card-launch:hover {
    background-color: var(--color-purple);
    border-color: var(--color-purple);
    box-shadow: 0 20px 40px rgba(136, 84, 208, 0.25);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card:hover .feature-card-title {
    color: var(--color-light);
}

.feature-card:hover .feature-card-text {
    color: rgba(255, 255, 255, 0.85);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.08);
}

.feature-card:hover .feature-icon {
    filter: brightness(0) invert(1) !important; /* Force icons to solid white on hover */
}

/* Redesign inside mega-card */
.mega-dark-card .redesign-card {
    background-color: var(--color-dark-card);
    width: 100%;
    max-width: 1540px;
    border-radius: 50px; /* Rounded corners unified with hero card */
    padding: 60px 75px 65px 75px;
    display: flex;
    position: relative;
    overflow: visible; /* To allow the floating jar to stick out */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.nuttery-jar-container {
    position: absolute;
    left: -20px;
    top: -70px;
    width: 220px;
    z-index: 10;
    pointer-events: none;
    transform: rotate(-10deg);
    filter: drop-shadow(-10px 18px 35px rgba(0,0,0,0.45));
}

.nuttery-jar-img {
    width: 100%;
    height: auto;
    animation: floatJar 8s ease-in-out infinite;
}

@keyframes floatJar {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.redesign-content {
    margin-left: 200px;
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.redesign-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.redesign-title .highlight {
    color: var(--color-cyan);
}

.redesign-subtitle {
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.redesign-text {
    color: var(--color-text-muted-light);
    font-size: 0.82rem;
    line-height: 1.65;
    max-width: 420px;
}

/* Right-aligned 3x3 indicator grid */
.indicator-grid-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.indicator-cell {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.indicator-cell.active {
    background-color: var(--color-light);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* --- Laptops / Execution Section --- */
.execution-section {
    padding: 60px 30px; /* Aligned padding with hero container */
    display: flex;
    justify-content: center;
}

.execution-container {
    width: 100%;
    max-width: 1540px; /* Aligned with hero card and redesign card width */
    height: 650px;
    border-radius: 50px; /* Matches hero card radius */
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.execution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.1) 50%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 1;
}

/* Left side pagination slider */
.slider-indicator-wrapper {
    position: absolute;
    left: 40px;
    z-index: 5;
}

.slider-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 8px;
    border-radius: 30px;
    gap: 12px;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background-color: var(--color-light);
    transform: scale(1.8);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Right side glassmorphic card styling */
.execution-card-wrapper {
    margin-left: auto;
    margin-right: 60px;
    z-index: 5;
    width: 440px;
    max-width: 90%;
}

.execution-card {
    background-color: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(25px) saturate(140%);
    -webkit-backdrop-filter: blur(25px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.browser-badge {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.browser-badge svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.execution-title {
    color: var(--color-text-light);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.execution-title .highlight {
    color: var(--color-orange);
}

.execution-text {
    color: var(--color-text-muted-light);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.execution-email-input {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 14px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.execution-email-input input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    letter-spacing: 0.02em;
    cursor: default;
}

.execution-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: var(--color-light);
    color: var(--color-text-dark);
    padding: 14px 28px;
    border-radius: 35px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.execution-btn:hover {
    transform: translateY(-3px);
    background-color: var(--color-orange);
    color: var(--color-text-light);
    box-shadow: 0 15px 30px rgba(255, 125, 26, 0.25);
}

.execution-btn:hover .btn-icon-circle {
    background-color: var(--color-light);
    color: var(--color-text-dark);
    transform: rotate(45deg);
}



/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-card {
        padding: 40px;
        border-radius: 36px;
    }
    .hero-card-content {
        width: 50%;
    }
    .hero-card-title {
        font-size: 1.8rem;
    }
    .hero-card-image-wrapper {
        width: 55%;
    }
    
    .features-corner {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .redesign-card {
        flex-direction: column;
        padding: 40px;
        align-items: center;
        text-align: center;
    }
    .nuttery-jar-container {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 30px;
        width: 180px;
    }
    .redesign-content {
        margin-left: 0;
        width: 100%;
        margin-bottom: 40px;
    }
    .indicator-grid-container {
        margin-left: 0;
    }
    
    .execution-container {
        height: auto;
        padding: 80px 20px;
        flex-direction: column;
        justify-content: center;
    }
    .slider-indicator-wrapper {
        display: none;
    }
    .execution-card-wrapper {
        margin: 0 auto;
        width: 100%;
    }
    }

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    .nav {
        display: none;
    }
    .hero-tagline-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
    }
    .hero-tagline-left, .hero-tagline-right {
        text-align: center;
    }
    .drone-remote-container {
        width: 40vw;
    }
    .hero-card {
        flex-direction: column;
        padding: 35px 30px;
        border-radius: 30px;
    }
    .hero-card-content {
        width: 100%;
        margin-bottom: 20px;
    }
    .hero-card-image-wrapper {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        height: 200px;
    }
    .hero-laptop-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        border-radius: 20px;
    }
}

/* ==========================================================================
   AI CHATBOT WIDGET STYLES
   ========================================================================== */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-primary);
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-dark-card);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.chat-toggle-btn:hover {
    transform: scale(1.08);
    background-color: var(--color-dark);
    box-shadow: 0 12px 30px rgba(43, 196, 217, 0.3);
    color: var(--color-cyan);
    border-color: rgba(43, 196, 217, 0.4);
}

.chat-btn-icon {
    width: 26px;
    height: 26px;
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 520px;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 150px);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: var(--transition-bounce);
}

.ai-chat-widget.active .chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.ai-chat-widget.active .chat-toggle-btn {
    transform: rotate(90deg) scale(0.9);
    background-color: var(--color-cyan);
    color: var(--color-text-light);
    border-color: var(--color-cyan);
}

.chat-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-cyan);
}

.chat-avatar-wrapper svg {
    width: 20px;
    height: 20px;
}

.active-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2ecc71;
    border: 2px solid var(--color-dark-card);
}

.chat-header-text {
    display: flex;
    flex-direction: column;
}

.chat-bot-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.chat-bot-status {
    font-size: 0.72rem;
    color: var(--color-text-muted-light);
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--color-text-muted-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: var(--transition-smooth);
}

.chat-close-btn:hover {
    color: var(--color-text-light);
    transform: rotate(90deg);
}

.chat-close-btn svg {
    width: 16px;
    height: 16px;
}

.chat-messages-container {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

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

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.chat-message.bot {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-light);
    border-radius: 18px 18px 18px 4px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.chat-message.user {
    align-self: flex-end;
    background-color: var(--color-cyan);
    color: var(--color-text-dark);
    font-weight: 500;
    border-radius: 18px 18px 4px 18px;
}

.chat-message.loading {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted-light);
    border-radius: 18px 18px 18px 4px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Typing Dots Animation */
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-text-muted-light);
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chat-input-wrapper {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-input-field {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 10px 18px;
    color: var(--color-text-light);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input-field:focus {
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(43, 196, 217, 0.15);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    color: var(--color-text-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.chat-send-btn:hover {
    transform: scale(1.1);
    background-color: var(--color-light);
    box-shadow: 0 4px 15px rgba(43, 196, 217, 0.3);
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
    transform: translate(-1px, 0.5px);
}
