:root {
            --accent: #C62828;
            --accent-hover: #a82020;
        }
        html, body { overflow-x: hidden; max-width: 100vw; }
        body { font-family: 'Inter', sans-serif; }
        .font-serif { font-family: 'Playfair Display', serif; }
        
        /* Smooth fade-in on scroll - Always visible */
        .reveal {
            opacity: 1;
            transform: translateY(0);
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .reveal.show {
            opacity: 1;
            transform: translateY(0);
        }

        .text-accent { color: var(--accent); }
        .bg-accent { background-color: var(--accent); }
        .bg-accent:hover { background-color: var(--accent-hover); }
        .border-accent { border-color: var(--accent); }

        /* Consolidated Glassmorphism Style */
        .glass {
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Phone pulse animation */
        .phone-pulse {
            animation: phonePulse 2s infinite;
        }
        @keyframes phonePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(198,40,40,0.5); }
            50% { box-shadow: 0 0 0 20px rgba(198,40,40,0); }
        }

        /* Enhanced Google and Instagram pulse animations */
        .google-pulse {
            animation: googlePulse 2s infinite;
        }
        @keyframes googlePulse {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(66,133,244,0.7),
                            0 0 20px rgba(66,133,244,0.4),
                            0 8px 20px rgba(0,0,0,0.3);
                transform: scale(1);
            }
            50% {
                box-shadow: 0 0 0 20px rgba(66,133,244,0),
                            0 0 30px rgba(66,133,244,0.6),
                            0 12px 30px rgba(0,0,0,0.4);
                transform: scale(1.08);
            }
        }

        .instagram-pulse {
            animation: instagramPulse 2s infinite;
            animation-delay: 0.3s;
        }
        @keyframes instagramPulse {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(253,29,29,0.7),
                            0 0 20px rgba(252,175,69,0.4),
                            0 8px 20px rgba(0,0,0,0.3);
                transform: scale(1);
            }
            50% {
                box-shadow: 0 0 0 20px rgba(253,29,29,0),
                            0 0 30px rgba(252,175,69,0.6),
                            0 12px 30px rgba(0,0,0,0.4);
                transform: scale(1.08);
            }
        }

        /* Enhanced hover states for social icons */
        .google-pulse:hover {
            animation: none;
            transform: scale(1.15) rotate(5deg);
            box-shadow: 0 0 0 0 rgba(66,133,244,1),
                        0 0 40px rgba(66,133,244,0.8),
                        0 0 60px rgba(66,133,244,0.6),
                        0 15px 40px rgba(0,0,0,0.5);
            filter: brightness(1.1);
        }

        .instagram-pulse:hover {
            animation: none;
            transform: scale(1.15) rotate(-5deg);
            box-shadow: 0 0 0 0 rgba(253,29,29,1),
                        0 0 40px rgba(252,175,69,0.8),
                        0 0 60px rgba(253,29,29,0.6),
                        0 15px 40px rgba(0,0,0,0.5);
            filter: brightness(1.1);
        }


        /* Shimmer animation for premium badge */
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Premium card hover */
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-6px);
            box-shadow: 0 25px 50px rgba(198,40,40,0.15);
        }

        /* FAQ Accordion - Hover Emphasis */
        .faq-item {
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 1rem;
            background: #111;
            margin-bottom: 1rem;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .faq-item:hover {
            border: 2px solid var(--accent);
            box-shadow: 0 0 20px rgba(198,40,40,0.2);
        }
        .faq-item.active {
            border: 2px solid var(--accent);
        }
        .faq-toggle {
            transition: all 0.3s ease;
        }
        .faq-toggle:hover {
            background: rgba(198,40,40,0.1);
        }
        .faq-toggle svg { 
            transition: transform 0.3s ease; 
        }
        .faq-toggle.active svg { 
            transform: rotate(180deg); 
        }
        .faq-answer {
            max-height: 0;
            padding-top: 0;
            padding-bottom: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.4s ease;
        }
        .faq-answer.open { 
            max-height: 500px;
            padding-top: 0;
            padding-bottom: 1.5rem;
            opacity: 1;
        }
        /* FAQ Hover Reveal - Desktop only */
        @media (min-width: 768px) {
            .faq-item:hover .faq-answer {
                max-height: 500px;
                padding-bottom: 1.5rem;
                opacity: 1;
            }
            .faq-item:hover .faq-toggle svg {
                 transform: rotate(180deg);
            }
        }

        /* Gradient text */
        .gradient-text {
            background: linear-gradient(135deg, #fff 0%, #C62828 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* MARQUEE ANIMATION */
        .animate-marquee {
            animation: marquee 45s linear infinite;
            display: flex;
            width: max-content;
        }
        @keyframes marquee {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* CHAT WIDGET STYLES */
        .meghan-panel {
            position: fixed;
            bottom: 110px;
            right: 30px;
            z-index: 10002;
            width: 420px; /* Wider as requested */
            background: #1a1a1a;
            border: 2px solid #C62828;
            border-radius: 20px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
        }

        /* Social icon hover tooltip - ENHANCED */
        .social-icon-wrapper {
            position: relative;
            display: inline-block;
        }

        /* Enhanced tooltip with glow */
        .social-icon-wrapper::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 15px);
            left: 50%;
            transform: translateX(-50%) translateY(8px);
            background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
            border: 2px solid #C62828;
            color: white;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 100;
            box-shadow: 0 8px 25px rgba(198, 40, 40, 0.5),
                        0 0 20px rgba(198, 40, 40, 0.3);
        }

        /* Tooltip arrow */
        .social-icon-wrapper::before {
            content: '';
            position: absolute;
            bottom: calc(100% + 5px);
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid #C62828;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 100;
        }

        .social-icon-wrapper:hover::after {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .social-icon-wrapper:hover::before {
            opacity: 1;
            visibility: visible;
        }

        /* Mobile responsive social icons */
        @media (max-width: 640px) {
            .social-icon-wrapper .google-pulse,
            .social-icon-wrapper .instagram-pulse {
                width: 3rem;
                height: 3rem;
            }

            .social-icon-wrapper .google-pulse svg {
                width: 22px;
                height: 22px;
            }

            .social-icon-wrapper .instagram-pulse svg {
                width: 20px;
                height: 20px;
            }

            /* Adjust tooltip for mobile */
            .social-icon-wrapper::after {
                font-size: 11px;
                padding: 8px 12px;
            }
        }

        .meghan-panel.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }
        /* Mobile responsive */
        @media (max-width: 768px) {
            .meghan-panel {
                width: 92% !important;
                left: 50% !important;
                right: auto !important;
                bottom: auto !important;
                top: 50% !important;
                transform: translate(-50%, -50%) translateY(20px) scale(0.95) !important;
            }
            .meghan-panel.active {
                transform: translate(-50%, -50%) scale(1) !important;
            }
        }
        /* Small mobile - truly centered modal */
        @media (max-width: 640px) {
            .meghan-panel {
                width: 90vw !important;
                max-width: 360px !important;
                left: 50% !important;
                right: auto !important;
                top: 50% !important;
                bottom: auto !important;
                transform: translate(-50%, -50%) scale(0.95) !important;
                border-radius: 20px !important;
                margin: 0 !important;
            }
            .meghan-panel.active {
                transform: translate(-50%, -50%) scale(1) !important;
            }
        }
        .chat-messages {
            flex-direction: column;
            transition: all 0.3s ease-in-out;
        }
        .chat-message {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
            animation: slideIn 0.3s ease;
        }
        .chat-message.user { justify-content: flex-end; }
        .chat-message .message-text {
            max-width: 80%;
            padding: 12px 16px;
            border-radius: 12px;
            word-wrap: break-word;
            font-size: 0.875rem;
            line-height: 1.5;
        }
        .chat-message.user .message-text {
            background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
            color: #1f2937;
            border-bottom-right-radius: 4px;
        }
        .chat-message.assistant .message-text {
            background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
            color: #e0e0e0;
            border: 1px solid #333;
            border-bottom-left-radius: 4px;
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .typing-indicator { display: flex; align-items: center; height: 10px; }
        .typing-dot {
            width: 8px;
            height: 8px;
            margin: 0 3px;
            background: var(--accent);
            border-radius: 50%;
            animation: bounce 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; }
        .typing-dot:nth-child(3) { animation-delay: 0s; }
        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1.0); }
        }

        /* MODAL STYLES */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.8);
            backdrop-filter: blur(8px);
            z-index: 9998;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .modal-overlay.active { display: flex; }
        .modal-content {
            background: #0b0b0b;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 1rem;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: #0b0b0b; }
        ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #555; }

        /* MEGA MENU STYLES - Premium Glassmorphism Design */
        .nav-item {
            position: relative;
        }
        .nav-item .nav-link {
            padding: 0.75rem 1.25rem;
            border-radius: 9999px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 500;
        }
        .nav-item:hover .nav-link {
            background: linear-gradient(135deg, rgba(198,40,40,0.2) 0%, rgba(139,0,0,0.15) 100%);
            color: white;
            box-shadow: 0 0 20px rgba(198,40,40,0.2);
        }
        .nav-item .nav-link.active {
            background: linear-gradient(135deg, rgba(198,40,40,0.3) 0%, rgba(139,0,0,0.2) 100%);
            color: var(--accent);
        }
        
        /* Mega dropdown - Premium Glass Effect (WHITE THEME) */
        .mega-dropdown {
            position: absolute;
            top: calc(100% + 1rem);
            left: 50%;
            transform: translateX(-50%) translateY(10px) scale(0.95);
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            overflow: hidden;
            color: #1a1a1a;
        }
        .mega-dropdown::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, #C62828, transparent);
        }
        .mega-dropdown a:hover { background: rgba(0,0,0,0.03); }
        
        /* Dropdown arrow indicator */
        .nav-link svg {
            transition: transform 0.3s ease;
        }
        .nav-item:hover .nav-link svg {
            transform: rotate(180deg);
        }
        
        /* RESTORED HOVER FUNCTIONALITY */
        .nav-item:hover .mega-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0) scale(1);
        }
