/* Music Portfolio Styles - Dark & Lively Edition */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8b8;
    --text-tertiary: #808080;
    --accent: #ff6b6b;
    --accent-hover: #ff8585;
    --accent-secondary: #4ecdc4;
    --accent-tertiary: #ffd93d;
    --accent-faded: rgba(255, 107, 107, 0.15);
    --border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 4px 20px rgba(255, 107, 107, 0.2);
    --shadow-medium: 0 8px 32px rgba(255, 107, 107, 0.25);
    --transition-slow: 1200ms;
    --transition-medium: 800ms;
    --transition-fast: 400ms;
}

/* Light Theme */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #0d0d0d;
        --bg-secondary: #1a1a1a;
        --text-primary: #f5f5f5;
        --text-secondary: #b8b8b8;
        --text-tertiary: #808080;
        --accent: #ff6b6b;
        --accent-hover: #ff8585;
        --accent-secondary: #4ecdc4;
        --accent-tertiary: #ffd93d;
        --accent-faded: rgba(255, 107, 107, 0.15);
        --border: rgba(255, 255, 255, 0.1);
        --shadow-soft: 0 4px 20px rgba(255, 107, 107, 0.2);
        --shadow-medium: 0 8px 32px rgba(255, 107, 107, 0.25);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Crimson Pro', serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 19px;
    font-weight: 300;
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoad 2000ms ease-out 200ms forwards;
}

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

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Header */
header {
    padding: 100px 0 70px;
    border-bottom: none;
    opacity: 0;
    animation: fadeInUp 1400ms ease-out 600ms forwards;
}

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

.site-title {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
    margin-bottom: 12px;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
}

.principal-investigator {
    font-size: 46px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.affiliation {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 650px;
    font-weight: 300;
}

/* Navigation */
nav {
    padding: 36px 0 48px;
    border-bottom: none;
    opacity: 0;
    animation: fadeInUp 1400ms ease-out 1000ms forwards;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast) ease;
    position: relative;
    padding: 6px 14px;
    border-radius: 20px;
}

nav a:hover {
    color: var(--accent);
    background: var(--accent-faded);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

/* Main Content */
main {
    padding: 80px 0 120px;
}

section {
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeInUp 1400ms ease-out forwards;
}

section:nth-of-type(1) { animation-delay: 1400ms; }
section:nth-of-type(2) { animation-delay: 1800ms; }
section:nth-of-type(3) { animation-delay: 2200ms; }

.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--accent-tertiary);
    margin-bottom: 28px;
    display: block;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}

h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Track Items */
.track-item {
    margin-bottom: 56px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 24px;
    transition: all var(--transition-medium) ease;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.track-item:last-child {
    margin-bottom: 0;
}

.track-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
    border-color: var(--accent);
}

.track-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 24px;
}

.track-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--accent);
    flex: 1;
    line-height: 1.4;
    margin-bottom: 0;
    transition: color var(--transition-fast) ease;
}

.track-item:hover .track-title {
    color: var(--accent-hover);
}

.track-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: var(--accent-secondary);
    white-space: nowrap;
}

.track-content {
    margin-top: 16px;
}

.track-content video,
.track-content audio {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    display: block;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.track-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 16px;
    font-style: italic;
    padding: 16px;
    background: rgba(255, 217, 61, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--accent-tertiary);
}

.track-description a {
    color: var(--accent);
}

/* Contact Section */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 24px;
}

.contact-item {
    display: flex;
    gap: 24px;
    align-items: baseline;
}

.contact-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--accent-tertiary);
    min-width: 100px;
    text-transform: uppercase;
}

.contact-value {
    font-size: 18px;
    color: var(--text-secondary);
}

.contact-value a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-fast) ease;
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: -12px;
}

.contact-value a:hover {
    background: var(--accent-faded);
    color: var(--accent-hover);
}

/* Footer */
footer {
    border-top: none;
    padding: 80px 0 60px;
    margin-top: 120px;
    opacity: 0;
    animation: fadeInUp 1400ms ease-out 2600ms forwards;
    text-align: center;
}

.footer-note {
    font-family: 'Crimson Pro', serif;
    font-size: 16px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

.footer-note a {
    color: var(--accent);
    text-decoration: none;
}

.footer-note a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    header {
        padding: 80px 0 60px;
    }

    .principal-investigator {
        font-size: 32px;
    }

    nav ul {
        flex-direction: column;
        gap: 16px;
    }

    main {
        padding: 60px 0 80px;
    }

    .track-meta,
    .contact-item {
        flex-direction: column;
        gap: 8px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.track-item {
    animation: fadeIn 0.6s ease-out forwards;
}

.track-item:nth-child(1) { animation-delay: 0.1s; }
.track-item:nth-child(2) { animation-delay: 0.2s; }
.track-item:nth-child(3) { animation-delay: 0.3s; }
.track-item:nth-child(4) { animation-delay: 0.4s; }
.track-item:nth-child(5) { animation-delay: 0.5s; }
.track-item:nth-child(6) { animation-delay: 0.6s; }
.track-item:nth-child(7) { animation-delay: 0.7s; }
.track-item:nth-child(8) { animation-delay: 0.8s; }
.track-item:nth-child(9) { animation-delay: 0.9s; }
.track-item:nth-child(10) { animation-delay: 1s; }
.track-item:nth-child(11) { animation-delay: 1.1s; }
.track-item:nth-child(12) { animation-delay: 1.2s; }
.track-item:nth-child(13) { animation-delay: 1.3s; }

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all var(--transition-fast);
    z-index: 999;
    box-shadow: var(--shadow-medium);
}

@media (prefers-color-scheme: dark) {
    .theme-toggle {
        box-shadow: var(--shadow-medium);
    }
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(12deg);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4), 0 0 30px rgba(78, 205, 196, 0.3);
}