    /* Custom styles for The English Academy */

    :root {
        --forest-700: #1B4332;
        --forest-50: #f0f5f2;
        --offwhite: #FAFAF7;
    }

    html {
        scroll-behavior: smooth;
    }

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

    /* Navbar scroll effect */
    #navbar.scrolled {
        box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
    }

    /* Scroll reveal animations */
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    /* Stagger children */
    .stagger-children > * {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; }
    .stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
    .stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; }
    .stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
    .stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; }
    .stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }

    .stagger-children.revealed > * {
        opacity: 1;
        transform: translateY(0);
    }

    /* Floating animation for stat cards */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }

    .float-slow {
        animation: float 4s ease-in-out infinite;
    }

    .float-medium {
        animation: float 3s ease-in-out infinite;
        animation-delay: 0.5s;
    }

    .float-fast {
        animation: float 2.5s ease-in-out infinite;
        animation-delay: 1s;
    }

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

    ::-webkit-scrollbar-track {
        background: var(--offwhite);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--forest-700);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #2a5c31;
    }

    /* Form focus styles */
    input:focus, select:focus, textarea:focus {
        outline: none;
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        .reveal,
        .stagger-children > * {
            opacity: 1;
            transform: none;
            transition: none;
        }
        .float-slow, .float-medium, .float-fast {
            animation: none;
        }
    }