/* Spinner Animation for SVG icons */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Meghan Orb Icon Styles */
.meghan-orb {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #C62828 0%, #8B0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(198,40,40,0.4);
    transition: all 0.3s ease;
}
.meghan-orb:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(198,40,40,0.5);
}
@media (max-width: 640px) {
    .meghan-orb {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 15px;
    }
}

/* DARK/LIGHT MODE TOGGLE BUTTON */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: white;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* LIGHT MODE STYLES */
.light-mode {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.light-mode body {
    background-color: #FAFAFA;
    color: #1A1A1A;
}

.light-mode .text-white {
    color: #1A1A1A !important;
}

.light-mode .text-gray-300 {
    color: #4A4A4A !important;
}

.light-mode .text-gray-400 {
    color: #6A6A6A !important;
}

.light-mode .text-gray-500 {
    color: #8A8A8A !important;
}

.light-mode .bg-black {
    background-color: #FAFAFA !important;
}

.light-mode .glass {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.2);
}

.light-mode .theme-toggle svg {
    color: #1A1A1A;
}

/* Light mode for mega dropdown */
.light-mode .mega-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border: 4px solid #C62828;
    color: #1A1A1A;
}

.light-mode .service-card {
    background: #FFFFFF !important;
    border-color: #E0E0E0 !important;
}

