        /* Preloader */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
        }

        .preloader.loaded {
            opacity: 0;
            pointer-events: none;
        }

        .preloader-content {
            text-align: center;
        }

        .preloader-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 2rem;
        }

        .progress-container {
            width: 300px;
            height: 4px;
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
            width: 0%;
            transition: width 0.6s ease-out;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        }

        .progress-text {
            margin-top: 1rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.875rem;
        }

        .loading-dots::after {
            content: '';
            animation: dots 1.5s steps(4, end) infinite;
        }

        @keyframes dots {

            0%,
            20% {
                content: '';
            }

            40% {
                content: '.';
            }

            60% {
                content: '..';
            }

            80%,
            100% {
                content: '...';
            }
        }

        .terminal-window {
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .code-bg {
            background: linear-gradient(to bottom, #1e1e1e 0%, #252526 100%);
        }

        .glow {
            text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
        }

        .typing-cursor::after {
            content: "|";
            animation: blink 1s step-start infinite;
        }

        @keyframes blink {
            50% {
                opacity: 0;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in-up {
            animation: fadeInUp 0.8s ease-out forwards;
        }

        .delay-100 {
            animation-delay: 100ms;
        }

        .delay-200 {
            animation-delay: 200ms;
        }

        .delay-300 {
            animation-delay: 300ms;
        }

        /* Platform icons sequential pulse animation */
        @keyframes iconPulse {

            0%,
            80%,
            100% {
                transform: scale(1);
            }

            10% {
                transform: scale(1.25);
            }

            20% {
                transform: scale(1);
            }
        }

        @keyframes glowFlash {

            0%,
            80%,
            100% {
                opacity: 0.3;
                transform: translateX(-50%) scale(1);
            }

            10% {
                opacity: 1;
                transform: translateX(-50%) scale(1.3);
            }

            20% {
                transform: translateX(-50%) scale(1);
                opacity: 0.3;
            }
        }

        .platform-icon svg {
            filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
            animation: iconPulse 5s ease-in-out infinite;
        }

        .platform-icon:nth-child(1) svg {
            animation-delay: 0s;
        }

        .platform-icon:nth-child(2) svg {
            animation-delay: 1s;
        }

        .platform-icon:nth-child(3) svg {
            animation-delay: 2s;
        }

        .platform-icon:nth-child(4) svg {
            animation-delay: 3s;
        }

        .platform-icon:nth-child(5) svg {
            animation-delay: 4s;
        }

        .genie-glow {
            position: absolute;
            bottom: -16px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 12px;
            background: radial-gradient(ellipse, rgba(59, 130, 246, 0.6), transparent 70%);
            border-radius: 50%;
            filter: blur(8px);
            animation: glowFlash 5s ease-in-out infinite;
        }

        /* Typewriter cursor animation */
        .typewriter-cursor {
            display: inline-block;
            animation: blink 1s step-end infinite;
            margin-left: 4px;
        }

        /* Scroll animations */
        .animate-on-scroll {
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
            transform: translateY(30px);
        }

        .animate-on-scroll.visible {
            opacity: 1 !important;
            transform: translateY(0);
        }

        /* Shine effect for cards */
        .card-shine {
            position: relative;
            overflow: hidden;
        }

        .card-shine::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg,
                    transparent 0%,
                    rgba(255, 255, 255, 0.1) 45%,
                    rgba(255, 255, 255, 0.3) 50%,
                    rgba(255, 255, 255, 0.1) 55%,
                    transparent 100%);
            pointer-events: none;
            z-index: 50;
            opacity: 0;
        }

        .card-shine:hover::before {
            left: 100%;
            opacity: 1;
            transition: left 0.6s ease, opacity 0.1s ease;
        }

        /* Dark mode shine */
        .dark .card-shine::before {
            background: linear-gradient(90deg,
                    transparent 0%,
                    rgba(255, 255, 255, 0.05) 45%,
                    rgba(255, 255, 255, 0.15) 50%,
                    rgba(255, 255, 255, 0.05) 55%,
                    transparent 100%);
        }

        .platform-icon:nth-child(1) .genie-glow {
            animation-delay: 0s;
        }

        .platform-icon:nth-child(2) .genie-glow {
            animation-delay: 1s;
        }

        .platform-icon:nth-child(3) .genie-glow {
            animation-delay: 2s;
        }

        .platform-icon:nth-child(4) .genie-glow {
            animation-delay: 3s;
        }

        .platform-icon:nth-child(5) .genie-glow {
            animation-delay: 4s;
        }

        .terminal-window {
            transform-style: preserve-3d;
            transform: perspective(1200px) rotateX(-2deg) rotateY(3deg);
        }

        /* Smooth theme transitions */
        body,
        section,
        nav,
        header,
        footer,
        div,
        button,
        a,
        h1,
        h2,
        h3,
        p,
        span {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        /* Accent color for branding */
        .accent {
            color: #3b82f6;
            /* Blue for light mode */
        }

        .dark .accent {
            color: #3b82f6;
            /* Blue for dark mode */
        }

        /* 3D Phone Mockup */
        .perspective-1000 {
            perspective: 1000px;
        }

        .phone-mockup-3d {
            width: 100%;
            height: 100%;
            transition: transform 0.3s ease;
        }

        .group:hover .phone-mockup-3d {
            transform: scale(1.02);
        }

        .phone-frame {
            position: relative;
            width: 100%;
            height: 100%;
            background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
            border-radius: 28px;
            padding: 8px;
            box-shadow:
                0 25px 50px -12px rgba(0, 0, 0, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.1),
                inset 0 -2px 4px rgba(0, 0, 0, 0.5);
        }

        .dark .phone-frame {
            background: linear-gradient(145deg, #e5e7eb, #d1d5db);
            box-shadow:
                0 25px 50px -12px rgba(0, 0, 0, 0.8),
                inset 0 2px 4px rgba(255, 255, 255, 0.4),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
        }

        .phone-screen {
            position: relative;
            width: 100%;
            height: 100%;
            background: #000;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
        }

        .phone-screen img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .phone-notch {
            position: absolute;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 24px;
            background: #000;
            border-radius: 0 0 12px 12px;
            z-index: 10;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .phone-notch::before {
            content: '';
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 4px;
            background: #333;
            border-radius: 2px;
        }

        .phone-notch::after {
            content: '';
            position: absolute;
            top: 6px;
            right: 12px;
            width: 8px;
            height: 8px;
            background: #1a4d2e;
            border-radius: 50%;
            box-shadow: 0 0 4px rgba(26, 77, 46, 0.8);
        }

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

        /* Navigation link styles */
        .nav-link {
            position: relative;
            padding: 0.5rem 1rem;
            border-radius: 0.25rem;
            /* rounded to match button */
            transition: all 0.2s ease;
        }

        /* Hover state - same as Contact button default state */
        .nav-link:hover {
            background-color: #3b82f6;
            color: white !important;
        }

        .dark .nav-link:hover {
            background-color: #3b82f6;
            color: white !important;
        }

        /* Active section indicator */
        .nav-link.active {
            background-color: #3b82f6;
            color: white !important;
            font-weight: 600;
        }

        /* Active link hover - darker blue like Contact button hover */
        .nav-link.active:hover {
            background-color: #2563eb;
            color: white !important;
        }

        .dark .nav-link.active {
            background-color: #3b82f6;
            color: white !important;
        }

        .dark .nav-link.active:hover {
            background-color: #2563eb;
            color: white !important;
        }
