/* Unified Design System - Auto Formula 1 */

:root {
    /* Clean Minimalist Palette */
    --primary: #2563eb;             /* Clean blue */
    --primary-light: #dbeafe;       /* Very light blue */
    --primary-dark: #1d4ed8;        /* Darker blue */
    --secondary: #059669;           /* Clean green */
    --secondary-light: #d1fae5;     /* Very light green */
    --accent: #dc2626;              /* Clean red */
    --accent-light: #fee2e2;        /* Very light red */
    /* Aliases (unify older refs) */
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --accent-color: var(--accent);
    
    /* Clean Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Text */
    --text-primary: #0b1020;
    --text-secondary: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    /* Aliases for legacy */
    --text-dark: var(--text-primary);
    --text-medium: var(--text-secondary);
    
    /* Backgrounds */
    --bg-primary: #f6f7fb;
    --bg-secondary: #eef2f7;
    --bg-muted: #e9edf3;
    
    /* Borders */
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background:
        radial-gradient(900px 500px at -10% 0%, rgba(17,24,39,0.04) 0%, rgba(17,24,39,0) 50%),
        radial-gradient(900px 500px at 110% 100%, rgba(17,24,39,0.04) 0%, rgba(17,24,39,0) 50%),
        var(--bg-primary);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Unified Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 24, 0.9), rgba(8, 12, 24, 0.78));
    backdrop-filter: blur(16px) saturate(130%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.navbar.scrolled {
    box-shadow: 0 18px 45px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.12);
    background:
        linear-gradient(180deg, rgba(8, 12, 24, 0.95), rgba(8, 12, 24, 0.85));
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 70px;
    width: auto;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: height;
}

.logo img.smaller {
    height: 50px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.logo img {
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #e8edf7;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.85), rgba(59, 130, 246, 0.9));
    border-radius: 999px;
    opacity: 0;
    transform: translateX(-50%) scaleX(0.6);
    transition: width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 70%;
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
    font-weight: 800;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem; /* bigger */
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem; /* bigger */
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    /* add subtle blue outline ring in addition to drop shadow */
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18), 0 6px 18px rgba(37,99,235,0.22);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 5px rgba(37,99,235,0.22), 0 10px 24px rgba(37,99,235,0.3);
}

.cta-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: scale(1.1);
}

/* Slight attention animation for navbar login button */
@keyframes ctaPulse {
    0% { box-shadow: 0 0 0 3px rgba(37,99,235,0.18), 0 6px 18px rgba(37,99,235,0.22); }
    50% { box-shadow: 0 0 0 5px rgba(37,99,235,0.22), 0 10px 24px rgba(37,99,235,0.3); }
    100% { box-shadow: 0 0 0 3px rgba(37,99,235,0.18), 0 6px 18px rgba(37,99,235,0.22); }
}

/* Only apply a gentle pulse on the navbar version so it feels lively */
.nav-menu .cta-button {
    animation: ctaPulse 3s ease-in-out infinite;
    /* Navbar login: outline style, sharp corners, no fill */
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 2px; /* very sharp corners */
    box-shadow: 0 0 0 2px rgba(37,99,235,0.12);
    padding: 0.5rem 1.75rem; /* shorter height */
    font-weight: 600;
    letter-spacing: 0.025em;
}

.nav-menu .cta-button:hover {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18), 0 8px 20px rgba(37,99,235,0.15);
}

/* Hide icon in navbar login button */
.nav-menu .cta-button i {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 5rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 1.5rem;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--gray-100);
    color: var(--primary-color);
}

.mobile-menu .cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    margin-top: 2rem;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Content */
.page-content {
    padding-top: 120px;
    min-height: 100vh;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0b1120;
    margin-bottom: 0.6rem;
    letter-spacing: 0.2px;
}

.section-header p {
    font-size: 1.125rem;
    color: #1f2937;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    color: #ffffff;
    padding: 1rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: opacity 0.2s ease, transform 0.25s ease, max-height 0.25s ease, padding 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #172554);
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(30, 64, 175, 0.45);
}

