:root {
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --color-bg: #050505;
    --color-text: #e0e0e0;
    --color-accent: #FF003C;
    --color-accent-dim: rgba(255, 0, 60, 0.15);
    --color-card-bg: rgba(255, 255, 255, 0.02);
    --color-card-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: crosshair;
    line-height: 1.6;
    font-size: 18px;
}

/* Animated background overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 60, 0.02) 2px,
            rgba(255, 0, 60, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
    animation: scan 4s linear infinite;
    background-size: 100% 4px;
    /* Ensure pattern size matches animation loop */
}

@keyframes scan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 4px;
    }

    /* Loops perfectly every 4px */
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: none;
    /* Removed the "gray band" border */
    z-index: 100;
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 1rem;
    width: auto;
    filter: invert(1) brightness(2);
    /* Makes the black logo white */
    transition: all 0.3s;
}

.logo-img:hover {
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    /* Red override */
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    opacity: 0.7;
}

.nav-links a:hover {
    color: var(--color-accent);
    opacity: 1;
    text-shadow: 0 0 15px var(--color-accent);
}

/* Hero Section - Generative Background */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        url('../images/hero-bg.svg') center top / cover no-repeat fixed,
        radial-gradient(circle at 50% 50%, rgba(255, 0, 60, 0.1) 0%, transparent 60%) center top / 100% 100% fixed no-repeat,
        linear-gradient(0deg, #050505 0%, transparent 50%, #050505 100%) center top / 100% 100% fixed no-repeat;
    /* Removed extra CSS grids to fix alignment/clashing issues. The SVG grid is now the single source of truth. */
    background-blend-mode: screen;
    perspective: 1000px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, #050505 90%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

/* Hero Section */
/* Removed unused H1 styles and text-glitch animation since we switched to SVG Logo */

.hero-logo {
    width: 90vw;
    /* Try to take full screen width... */
    max-width: 100%;
    height: auto;
    /* ...but scale height automatically... */
    max-height: 5rem;
    /* ...and STOP at 5rem (desktop optimal size). */
    object-fit: contain;
    /* Extra safety */
    filter: invert(1) brightness(2) drop-shadow(2px 2px 0px var(--color-accent));
    animation: glitch-img 4s infinite alternate;
    margin-bottom: 20px;
}

@keyframes glitch-img {
    0% {
        filter: invert(1) brightness(2) drop-shadow(2px 2px 0px var(--color-accent));
        transform: skew(0deg);
    }

    20% {
        filter: invert(1) brightness(2) drop-shadow(-2px -2px 0px #00ffff);
        transform: skew(-1deg);
    }

    40% {
        filter: invert(1) brightness(2) drop-shadow(2px -2px 0px var(--color-accent));
        transform: skew(1deg);
    }

    100% {
        filter: invert(1) brightness(2) drop-shadow(2px 2px 0px var(--color-accent));
        transform: skew(0deg);
    }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 32px;
    letter-spacing: 10px;
    color: var(--color-accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-period {
    font-size: 18px;
    letter-spacing: 4px;
    color: #888;
    margin-bottom: 60px;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 0, 60, 0.5);
    background: #ff1a50;
}

/* Sections */
section {
    padding: 150px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 80px;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
}

.section-title span {
    color: var(--color-accent);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.stat-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border-radius: 4px;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 80px;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 16px;
    letter-spacing: 4px;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 600;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 80px;
    padding-left: 60px;
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transition: all 0.3s;
}

.timeline-item:hover::before {
    background: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 700;
}

.timeline-content {
    color: #bbb;
    font-size: 20px;
    line-height: 1.7;
    font-weight: 300;
}

/* Collaborations */
.collab-section {
    margin-bottom: 100px;
}

.collab-subtitle {
    font-family: var(--font-heading);
    font-size: 32px;
    color: #fff;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: block;
    /* Safer layout than inline-block + transform */
    width: 100%;
}

.collab-subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 15px auto 0;
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.collab-item {
    text-align: center;
    padding: 10px;
    /* Reduced from 30px as requested by user */
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    transition: all 0.3s;
    font-size: 18px;
    font-weight: 500;
    color: #ddd;
    border-radius: 4px;
}

.collab-item:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
}

/* Releases */
.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.release-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.release-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-10px);
}

.release-card:hover .release-cover {
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.3);
}

