html {
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    background-color: #062414; 
}

:root {
    --main-bg: #062414;
    --cream-text: #FDFBF7;
    --gold-gradient: linear-gradient(135deg, #F0D886, #FDF5A6, #FFFDE7, #FCF6BA, #F0D886);
    --button-gold: linear-gradient(145deg, #F0D886, #FFFDE7 40%, #FDF5A6 75%, #F0D886);
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--main-bg);
    color: var(--cream-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; 
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; 
    min-height: 100dvh; 
    background-color: var(--main-bg); 
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-image-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 98%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 98%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background: linear-gradient(to bottom, rgba(6, 36, 20, 0.6) 0%, rgba(6, 36, 20, 0) 20%, rgba(6, 36, 20, 0) 65%, rgba(6, 36, 20, 1) 90%, #062414 100%);
    z-index: 2;
}

/* Base Top Nav */
.top-nav {
    position: absolute; 
    top: 2rem; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 1rem 2rem;
    font-family: 'Lato', sans-serif;
    white-space: nowrap; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--cream-text); 
}

/* Scrolled Sticky Nav */
.top-nav.scrolled {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 1rem 0;
    background-color: rgba(6, 36, 20, 0.95);
    border: none;
    border-bottom: 1px solid rgba(240, 216, 134, 0.2);
    animation: slideDown 0.4s ease forwards;
    color: rgba(253, 251, 247, 0.4); 
}

@keyframes slideDown {
    from { transform: translate(-50%, -100%); }
    to { transform: translate(-50%, 0); }
}

.top-nav a {
    color: var(--cream-text); 
    text-decoration: none;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    margin: 0 15px; 
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, transform 0.2s ease, text-shadow 0.3s ease;
    display: inline-block;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.top-nav a:hover {
    transform: scale(1.1);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(240, 216, 134, 0.6); 
}

/* Scrolled link states */
.top-nav.scrolled a {
    color: rgba(253, 251, 247, 0.4); 
    text-shadow: none;
}

.top-nav.scrolled a:hover {
    color: rgba(253, 251, 247, 0.8);
    text-shadow: none; 
}

.top-nav.scrolled a.active {
    color: var(--cream-text); 
}

.hero-text {
    position: absolute;
    bottom: 4rem; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 100%;
    padding: 0 1.5rem; 
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

.headline {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
    text-wrap: balance;
    text-align: center; 
}

.composer-title {
    font-family: 'Lato', sans-serif; 
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 8px;
    margin: 0;
    text-transform: uppercase;
}

/* --- MAIN CONTENT & INTRO --- */
.content {
    max-width: 1100px;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3; 
}

.intro-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 4rem 0 2rem 0;
}

.scoring-journey {
    font-family: 'Cinzel', serif; 
    font-weight: 400; 
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    text-wrap: balance;
}

.focus-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 400; 
    line-height: 1.6;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
    text-wrap: balance;
}

/* --- SCROLLING SECTIONS --- */
.page-section {
    width: 100%;
    min-height: 50vh;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(240, 216, 134, 0.2);
    margin-top: 2rem;
}

.page-section h3 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

/* --- MUSIC SECTION (WAVESURFER AUDIO PLAYERS) --- */
.music-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: rgba(253, 251, 247, 0.9);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.divider-subtitle {
    margin-top: 3rem;
}

.tracks-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.highlight-container {
    margin-bottom: 2rem;
}

/* Track UI Container optimized for Touch/Mobile */
.track-item {
    display: flex;
    align-items: center;
    background: rgba(253, 251, 247, 0.03);
    border: 1px solid rgba(240, 216, 134, 0.15);
    border-radius: 20px;
    padding: 1.2rem 1.5rem; 
    transition: background 0.3s ease, border-color 0.3s ease;
    gap: 1.5rem;
    min-height: 90px; 
    box-sizing: border-box;
    width: 100%;
}

.track-item:hover {
    background: rgba(253, 251, 247, 0.08);
    border-color: rgba(240, 216, 134, 0.4);
}

.track-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
    min-width: 100px; /* Forces container open so Wavesurfer can render properly */
}

.track-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--cream-text);
    text-align: left;
    text-transform: uppercase;
}

.waveform {
    width: 100%;
    height: 40px;
    cursor: pointer;
}

/* Play/Pause Button inside track items */
.play-btn {
    background: var(--button-gold);
    border: none;
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--main-bg);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(240, 216, 134, 0.3);
}

.play-btn svg.play-icon {
    margin-left: 3px; 
}

.hidden {
    display: none !important;
}

/* Call to Action Primary Button */
.contact-btn-wrapper {
    margin-top: 3.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-primary {
    background: var(--button-gold);
    color: var(--main-bg);
    padding: 1.2rem 3.5rem;
    border-radius: 12px; 
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(240, 216, 134, 0.4);
}

/* --- BIO SECTION --- */
.bio-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.bio-content p {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(253, 251, 247, 0.9);
    margin-bottom: 2rem;
    text-align: left; 
}

.bio-content p:last-child {
    margin-bottom: 0;
}

/* --- CONTACT SECTION --- */
.contact-container {
    max-width: 600px;
    width: 100%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1.5rem;
}

.contact-cta {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(253, 251, 247, 0.9);
    text-wrap: balance;
}

.contact-email {
    font-family: 'Lato', sans-serif; 
    font-weight: 400;
    font-size: 1.3rem; 
    letter-spacing: 1px; 
    text-transform: lowercase; 
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
    padding-bottom: 5px;
    display: inline-block;
}

.contact-email:hover {
    border-bottom: 1px solid #FFFDE7;
}

/* --- FOOTER --- */
.site-footer {
    width: 100%;
    padding: 4rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(240, 216, 134, 0.2);
    margin-top: 2rem;
}

.copyright {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin: 0;
    color: rgba(253, 251, 247, 0.7);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #FDF5A6; 
    transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-link:hover {
    color: #FFFDE7;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(253, 245, 166, 0.6));
}

/* --- MOBILE RESPONSIVENESS RULES --- */
@media (max-width: 900px) {
    .content {
        padding: 0 1.5rem;
    }
    
    .top-nav {
        top: 1rem;
        padding: 0.8rem 0; 
        width: 95%; 
        max-width: 400px; 
        box-sizing: border-box; 
    }

    .top-nav a {
        font-size: clamp(0.7rem, 3vw, 0.9rem); 
        margin: 0 8px; 
        letter-spacing: 1.5px;
    }
    
    .top-nav.scrolled {
        width: 100%;
        max-width: 100%;
        padding: 0.8rem 0; 
    }

    .headline {
        font-size: 2.8rem;
    }

    .composer-title {
        letter-spacing: 4px;
    }

    .track-item {
        padding: 1rem 1.2rem;
        gap: 1rem;
    }

    .track-title {
        font-size: 0.95rem; 
    }

    .contact-email {
        font-size: 1.1rem; 
        letter-spacing: 0.5px; 
        white-space: nowrap; 
        border-bottom: 1px solid rgba(240, 216, 134, 0.6); 
    }
}