.btn-secondary {
    background: #0b1020;
    color: #e2e8f0;
    padding: 1rem 1.5rem;
    border: 2px solid #1d4ed8;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
}

.btn-secondary:hover {
    background: #111827;
    color: #ffffff;
    transform: translateY(-1px);
    border-color: #1e3a8a;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.45);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .page-content {
        padding-top: 120px;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.cta-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Footer Styles */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom .language-switcher {
    display: flex;
    gap: 0.5rem;
}

.footer-bottom .language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom .language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .language-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* WhatsApp Chat Button */
.cta-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1200;
}

.cta-fab .cta-btn:hover {
    transform: translateY(-1px);
}

.cta-actions {
    display: flex;
    gap: 0.5rem;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(12px);
    transition: all 0.28s ease;
    padding: 0.4rem 0.6rem;
    background: rgba(12, 20, 38, 0.9);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.cta-fab.open .cta-actions {
    max-width: 260px;
    opacity: 1;
    transform: translateX(0);
}

.cta-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: conic-gradient(from 120deg, #0f172a, #1d4ed8, #0ea5e9, #0f172a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
    cursor: pointer;
    transition: all 0.25s ease, transform 0.25s ease;
}

.cta-main:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 32px rgba(14, 165, 233, 0.5);
}

.cta-main i {
    font-size: 1.35rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 6px 18px rgba(18, 140, 126, 0.35);
}

.whatsapp-btn i {
    font-size: 1.35rem;
}

.call-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.call-btn i {
    font-size: 1.2rem;
    transform: scaleX(-1);
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 0, #fbbf24, #f59e0b);
    color: #111827;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.5);
}

.ai-btn i {
    font-size: 1.1rem;
}

.ai-chat-widget {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 360px;
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 3rem);
    background:
        radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.16), transparent 38%),
        radial-gradient(circle at 82% 8%, rgba(14, 165, 233, 0.18), transparent 42%),
        linear-gradient(155deg, rgba(10, 16, 32, 0.94), rgba(7, 11, 24, 0.96));
    border-radius: 22px;
    box-shadow: 0 26px 80px rgba(8, 15, 35, 0.65), 0 14px 32px rgba(8, 15, 35, 0.5);
    overflow: hidden;
    z-index: 1100;
    border: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(12px);
    background-clip: padding-box;
    transform: translateY(14px) scale(0.985);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.22s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ai-chat-widget.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 32px 90px rgba(8, 15, 35, 0.65), 0 16px 38px rgba(8, 15, 35, 0.5);
    border-color: rgba(59, 130, 246, 0.35);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(34, 197, 94, 0.18));
    color: #e5e7eb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ai-chat-title {
    margin: 0;
    font-weight: 700;
}

.ai-chat-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
}

.ai-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-subtitle-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-chat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px 6px;
    color: #cbd5e1;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(45, 212, 191, 0.08));
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ai-chat-beta {
    background: #fff4e6;
    color: #9a3412;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: 8px 12px;
    margin: 8px 12px 0;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-status-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ai-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulseDot 2s infinite;
}

.ai-quick-wrapper {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: stretch;
    gap: 8px;
    padding: 0 12px;
    width: 100%;
}

.ai-quick-questions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    margin: 6px 0 10px;
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.97), rgba(22, 30, 48, 0.93));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    max-height: 240px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.28s ease, margin 0.28s ease, opacity 0.25s ease;
    position: relative;
    flex: 1;
    min-width: 0;
    opacity: 1;
}

.ai-quick-questions.animating {
    animation: quickSlide 0.24s ease;
}

.ai-quick-questions.animating-up {
    animation: quickSlideUp 0.26s ease;
}

.ai-quick-questions.animating-down {
    animation: quickSlideDown 0.26s ease;
}

.ai-quick-questions.collapsed + .ai-quick-nav {
    display: none;
}

.ai-quick-toggle-row {
    padding: 8px 12px 6px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.9));
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: center;
}

