/* =========================================
   LIGHT THEMATIC SYMPHONY - MASTER CSS
   ========================================= */
:root {
    --bg-ivory: #fdfbf7;
    --text-charcoal: #2c2c2c;
    --text-muted: #6e6b66;
    --accent-gold: #c5a059;
    --card-bg: #ffffff;
    --border-light: #eae3d5;
    --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(197, 160, 89, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-ivory);
    color: var(--text-charcoal);
    line-height: 1.6; overflow-x: hidden;
}

h1, h2, h3, .note-symbol, .serif-text { font-family: 'Playfair Display', 'Georgia', serif; font-weight: 600; }

/* Background Watermarks to fill empty space on large monitors */
body::before {
    content: "𝄞"; position: fixed; top: 10vh; left: -5vw;
    font-size: 60vh; color: var(--accent-gold); opacity: 0.03; z-index: -2; pointer-events: none;
}
body::after {
    content: "𝄢"; position: fixed; bottom: 5vh; right: -5vw;
    font-size: 50vh; color: var(--text-charcoal); opacity: 0.03; z-index: -2; pointer-events: none;
}

/* --- 1. GLOBAL NAVIGATION & SEARCH --- */
.global-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(253, 251, 247, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light); z-index: 1000;
    display: flex; justify-content: space-between; align-items: center; padding: 0 40px;
}

.nav-brand-container { font-size: 1.2rem; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.nav-brand-name { color: var(--text-charcoal); text-decoration: none; transition: color 0.3s; cursor: pointer; }
.nav-brand-name:hover { color: var(--accent-gold); }
.nav-brand-opus { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.nav-brand-opus:hover { color: var(--accent-gold); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-gold); }

.search-wrapper { position: relative; }
.search-input {
    background: var(--card-bg); border: 1px solid var(--border-light);
    padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; width: 200px;
    outline: none; transition: all 0.3s ease; color: var(--text-charcoal);
}
.search-input:focus { border-color: var(--accent-gold); width: 250px; box-shadow: 0 0 10px rgba(197,160,89,0.1); }
.search-dropdown {
    position: absolute; top: 120%; right: 0; width: 300px; background: var(--card-bg);
    border: 1px solid var(--border-light); border-radius: 8px; box-shadow: var(--shadow-soft);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease;
    display: flex; flex-direction: column; overflow: hidden;
}
.search-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.search-item { padding: 12px 16px; text-decoration: none; color: var(--text-charcoal); border-bottom: 1px solid var(--border-light); transition: background 0.2s; }
.search-item:hover { background: var(--bg-ivory); }
.search-item span { display: block; font-size: 0.8rem; color: var(--accent-gold); margin-top: 4px; }

/* --- 2. BUTTONS & ENTRANCE --- */
.symphony-btn {
    background: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold);
    padding: 12px 30px; border-radius: 40px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; display: inline-block; font-family: 'Inter', sans-serif;
    position: relative; z-index: 50; /* Forces the button to sit above all backgrounds */
}
.symphony-btn:hover { background: var(--accent-gold); color: #fff; box-shadow: var(--shadow-hover); }

.back-btn {
    font-size: 0.85rem; color: var(--accent-gold); text-decoration: none; transition: all 0.3s ease;
    margin-bottom: 30px; display: inline-block; border: 1px solid var(--accent-gold); padding: 8px 24px;
    border-radius: 30px; text-transform: uppercase; letter-spacing: 0.1em;
}
.back-btn:hover { background: var(--accent-gold); color: #fff; }

.entrance-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--bg-ivory);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
}
.entrance-overlay.hidden { opacity: 0; visibility: hidden; }
.entrance-title { font-size: 4rem; color: var(--text-charcoal); margin-bottom: 10px; }

#main-content.locked { opacity: 0; height: 100vh; overflow: hidden; }
#main-content { transition: opacity 1s ease; padding-top: 70px; }

/* --- 3. LAYOUT GRIDS (The Fix for Empty Space) --- */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }

/* Hero Grid */
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; padding: 100px 20px 60px; max-width: 1200px; margin: 0 auto;
}
.hero-content { text-align: left; }
.hero-heading { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-charcoal); }
.position-box {
    background: var(--card-bg); border-left: 4px solid var(--accent-gold); padding: 40px;
    box-shadow: var(--shadow-soft); text-align: left; border-radius: 0 8px 8px 0;
}
.position-box h3 { color: var(--accent-gold); margin-bottom: 15px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* About Preview Grid */
.about-grid {
    display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center;
    background: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid var(--border-light); box-shadow: var(--shadow-soft);
}
.about-title-side { border-right: 1px solid var(--border-light); padding-right: 30px; text-align: left; }
.about-title-side h2 { font-size: 2.5rem; margin-bottom: 15px; }

/* --- 4. FULL-WIDTH TIMELINE --- */
.symphony-timeline { position: relative; max-width: 1200px; margin: 0 auto; padding: 80px 20px 100px; }
.violin-string { position: absolute; top: 0; left: 40px; width: 2px; height: 100%; background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent); opacity: 0.3; }

