    /* Custom styles and overrides */
    html {
        scroll-behavior: smooth;
    }

    body {
        overflow-x: hidden;
    }

    /* Scroll reveal base state - visible by default for accessibility */
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }

    /* Scroll reveal when JS is active and user prefers motion */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

        .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; }
    }

    /* Reduced motion - disable all animations */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        html {
            scroll-behavior: auto;
        }
    }

    /* Navbar scroll state */
    nav.scrolled {
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    }

    nav.scrolled .nav-link {
        color: #334155 !important;
    }

    nav.scrolled .nav-link:hover {
        color: #0d9488 !important;
    }

    /* Hero text color override when scrolled */
    nav:not(.scrolled) .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    nav:not(.scrolled) .nav-link:hover {
        color: #ffffff !important;
    }

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

    ::-webkit-scrollbar-track {
        background: #f5f5f4;
    }

    ::-webkit-scrollbar-thumb {
        background: #94a3b8;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }

    /* Selection color */
    ::selection {
        background: #ccfbf1;
        color: #134e4a;
    }

    /* Focus styles */
    a:focus-visible, button:focus-visible {
        outline: 2px solid #0d9488;
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* Smooth image loading */
    img {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    /* Image lazy load placeholder */
    img[loading="lazy"] {
        background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
    }