.ai-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.98), rgba(13, 25, 45, 0.96));
    color: #e5e7eb;
    border-radius: 14px;
    padding: 9px 12px;
    font-size: 0.95rem;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.22s ease, transform 0.2s ease;
    white-space: normal;
    width: 100%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.ai-quick-btn:hover {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.22), rgba(34, 197, 94, 0.25));
    border-color: rgba(14, 165, 233, 0.55);
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.2);
}

.ai-quick-questions.collapsed {
    max-height: 0;
    padding: 0 14px;
    margin: 0 12px;
    opacity: 0;
    pointer-events: none;
    border-color: transparent;
    box-shadow: none;
}

.ai-quick-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0 10px;
}

.ai-quick-nav.hidden {
    display: none;
}

.ai-quick-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-quick-nav-btn:hover {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 165, 233, 0.4);
}

.ai-quick-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@keyframes quickSlide {
    from {
        opacity: 0.2;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes quickSlideUp {
    from {
        opacity: 0.2;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes quickSlideDown {
    from {
        opacity: 0.2;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-header-actions .ai-status-dot {
    display: none;
}

.ai-quick-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 2px;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.ai-quick-toggle:hover {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(14, 165, 233, 0.5);
}

.ai-chat-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.ai-chat-body {
    max-height: 320px;
    min-height: 180px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.1), transparent 46%),
        radial-gradient(circle at 82% 12%, rgba(45, 212, 191, 0.08), transparent 44%),
        linear-gradient(140deg, rgba(8, 12, 26, 0.78), rgba(9, 14, 30, 0.82));
}

.ai-bubble {
    padding: 12px 14px;
    border-radius: 14px;
    line-height: 1.55;
    font-size: 0.95rem;
    max-width: 86%;
    word-break: break-word;
    position: relative;
    animation: bubbleIn 0.22s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-bubble.ai {
    background: linear-gradient(135deg, #0ea5e9, #0ea5e9 45%, #22d3ee);
    color: #0b1226;
    align-self: flex-start;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
    border: none;
    padding-left: 30px;
}

.ai-bubble.user {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    align-self: flex-end;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.ai-bubble.ai::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ai-avatar, none), #0f172a;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.25);
}

.ai-bubble.user::before {
    display: none;
}

.ai-chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(11, 17, 32, 0.95));
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.ai-chat-input input {
    flex: 1;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
}

.ai-chat-input input:focus {
    outline: 2px solid rgba(14, 165, 233, 0.35);
}

.ai-chat-input button {
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #0b1226;
    padding: 11px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.ai-chat-input button:hover {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
}

@keyframes bubbleIn {
    from {
        transform: translateY(6px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 640px) {
    .cta-fab {
        right: 1rem;
        bottom: 1rem;
    }

    .ai-chat-widget {
        right: 1rem;
        left: 1rem;
        bottom: 5rem;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 5rem);
        overflow: hidden;
    }

    .ai-quick-questions {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid rgba(15, 23, 42, 0.1);
        max-height: 240px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .ai-chat-body {
        max-height: 260px;
    }
}

/* Testimonials Carousel */
.testimonials {
    padding: 3rem 0;
    background: radial-gradient(circle at 12% 20%, rgba(59, 130, 246, 0.12), transparent 35%), radial-gradient(circle at 84% 12%, rgba(16, 185, 129, 0.12), transparent 38%), linear-gradient(135deg, #0b1226 0%, #0f172a 45%, #0b1226 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before,
.testimonials::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    filter: blur(140px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.testimonials::before {
    background: rgba(59, 130, 246, 0.45);
    top: -140px;
    left: -120px;
}

.testimonials::after {
    background: rgba(16, 185, 129, 0.35);
    bottom: -180px;
    right: -80px;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials .section-header h2,
.testimonials .section-header p {
    color: #e5e7eb;
}

.testimonials .section-header p {
    margin-top: 0.25rem;
    opacity: 0.8;
}

.testimonials-carousel {
    position: relative;
    margin-top: 3rem;
    overflow: visible;
    padding: 0;
}

.testimonials-track {
    display: flex;
    gap: 1rem;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    padding: 0;
    scroll-behavior: smooth;
    position: relative;
    background: transparent;
}

.testimonials-track::-webkit-scrollbar { display: none; }
.testimonials-track { scrollbar-width: none; }

.review-card {
    flex: 0 0 calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
    min-width: 260px;
    scroll-snap-align: start;
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    backdrop-filter: blur(4px);
}

.review-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(16, 185, 129, 0.25));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    border-color: rgba(59, 130, 246, 0.35);
}

.review-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
}

.review-name {
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #475569;
}

.google-badge {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.review-date {
    color: #94a3b8;
}

.review-rating {
    color: #f59e0b;
    display: flex;
    gap: 2px;
}

.review-text {
    margin: 0.25rem 0 0.75rem;
    color: #1f2937;
    line-height: 1.6;
    font-size: 1rem;
}

.review-location {
    color: #475569;
    font-weight: 700;
    font-size: 0.95rem;
}

.testi-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0f172a, #1f2937);
    color: #e2e8f0;
    border: none;
    border-radius: 14px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    z-index: 6;
}

.testi-nav:hover {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.38);
    background: linear-gradient(135deg, #111827, #1e293b);
}

.testi-nav.prev { left: -36px; }
.testi-nav.next { right: -36px; }
.testi-nav i { pointer-events: none; font-size: 1rem; }

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .cta-btn {
        animation: none;
    }
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Beautiful Custom Scrollbar */
html, body {
    scrollbar-width: thin;
    scrollbar-color: #2563eb #f1f5f9;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    border: 3px solid #f8fafc;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    border-color: #e2e8f0;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #1e3a8a 0%, #1e2a5e 100%);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: #f8fafc;
}

/* Dark mode scrollbar for dark sections */
.benefits ::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #2a2a3e 0%, #1e2a3e 100%);
}

.benefits ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
    border: 2px solid #2a2a3e;
}

.benefits ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.3) 100%);
    border-color: #1e2a3e;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f5f9;
}

.benefits {
    scrollbar-color: rgba(255,255,255,0.3) #2a2a3e;
}
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.language-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

.language-btn.active {
    background: transparent;
    color: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.language-btn.active:hover {
    background: transparent;
}

.language-btn .flag {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: 150% 150%;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
    line-height: 1;
}

.language-btn[data-lang="ge"] .flag { background-image: url('geo.avif'); }
.language-btn[data-lang="en"] .flag { background-image: url('usa.avif'); background-size: 170% 170%; }

.language-dropdown {
    position: relative;
}

.language-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #f8fafc;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.language-toggle:hover,
.language-dropdown:focus-within .language-toggle {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.55);
    transform: translateY(-1px);
}

.language-menu {
    position: absolute;
    top: 0;
    right: 110%;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 10;
    transform-origin: right top;
    opacity: 0;
    transform: translateX(-6px) scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.language-dropdown.open .language-menu {
    display: flex;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.language-menu .language-btn.active {
    display: none;
}

/* Override language button visuals for full-image circular flags */
.language-btn,
.language-toggle {
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: hidden;
    line-height: 0;
}

.language-btn:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

.language-btn.active,
.language-btn.active:hover {
    background: transparent;
}

.language-btn .flag,
.language-toggle .flag {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: 125% 125%;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
    line-height: 1;
}

.language-btn[data-lang="ge"] .flag,
.language-toggle .flag.ge {
    background-image: url('geo.avif');
}

.language-btn[data-lang="en"] .flag,
.language-toggle .flag.en {
    background-image: url('usa.avif');
    background-size: 145% 145%;
}


/* Override language button visuals for circular full-image flags */
.language-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.language-btn:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

.language-btn.active,
.language-btn.active:hover {
    background: transparent;
}

.language-btn .flag,
.language-toggle .flag {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
    line-height: 1;
}

.language-btn[data-lang="ge"] .flag,
.language-toggle .flag.ge {
    background-image: url('geo.avif');
}

.language-btn[data-lang="en"] .flag,
.language-toggle .flag.en {
    background-image: url('usa.avif');
}

.language-toggle {
    border: none;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.language-toggle:hover,
.language-dropdown:focus-within .language-toggle {
    background: transparent;
}

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