/* Custom styles for Hill Hall */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Stat card hover animations */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    /* Default: visible, no animation */
}

/* Animation class added by JS only */
.scroll-reveal.animated {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.scroll-reveal.animated:nth-child(1) { animation-delay: 0.05s; }
.scroll-reveal.animated:nth-child(2) { animation-delay: 0.15s; }
.scroll-reveal.animated:nth-child(3) { animation-delay: 0.25s; }
.scroll-reveal.animated:nth-child(4) { animation-delay: 0.35s; }

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal.animated {
        animation: none;
    }
    .stat-card {
        transition: none;
    }
    .stat-card:hover {
        transform: none;
    }
    img {
        transition: none;
    }
    button, a {
        transition: none;
    }
    .animate-bounce {
        animation: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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