/* Custom styles for Philippi Hall */

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

/* Scroll reveal base — content is visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state for reduced-motion preference off, via JS */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar glass effect when scrolled */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 25, 66, 0.08);
    box-shadow: 0 1px 12px rgba(74, 25, 66, 0.06);
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #88148A;
}

/* Selection color */
::selection {
    background: #FBBF24;
    color: #1A0A18;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #FBBF24;
    outline-offset: 2px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}
