/* Custom styles for Webster City Middle School */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

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

/* Gold gradient line accent */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
}

/* Subtle shimmer animation for gold elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Reveal animations - progressive enhancement with prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }

    /* Staggered reveal delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* For browsers that support it, ensure content is visible even without JS */
@supports not (animation: reveal 0.8s) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(10, 10, 15, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(46, 46, 62, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero decorative line */
.hero-accent {
    position: relative;
}

.hero-accent::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #ec4899);
    border-radius: 2px;
}

/* Card hover glow effect */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(212, 160, 23, 0.1);
}

/* Input autofill styling for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #f5f5f5;
    -webkit-box-shadow: 0 0 0 1px #d4a017;
    transition: background-color 5000s ease-in-out 0s;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

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

/* Print styles */
@media print {
    nav, #contact, footer, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    h1, h2, h3 {
        color: black !important;
    }
}
