
        /* ==================== CRITICAL OVERFLOW PREVENTION ==================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
            position: relative;
        }
        
        /* Prevent all containers from causing horizontal scroll */
        .container,
        section,
        div,
        nav,
        header,
        footer,
        main {
            max-width: 100%;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }
        
        /* Ensure images never overflow */
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        
        /* ==================== TYPOGRAPHY ==================== */
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Space Grotesk', sans-serif;
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }
        
        /* ==================== GRADIENTS ==================== */
        .gradient-bg {
            background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* ==================== ACCESSIBILITY ==================== */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: #2563EB;
            color: white;
            padding: 8px 16px;
            text-decoration: none;
            z-index: 100;
            border-radius: 0 0 4px 0;
        }
        
        .skip-link:focus {
            top: 0;
        }
        
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }
        
        /* Enhanced focus indicators */
        a:focus, 
        button:focus, 
        input:focus, 
        select:focus, 
        textarea:focus {
            outline: 3px solid #2563EB;
            outline-offset: 2px;
        }
        
        *:focus-visible {
            outline: 3px solid #2563EB;
            outline-offset: 2px;
        }
        
        /* ==================== TOPBAR & NAVIGATION ==================== */
        .topbar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: all 0.3s ease;
        }
        
        .topbar.scrolled {
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
        }
        
        .social-icon {
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            font-size: 0.8rem;
        }
        
        .social-icon:hover,
        .social-icon:focus {
            transform: translateY(-3px) scale(1.1);
            background: rgba(255, 255, 255, 0.2);
        }
        
        .navbar {
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .navbar.scrolled {
            background: rgba(15, 23, 42, 0.98);
            backdrop-filter: blur(20px);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
        }
        
        .navbar.scrolled.topbar-hidden {
            top: 0 !important;
        }
        
        /* Desktop Navigation Links */
        .nav-link {
            position: relative;
            padding: 0.5rem 0;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        .nav-link.active {
            color: #60a5fa !important;
        }
        
        .nav-link.active::after {
            width: 100%;
        }
        
        /* Mobile Menu */
        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 998;
        }
        
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .mobile-menu {
            position: fixed;
            top: 0;
            right: 0;
            width: 85%;
            max-width: 400px;
            height: 100vh;
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
            overflow-y: auto;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        }
        
        .mobile-menu.active {
            transform: translateX(0);
        }
        
        .mobile-menu-header {
            background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
            padding: 1.5rem;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .mobile-nav-link {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .mobile-nav-link::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }
        
        .mobile-nav-link:hover::before {
            transform: scaleY(1);
        }
        
        .mobile-nav-link:hover {
            background: rgba(59, 130, 246, 0.1);
            padding-left: 2rem;
        }
        
        .mobile-nav-link.active {
            background: rgba(59, 130, 246, 0.15);
            padding-left: 2rem;
            color: #60a5fa !important;
        }
        
        .mobile-nav-link.active::before {
            transform: scaleY(1);
        }
        
        .menu-btn-line {
            display: block;
            width: 24px;
            height: 2px;
            background: white;
            transition: all 0.3s ease;
            border-radius: 2px;
        }
        
        .menu-btn-line:not(:last-child) {
            margin-bottom: 5px;
        }
        
        .menu-btn.active .menu-btn-line:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        
        .menu-btn.active .menu-btn-line:nth-child(2) {
            opacity: 0;
        }
        
        .menu-btn.active .menu-btn-line:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }
        
        /* ==================== BUTTONS ==================== */
        .btn-primary {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            display: inline-block;
        }
        
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: left 0.3s ease;
        }
        
        .btn-primary:hover::before,
        .btn-primary:focus::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
        }

        /* ==================== CARDS ==================== */
        .contact-card {
            transition: all 0.3s ease;
            width: 100%;
        }

        .contact-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.2);
        }
        
        /* ==================== FORM STYLES ==================== */
        .input-error {
            border-color: #ef4444 !important;
        }
        
        .error-message {
            color: #ef4444;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        
        .success-message {
            color: #10b981;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        
        /* Loading state */
        .btn-loading {
            position: relative;
            pointer-events: none;
            opacity: 0.7;
        }
        
        .btn-loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            top: 50%;
            left: 50%;
            margin-left: -8px;
            margin-top: -8px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 0.6s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Form inputs - ensure they never overflow */
        input,
        select,
        textarea {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        
        /* ==================== MOBILE OPTIMIZATION ==================== */
        @media (max-width: 768px) {
            /* Ensure all text is readable and wraps properly */
            h1 {
                font-size: clamp(1.75rem, 8vw, 2.5rem);
                line-height: 1.2;
            }
            
            h2 {
                font-size: clamp(1.5rem, 6vw, 2rem);
                line-height: 1.3;
            }
            
            h3 {
                font-size: clamp(1.25rem, 5vw, 1.5rem);
                line-height: 1.4;
            }
            
            /* Ensure all buttons fit on mobile */
            button, .btn-primary {
                min-height: 44px;
                font-size: clamp(0.875rem, 3vw, 1rem);
                padding-left: clamp(1rem, 4vw, 2rem);
                padding-right: clamp(1rem, 4vw, 2rem);
            }
            
            /* Adjust form elements for mobile */
            input,
            select,
            textarea {
                font-size: 16px; /* Prevents zoom on iOS */
                padding: 0.75rem;
            }
            
            /* Ensure navigation items fit */
            nav a {
                word-break: keep-all;
                white-space: nowrap;
            }
            
            /* Mobile menu adjustments */
            .mobile-menu {
                width: 90%;
            }
            
            /* Touch targets */
            a, button, input[type="submit"] {
                min-height: 44px;
                min-width: 44px;
            }
        }
        
        @media (max-width: 640px) {
            .topbar {
                font-size: 0.75rem;
            }
            
            .social-icon {
                width: 24px;
                height: 24px;
                font-size: 0.7rem;
            }
        }
        
        @media (max-width: 380px) {
            .mobile-menu {
                width: 95%;
            }
        }
        
        /* ==================== LANDSCAPE PHONE FIX ==================== */
        @media (max-height: 500px) and (orientation: landscape) {
            .mobile-menu {
                padding: 1rem;
            }
            
            .mobile-menu a {
                font-size: 1rem;
                margin: 0.25rem 0;
            }
            
            .mobile-menu-header {
                padding: 1rem;
            }
        }
        
        /* ==================== REDUCED MOTION ==================== */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
        
        /* ==================== PRINT STYLES ==================== */
        @media print {
            .no-print {
                display: none !important;
            }
            
            body {
                background: white;
            }
            
            .gradient-bg {
                background: #2563EB;
                color: white;
            }
        }
