    /* ===== Base & Resets ===== */
    *, *::before, *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }

    body {
        margin: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* ===== Scroll Reveal (Progressive Enhancement) ===== */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }

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

        .reveal:nth-child(2) { transition-delay: 0.1s; }
        .reveal:nth-child(3) { transition-delay: 0.2s; }
        .reveal:nth-child(4) { transition-delay: 0.3s; }
        .reveal:nth-child(5) { transition-delay: 0.4s; }
        .reveal:nth-child(6) { transition-delay: 0.5s; }
    }

    /* ===== Navbar Active State ===== */
    #navbar.scrolled {
        background: rgba(5, 14, 25, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(58, 181, 104, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    /* ===== Mobile Menu ===== */
    #mobile-menu.open {
        transform: translateX(0);
    }

    /* ===== Menu Toggle Animation ===== */
    #menu-toggle.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle.active .menu-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    #menu-toggle.active .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 1.25rem;
    }

    /* ===== Mobile Link Hover ===== */
    .mobile-link {
        position: relative;
    }

    .mobile-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        width: 0;
        height: 2px;
        background: #3ab568;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .mobile-link:hover::after {
        width: 80%;
    }

    /* ===== Image Hover Effects ===== */
    .group:hover img {
        transform: scale(1.05);
    }

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

    ::-webkit-scrollbar-track {
        background: #0a1c33;
    }

    ::-webkit-scrollbar-thumb {
        background: #1a3a63;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #3ab568;
    }

    /* ===== Selection Color ===== */
    ::selection {
        background: rgba(58, 181, 104, 0.3);
        color: #f0f4f8;
    }

    /* ===== Focus Styles ===== */
    a:focus-visible, button:focus-visible {
        outline: 2px solid #3ab568;
        outline-offset: 4px;
        border-radius: 4px;
    }

    /* ===== Smooth Image Loading ===== */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* ===== Geometric Shape Animations ===== */
    @media (prefers-reduced-motion: no-preference) {
        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-10px) rotate(2deg); }
        }

        @keyframes float-reverse {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(10px) rotate(-2deg); }
        }

        .geometric-float {
            animation: float 6s ease-in-out infinite;
        }

        .geometric-float-reverse {
            animation: float-reverse 7s ease-in-out infinite;
        }
    }