.light-mode .service-card:hover {
    border-color: #C62828 !important;
}

.light-mode .service-card h4 {
    color: #1A1A1A !important;
}

.light-mode .service-card p {
    color: #6A6A6A !important;
}

/* Light mode for FAQ */
.light-mode .faq-item {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .faq-item:hover {
    border: 2px solid #C62828;
}

.light-mode .faq-toggle {
    color: #1A1A1A;
}

.light-mode .faq-answer {
    color: #4A4A4A;
}

/* Light mode for mobile menu */
.light-mode #mobileMenu {
    background: #FFFFFF !important;
}

.light-mode #mobileMenuOverlay {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* Light mode text colors */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode h6 {
    color: #1A1A1A !important;
}

/* Keep accent colors */
.light-mode .text-accent {
    color: #C62828 !important;
}

.light-mode .bg-accent {
    background-color: #C62828 !important;
}

/* Light mode for Meghan panel */
.light-mode .meghan-panel {
    background: #FFFFFF;
    border: 2px solid #C62828;
}

.light-mode .meghan-orb {
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.4);
}

/* Mobile hamburger in light mode */
.light-mode #mobileMenuBtn span {
    background: #1A1A1A;
}

/* Additional light mode improvements */
.light-mode .nav-link {
    color: #4A4A4A !important;
}

.light-mode .nav-link:hover {
    color: #1A1A1A !important;
}

.light-mode .nav-item:hover .nav-link {
    background: linear-gradient(135deg, rgba(198,40,40,0.1) 0%, rgba(139,0,0,0.05) 100%);
    color: #1A1A1A !important;
}

/* Light mode gradient text */
.light-mode .gradient-text {
    background: linear-gradient(135deg, #1A1A1A 0%, #C62828 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light mode for sections with dark backgrounds */
.light-mode section {
    background-color: #FAFAFA !important;
}

/* Light mode button text visibility */
.light-mode button:not(.bg-accent):not(.theme-toggle) {
    color: #1A1A1A;
}

/* Ensure phone pulse button stays visible */
.light-mode .phone-pulse {
    box-shadow: 0 0 0 0 rgba(198,40,40,0.5);
}

/* Light mode hero section - remove dark overlay, ensure text is readable */
.light-mode .hero-overlay {
    background-color: rgba(255, 255, 255, 0.85) !important;
}

.light-mode #heroVideo {
    opacity: 0.25;
}

/* Change integration logo borders to RED in light mode */
.light-mode .integration-card {
    border-color: #E0E0E0 !important;
}

.light-mode .integration-card:hover {
    border-color: #C62828 !important;
}

/* Case study borders RED */
.light-mode .case-study-card {
    border-color: #C62828 !important;
}

.light-mode .case-study-card:hover {
    border-color: #8B0000 !important;
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.2) !important;
}

/* CRITICAL: Fix all text visibility in light mode */
.light-mode p,
.light-mode span,
.light-mode div,
.light-mode a:not(.bg-accent) {
    color: #1A1A1A !important;
}

.light-mode .text-gray-600 {
    color: #4A4A4A !important;
}

.light-mode .text-gray-700 {
    color: #2A2A2A !important;
}

.light-mode .text-gray-800 {
    color: #1A1A1A !important;
}

.light-mode .text-gray-900 {
    color: #0A0A0A !important;
}

/* Hero section buttons in light mode */
.light-mode .border-white\/20 {
    border-color: rgba(198, 40, 40, 0.3) !important;
    color: #C62828 !important;
}

.light-mode .border-white\/20:hover {
    border-color: #C62828 !important;
    background: rgba(198, 40, 40, 0.05) !important;
}
