:root {
    --bg-color: #1a1a1a;
    /* Deep Vinyl Black */
    --text-color: #fdfbf7;
    /* Off-White/Cream */
    --text-muted: #888888;
    --accent-color: #d4af37;
    /* Gold */
    --accent-hover: #e5c158;
    --line-color: rgba(253, 251, 247, 0.1);

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition-speed: 0.5s;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.title-name {
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
    /* Interaction with canvas */
}

.track-info {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-top: 1px solid var(--accent-color);
    display: inline-block;
    padding-top: 0.5rem;
}

.serif-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .accent {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-speed);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.hero-content {
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transform: rotate(-90deg);
    transform-origin: left;
}

.scroll-indicator .line {
    width: 50px;
    height: 1px;
    background-color: var(--text-muted);
}

/* Discography (Projects) */
.projects-section {
    padding: 0;
    background-color: var(--bg-color);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-list {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: flex;
    align-items: center;
    padding: 2rem 0;
    transition: background-color 0.3s;
    position: relative;
}

.project-row:hover .track-number,
.project-row:hover h3 {
    color: var(--accent-color);
}

.track-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    width: 50px;
    margin-right: 2rem;
    transition: color 0.3s;
}

.track-info {
    flex-grow: 1;
    border: none;
    /* Reset from hero */
    padding: 0;
}

.track-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    transition: color 0.3s;
}

.track-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.track-duration {
    font-family: var(--font-body);
    color: var(--text-muted);
    margin-right: 3rem;
}

.track-link {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--text-muted);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    opacity: 0;
    transform: translateX(-10px);
}

.project-row:hover .track-link {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.divider {
    height: 1px;
    background: var(--line-color);
    width: 100%;
}

/* Liner Notes (About) */
.about-section {
    padding: 8rem 10%;
    background-color: #151515;
    /* Slightly darker */
    display: flex;
    justify-content: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
}

.vinyl-record {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #111 30%, #000 31%, #111 32%, #000 33%, #111 60%, #000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: spin 10s linear infinite;
}

.about-image {
    width: 300px;
    height: 300px;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

.vinyl-record .label {
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-style: italic;
}

/* Contact */
.contact-section {
    padding: 8rem 10%;
    text-align: center;
    background-color: #151515;
}

.email-link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-color);
    text-decoration: none;
    margin-top: 2rem;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--line-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .track-duration {
        display: none;
    }

    .project-row {
        flex-wrap: wrap;
    }

    .track-link {
        opacity: 1;
        transform: none;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

#loading-screen.swipe-up {
    transform: translateY(-100%);
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-record {
    width: 150px;
    height: 150px;
    transition: opacity 0.5s ease;
}

.loading-record .label {
    width: 50px;
    height: 50px;
    font-size: 1rem;
}

.volume-message {
    font-family: var(--font-display);
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.volume-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.volume-message p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.volume-message .sub-message {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hidden {
    display: none;
}

/* Hero Staggered Animation */
.hero-fade-item {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1.3s ease-out, transform 1.3s ease-out;
}

.hero-fade-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Arrow */
.hero-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    animation: bounce 3s infinite;
    /* Slower, more subtle */
    transition: color 0.3s;
    z-index: 10;
}

.hero-arrow:hover {
    color: var(--text-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Discography Card */
.discography-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-color);
    padding: 4rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s ease;
    max-width: 600px;
    margin: 0 auto;
}

.discography-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.discography-content h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.discography-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.arrow-link {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* --- Project Detail Pages --- */
.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12rem 2rem 4rem;
    /* Top padding to clear fixed nav */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
}

.project-header .subtitle {
    color: var(--accent-color);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.project-header h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.media-showcase {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
}

.media-showcase:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.media-content {
    text-align: center;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* --- Spinning Record Control --- */
.music-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #111 30%, #000 31%, #111 32%, #000 33%, #111 60%, #000 100%);
    border: none;
    /* Gradient handles the look */
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: spin 4s linear infinite;
    transition: transform 0.3s ease;
}

.music-control:hover {
    transform: scale(1.1);
}

.music-control.paused {
    animation-play-state: paused;
}

/* Remove separate grooves div styling as it's now in the background */
.record-grooves {
    display: none;
}

.record-label {
    position: absolute;
    width: 35%;
    /* Slightly larger relative to small size */
    height: 35%;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.6rem;
    /* Small font for VB */
}

.media-showcase:hover .media-content {
    color: var(--accent-color);
}

.media-content svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.media-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.media-content p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
}

.project-description p {
    margin-bottom: 1.5rem;
}

/* Back Link Enhancement */
.back-link-container {
    margin-top: 4rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-color);
}

/* --- Horizontal Project Carousel --- */
.project-carousel {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100vh;
    width: 100vw;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.project-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.project-slide {
    flex: 0 0 100vw;
    scroll-snap-align: start;
    height: 100vh;
    overflow-y: auto;
    /* Allow vertical scroll if content is tall */
    position: relative;
}

/* Override container for carousel context */
/* Override container for carousel context */
/* Override container for carousel context */
.project-slide .project-detail-container {
    min-height: 100vh;
    padding-top: 2rem;
    /* Reduced top padding */
    padding-bottom: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center horizontally */
    max-height: 100vh;
    box-sizing: border-box;
    /* Removed default opacity: 0 to ensure visibility */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-slide.active .project-detail-container {
    /* Animation states if needed, but default is visible now */
    opacity: 1;
    transform: scale(1);
}

/* Compact Header */
.project-slide .project-header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    /* Don't shrink header */
}

.project-slide .project-header h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0.25rem;
}

.project-slide .project-header .subtitle {
    margin-bottom: 0.5rem;
}

/* Classic Slideshow Media Showcase */
.project-slide .media-showcase {
    margin-bottom: 1.5rem;
    width: auto;
    /* Allow width to adjust based on height/ratio */
    max-width: 90vw;
    /* Cap width at viewport width */
    aspect-ratio: 16 / 9;
    /* Landscape ratio */
    height: 65vh;
    /* Fixed height as requested ("height is perfect") */
    max-height: 65vh;
    flex-shrink: 1;
    /* Allow shrinking if needed */
    min-height: 0;
    /* Allow flex shrinking */
    object-fit: cover;
}

.project-slide .media-content svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.project-slide .media-content h3 {
    font-size: 1.2rem;
}

/* Compact Description */
.project-slide .project-description {
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.5;
    flex-shrink: 0;
    /* Don't shrink text */
}

.project-slide .project-description p {
    margin-bottom: 0;
}

/* Side Navigation Arrows */
.side-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid var(--line-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.side-nav-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.side-nav-btn.left-nav {
    left: 2rem;
}

.side-nav-btn.right-nav {
    right: 2rem;
}

.side-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Hide old navigation within slides if present */
.project-slide .project-navigation {
    display: none;
}

/* --- Project Navigation (Skip/Rewind) --- */
.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 800px;
    /* Match header width */
}

.nav-btn {
    display: inline-flex;
    /* Changed from flex to inline-flex to match original .nav-btn */
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    background: none;
    /* Added from removed .fixed-project-nav .nav-btn */
    border: none;
    /* Added from removed .fixed-project-nav .nav-btn */
    cursor: pointer;
    /* Added from removed .fixed-project-nav .nav-btn */
}

.nav-btn:hover {
    color: var(--accent-gold);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.prev-btn {
    padding-right: 1rem;
}

.next-btn {
    padding-left: 1rem;
    flex-direction: row-reverse;
    /* Icon on right */
}