/* ==========================================================================
   ECHOES OF SOUL - DESIGN SYSTEM & STYLES
   ========================================================================== */

/* 1. Reset & Variables */
:root {
    /* Color Palette */
    --bg-primary: #04090f;        /* Ultra dark slate blue */
    --bg-secondary: #09111b;      /* Dark slate blue for cards/sections */
    --bg-tertiary: #111d2b;       /* Slate blue for highlights */
    --accent: #00e5ff;            /* Bright Cyan/Teal */
    --accent-glow: rgba(0, 229, 255, 0.4);
    --accent-dim: #008fa3;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(9, 17, 27, 0.7);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

/* General Layout & Utilities */
.section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    text-align: center;
}

.btn-cyan {
    background-color: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
    font-weight: 700;
}

.btn-cyan:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.section-subtitle {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

/* 2. Header / Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    position: relative;
    line-height: 0;
}

/* SVG logo (assets/logo.svg, white, ~4.8:1) */
.logo-img {
    display: block;
    height: 50px;
    width: auto;
    opacity: 0.74;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo:hover .logo-img {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

@media (max-width: 768px) {
    .logo-img {
        height: 38px;
    }
}

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

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent);
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1010;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animations when menu is active */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Language Switcher */
.lang-switch-item {
    display: flex;
    align-items: center;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.lang-label {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.lang-label.active {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 8px var(--accent-glow);
}

.lang-toggle-btn:hover .lang-label:not(.active) {
    color: var(--text-primary);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    pointer-events: none;
}


/* Three.js background canvases */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

#about-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
    opacity: 0.6;
}

/* GSAP scroll-reveal base — elements start hidden, GSAP animates them in */
.gsap-reveal {
    opacity: 0;
    transform: translateY(32px);
    will-change: opacity, transform;
}

.gsap-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    will-change: opacity, transform;
}

.gsap-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    will-change: opacity, transform;
}

/* 3. Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero-bariloche-bg.jpg');
    background-size: cover;
    background-position: center;
    padding-top: var(--header-height);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(4, 9, 15, 0.7) 0%, 
        rgba(4, 9, 15, 0.4) 50%, 
        var(--bg-primary) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    z-index: 2;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px;
}

.radial-waves {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 229, 255, 0.05);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: scale(0.1);
    animation: echoWave 8s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wave-1 {
    animation-delay: 0s;
}

.wave-2 {
    animation-delay: 2s;
}

.wave-3 {
    animation-delay: 4s;
}

.wave-4 {
    animation-delay: 6s;
}

@keyframes echoWave {
    0% {
        transform: scale(0.1);
        opacity: 0;
        border-color: rgba(0, 229, 255, 0.02);
        box-shadow: 0 0 0px rgba(0, 229, 255, 0);
    }
    15% {
        opacity: 0.8;
        border-color: rgba(0, 229, 255, 0.45);
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    }
    50% {
        opacity: 0.35;
        border-color: rgba(0, 229, 255, 0.25);
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
        border-color: rgba(0, 229, 255, 0);
        box-shadow: 0 0 45px rgba(0, 229, 255, 0);
    }
}

.hero-title-container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 30px;
}

.hero-title-container::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    background-color: rgba(4, 9, 15, 0.55);
    border-radius: 50%;
    filter: blur(20px);
    -webkit-filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.15;
}

.hero-title .music {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 8px;
}

.hero-title .shaped {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 12px;
    margin: 5px 0 15px;
    color: var(--text-secondary);
}

.hero-title .emotion {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow), 0 0 30px rgba(0, 229, 255, 0.2);
    display: inline-block;
}

.hero-title .emotion::after {
    content: '|';
    margin-left: 4px;
    color: var(--accent);
    animation: cursorBlink 1s infinite step-end;
}

@keyframes cursorBlink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.hero-intro {
    align-self: center;
    padding-left: 20px;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.intro-text strong {
    color: #ffffff;
    font-weight: 500;
}


/* 4. About Section */
.about-section {
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;            /* fallback for old browsers */
    /* Clip sideways only: the blurred orb may bleed upward into the hero's
       dark fade instead of being cut by a hard line at the section edge. */
    overflow-x: clip;
    overflow-y: visible;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-container {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

/* Background glowing orb */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    -webkit-filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
}

.orb-about {
    width: 300px;
    height: 300px;
    background-color: var(--accent);
    /* Kept well below the section top so the 80px blur fades out before it */
    top: 120px;
    left: -20px;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-paragraphs p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 300;
}

.about-paragraphs p:last-child {
    margin-bottom: 0;
}


/* 5. Videos Section */
.videos-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.videos-header {
    margin-bottom: 50px;
}

.videos-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px 30px;
}

.videos-header-row .section-title {
    margin-bottom: 0;
}

.explore-link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}

