/* musical.quest - Styles */
/* Color Palette:
   bg-primary: #0A0A1A
   bg-secondary: #12122A
   accent-gold: #C9A84C
   text-primary: #E8D5A3
   text-secondary: #8B7D6B
   accent-glow: #FFD700
   border-subtle: #2A2A4A
   overlay-dark: #05051080
*/

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lora', Georgia, serif;
    background-color: #0A0A1A;
    color: #E8D5A3;
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.section-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: #C9A84C;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.section-intro {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #8B7D6B;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    font-style: italic;
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, #12122A 0%, #0A0A1A 70%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-emblem {
    width: 140px;
    height: 140px;
    animation: emblemRotate 30s linear infinite;
}

.emblem-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.3));
}

@keyframes emblemRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 1s ease-out forwards;
}

.title-line-1 {
    font-size: 4.5rem;
    color: #E8D5A3;
    letter-spacing: 0.15em;
    animation-delay: 0.3s;
}

.title-line-2 {
    font-size: 5.5rem;
    color: #C9A84C;
    letter-spacing: 0.25em;
    animation-delay: 0.6s;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.4);
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #8B7D6B;
    font-style: italic;
    max-width: 500px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #C9A84C);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 55px; }
}

.scroll-text {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #C9A84C;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ===== JOURNEY CARDS ===== */
#journeys {
    background: linear-gradient(180deg, #0A0A1A 0%, #12122A 50%, #0A0A1A 100%);
}

.journeys-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.journey-card {
    position: relative;
    background: linear-gradient(135deg, #12122A 0%, #1A1A35 100%);
    border: 1px solid #2A2A4A;
    border-radius: 12px;
    padding: 2.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.journey-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #C9A84C;
    box-shadow: 0 20px 60px rgba(201, 168, 76, 0.15);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.journey-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #E8D5A3;
    margin-bottom: 0.75rem;
}

.card-description {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #8B7D6B;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-progress {
    width: 100%;
    height: 4px;
    background: #2A2A4A;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C9A84C, #FFD700);
    border-radius: 2px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #C9A84C;
    letter-spacing: 0.1em;
}

/* ===== SOUNDSCAPE ===== */
#soundscape {
    background: radial-gradient(ellipse at center bottom, #12122A 0%, #0A0A1A 70%);
}

.soundscape-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

#soundscape-canvas {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    background: rgba(18, 18, 42, 0.5);
    border: 1px solid #2A2A4A;
}

.frequency-controls {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.freq-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.freq-node:hover {
    transform: scale(1.15);
}

.freq-node.active .node-ring {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.1);
}

.node-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #2A2A4A;
    background: rgba(42, 42, 74, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: #8B7D6B;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.freq-node.active .node-label {
    color: #FFD700;
}

/* ===== TIMELINE ===== */
#timeline {
    background: linear-gradient(180deg, #0A0A1A 0%, #12122A 50%, #0A0A1A 100%);
    padding: 8rem 2rem;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #C9A84C 10%, #C9A84C 90%, transparent);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: 3.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #C9A84C;
    background: #0A0A1A;
    transition: all 0.4s ease;
}

.timeline-item.visible .timeline-marker {
    background: #C9A84C;
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.5);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(18, 18, 42, 0.8) 0%, rgba(26, 26, 53, 0.6) 100%);
    border: 1px solid #2A2A4A;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    transition: border-color 0.4s ease;
}

.timeline-item.visible .timeline-content {
    border-color: rgba(201, 168, 76, 0.3);
}

.era-date {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #C9A84C;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.era-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #E8D5A3;
    margin: 0.4rem 0 0.6rem;
}

.era-description {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #8B7D6B;
    line-height: 1.6;
}

/* ===== INSTRUMENTS GALLERY ===== */
#instruments {
    background: radial-gradient(ellipse at center, #12122A 0%, #0A0A1A 70%);
}

.instruments-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.instrument-item {
    background: linear-gradient(180deg, rgba(18, 18, 42, 0.9) 0%, rgba(10, 10, 26, 0.9) 100%);
    border: 1px solid #2A2A4A;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    cursor: pointer;
}

.instrument-item:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 50px rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.4);
}

.instrument-visual {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1.5rem;
}

.instrument-svg {
    width: 100%;
    height: auto;
    transition: filter 0.4s ease;
}

.instrument-item:hover .instrument-svg {
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.4));
}

.instrument-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #E8D5A3;
    margin-bottom: 0.75rem;
}

.instrument-desc {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #8B7D6B;
    line-height: 1.6;
}

/* ===== PHILOSOPHY / QUOTES ===== */
#philosophy {
    min-height: 70vh;
    background: linear-gradient(180deg, #0A0A1A 0%, #12122A 50%, #0A0A1A 100%);
}

.philosophy-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.quote-marks {
    font-family: 'Cinzel', serif;
    font-size: 6rem;
    color: #C9A84C;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -1.5rem;
}

.philosophy-quote {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: #E8D5A3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.philosophy-author {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #C9A84C;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2rem;
    transition: opacity 0.5s ease;
}

.quote-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.quote-btn {
    background: none;
    border: 1px solid #2A2A4A;
    color: #C9A84C;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    border-color: #C9A84C;
    background: rgba(201, 168, 76, 0.1);
}

.quote-dots {
    display: flex;
    gap: 0.5rem;
}

.quote-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2A2A4A;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.quote-dot.active {
    background: #C9A84C;
    transform: scale(1.3);
}

/* ===== FOOTER ===== */
#footer {
    position: relative;
    z-index: 1;
    background: #05051080;
    border-top: 1px solid #2A2A4A;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #C9A84C;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-link {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #8B7D6B;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #C9A84C;
}

.footer-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: #8B7D6B;
    opacity: 0.6;
}


/* Caption style */
.caption-text {
    font-family: 'Lora', serif;
    font-size: 0.875rem;
    font-style: italic;
    color: #8B7D6B;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .journeys-grid {
        grid-template-columns: 1fr;
    }
    
    .instruments-gallery {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .title-line-1 { font-size: 3rem; }
    .title-line-2 { font-size: 3.8rem; }
    .section-title { font-size: 2.2rem; }
    .philosophy-quote { font-size: 1.3rem; }
    
    .frequency-controls {
        gap: 1rem;
    }
    
    .node-ring {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .section { padding: 4rem 1.2rem; }
    .title-line-1 { font-size: 2.2rem; }
    .title-line-2 { font-size: 2.8rem; }
    .section-title { font-size: 1.8rem; }
    .journey-card { padding: 1.5rem; }
    .philosophy-quote { font-size: 1.1rem; }
    .frequency-controls { gap: 0.5rem; }
    .footer-links { gap: 1rem; }
}