    *, *::before, *::after {
        box-sizing: border-box;
    }

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

    body {
        overflow-x: hidden;
    }

    /* Scroll indicator animation */
    @keyframes scrollIndicator {
        0% { transform: translateY(-100%); }
        100% { transform: translateY(100%); }
    }

    .animate-scroll-indicator {
        animation: scrollIndicator 1.5s ease-in-out infinite;
    }

    /* Scroll reveal animations - progressive enhancement only */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
        .reveal-delay-4 { transition-delay: 0.4s; }
        .reveal-delay-5 { transition-delay: 0.5s; }
    }

    /* Navbar scroll state */
    .navbar-scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.04);
    }

    /* Custom selection color */
    ::selection {
        background: color-mix(in srgb, #0d9488 30%, transparent);
        color: #1e293b;
    }

    /* Subtle image hover zoom */
    .group:hover img {
        transform: scale(1.03);
    }

    img {
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Smooth focus outlines */
    :focus-visible {
        outline: 2px solid #0d9488;
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* Mobile menu transition */
    #mobile-menu {
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Prevent layout shift on images */
    .aspect-\[4\/5\] {
        aspect-ratio: 4 / 5;
    }

    .aspect-\[5\/4\] {
        aspect-ratio: 5 / 4;
    }
