:root {
    --bg: #050505;
    --text: #e1e1e1;
    --accent: #ff3333;

    /* Vibrant Gradient System */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cyan-purple: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-orange-pink: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-text: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Glow Effects */
    --glow-primary: 0 0 20px rgba(102, 126, 234, 0.5);
    --glow-accent: 0 0 20px rgba(255, 51, 51, 0.5);
    --glow-cyan: 0 0 30px rgba(79, 172, 254, 0.6);

    --font-head: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

body.hide-cursor * {
    cursor: none !important;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* GRAIN OVERLAY */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIxIi8+PC9zdmc+');
}

/* WIREFRAME BACKGROUND */
#wireframe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* === MUSIC PLAYER WIDGET === */
.music-player {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 10005;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    height: 32px;
    width: 32px;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
    border-radius: 0;
}

.music-player:hover {
    border-color: var(--text);
    cursor: pointer;
    box-shadow: none;
}

.music-player.expanded {
    border-color: var(--accent);
    box-shadow: none;
}

.play-btn {
    width: 32px;
    min-width: 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
}

.play-btn svg {
    width: 10px;
    height: 10px;
    fill: #e1e1e1;
    display: block;
}

.music-player.expanded .play-btn svg {
    fill: var(--accent);
}

.track-info {
    white-space: nowrap;
    font-family: var(--font-head);
    font-size: 0.7rem;
    color: var(--text);
    text-transform: uppercase;
    padding-right: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.music-player.expanded .track-info {
    opacity: 1;
    animation: textSlide 0.5s ease-out forwards;
}

@keyframes textSlide {
    from {
        transform: translateX(10px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    z-index: 5;
    margin-bottom: 2rem;
}

.scroll-text {
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--text);
    animation: scrollDraw 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDraw {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* === DESKTOP CURSOR === */
@media (min-width: 769px) {
    .cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 12px;
        height: 12px;
        background: white;
        border-radius: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        mix-blend-mode: difference;
        z-index: 10010;
        transition: width 0.3s, height 0.3s, opacity 0.3s, background 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
    }

    .cursor-text {
        font-family: var(--font-head);
        font-size: 10px;
        font-weight: 700;
        color: black;
        opacity: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .cursor.active {
        width: 120px;
        height: 40px;
        background: var(--accent);
        mix-blend-mode: normal;
        box-shadow: none;
    }

    .cursor.active .cursor-text {
        opacity: 1;
        color: white;
    }

    .work-list:hover .work-item:not(:hover) {
        opacity: 0.4;
        /* Slightly fade out other items */
    }
}

@media (max-width: 768px) {
    .cursor {
        display: none;
    }

    #wireframe-canvas {
        opacity: 0.25;
    }

    .music-player {
        bottom: 20px;
        left: 20px;
    }
}

/* === LOADER === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.loader-quote {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--text);
    max-width: 800px;
    opacity: 0;
    line-height: 1.4;
}

.loader-author {
    margin-top: 1.5rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent);
    opacity: 0;
}

/* FIXED HERO LAYER */
.fixed-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 0;
    pointer-events: none;
    perspective: 1000px;
    padding: 0 20px;
    overflow: hidden;
}

.hero-spacer {
    height: 2rem;
    flex-shrink: 0;
}

.hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    transform-style: preserve-3d;
}

.hero-svg-wrapper {
    width: 90vw;
    max-width: 900px;
    height: auto;
    margin-bottom: 1rem;
}

.hero-svg-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 130px;
    text-transform: uppercase;
    fill: transparent;
    stroke: var(--text);
    stroke-width: 2;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

.hero-sub {
    margin-top: 2rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    text-align: center;
    max-width: 100%;
    line-height: 1.5;
    color: var(--text);
}

.hero-tagline {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0;
    text-align: center;
    max-width: 600px;
    padding: 0 10px;
    color: var(--text);
}

/* CONTENT WRAPPER */
.content-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 100dvh;
    background-color: var(--bg);
    will-change: transform;
    overflow-x: hidden;
    width: 100%;
}

/* ABOUT */
.about {
    min-height: 80vh;
    padding: 10vh 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-text {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    line-height: 1.3;
    max-width: 90%;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.word {
    display: inline-block;
    opacity: 0.1;
    transition: font-weight 0.3s;
}

.word.highlight {
    color: var(--accent);
    font-weight: 500;
}

.shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

/* --- WORK SECTION --- */
.work {
    position: relative;
    padding: 10vh 5vw;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    font-family: var(--font-head);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    text-transform: uppercase;
    margin-bottom: 8vh;
    opacity: 0.6;
    letter-spacing: 2px;
}

.work-list {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.work-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4vw 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: opacity 0.3s;
    text-decoration: none;
    color: var(--text);
    width: 100%;
    overflow: hidden;
    /* Contains the image */
}

.work-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.3s ease-out, color 0.3s;
    z-index: 5;
}

.work-meta {
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    z-index: 5;
    text-align: right;
    white-space: nowrap;
}

/* === STATIC IMAGE IN COLUMN (NO FLOATING) === */
.work-item-img {
    position: absolute;
    top: 50%;
    left: 60%;
    /* Positioned slightly to the right */
    transform: translate(-50%, -50%) scale(0.9);
    width: 280px;
    /* Small fixed size */
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 4;
    /* Behind text */
    filter: grayscale(100%);
    border-radius: 4px;
}

/* Hover Effect: Simple fade in */
.work-item:hover .work-item-img {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    filter: grayscale(0%);
}

.work-item:hover .work-title {
    transform: translateX(20px);
    color: var(--accent);
}


/* --- VIBE SECTION (BRUTALIST & MINIMALIST) --- */
.vibe {
    min-height: 80vh;
    padding: 10vh 5vw;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.vibe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5vh;
}

.vibe-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Current track takes more space */
    gap: 0;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.vibe-section {
    padding: 3vw;
}

.current-track {
    display: flex;
    gap: 3vw;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.album-art-wrapper {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.song-name {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text);
    word-break: break-word;
}

.artist-name {
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Updated Progress Bar */
.vibe-progress {
    margin-top: 3rem;
    width: 100%;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-time {
    font-family: var(--font-body);
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

.progress-rail {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s linear;
}

/* Next Track Section */
.next-track {
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
}

.section-label {
    font-family: var(--font-head);
    font-size: 0.7rem;
    opacity: 0.4;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.next-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.next-art {
    width: 60px;
    height: 60px;
    object-fit: cover;
    filter: grayscale(100%);
}

.next-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.next-song {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text);
}

.next-artist {
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.5;
}

.vibe-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Visualizer & Specs */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
}

.bar {
    width: 3px;
    background: var(--accent);
    height: 8px;
}

.vibe-active .bar {
    animation: vibe-bounce 0.8s ease-in-out infinite;
}

.vibe-tech-specs {
    font-family: var(--font-body);
    font-size: 0.6rem;
    opacity: 0.3;
    letter-spacing: 1px;
    text-align: right;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .vibe-card {
        grid-template-columns: 1fr;
    }

    .current-track {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .current-track {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .album-art-wrapper {
        width: 100%;
        max-width: 300px;
    }

    .vibe-tech-specs {
        display: none;
    }
}

@media (max-width: 768px) {
    .vibe-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .album-art-wrapper {
        width: 100%;
        max-width: 250px;
        margin-bottom: 2rem;
    }

    .vibe-tech-specs {
        display: none;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 11;
    padding: 0 1rem;
    overflow: hidden;
}

.email-simple {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 5rem;
    transition: color 0.3s;
    line-height: 1.2;
    letter-spacing: 1px;
    word-break: break-all;
    text-align: center;
    max-width: 100%;
}

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

.socials {
    display: flex;
    gap: 3rem;
    margin-bottom: 5vh;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.social-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: all 0.3s;
    position: relative;
}

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

.social-link:hover {
    opacity: 1;
    color: white;
}

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

.footer-note {
    opacity: 0.3;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-align: center;
}


/* Gradient Orbs Background */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-accent);
    bottom: 20%;
    left: 5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-cyan-purple);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}


@media (max-width: 768px) {
    .shape {
        display: none;
    }

    .work-item-img {
        display: none;
    }

    /* Hide hover images on mobile */
    .hero-svg-wrapper {
        width: 95vw;
    }

    .hero-svg-text {
        font-size: 140px;
    }

    .hero-sub {
        font-size: 0.9rem;
        margin-top: 1.5rem;
        letter-spacing: 1px;
        width: 100%;
        padding: 0 10px;
    }

    .hero-tagline {
        margin-top: 2rem;
    }

    .about {
        padding: 10vh 20px;
    }

    .work-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 3rem 0;
    }


    .work-meta {
        text-align: left;
        font-size: 0.9rem;
        opacity: 0.5;
    }

    .socials {
        flex-direction: column;
        gap: 2rem;
    }

    .gradient-orb {
        display: none;
    }


}