/* Custom styles for Niccolls Hall */

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

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

::-webkit-scrollbar-track {
    background: #0d0d14;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5c5c70;
}

/* Selection color */
::selection {
    background: rgba(255, 111, 79, 0.3);
    color: #f7f7f8;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
}

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

/* Subtle pulse for the hero badge */
@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(10px) rotate(-2deg); }
}

/* Apply floating to hero image cards */
.absolute.top-1/3.right-8 {
    animation: float 6s ease-in-out infinite;
}

.absolute.bottom-1/3.left-8 {
    animation: floatReverse 7s ease-in-out infinite;
}

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(8, 8, 14, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 74, 90, 0.3);
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 111, 79, 0.1);
}

/* Image hover zoom container */
.group:hover img {
    transform: scale(1.05);
}

/* Custom gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #ffb4a0, #ff6f4f, #e8c35a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift effect */
.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rounded-2xl:hover {
    transform: translateY(-4px);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.97) !important;
}

/* Map container dark mode override */
iframe[title="Niccolls Hall location map"] {
    border-radius: 16px;
}