.explore-link:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.video-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

/* The image is taken out of flow so a thumbnail that isn't exactly 16:9
   can never stretch its card: every card is the same height. */
.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
}

.video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-card:hover .video-thumb {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(4, 9, 15, 0.95) 0%, 
        rgba(4, 9, 15, 0.5) 60%, 
        rgba(4, 9, 15, 0.1) 100%);
    padding: 30px;
    display: flex;
    align-items: flex-end;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.video-details {
    width: 100%;
}

.video-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 2px;
}

.video-subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.video-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-bottom 0.4s ease;
}

/* Expand description on hover */
.video-card:hover .video-desc {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 20px;
}

.btn-watch {
    font-size: 0.75rem;
    padding: 8px 20px;
}

/* Only the button sits on the thumbnail now: a light bottom shade keeps it readable */
.videos-grid {
    align-items: stretch;
}

.videos-grid .video-overlay {
    padding: 20px 22px;
    background: linear-gradient(to top, rgba(4, 9, 15, 0.7) 0%, rgba(4, 9, 15, 0) 45%);
}

/* Tablet: two per row, the third centered underneath */
@media (min-width: 769px) and (max-width: 992px) {
    .videos-grid {
        grid-template-columns: 1fr 1fr;
    }

    .videos-grid .video-card:nth-child(3):last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 14px);
    }
}


/* 6. Audio Player Section */
.player-section {
    background-color: var(--bg-primary);
    position: relative;
}

.player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 40px;
}

/* Playlist Column */
/* Height is set from JS to match the turntable; extra songs scroll.
   Padding leaves room for the hover shift, the active glow and the scrollbar;
   the negative margin cancels it so the cards stay aligned with the column. */
.playlist-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 4px 14px 4px 4px;
    margin: -4px -14px -4px -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.07) transparent;
}

