/* Custom styles for Sampson High School website */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(15, 16, 18, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(199, 91, 66, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content always visible */
.reveal,
.reveal-hidden {
    opacity: 1;
    transform: none;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Coral glow effect */
@keyframes coralGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(199, 91, 66, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(199, 91, 66, 0.6);
    }
}

/* Pulse animation for badge dot */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1b1e;
}

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

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

/* Selection color */
::selection {
    background: rgba(199, 91, 66, 0.4);
    color: #f6f6f7;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #C75B42;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover effects */
.group:hover .group-hover\\:bg-coral-500\\/25 {
    background-color: rgba(199, 91, 66, 0.25);
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