.era-marker { position: relative; z-index: 10; margin: 80px 0 60px 0; padding-left: 80px; text-align: left;}
.era-pill {
    display: inline-block; background: var(--bg-ivory); border: 1px solid var(--accent-gold);
    padding: 12px 32px; border-radius: 40px; color: var(--accent-gold);
    font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.3rem; box-shadow: var(--shadow-soft);
}
.era-date { display: block; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--text-muted); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

@keyframes float-note {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(10deg); }
}

.project-note { position: relative; width: calc(100% - 60px); left: 60px; margin-bottom: 80px; opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.project-note.played { opacity: 1; transform: translateY(0); }
.note-symbol { position: absolute; top: 30px; left: -42px; font-size: 2rem; color: var(--accent-gold); animation: float-note 4s ease-in-out infinite; background: var(--bg-ivory); padding: 5px 0;}

.note-card { 
    background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-light); 
    box-shadow: var(--shadow-soft); display: flex !important; flex-direction: row; 
    align-items: stretch; min-height: 350px; overflow: hidden;
}
.note-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--accent-gold); }

/* Alternating Image Placement */
.project-note:nth-child(even) .note-card { flex-direction: row-reverse; }

.note-card-image { flex: 0 0 50%; position: relative; background: #111; border-right: 1px solid var(--border-light); }
.project-note:nth-child(even) .note-card-image { border-right: none; border-left: 1px solid var(--border-light); }

.note-card-image .hero-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; border: none; border-radius: 0; box-shadow: none; }
.note-card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s ease; }
.note-card:hover .note-card-image img { opacity: 1; }

.note-card-content { flex: 1 1 50%; padding: 50px; display: flex; flex-direction: column; justify-content: center; text-align: left;}
.note-track { font-size: 0.9rem; color: var(--accent-gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; display: block;}
.note-card h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--text-charcoal); }
.ta-guide { list-style: none; margin: 20px 0; }
.ta-guide li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 8px; padding-left: 15px; position: relative; }
.ta-guide li::before { content: "→"; position: absolute; left: 0; color: var(--accent-gold); }

/* --- 5. INTERACTIVE SKILLS ACCORDION --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.skill-card { background: var(--card-bg); border: 1px solid var(--border-light); padding: 40px; border-radius: 12px; }
.interactive-skills { list-style: none; padding: 0; text-align: left; }
.skill-item { border-bottom: 1px solid var(--border-light); margin-bottom: 12px; padding-bottom: 8px; }
.skill-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; color: var(--text-charcoal); transition: color 0.3s ease; }
.skill-header:hover { color: var(--accent-gold); }
.toggle-icon { font-size: 1.2rem; color: var(--accent-gold); transition: transform 0.3s ease; font-weight: 300; }
.skill-desc { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.skill-item.active .skill-desc { max-height: 250px; opacity: 1; margin-top: 10px; }
.skill-item.active .toggle-icon { transform: rotate(45deg); }

/* --- 6. SUB-PAGE TYPOGRAPHY & LAYOUT --- */
.page-header { text-align: center; margin-bottom: 60px; }
.page-header span { color: var(--accent-gold); font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.page-header h1 { font-size: 3.5rem; color: var(--text-charcoal); margin-bottom: 15px; }
.page-header p { font-size: 1.2rem; color: var(--text-muted); }

.ctmf-section { margin-bottom: 50px; }
.ctmf-section h2 { font-size: 2rem; margin-bottom: 20px; color: var(--text-charcoal); border-bottom: 1px solid var(--border-light); padding-bottom: 10px;}
.ctmf-section p { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 15px;}
.ctmf-section ul { padding-left: 20px; margin-bottom: 20px; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }

.acknowledgements { background: var(--bg-ivory); border: 1px solid var(--border-light); padding: 20px; border-radius: 8px; font-style: italic; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 60px; }
.references h3 { font-size: 1.2rem; margin-bottom: 15px; }
.references ul { list-style: none; color: var(--text-muted); font-size: 0.9rem; }
.references li { margin-bottom: 8px; }

/* --- 7. AUDIO CONTROLS & PARTICLES --- */
.audio-controls { position: fixed; bottom: 30px; left: 30px; z-index: 9998; display: flex; align-items: center; gap: 12px; background: rgba(253, 251, 247, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 20px; border-radius: 40px; border: 1px solid var(--border-light); box-shadow: var(--shadow-soft); transition: opacity 0.5s ease, transform 0.5s ease; opacity: 0; transform: translateY(20px); pointer-events: none; }
.audio-controls.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mute-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-charcoal); transition: transform 0.2s; display: flex; align-items: center; justify-content: center; }
.mute-btn:hover { transform: scale(1.1); }
.volume-slider { width: 80px; accent-color: var(--accent-gold); cursor: pointer; height: 4px; }
.mouse-note { position: fixed; pointer-events: none; color: var(--accent-gold); font-size: 1.2rem; z-index: 9999; animation: floatUpFade 1s forwards ease-out; text-shadow: 0 0 5px rgba(197, 160, 89, 0.3); }
@keyframes floatUpFade { 0% { opacity: 0.8; transform: translateY(0) scale(0.8); } 100% { opacity: 0; transform: translateY(-40px) scale(1.5) rotate(15deg); } }
.burst-note { position: fixed; pointer-events: none; color: var(--accent-gold); font-size: 1.5rem; z-index: 9999; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* --- 8. LIGHTBOX OVERLAY --- */
.hero-image-wrapper { position: relative; cursor: pointer; display: block; width: 100%; height: 450px; background: #111; border-radius: 12px; margin-bottom: 60px; overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-soft); }
.hero-image-wrapper::after { content: "⊕ Click to Expand"; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 17, 17, 0.6); color: var(--bg-ivory); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; font-weight: 600; opacity: 0; transition: all 0.3s ease; backdrop-filter: blur(4px); pointer-events: none; }
.hero-image-wrapper:hover::after { opacity: 1; }
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 17, 17, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 10000; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-img, .lightbox-video { max-width: 90%; max-height: 75vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(197, 160, 89, 0.3); display: none; }
.lightbox-overlay.active .lightbox-img, .lightbox-overlay.active .lightbox-video { transform: scale(1); }
.lightbox-caption { color: var(--bg-ivory); margin-top: 24px; font-size: 1.2rem; font-family: 'Playfair Display', serif; font-style: italic; text-align: center; }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: var(--bg-ivory); font-size: 3.5rem; cursor: pointer; transition: color 0.3s ease; line-height: 1; font-weight: 300; }
.close-lightbox:hover { color: var(--accent-gold); }

