/* Custom styles for Maya Angelou Residence Hall */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3e6227;
}

/* Selection */
::selection {
    background: rgba(212, 168, 23, 0.3);
    color: #f2f7f0;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group img {
        transition: none;
    }
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn.active #bar2 {
    opacity: 0;
}

#menu-btn.active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(4, 6, 4, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 74, 32, 0.2);
}

/* Gold shimmer effect for hero */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Subtle pulse for decorative elements */
@keyframes subtle-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.animate-subtle-pulse {
    animation: subtle-pulse 4s ease-in-out infinite;
}

/* Select dropdown styling */
select option {
    background: #040604;
    color: #f2f7f0;
}

/* Image lazy loading fade */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure map iframe is properly styled */
iframe {
    border-radius: 0 0 1rem 1rem;
}