.release-cover {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0px;
    /* Hide placeholder symbols */
    color: transparent;
    transition: all 0.5s ease;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

/* Pattern 1: Abstract Glitch (Extrapolation) */
.release-card:nth-child(1) .release-cover {
    background:
        linear-gradient(45deg, #1a0000 25%, transparent 25%, transparent 75%, #1a0000 75%, #1a0000),
        linear-gradient(45deg, #1a0000 25%, transparent 25%, transparent 75%, #1a0000 75%, #1a0000),
        radial-gradient(circle at 50% 50%, #FF003C 0%, #000 100%);
    background-size: 20px 20px, 20px 20px, 100% 100%;
    background-position: 0 0, 10px 10px, 0 0;
    filter: contrast(1.5) brightness(0.8);
}

/* Pattern 2: Digital Noise (Red Line) */
.release-card:nth-child(2) .release-cover {
    background:
        repeating-linear-gradient(90deg, transparent, transparent 10px, #FF003C 10px, #FF003C 12px),
        linear-gradient(180deg, #000 0%, #330000 100%);
    background-blend-mode: overlay;
}

/* Pattern 3: Circular Industrial (Analog Rave) */
.release-card:nth-child(3) .release-cover {
    background:
        radial-gradient(circle, transparent 20%, #000 20%, #000 40%, transparent 40%, transparent 60%, #000 60%, #000 80%, transparent 80%),
        linear-gradient(135deg, #220000 0%, #000 100%);
    border: 2px solid #330000;
}

/* Pattern 4: Dark Grid (3.44 AM) */
.release-card:nth-child(4) .release-cover {
    background:
        linear-gradient(transparent 50%, rgba(255, 0, 60, 0.2) 50%),
        linear-gradient(90deg, rgba(20, 0, 0, 1) 50%, rgba(20, 0, 0, 0.5) 50%);
    background-size: 20px 20px;
    background-color: #050505;
}

/* Pattern 5: Geometric Shards (Abstraction) */
.release-card:nth-child(5) .release-cover {
    background:
        linear-gradient(60deg, #111 25%, transparent 25.5%, transparent 75%, #111 75.5%),
        linear-gradient(60deg, #111 25%, transparent 25.5%, transparent 75%, #111 75.5%),
        linear-gradient(180deg, #300 0%, #000 100%);
    background-size: 40px 80px;
    background-position: 0 0, 0 40px, 0 0;
}

/* Pattern 6: Scanlines (Cleam) */
.release-card:nth-child(6) .release-cover {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 4px),
        radial-gradient(circle at 100% 100%, #FF003C 0%, transparent 50%),
        #111;
}

.release-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.release-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.release-year {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 700;
}

/* SoundCloud Player */
.soundcloud-container {
    max-width: 900px;
    margin: 0 auto 60px;
    background: var(--color-card-bg);
    padding: 10px;
    border: 1px solid var(--color-card-border);
    border-radius: 4px;
}

.soundcloud-container iframe {
    border-radius: 4px;
    margin-bottom: 5px;
    height: 450px;
    /* Controlled via CSS, not inline HTML */
    filter: brightness(0.85);
    /* Dims the white background slightly without inverting colors */
    transition: filter 0.3s;
}

.soundcloud-container:hover iframe {
    filter: brightness(1);
    /* Brightens up on hover */
}

.sc-credits {
    font-size: 10px;
    color: #cccccc;
    line-break: anywhere;
    word-break: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: 'Interstate', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'Garuda', 'Verdana', 'Tahoma',
        sans-serif;
    font-weight: 100;
    text-align: center;
    padding: 5px;
}

.sc-credits a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.sc-credits a:hover {
    color: var(--color-accent);
}

/* Social Links */
.social-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.social-link {
    width: 70px;
    height: 70px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 50%;
    color: #fff;
    /* Ensures currentColor is white, preventing "visited" purple link color */
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 60, 0.4);
}

.social-link i {
    font-size: 28px;
    color: #fff;
    transition: all 0.3s;
}

.social-link:hover i {
    color: #000;
}

.social-link svg {
    width: 28px;
    height: auto;
    fill: #fff;
    transition: all 0.3s;
}

.social-link:hover svg {
    fill: #000;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-card-border);
    padding: 60px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
    letter-spacing: 2px;
    background: #000;
}

.footer-archive {
    margin-top: 15px;
    font-size: 12px;
    color: #444;
    font-style: italic;
    font-family: var(--font-body);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        /* Show nav links on mobile */
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 14px;
        /* Smaller text for mobile */
    }

    .logo-img {
        height: 1.2rem;
        /* Slightly larger on mobile for touch targets/visibility if single line */
    }

    .timeline-item {
        padding-left: 30px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-subtitle {
        font-size: 20px;
        letter-spacing: 5px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 20px;
        /* Give more space for content on mobile */
    }

    .section-title {
        font-size: clamp(28px, 8vw, 40px);
        /* Responsive sizing to prevent overflow */
        word-break: break-word;
        /* Safety wrap */
    }

    .collab-subtitle {
        font-size: clamp(20px, 5vw, 24px);
        /* Scaled down to be smaller than H2 */
    }
}