/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* Palette */
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --accent: #ec4899;
    
    /* Text */
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    /* Backgrounds */
    --bg-body: #f8fafc;
    
    /* Glass Physics */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: 24px;
    --glass-saturation: 180%;
    
    /* Depth */
    --shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.05);
    --shadow-glass: 
        0 15px 35px -5px rgba(0,0,0,0.1),
        0 5px 15px -5px rgba(0,0,0,0.05),
        inset 0 0 0 1px rgba(255,255,255,0.5);
        
    /* Animation Config */
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;
    --mobile-nav-width: 380px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    padding-top: var(--nav-height);
    overflow-x: hidden;
}

/* Ambient Background Light */
.ambient-light {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; pointer-events: none;
    background: 
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
    filter: blur(60px);
}

a, button { text-decoration: none; color: inherit; cursor: pointer; border: none; background: none; font-family: inherit; }

/* =========================================
   2. DESKTOP HEADER (min-width: 1024px)
   ========================================= */
@media (min-width: 1024px) {
    .mobile-bottom-nav { display: none !important; }

    .site-header {
        position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
        width: 90%; max-width: 1200px; height: var(--nav-height);
        background: var(--glass-bg);
        backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
        border: 1px solid var(--glass-border);
        border-radius: 100px; 
        box-shadow: var(--shadow-glass);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .site-header.scrolled {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 25px 45px -15px rgba(15, 23, 42, 0.2);
        transform: translateX(-50%) translateY(-8px);
    }

    .nav-container {
        height: 100%; padding: 0 2rem;
        display: flex; justify-content: space-between; align-items: center;
    }

    /* Logo */
    .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text-main); }
    .logo-icon {
        width: 36px; height: 36px; background: var(--text-main); color: white;
        border-radius: 10px; display: flex; align-items: center; justify-content: center;
        font-size: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* Links */
    .nav-list { display: flex; align-items: center; gap: 8px; height: 100%; }
    
    .nav-link {
        padding: 0.6rem 1.2rem; border-radius: 50px;
        font-size: 0.95rem; font-weight: 600; color: var(--text-muted);
        transition: all 0.2s var(--ease-smooth);
        position: relative;
        overflow: hidden;
        display: flex; align-items: center; gap: 6px;
    }

    .nav-link:hover, .nav-link.active { color: var(--primary); }
    .chevron-icon { font-size: 0.7em; margin-top: 2px; transition: transform 0.3s ease; }

    /* Rotate chevron on hover */
    .nav-item:hover .chevron-icon { transform: rotate(180deg); }

    /* ------------------------------
       ENHANCED DROPDOWN MENU
       ------------------------------ */
    .nav-item { position: relative; height: 100%; display: flex; align-items: center; }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(20px); /* Start lower for animation */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        
        /* Glassmorphism */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 1);
        border-radius: 24px;
        
        box-shadow: 
            0 20px 40px -5px rgba(0,0,0,0.1),
            0 0 0 1px rgba(0,0,0,0.02);
            
        padding: 12px;
        width: 320px; 
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy spring effect */
        z-index: 1001;
        margin-top: 10px;
    }

    /* Bridge to prevent closing */
    .dropdown-menu::before {
        content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 20px;
    }

    /* Trigger Hover */
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    
    /* Dropdown Items */
    .dropdown-inner { display: flex; flex-direction: column; gap: 6px; }
    
    .menu-item {
        display: flex; align-items: center; gap: 14px;
        padding: 12px; border-radius: 16px;
        transition: all 0.2s ease;
        position: relative;
    }

    .menu-item:hover { 
        background: #f8fafc; 
        transform: translateX(4px); 
    }
    
    /* Icon Styling */
    .icon-box {
        width: 42px; height: 42px; border-radius: 12px;
        display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
        flex-shrink: 0;
        transition: all 0.3s ease;
        color: white;
    }
    
    /* Icon Colors */
    .color-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2); }
    .color-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2); }
    .color-green  { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2); }
    .color-orange { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2); }
    .color-gray   { background: linear-gradient(135deg, #64748b, #475569); box-shadow: 0 4px 10px rgba(71, 85, 105, 0.2); }

    /* Icon Hover Animation */
    .menu-item:hover .icon-box { transform: scale(1.1) rotate(-5deg); }

    .text-box { display: flex; flex-direction: column; gap: 2px; }
    .menu-title { font-weight: 700; font-size: 0.9rem; color: var(--text-main); }
    .menu-desc { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

    /* Divider for dropdown sections */
    .menu-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
        margin: 8px 12px;
    }

    /* Arrow on 'More' */
    .arrow-hover {
        margin-left: auto; font-size: 0.8rem; color: var(--text-muted);
        opacity: 0; transform: translateX(-5px); transition: 0.3s;
    }
    .menu-item:hover .arrow-hover { opacity: 1; transform: translateX(0); color: var(--primary); }

    /* Divider */
    .menu-divider {
        height: 1px; background: rgba(0,0,0,0.06);
        margin: 4px 12px;
    }

    /* Header Actions */
    .header-actions { display: flex; align-items: center; gap: 16px; }
    .link-secondary { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: 0.2s; }
    .link-secondary:hover { color: var(--primary); }
    
    .btn-cta {
        padding: 0.75rem 1.75rem; background: var(--text-main); color: white;
        border-radius: 50px; font-weight: 600; font-size: 0.9rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: transform 0.2s var(--ease-elastic), box-shadow 0.2s;
    }
    .btn-cta:hover { 
        transform: scale(1.05); 
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        background: var(--primary); 
    }
}
/* =========================================
   3. MOBILE FLOATING ISLAND (max-width: 1023px)
   ========================================= */
@media (max-width: 1023px) {
    /* .site-header { display: none; } */
    
    /* Mobile Header: Logo Only (Pill Style) */
    .site-header { 
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 20px; left: 50%; transform: translateX(-50%);
        width: auto;
        padding: 8px 20px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.6);
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav-container { display: block; }
    .nav-list, .header-actions { display: none !important; }

    .logo {
        display: flex; align-items: center; gap: 8px;
        font-weight: 800; font-size: 1.1rem;
        color: var(--text-main);
    }
    
    .logo-icon {
        width: 30px; height: 30px; 
        background: var(--text-main); color: white;
        border-radius: 8px; 
        display: flex; align-items: center; justify-content: center;
        font-size: 0.9rem;
    }

    .mobile-bottom-nav {
        position: fixed; bottom: 24px; left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px); max-width: var(--mobile-nav-width);
        height: 72px;
        background: var(--glass-bg);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border: 1px solid var(--glass-border);
        border-radius: 28px;
        box-shadow: var(--shadow-glass);
        z-index: 2000;
        padding: 6px;
        display: flex; align-items: center; justify-content: space-around;
        overflow: visible;
    }

    /* Nav Items */
    .mobile-nav-item {
        position: relative; flex: 1; height: 100%;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        color: var(--text-muted); border-radius: 20px;
        transition: color 0.3s; z-index: 2;
        background: transparent; border: none;
    }

    .mobile-nav-item i { font-size: 1.4rem; margin-bottom: 3px; transition: transform 0.3s var(--ease-elastic); }
    .mobile-nav-item span { font-size: 0.7rem; font-weight: 600; opacity: 0.8; }

    /* Active State Logic */
    .mobile-nav-item.active { color: var(--primary); }
    .mobile-nav-item.active i { transform: translateY(-3px); }

    /* The "Blob" Active Indicator */
    .active-indicator {
        position: absolute; bottom: 6px; left: 0; 
        width: 0;
        transition: transform 0.35s var(--ease-elastic), width 0.35s var(--ease-elastic);
        height: calc(100% - 12px);
        background: white;
        border-radius: 22px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        z-index: 1;
        pointer-events: none;
    }

    /* Hamburger Animation */
    .burger-icon { width: 20px; height: 14px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
    .burger-icon span { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: 0.3s; }
    
    .mobile-nav-item.active .burger-icon span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-nav-item.active .burger-icon span:nth-child(2) { opacity: 0; }
    .mobile-nav-item.active .burger-icon span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

    /* ============================
       MOBILE POPUP SHEET
       ============================ */
    .mobile-popup-container { position: static; flex: 1; height: 100%; display: flex; justify-content: center; }
    .mobile-popup-container .mobile-nav-item { width: 100%; }

    .mobile-popup {
        position: absolute;
        bottom: calc(100% + 16px); left: 0; width: 100%;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid rgba(255,255,255,0.8);
        border-radius: 32px;
        padding: 20px;
        box-shadow: 0 20px 60px -15px rgba(0,0,0,0.2);
        opacity: 0; visibility: hidden;
        transform: translateY(20px) scale(0.95);
        transform-origin: bottom center;
        transition: all 0.4s var(--ease-elastic);
    }

    .mobile-popup.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

    /* Popup Header */
    .popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
    .popup-title { font-size: 1.2rem; font-weight: 800; color: var(--text-main); }
    .close-popup { padding: 8px; background: #f1f5f9; border-radius: 50%; color: var(--text-muted); border: none; cursor: pointer; }

    /* Quick Action Grid */
    .popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.5rem; }
    
    .popup-card {
        background: #f8fafc; padding: 16px; border-radius: 20px;
        display: flex; flex-direction: column; align-items: center; gap: 8px;
        font-weight: 600; font-size: 0.9rem; color: var(--text-main);
        transition: transform 0.2s;
        border: 1px solid rgba(0,0,0,0.05);
    }
    .popup-card:active { transform: scale(0.96); }
    .popup-card i { font-size: 1.4rem; margin-bottom: 2px; }

    /* Highlight Card (Get Started) */
    .popup-card.highlight-card {
        background: var(--primary);
        color: white;
        box-shadow: 0 8px 20px -5px rgba(79, 70, 229, 0.4);
        border: none;
    }

    /* List Links */
    .popup-list { display: flex; flex-direction: column; gap: 8px; }
    .popup-link {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; padding: 14px 12px;
        background: transparent; border-radius: 16px;
        font-size: 1rem; font-weight: 600; color: var(--text-main);
        text-align: left; transition: background 0.2s;
        border: none;
    }
    .popup-link:active { background: #f1f5f9; }
    .link-content { display: flex; align-items: center; gap: 12px; }
    .link-content i { color: var(--primary); width: 24px; text-align: center; font-size: 1.1rem; }

    /* Nested Accordion */
    .has-nested { display: flex; flex-direction: column; }
    .nested-content {
        max-height: 0; overflow: hidden;
        margin-left: 48px; /* Align with text */
        border-left: 2px solid #e2e8f0;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nested-content.show { max-height: 200px; margin-top: 4px; margin-bottom: 8px; }
    
    .nested-link {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 16px;
        color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
    }
    .nested-link i { font-size: 0.8rem; opacity: 0.7; }
    .nested-link:active { color: var(--primary); background: #f8fafc; border-radius: 8px; }
    
    .chevron { transition: transform 0.3s; font-size: 0.8rem; color: var(--text-muted); margin-right: 4px; }
    .has-nested.active .chevron { transform: rotate(90deg); }
}

/* =========================================
   ADSENSE CONTAINER
   ========================================= */
.ad-container {
    min-height: 280px;
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.02); /* Optional: subtle placeholder bg */
}

/* =========================================
   CONTACT & LOCATION SLIDER SECTION (FIXED)
   ========================================= */

.contact-section-wrapper {
    padding: 4rem 1rem;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden; /* Keeps the animation contained */
}

.cl-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 550px;
}

/* Inner Form Containers */
.cl-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    background-color: #fff; /* Ensure background is white */
}

/* Shared Content Styling */
.cl-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

/* Typography */
.cl-title {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.cl-span {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Inputs */
.cl-container input, 
.cl-container textarea {
    background-color: #f3f4f6;
    border: 1px solid #eee;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 8px;
    outline: none;
}

.cl-btn {
    border-radius: 50px;
    border: 1px solid var(--primary);
    background-color: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in, background 0.3s;
    margin-top: 15px;
    cursor: pointer;
}

/* --- PANELS LOGIC --- */

/* Location (Left Side) */
.cl-location-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

/* Contact (Right Side) */
.cl-contact-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

/* Map & Info */
.cl-map-box {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.cl-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
    color: var(--text-muted);
    text-align: left;
}
.cl-info-item i { color: var(--primary); width: 20px; }

/* --- OVERLAY ANIMATION --- */

.cl-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.cl-overlay {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #ffffff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.cl-overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.cl-overlay-left { transform: translateX(-20%); left: 0; }
.cl-overlay-right { right: 0; transform: translateX(0); }

.cl-ghost-btn {
    background-color: transparent;
    border-color: #ffffff;
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 15px;
}

/* --- ANIMATION STATES (Active Class) --- */

/* 1. Move Contact to Right */
.cl-container.right-panel-active .cl-contact-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

/* 2. Move Overlay to Left */
.cl-container.right-panel-active .cl-overlay-container {
    transform: translateX(-100%);
}

/* 3. Move Gradient Background */
.cl-container.right-panel-active .cl-overlay {
    transform: translateX(50%);
}

/* 4. Move Text Inside Overlay */
.cl-container.right-panel-active .cl-overlay-left {
    transform: translateX(0);
}
.cl-container.right-panel-active .cl-overlay-right {
    transform: translateX(20%);
}

@keyframes show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

/* --- RESPONSIVE FIX (Stacking on Mobile) --- */
@media (max-width: 768px) {
    .cl-container {
        width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: column;
        height: auto !important;
    }
    
    /* Hide the sliding overlay on mobile */
    .cl-overlay-container { display: none; } 

    /* Stack the panels naturally */
    .cl-form-container {
        position: relative;
        width: 100%;
        height: auto;
        opacity: 1 !important; /* Force visibility */
        z-index: 1;
        transform: none !important; /* Disable sliding transform */
        padding: 2rem 0;
        animation: none !important; /* Disable z-index animation */
    }
    
    .cl-content { padding: 0 20px; }
    
    /* Visual separator for stacked items */
    .cl-location-container { border-bottom: 1px solid #eee; }
    
    /* Ensure contact container is visible and reset */
    .cl-contact-container {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.chatbot-toggle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.5);
}

.chatbot-toggle::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 450px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255,255,255,0.5);
}

.chatbot-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.chatbot-title i { font-size: 1.2rem; }

.chatbot-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chatbot-close:hover { background: rgba(255,255,255,0.4); }

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: messageSlide 0.3s ease-out forwards;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: white;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #e2e8f0;
}

.user-message {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.chatbot-input input:focus {
    border-color: var(--primary);
}

.chatbot-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.chatbot-input button:hover {
    background: #4338ca;
    transform: scale(1.05);
}

/* Chatbot Suggestions */
.chatbot-suggestions {
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid #f1f5f9;
    background: white;
    /* Hide scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.chatbot-suggestions::-webkit-scrollbar { display: none; }

.suggestion-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}

.suggestion-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .chatbot-window {
        position: fixed; /* Fixed to viewport to ignore parent width */
        left: 20px;
        right: 20px;
        width: auto; /* Let left/right handle the width */
        height: 55vh;
        bottom: 180px; 
        border-radius: 16px;
        z-index: 10001;
    }
    
    .chatbot-toggle {
        width: 55px;
        height: 55px;
        bottom: 110px; 
        right: 20px;
        z-index: 10000;
    }
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
    background: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    padding: 60px 0 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo i {
    color: #667eea;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #667eea;
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #667eea;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   GLOBAL RESPONSIVE ENHANCEMENTS
   ========================================= */

@media (max-width: 768px) {
    html {
        font-size: 14px; /* Scale down base font size */
    }
    
    body {
        padding-bottom: 100px; /* Space for bottom nav */
    }
    
    .site-header {
        width: 90%;
        max-width: none;
        justify-content: center;
    }
    
    .mobile-bottom-nav {
        width: 90%;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 8px 15px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .mobile-bottom-nav {
        height: 65px;
        padding: 5px;
    }
    
    .mobile-nav-item i {
        font-size: 1.2rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.65rem;
    }
}