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

        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
            --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            --bg-light: #ffffff;
            --bg-dark: #0f172a;
            --card-light: rgba(255, 255, 255, 0.95);
            --card-dark: rgba(15, 23, 42, 0.95);
            --text-light: #1e293b;
            --text-dark: #f1f5f9;
            --text-muted: #64748b;
            --border-light: rgba(148, 163, 184, 0.2);
            --border-dark: rgba(71, 85, 105, 0.3);
            --shadow-light: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            --shadow-dark: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--bg-light);
            color: var(--text-light);
            line-height: 1.6;
            overflow-x: hidden;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body.dark {
            background: var(--bg-dark);
            color: var(--text-dark);
        }

        /* Animated Background - Responsive */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.4;
        }

        .floating-shapes {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            animation: float 30s infinite ease-in-out;
            opacity: 0.1;
        }

        .shape:nth-child(1) {
            width: clamp(100px, 15vw, 200px);
            height: clamp(100px, 15vw, 200px);
            background: var(--primary-gradient);
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .shape:nth-child(2) {
            width: clamp(80px, 12vw, 150px);
            height: clamp(80px, 12vw, 150px);
            background: var(--secondary-gradient);
            top: 60%;
            left: 80%;
            animation-delay: -10s;
        }

        .shape:nth-child(3) {
            width: clamp(60px, 8vw, 100px);
            height: clamp(60px, 8vw, 100px);
            background: var(--accent-gradient);
            top: 30%;
            left: 70%;
            animation-delay: -20s;
        }

        .shape:nth-child(4) {
            width: clamp(90px, 14vw, 180px);
            height: clamp(90px, 14vw, 180px);
            background: var(--success-gradient);
            top: 80%;
            left: 20%;
            animation-delay: -15s;
        }

        .shape:nth-child(5) {
            width: clamp(70px, 10vw, 120px);
            height: clamp(70px, 10vw, 120px);
            background: var(--hero-gradient);
            top: 40%;
            left: 5%;
            animation-delay: -25s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
            25% { transform: translateY(clamp(-30px, -5vw, -50px)) rotate(90deg) scale(1.1); }
            50% { transform: translateY(clamp(15px, 3vw, 30px)) rotate(180deg) scale(0.9); }
            75% { transform: translateY(clamp(-15px, -3vw, -30px)) rotate(270deg) scale(1.05); }
        }

        /* Navigation - Enhanced Responsive */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: var(--card-light);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-light);
            transition: all 0.3s ease;
            transform: translateY(0);
        }

        body.dark .navbar {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }

        .navbar.hidden {
            transform: translateY(-100%);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: clamp(0.5rem, 1.5vw, 0.75rem);
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            font-weight: 700;
            text-decoration: none;
            color: var(--text-light);
            transition: all 0.3s ease;
        }

        body.dark .logo {
            color: var(--text-dark);
        }

        .logo-img {
            width: clamp(30px, 8vw, 40px);
            height: clamp(30px, 8vw, 40px);
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        /* .logo:hover .logo-img {
            transform: rotate(360deg) scale(1.1);
        } */

        .nav-links {
            display: flex;
            align-items: center;
            gap: clamp(1rem, 3vw, 2rem);
            list-style: none;
        }

        .nav-link {
            text-decoration: none;
            color: var(--text-muted);
            font-weight: 500;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
            transition: all 0.3s ease;
            position: relative;
            white-space: nowrap;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-gradient);
            transition: width 0.3s ease;
        }

        .nav-link:hover {
            color: var(--text-light);
        }

        body.dark .nav-link:hover {
            color: var(--text-dark);
        }

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

        .nav-actions {
            display: flex;
            align-items: center;
            gap: clamp(0.5rem, 2vw, 1rem);
        }

        .theme-toggle {
            background: transparent;
            border: 1px solid var(--border-light);
            border-radius: 50px;
            padding: clamp(0.4rem, 1vw, 0.5rem);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        body.dark .theme-toggle {
            border-color: var(--border-dark);
        }

        .theme-toggle:hover {
            transform: scale(1.1);
            background: var(--border-light);
        }

        body.dark .theme-toggle:hover {
            background: var(--border-dark);
        }

        .theme-icon {
            width: clamp(16px, 4vw, 20px);
            height: clamp(16px, 4vw, 20px);
            transition: all 0.3s ease;
        }

        .btn {
            padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: clamp(0.3rem, 1vw, 0.5rem);
            border: none;
            cursor: pointer;
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            white-space: nowrap;
        }

        .btn-primary {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        .btn-outline {
            background: transparent;
            color: var(--text-light);
            border: 1px solid var(--border-light);
        }

        body.dark .btn-outline {
            color: var(--text-dark);
            border-color: var(--border-dark);
        }

        .btn-outline:hover {
            background: var(--border-light);
            transform: translateY(-2px);
        }

        body.dark .btn-outline:hover {
            background: var(--border-dark);
        }

        /* Hero Section - Fully Responsive */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: clamp(1rem, 4vw, 2rem);
            position: relative;
            perspective: 1000px;
        }

        .hero-content {
            max-width: 800px;
            width: 100%;
            animation: heroEntrance 1.5s ease-out;
        }

        @keyframes heroEntrance {
            0% {
                opacity: 0;
                transform: translateY(50px) rotateX(-10deg);
            }
            100% {
                opacity: 1;
                transform: translateY(0) rotateX(0);
            }
        }

        .hero-title {
            font-size: clamp(2rem, 8vw, 4rem);
            font-weight: 800;
            background: var(--hero-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: clamp(1rem, 3vw, 1.5rem);
            animation: titleGlow 3s ease-in-out infinite alternate;
            line-height: 1.2;
        }

        @keyframes titleGlow {
            0% { filter: brightness(1) saturate(1); }
            100% { filter: brightness(1.2) saturate(1.3); }
        }

        .hero-subtitle {
            font-size: clamp(1rem, 3vw, 1.25rem);
            color: var(--text-muted);
            margin-bottom: clamp(1.5rem, 4vw, 2rem);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            animation: fadeInUp 1s ease-out 0.3s both;
            line-height: 1.6;
        }

        .hero-actions {
            display: flex;
            gap: clamp(0.75rem, 2vw, 1rem);
            justify-content: center;
            flex-wrap: wrap;
            animation: fadeInUp 1s ease-out 0.6s both;
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 3D Robot Animation - Responsive */
        .hero-robot {
            position: absolute;
            right: clamp(2%, 5vw, 10%);
            top: 50%;
            transform: translateY(-50%);
            width: clamp(150px, 25vw, 300px);
            height: clamp(150px, 25vw, 300px);
            animation: robotFloat 6s ease-in-out infinite;
        }

        @keyframes robotFloat {
            0%, 100% { transform: translateY(-50%) rotate(0deg); }
            25% { transform: translateY(calc(-50% - 10px)) rotate(2deg); }
            50% { transform: translateY(calc(-50% + 10px)) rotate(0deg); }
            75% { transform: translateY(calc(-50% - 5px)) rotate(-2deg); }
        }

        .robot-body {
            width: 100%;
            height: 100%;
            background: var(--accent-gradient);
            border-radius: 20px;
            position: relative;
            box-shadow: 0 20px 40px rgba(79, 172, 254, 0.3);
            transform-style: preserve-3d;
        }

        .robot-face {
            position: absolute;
            top: 20%;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 60%;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(2rem, 6vw, 4rem);
            animation: robotBlink 4s ease-in-out infinite;
        }

        @keyframes robotBlink {
            0%, 90%, 100% { opacity: 1; }
            95% { opacity: 0.3; }
        }

        /* Features Section - Enhanced Responsive */
        .features {
            padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: clamp(2rem, 6vw, 2.5rem);
            font-weight: 700;
            margin-bottom: clamp(0.75rem, 2vw, 1rem);
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-muted);
            font-size: clamp(0.95rem, 2.5vw, 1.1rem);
            margin-bottom: clamp(2rem, 5vw, 3rem);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
            gap: clamp(1.5rem, 4vw, 2rem);
            margin-top: clamp(2rem, 5vw, 3rem);
        }

        .feature-card {
            background: var(--card-light);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: clamp(1.5rem, 4vw, 2rem);
            text-align: center;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform-style: preserve-3d;
            position: relative;
            overflow: hidden;
        }

        body.dark .feature-card {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: all 0.5s;
        }

        .feature-card:hover {
            transform: translateY(-10px) rotateX(5deg);
            box-shadow: var(--shadow-light);
        }

        body.dark .feature-card:hover {
            box-shadow: var(--shadow-dark);
        }

        .feature-card:hover::before {
            left: 100%;
        }

        .feature-icon {
            width: clamp(60px, 15vw, 80px);
            height: clamp(60px, 15vw, 80px);
            margin: 0 auto clamp(1rem, 3vw, 1.5rem);
            background: var(--accent-gradient);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(1.5rem, 4vw, 2rem);
            color: white;
            animation: iconPulse 3s ease-in-out infinite;
        }

        @keyframes iconPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .feature-title {
            font-size: clamp(1.1rem, 3vw, 1.25rem);
            font-weight: 600;
            margin-bottom: clamp(0.75rem, 2vw, 1rem);
            line-height: 1.3;
        }

        .feature-description {
            color: var(--text-muted);
            line-height: 1.6;
            font-size: clamp(0.9rem, 2.2vw, 1rem);
        }

        /* Stats Section - Enhanced Responsive */
        .stats {
            background: var(--card-light);
            border-top: 1px solid var(--border-light);
            border-bottom: 1px solid var(--border-light);
            padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4vw, 2rem);
            margin: clamp(2rem, 5vw, 3rem) 0;
        }

        body.dark .stats {
            background: var(--card-dark);
            border-color: var(--border-dark);
        }

        .stats-container {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
            gap: clamp(1rem, 4vw, 2rem);
            text-align: center;
        }

        .stat-item {
            padding: clamp(0.75rem, 2vw, 1rem);
        }

        .stat-number {
            font-size: clamp(2rem, 6vw, 2.5rem);
            font-weight: 800;
            background: var(--success-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: block;
            margin-bottom: clamp(0.3rem, 1vw, 0.5rem);
            line-height: 1.2;
        }

        .stat-label {
            color: var(--text-muted);
            font-weight: 500;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
        }

        /* Footer - Enhanced Responsive */
        .footer {
            background: var(--bg-dark);
            color: var(--text-dark);
            padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem);
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 70px;
            background-image: url('/images/footer.jpeg');
            background-size: cover;
            background-position: center;
            opacity: 20%;
            z-index: 0;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
            gap: clamp(1.5rem, 4vw, 2rem);
            margin-bottom: clamp(1.5rem, 4vw, 2rem);
        }

        .footer-section h3 {
            font-size: clamp(1.1rem, 3vw, 1.25rem);
            font-weight: 600;
            margin-bottom: clamp(0.75rem, 2vw, 1rem);
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.3;
        }

        .footer-section p,
        .footer-section a {
            color: rgba(243, 248, 245, 0.8);
            text-decoration: none;
            line-height: 1.6;
            transition: all 0.3s ease;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
        }

        .footer-section a:hover {
            color: #0a9bd4;
        }

        .footer-bottom {
            border-top: 1px solid rgba(71, 85, 105, 0.3);
            padding-top: clamp(1.5rem, 4vw, 2rem);
            text-align: center;
            color: rgba(241, 245, 249, 0.6);
            font-size: clamp(0.8rem, 2vw, 0.9rem);
        }

        /* Mobile Menu - Enhanced */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: clamp(1.3rem, 4vw, 1.5rem);
            cursor: pointer;
            padding: 0.5rem;
        }

        body.dark .mobile-menu-toggle {
            color: var(--text-dark);
        }

        /* Enhanced Responsive Design */
        @media (max-width: 1024px) {
            .hero-robot {
                width: clamp(120px, 20vw, 200px);
                height: clamp(120px, 20vw, 200px);
                right: 5%;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .hero-robot {
                display: none;
            }

            .hero {
                min-height: 90vh;
                padding-top: clamp(80px, 15vw, 100px);
            }

            .hero-actions {
                flex-direction: column;
                align-items: center;
                width: 100%;
            }

            .btn {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }

            .stats-container {
                grid-template-columns: repeat(2, 1fr);
            }

            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .nav-container {
                padding: 0.75rem 1rem;
            }

            .hero {
                min-height: 85vh;
                padding-top: 70px;
            }

            .hero-title {
                font-size: clamp(1.8rem, 10vw, 2.5rem);
            }

            .hero-subtitle {
                font-size: clamp(0.9rem, 4vw, 1.1rem);
            }

            .btn {
                padding: 0.75rem 1.25rem;
                font-size: 0.85rem;
            }

            .features {
                padding: 2rem 1rem;
            }

            .feature-card {
                padding: 1.5rem;
            }

            .stats-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .footer {
                padding: 2rem 1rem 1.5rem;
            }

            .footer-grid {
                gap: 1.5rem;
            }
        }

        @media (max-width: 360px) {
            .hero-title {
                font-size: 1.75rem;
            }

            .hero-subtitle {
                font-size: 0.9rem;
            }

            .btn {
                padding: 0.65rem 1rem;
                font-size: 0.8rem;
            }

            .feature-icon {
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
            }
        }

        /* Landscape Orientation */
        @media (max-height: 500px) and (orientation: landscape) {
            .hero {
                min-height: 100vh;
                padding: 1rem;
            }

            .hero-title {
                font-size: clamp(1.8rem, 6vw, 2.5rem);
                margin-bottom: 1rem;
            }

            .hero-subtitle {
                font-size: clamp(0.9rem, 2.5vw, 1.1rem);
                margin-bottom: 1.5rem;
            }

            .features {
                padding: 2rem 1rem;
            }
        }

        /* High DPI Displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .robot-body {
                box-shadow: 0 25px 50px rgba(79, 172, 254, 0.4);
            }

            .feature-card:hover {
                box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
            }

            body.dark .feature-card:hover {
                box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
            }
        }

        /* Scroll Animations - Responsive */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(clamp(30px, 5vw, 50px));
            transition: all 0.8s ease-out;
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Loading Animation - Responsive */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-light);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        body.dark .loading-overlay {
            background: var(--bg-dark);
        }

        .loading-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loader {
            width: clamp(40px, 10vw, 60px);
            height: clamp(40px, 10vw, 60px);
            border: clamp(3px, 1vw, 4px) solid var(--border-light);
            border-top: clamp(3px, 1vw, 4px) solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        body.dark .loader {
            border-color: var(--border-dark);
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Touch Device Optimizations */
        @media (pointer: coarse) {
            .btn {
                min-height: 44px;
                padding: 0.75rem 1.5rem;
            }

            .theme-toggle {
                min-height: 44px;
                min-width: 44px;
                padding: 0.75rem;
            }

            .nav-link {
                padding: 0.5rem 0;
            }

            .feature-card:hover {
                transform: none;
            }

            .logo:hover .logo-img {
                transform: none;
            }
        }

        /* Print Styles */
        @media print {
            .navbar,
            .theme-toggle,
            .mobile-menu-toggle,
            .bg-animation,
            .hero-robot {
                display: none !important;
            }
            
            body {
                background: white !important;
                color: black !important;
                font-size: 12pt;
                line-height: 1.4;
            }
            
            .hero-title,
            .section-title {
                color: black !important;
                -webkit-text-fill-color: black !important;
            }
            
            .feature-card,
            .stats {
                border: 1px solid #ccc !important;
                background: white !important;
                box-shadow: none !important;
                page-break-inside: avoid;
            }
        }

        /* Accessibility Improvements */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            
            .shape {
                animation: none !important;
            }
            
            .hero-robot {
                animation: none !important;
            }
            
            .scroll-reveal {
                opacity: 1 !important;
                transform: none !important;
            }
        }

        /* Focus Styles for Better Accessibility */
        .btn:focus,
        .nav-link:focus,
        .theme-toggle:focus,
        .mobile-menu-toggle:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        /* Skip to content link for screen readers */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 6px;
            background: var(--primary-gradient);
            color: white;
            padding: 8px;
            text-decoration: none;
            border-radius: 4px;
            z-index: 10000;
            transition: top 0.3s;
        }

        .skip-link:focus {
            top: 6px;
        }

        /* Mobile Menu Overlay */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--card-light);
            backdrop-filter: blur(20px);
            z-index: 999;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            padding: 2rem;
            padding-top: 6rem;
        }

        body.dark .mobile-menu {
            background: var(--card-dark);
        }

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

        .mobile-menu .nav-link {
            display: block;
            padding: 1rem 0;
            font-size: 1.25rem;
            border-bottom: 1px solid var(--border-light);
            color: var(--text-light);
        }

        body.dark .mobile-menu .nav-link {
            border-color: var(--border-dark);
            color: var(--text-dark);
        }

        .mobile-menu .nav-actions {
            margin-top: 2rem;
            flex-direction: column;
            gap: 1rem;
        }

        .mobile-menu .btn {
            width: 100%;
            justify-content: center;
        }

        /* Improved Button States */
        .btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
        }

        .btn-primary:active {
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        }

        /* Enhanced Card Interactions */
        .feature-card:active {
            transform: translateY(-5px) rotateX(2deg);
        }

        /* Improved Loading States */
        .loading-text {
            margin-top: 1rem;
            color: var(--text-muted);
            font-size: clamp(0.9rem, 2vw, 1rem);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* Error States */
        .error-message {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            border: 1px solid #f87171;
            color: #dc2626;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
        }

        body.dark .error-message {
            background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
            border-color: #dc2626;
            color: #fca5a5;
        }

        /* Success States */
        .success-message {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            border: 1px solid #34d399;
            color: #059669;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
        }

        body.dark .success-message {
            background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
            border-color: #10b981;
            color: #6ee7b7;
        }

        /* Tooltip Styles */
        .tooltip {
            position: relative;
            display: inline-block;
        }

        .tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            background: var(--bg-dark);
            color: var(--text-dark);
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            font-size: 0.8rem;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .tooltip:hover::after {
            opacity: 1;
            visibility: visible;
        }

        body.dark .tooltip::after {
            background: var(--bg-light);
            color: var(--text-light);
        }

        /* Scroll Indicator */
        .scroll-indicator {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: var(--primary-gradient);
            z-index: 1001;
            transition: width 0.1s ease;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-light);
        }

        body.dark ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border-light);
            border-radius: 4px;
        }

        body.dark ::-webkit-scrollbar-thumb {
            background: var(--border-dark);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }

        /* Selection Styles */
        ::selection {
            background: rgba(102, 126, 234, 0.2);
            color: var(--text-light);
        }

        body.dark ::selection {
            background: rgba(102, 126, 234, 0.4);
            color: var(--text-dark);
        }

        /* Image Optimization */
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* Form Elements (if needed) */
        input, textarea, select {
            width: 100%;
            padding: clamp(0.75rem, 2vw, 1rem);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            background: var(--bg-light);
            color: var(--text-light);
            font-size: clamp(0.9rem, 2vw, 1rem);
            transition: all 0.3s ease;
        }

        body.dark input,
        body.dark textarea,
        body.dark select {
            border-color: var(--border-dark);
            background: var(--bg-dark);
            color: var(--text-dark);
        }

        input:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

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

        .d-none { display: none; }
        .d-block { display: block; }
        .d-flex { display: flex; }
        .d-grid { display: grid; }

        .w-100 { width: 100%; }
        .h-100 { height: 100%; }

        .m-0 { margin: 0; }
        .p-0 { padding: 0; }

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

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

        .pt-1 { padding-top: 0.25rem; }
        .pt-2 { padding-top: 0.5rem; }
        .pt-3 { padding-top: 1rem; }
        .pt-4 { padding-top: 1.5rem; }
        .pt-5 { padding-top: 3rem; }

        .pb-1 { padding-bottom: 0.25rem; }
        .pb-2 { padding-bottom: 0.5rem; }
        .pb-3 { padding-bottom: 1rem; }
        .pb-4 { padding-bottom: 1.5rem; }
        .pb-5 { padding-bottom: 3rem; }

        /* Responsive Utilities */
        @media (max-width: 768px) {
            .d-md-none { display: none; }
            .d-md-block { display: block; }
            .d-md-flex { display: flex; }
            
            .text-md-center { text-align: center; }
            .text-md-left { text-align: left; }
        }

        @media (max-width: 480px) {
            .d-sm-none { display: none; }
            .d-sm-block { display: block; }
            .d-sm-flex { display: flex; }
            
            .text-sm-center { text-align: center; }
            .text-sm-left { text-align: left; }
        }

        /* Animation Classes */
        .fade-in {
            animation: fadeIn 0.5s ease-in;
        }

        .fade-out {
            animation: fadeOut 0.5s ease-out;
        }

        .slide-in-left {
            animation: slideInLeft 0.5s ease-out;
        }

        .slide-in-right {
            animation: slideInRight 0.5s ease-out;
        }

        .bounce-in {
            animation: bounceIn 0.6s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        @keyframes slideInLeft {
            from { transform: translateX(-100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes bounceIn {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.05); }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Performance Optimizations */
        .will-change-transform {
            will-change: transform;
        }

        .will-change-opacity {
            will-change: opacity;
        }

        .gpu-accelerated {
            transform: translateZ(0);
            backface-visibility: hidden;
            perspective: 1000;
        }

        /* Container Queries (Future-proofing) */
        @supports (container-type: inline-size) {
            .container-responsive {
                container-type: inline-size;
            }
            
            @container (max-width: 600px) {
                .container-responsive .feature-card {
                    padding: 1rem;
                }
            }
        }