    /* Base styles and custom utilities */
    html {
        scroll-behavior: smooth;
    }

    body {
        overflow-x: hidden;
    }

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

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

    /* Navbar glass effect when scrolled */
    #navbar.scrolled {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 1px 20px rgba(26, 47, 66, 0.06);
    }

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

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

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

    ::-webkit-scrollbar-thumb:hover {
        background: #74c0a8;
    }

    /* Selection color */
    ::selection {
        background: #cde8e1;
        color: #1a2f42;
    }

    /* Mobile menu transitions */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    #mobile-menu.open {
        max-height: 400px;
    }

    /* Image loading placeholder */
    img {
        background: linear-gradient(135deg, #e6f5f0 0%, #d9e2ec 100%);
    }

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

    /* Subtle hover animation for cards */
    .group:hover .group-hover\\:scale-110 {
        transform: scale(1.1);
    }

    /* Gradient text fallback */
    .text-transparent {
        background-clip: text;
        -webkit-background-clip: text;
    }