.playlist-container:hover {
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

/* Soft fade at the edges where more songs are hidden (classes toggled from app.js) */
@property --fade-top {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

@property --fade-bottom {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

.playlist-container {
    --fade-top: 0px;
    --fade-bottom: 0px;
    -webkit-mask-image: linear-gradient(to bottom,
        transparent 0, #000 var(--fade-top),
        #000 calc(100% - var(--fade-bottom)), transparent 100%);
    mask-image: linear-gradient(to bottom,
        transparent 0, #000 var(--fade-top),
        #000 calc(100% - var(--fade-bottom)), transparent 100%);
    transition: --fade-top 0.35s ease, --fade-bottom 0.35s ease;
}

.playlist-container.fade-top {
    --fade-top: 48px;
}

.playlist-container.fade-bottom {
    --fade-bottom: 90px;
}

.track-item {
    flex-shrink: 0;
}

/* Fallback for browsers without scrollbar-color (Safari) */
.playlist-container::-webkit-scrollbar {
    width: 4px;
}

.playlist-container::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
}

.playlist-container:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
}

.track-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.track-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: var(--bg-tertiary);
    transform: translateX(4px);
}

.track-item.active {
    border-color: var(--accent);
    background-color: rgba(0, 229, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
}

.track-info-layout {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
}

.track-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.track-item.active .track-number {
    color: var(--accent);
}

.track-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.track-item.active .track-name {
    color: var(--accent);
}

.track-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
}

.track-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
}

.track-item.active .track-duration {
    color: var(--accent);
}

/* Sound Visualizer Animation inside track */
.track-visualizer {
    display: none;
    align-items: flex-end;
    gap: 3px;
    width: 20px;
    height: 15px;
}

.track-item.active .track-visualizer {
    display: flex;
}

.track-visualizer .bar {
    width: 3px;
    height: 100%;
    background-color: var(--accent);
    border-radius: 1px;
    transform-origin: bottom;
    animation: soundBarBounce 1s infinite alternate;
}

.track-visualizer .bar:nth-child(1) { animation-delay: 0.1s; }
.track-visualizer .bar:nth-child(2) { animation-delay: 0.3s; animation-duration: 0.8s; }
.track-visualizer .bar:nth-child(3) { animation-delay: 0.5s; animation-duration: 1.2s; }

/* Visualizer pause state if audio paused */
.playlist-container.paused .track-visualizer .bar {
    animation-play-state: paused;
    height: 3px;
}

@keyframes soundBarBounce {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}


/* Turntable / Vinyl Player Column */
.turntable-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.vinyl-sleeve {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.turntable-platter {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #0b1420;
    border: 4px solid var(--bg-primary);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Vinyl Record */
.vinyl-record {
    position: relative;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background-image: url('assets/disco.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
    overflow: hidden;
}

/* Grooves on vinyl */
.vinyl-grooves {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(circle,
        rgba(255, 255, 255, 0.015) 0px,
        rgba(255, 255, 255, 0.015) 1px,
        transparent 2px,
        transparent 4px);
    pointer-events: none;
}

.vinyl-label {
    display: none;
}

.label-text {
    font-size: 0.45rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    text-align: center;
    transform: rotate(0deg);
}

.label-center {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Spin Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vinyl-record.spinning {
    animation: spin 3.5s infinite linear;
}


/* Tonearm (needle) */
.tonearm {
    position: absolute;
    top: -10px;
    right: 30px;
    width: 100px;
    height: 240px;
    pointer-events: none;
    z-index: 10;
    transform-origin: 40px 40px;
    transform: rotate(-25deg); /* Paused off-record state */
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Arm rotated onto the record when playing */
/* --arm-play is computed in app.js so the stylus lands on the grooves
   (and creeps inward as the song progresses) */
.tonearm.playing {
    transform: rotate(var(--arm-play, 0deg));
}

.tonearm-base {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #555 0%, #222 70%);
    border: 2px solid #111;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.tonearm-arm {
    position: absolute;
    top: 40px;
    left: 36px;
    width: 8px;
    height: 160px;
    background: linear-gradient(to right, #999, #bbb, #777);
    border-radius: 4px;
    transform-origin: top center;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Bent shape of modern arm */
.tonearm-arm::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -4px;
    width: 16px;
    height: 30px;
    background: linear-gradient(to right, #999, #bbb, #777);
    transform: rotate(20deg);
}

/* Cartridge sits on the tip of the bent arm piece: that piece is centered at
   (40px, 200px) and rotated 20deg, so its tip runs along (-sin20, cos20).
   Headshell center = (40, 200) + 26px * (-0.342, 0.940) ≈ (31px, 224px). */
.tonearm-headshell {
    position: absolute;
    top: 209px;
    left: 24px;
    width: 14px;
    height: 30px;
    background-color: #222;
    border-radius: 2px;
    transform: rotate(20deg);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}


/* Controls & Progress */
.player-controls-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Progress bar styles */
.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Fixed-width time labels so the bar never shifts as the digits change.
   5ch fits "00:00" (4 digits + colon) with the 1px letter-spacing to spare. */
.current-time,
.total-time {
    flex: 0 0 calc(5ch + 5px);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.current-time {
    text-align: right;
}

.total-time {
    text-align: left;
}

.progress-bar-bg {
    flex: 1;
    height: 4px;
    background-color: var(--bg-tertiary);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.control-btn {
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.control-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.control-btn.active {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.play-btn {
    width: 52px;
    height: 52px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.play-btn:hover {
    color: var(--bg-primary);
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.08);
}

.btn-icon {
    display: block;
}

.btn-icon.hidden {
    display: none;
}


/* 6b. Support Section */
.support-section {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.orb-support {
    width: 420px;
    height: 420px;
    background-color: rgba(0, 229, 255, 0.35);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.support-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.support-card {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.support-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.support-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 36px;
}

.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
}

.support-small {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* 7. Newsletter Section */
.newsletter-section {
    background-color: var(--bg-primary);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.orb-newsletter {
    width: 400px;
    height: 400px;
    background-color: rgba(0, 229, 255, 0.7);
    bottom: -100px;
    right: -100px;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 100px 24px;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.newsletter-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 40px;
}

/* Newsletter Input Form */
.newsletter-form {
    width: 100%;
    display: flex;
    gap: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.email-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    padding: 0 24px;
    font-family: inherit;
    font-size: 0.95rem;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    padding: 12px 32px;
}

.form-feedback {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 20px;
    transition: all 0.3s ease;
}

.form-feedback.success {
    color: #00ffaa;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.3);
}

.form-feedback.error {
    color: #ff3366;
    text-shadow: 0 0 8px rgba(255, 51, 102, 0.3);
}

.newsletter-small {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

/* Social icons layout */
.social-links {
    display: flex;
    gap: 24px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-3px);
}


/* 8. Footer Section */
.main-footer {
    background-color: #020509;
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent-glow);
}

.footer-separator {
    color: rgba(255,255,255,0.08);
    font-size: 0.72rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}


/* 9. Video Modal Player */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 9, 15, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    z-index: 2010;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-modal.active .modal-container {
    transform: scale(1);
}

/* Title bar above the video, so the close button never covers YouTube's controls */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px 12px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent);
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Simulated video element with canvas style sound waves */
.simulated-video-player {
    width: 100%;
    height: 100%;
    background-color: #000;
    position: relative;
}

.video-placeholder-bg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay dark layer inside video */
.video-placeholder-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
    z-index: 1;
}

.play-overlay-icon {
    position: relative;
    z-index: 2;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-overlay-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.video-modal-info {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-weight: 300;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}


/* ==========================================================================
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title .music {
        font-size: 3.5rem;
    }
    
    .hero-title .emotion {
        font-size: 3rem;
    }
    
    .player-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    /* Header toggle displays */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1005;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }
    
    /* Hero Stacking */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 60px;
    }
    
    .hero-visual {
        order: 1;
        height: 380px;
    }
    
    .radial-waves {
        width: 320px;
        height: 320px;
    }
    
    .hero-title-container {
        padding: 10px;
    }
    
    .hero-title .music {
        font-size: 3rem;
    }
    
    .hero-title .emotion {
        font-size: 2.6rem;
    }
    
    .hero-intro {
        order: 2;
        padding-left: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Player Stacking */
    .player-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .turntable-container {
        order: 1;
    }
    
    .playlist-container {
        order: 2;
        max-height: 520px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* About section stacking */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-container {
        max-width: 450px;
        margin: 0 auto;
    }
    
    /* Videos section stacking */
    .videos-header {
        margin-bottom: 30px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .video-overlay {
        padding: 20px;
    }
    
    /* Video descriptions show immediately on mobile */
    .video-desc {
        max-height: none;
        opacity: 1;
        margin-bottom: 15px;
    }
    
    /* Support card */
    .support-card {
        padding: 40px 22px;
    }

    .support-title {
        font-size: 1.8rem;
    }

    .btn-support {
        width: 100%;
        justify-content: center;
    }

    /* Newsletter section inputs stacking */
    .newsletter-content {
        padding: 60px 20px;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        gap: 16px;
    }
    
    .email-input {
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        padding: 16px 24px;
        border-radius: 30px;
        width: 100%;
        text-align: center;
    }
    
    .email-input:focus {
        border-color: var(--accent);
    }
    
    .btn-submit {
        width: 100%;
    }
    
    /* Footer stacking */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title .music {
        font-size: 2.2rem;
        letter-spacing: 6px;
    }
    
    .hero-title .shaped {
        font-size: 0.95rem;
        letter-spacing: 8px;
    }
    
    .hero-title .emotion {
        font-size: 1.9rem;
    }
    
    .radial-waves {
        width: 280px;
        height: 280px;
    }
    
    .track-info-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        padding: 10px 0;
    }
    
    .track-number {
        font-size: 1.3rem;
    }
    
    .track-visualizer {
        justify-content: center;
        margin: 5px auto;
    }
    
    .track-duration {
        margin-top: 5px;
    }
    
    .track-item:hover {
        transform: none;
    }
}

/* ==========================================================================
   11. NEW STYLES: SMOOTH SCROLL, PRELOADER, CUSTOM CURSOR, TEXT REVEALS
   ========================================================================== */

/* Lenis smooth scrolling */
html.lenis, html.lenis body {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis-stopped {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    max-width: 400px;
    width: 80%;
}

.preloader-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 12px;
    color: #ffffff;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.preloader-line-container {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.preloader-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.preloader-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(10px);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    will-change: transform;
}

.cursor-ring {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, background-color 0.3s ease;
    will-change: transform;
}

.cursor-text {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bg-primary);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    z-index: 10002;
}

/* Hover States for Custom Cursor */
.custom-cursor.hovering-link .cursor-ring {
    width: 54px;
    height: 54px;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.custom-cursor.hovering-link .cursor-dot {
    background-color: #ffffff;
}

.custom-cursor.hovering-interactive .cursor-ring {
    width: 70px;
    height: 70px;
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-cursor.hovering-interactive .cursor-dot {
    opacity: 0;
}

.custom-cursor.hovering-interactive .cursor-text {
    transform: translate(-50%, -50%) scale(1);
}

/* Text Reveal Masking */
.reveal-wrapper {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    padding-bottom: 2px;
}

.reveal-inner {
    display: inline-block;
    transform: translateY(105%);
    will-change: transform;
}

/* Magnetic element adjustments */
.btn, .social-icon, .lang-toggle-btn, .logo, .nav-link {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 1025px) {
    body, a, button, select, input, textarea, [role="button"], .track-item, .video-card {
        cursor: none !important;
    }
}

@media (max-width: 1024px) {
    .custom-cursor {
        display: none !important;
    }
}

/* =========================================================
   Cursor Ripple Canvas Overlay
   ========================================================= */
#ripple-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen; /* additive – cyan rings glow over any content */
}


/* ==========================================================================
   Image gallery (full-bleed, 3 columns, no gaps)
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-primary);
    position: relative;
}

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

.gallery-item {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1024 / 864;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.92);
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1) brightness(1);
}

@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
