/* ===================================
   INFINITE JOURNEYS MUSIC STUDIO
   Custom Styles
   =================================== */

:root {
    --navy-950: #0a1628;
    --navy-900: #1C2D4A;
    --navy-800: #243656;
    --navy-700: #2d4066;
    --navy-600: #3d5478;
    --navy-400: #7a94b0;
    --navy-300: #9ab0c8;
    --navy-200: #b8cce0;
    --gold-500: #D4A843;
    --gold-400: #e6be5a;
    --gold-300: #f0cc70;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--navy-950);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Hero Pattern */
.hero-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212, 168, 67, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(28, 45, 74, 0.3) 0%, transparent 50%);
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .mobile-link {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Toggle */
.menu-toggle-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle-active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Stat Cards */
.stat-card {
    background: rgba(36, 54, 86, 0.6);
    border: 1px solid rgba(45, 64, 102, 0.8);
    border-radius: 16px;
    padding: 16px 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
}

/* Lesson Cards */
.lesson-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Feature Cards */
.feature-card {
    background: rgba(36, 54, 86, 0.4);
    border: 1px solid rgba(45, 64, 102, 0.6);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    background: rgba(36, 54, 86, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }

    html {
        scroll-behavior: auto;
    }

    .lesson-card:hover img,
    .gallery-item:hover img {
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--navy-950);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-600);
}

/* Selection */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: white;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* Select styling */
select option {
    background: var(--navy-900);
    color: white;
}
