/* Custom styles for David Blackwell Hall */

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

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

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

/* Apply floating animation to stat cards */
.absolute.top-0.right-0 {
    animation: float 4s ease-in-out infinite;
}

.absolute.top-24.left-0 {
    animation: float-reverse 5s ease-in-out infinite;
}

.absolute.bottom-0.right-12 {
    animation: float 4.5s ease-in-out infinite;
}

/* Stop animations on hover */
.absolute.top-0.right-0:hover,
.absolute.top-24.left-0:hover,
.absolute.bottom-0.right-12:hover {
    animation-play-state: paused;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal.hidden {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation scroll effect */
nav.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift effect */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Custom focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Accessibility: Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #14b8a6;
    color: #020617;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
