:root {
    --bg-dark: #020202;
    --text-pure: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.4);
    --accent-red: #cc0000;
    --font-heading: 'Playfair Display', serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Hide default cursor */
}

body, html {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-mono);
    color: var(--text-pure);
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    background-color: var(--accent-red);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, border-radius 0.2s;
}

.cursor.hovering {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid var(--accent-red);
}

/* Background Image Container & Crossfade */
#bg-container {
    position: absolute;
    top: -2%; left: -2%;
    width: 104%; height: 104%;
    z-index: 1;
}

.bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    filter: brightness(0.25) contrast(1.2) grayscale(0.8);
    animation: slowPan 60s linear infinite alternate;
}

.bg-image.active {
    opacity: 1;
}

@keyframes slowPan {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, -1%); }
}

.grain-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.15;
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Center Content */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.center-block {
    text-align: center;
    pointer-events: none;
}

.band-name {
    font-family: var(--font-heading);
    font-size: 8vw;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.album-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 12px;
    color: var(--text-dim);
    margin-bottom: 4rem;
    text-transform: uppercase;
}

/* Listen Button */
.listen-btn {
    pointer-events: auto;
    background: transparent;
    color: var(--text-pure);
    border: 1px solid var(--text-dim);
    padding: 1.2rem 4rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.listen-btn:hover {
    border-color: var(--text-pure);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Playing Bars Animation */
.playing-bars {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 16px;
    justify-content: center;
}

.playing-bars i {
    width: 3px;
    height: 100%;
    background-color: var(--accent-red);
    animation: eq 1s infinite alternate ease-in-out;
}
.playing-bars i:nth-child(1) { animation-delay: 0s; }
.playing-bars i:nth-child(2) { animation-delay: 0.3s; }
.playing-bars i:nth-child(3) { animation-delay: 0.6s; }
.playing-bars i:nth-child(4) { animation-delay: 0.9s; }

@keyframes eq {
    0% { height: 20%; }
    100% { height: 100%; }
}

.hidden { display: none !important; }

/* Track Nav */
.track-nav {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem;
    z-index: 10;
}

.track-item {
    pointer-events: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.3s ease;
    position: relative;
    padding: 10px;
}

.track-item::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.track-item:hover {
    color: var(--text-pure);
}

.track-item:hover::after {
    width: 100%;
}

/* Lyric Glitch Display */
.glitch-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 4vw;
    color: var(--text-pure);
    z-index: 5; /* Behind the main text */
    opacity: 0;
    pointer-events: none;
    text-shadow: 
        2px 0 var(--accent-red), 
        -2px 0 cyan;
}

.glitch-text.active {
    opacity: 0.2;
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
  0% { transform: translate(-50%, -50%) skewX(0deg); }
  20% { transform: translate(-52%, -50%) skewX(-5deg); text-shadow: -2px 0 var(--accent-red), 2px 0 cyan; }
  40% { transform: translate(-48%, -50%) skewX(5deg); text-shadow: 2px 0 var(--accent-red), -2px 0 cyan; }
  60% { transform: translate(-50%, -52%) skewX(0deg); text-shadow: 2px 0 var(--accent-red), -2px 0 cyan; }
  80% { transform: translate(-50%, -48%) skewX(0deg); text-shadow: -2px 0 var(--accent-red), 2px 0 cyan; }
  100% { transform: translate(-50%, -50%) skewX(0deg); }
}

/* Social Nav */
.social-nav {
    position: absolute;
    top: 2.5rem;
    right: 3rem;
    display: flex;
    gap: 2rem;
    z-index: 20;
}

.social-nav a {
    pointer-events: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.social-nav a:hover {
    color: var(--text-pure);
}

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

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

@media (max-width: 768px) {
    .social-nav {
        top: 2rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        gap: 1.5rem;
    }
    .social-nav a {
        font-size: 0.7rem;
    }
    .band-name { font-size: 12vw; }
    .album-title { font-size: 0.8rem; letter-spacing: 6px; }
    .track-nav { gap: 1.5rem; bottom: 2rem; }
    .glitch-text { font-size: 6vw; }
}