/* --- 9. AUDIO NEXT BUTTON & COPYRIGHT --- */
.next-track-btn {
    background: none; border: none; font-size: 1.2rem; cursor: pointer;
    color: var(--text-charcoal); transition: transform 0.2s; margin-left: 8px; display: flex;
}
.next-track-btn:hover { transform: scale(1.1); color: var(--accent-gold); }

.copyright {
    margin-top: 60px; font-size: 0.85rem; color: var(--text-muted); 
    letter-spacing: 0.05em; text-transform: uppercase; 
    border-top: 1px solid var(--border-light); padding-top: 30px; width: 100%;
}

/* --- 10. ABOUT ME STRUCTURED GRIDS --- */
.bio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; margin-bottom: 60px;
}
.bio-card {
    background: var(--card-bg); border: 1px solid var(--border-light); 
    border-radius: 12px; box-shadow: var(--shadow-soft); padding: 40px; 
    transition: transform 0.3s; display: flex; flex-direction: column;
}
.bio-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--accent-gold);
}
.bio-icon { font-size: 2.5rem; margin-bottom: 20px; }
.bio-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-charcoal); }
.bio-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 15px;}
.bio-list { list-style: none; color: var(--text-muted); font-size: 1.05rem; }
.bio-list li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.bio-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-gold); }

/* --- 11. ONE-PAGER & CTMF COMPONENT STYLES --- */
.one-pager-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 60px; 
    align-items: start; 
}
.summary-block h3 { 
    color: var(--accent-gold); 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 10px; 
    border-bottom: 1px solid var(--border-light); 
    padding-bottom: 5px; 
}
.summary-block p { 
    font-size: 1.05rem; 
    color: var(--text-muted); 
    margin-bottom: 25px; 
    line-height: 1.7; 
}
.ctmf-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-light); 
    border-radius: 12px; 
    padding: 40px; 
    margin-bottom: 40px; 
    box-shadow: var(--shadow-soft); 
}
.ctmf-card h2 { 
    font-size: 1.8rem; 
    margin-bottom: 20px; 
    color: var(--text-charcoal); 
    border-bottom: 1px solid var(--border-light); 
    padding-bottom: 15px; 
}
.evaluation-box { 
    background: var(--bg-ivory); 
    border-left: 4px solid var(--accent-gold); 
    padding: 25px; 
    margin-top: 30px; 
    border-radius: 0 8px 8px 0; 
}
.evaluation-box h4 { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.2rem; 
    color: var(--text-charcoal); 
    margin-bottom: 10px; 
    font-style: italic; 
}
@media (max-width: 768px) { 
    .one-pager-grid { grid-template-columns: 1fr; } 
}

/* --- 12. CUSTOM SYMPHONY TOOLTIP --- */
.custom-tooltip {
    position: relative;
    text-decoration: underline dotted var(--accent-gold);
    cursor: pointer;
    color: var(--text-charcoal);
}

/* The actual bubble */
.custom-tooltip::after {
    content: attr(data-tooltip); /* Pulls text from the HTML attribute */
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--accent-gold);
    box-shadow: var(--shadow-soft);
    font-size: 0.85rem;
    line-height: 1.4;
    width: 280px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Show on hover */
.custom-tooltip:hover::after {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}