/* Lombard Middle School #57 — Premium Dark Luxury Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8C876;
}

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

/* Base styles */
body {
    overflow-x: hidden;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.7s; }
.hero-content > *:nth-child(5) { animation-delay: 0.9s; }

/* Academic cards */
.academic-card {
    position: relative;
    overflow: hidden;
}

.academic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.03), transparent);
    transition: left 0.6s ease;
}

.academic-card:hover::before {
    left: 100%;
}

/* Community cards */
.community-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(128, 0, 32, 0.15);
}

/* Program items */
.program-item {
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: border-color 0.3s ease;
}

.program-item:hover {
    border-left-color: rgba(212, 175, 55, 0.4);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0) !important;
}

/* Mobile menu button animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(128, 0, 32, 0.6);
    color: #F4C2C2;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .academic-card {
        padding: 1.5rem;
    }
    
    .community-card {
        padding: 1.5rem;
    }
    
    #about .aspect-square,
    #about .aspect-\[3\/4\] {
        aspect-ratio: 1 / 1;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .community-card,
    .academic-card {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
