/* =============================================
   CORPSE COLLECTOR - Metal Website Stylesheet
   ============================================= */

/* --- Custom Font --- */
@font-face {
    font-family: 'Caracura';
    src: url('./fonts/CARACURA.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- CSS Variables --- */
:root {
    --blood-red: #8b0000;
    --bright-red: #cc0000;
    --fire-red: #ff1a1a;
    --black: #000000;
    --dark-bg: #0a0a0a;
    --dark-card: #111111;
    --dark-border: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-dim: #777777;
    --text-bright: #ffffff;
    --rust: #8b4513;
    --font-display: 'Caracura', 'Metal Mania', cursive;
    --font-accent: 'Cinzel', serif;
    --font-body: 'Special Elite', cursive;
    --font-mono: 'Courier New', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blood-red) var(--black);
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--blood-red); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bright-red); }

/* --- Smoke Canvas --- */
#smoke-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--blood-red);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.95);
}

.nav-logo {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--bright-red);
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bright-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--bright-red);
}

.nav-links a:hover {
    color: var(--fire-red);
    text-shadow: 0 0 15px rgba(255, 26, 26, 0.5);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.7) 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 0, 0, 0.03) 2px,
            rgba(139, 0, 0, 0.03) 4px
        );
    z-index: 2;
}

/* Animated glow behind the hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.15) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    color: var(--text-bright);
    text-align: center;
    line-height: 0.9;
    letter-spacing: 0.08em;
    text-shadow:
        0 0 8px rgba(139, 0, 0, 0.5),
        0 0 20px rgba(139, 0, 0, 0.3),
        0 0 40px rgba(139, 0, 0, 0.15);
    animation: logo-breathe 6s ease-in-out infinite;
}

@keyframes logo-breathe {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(139, 0, 0, 0.5),
            0 0 20px rgba(139, 0, 0, 0.3),
            0 0 40px rgba(139, 0, 0, 0.15);
    }
    50% {
        text-shadow:
            0 0 12px rgba(204, 0, 0, 0.6),
            0 0 30px rgba(204, 0, 0, 0.4),
            0 0 60px rgba(139, 0, 0, 0.2);
    }
}

/* Glitch text effect */
.hero-tagline {
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-dim);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    position: relative;
}

.glitch {
    animation: glitch-text 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--bright-red);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: inset(0 0 80% 0);
}

.glitch::after {
    color: var(--fire-red);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: inset(80% 0 0 0);
}

@keyframes glitch-text {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
    98% { opacity: 0.6; }
    99% { opacity: 1; }
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-bright);
    text-decoration: none;
    letter-spacing: 0.2em;
    border: 2px solid var(--blood-red);
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.4), transparent);
    transition: left 0.4s ease;
}

.cta-button:hover {
    border-color: var(--bright-red);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5), inset 0 0 20px rgba(139, 0, 0, 0.1);
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
    color: var(--fire-red);
}

.cta-button:hover::before {
    left: 100%;
}

/* Blood drip at bottom of hero */
.blood-drip {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 4;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,20 Q30,20 30,35 Q30,50 25,60 L35,60 Q35,45 40,35 Q45,20 60,20 L60,20 Q75,20 80,30 Q85,40 85,60 L95,60 Q95,35 100,25 Q105,20 120,20 L180,20 Q195,20 200,35 Q205,50 200,60 L210,60 Q215,45 220,35 Q225,20 240,20 L300,20 Q310,20 315,30 Q320,50 315,60 L325,60 Q325,40 330,30 Q335,20 360,20 L420,20 Q435,20 440,30 Q445,55 440,60 L450,60 Q450,35 455,25 Q460,20 480,20 L540,20 Q555,20 560,35 Q565,50 560,60 L570,60 Q575,45 580,35 Q585,20 600,20 L660,20 Q675,20 680,30 Q685,40 685,60 L695,60 Q695,35 700,25 Q705,20 720,20 L780,20 Q790,20 795,30 Q800,50 795,60 L805,60 Q805,40 810,30 Q815,20 840,20 L900,20 Q915,20 920,35 Q925,50 920,60 L930,60 Q935,45 940,35 Q945,20 960,20 L1020,20 Q1035,20 1040,30 Q1045,55 1040,60 L1050,60 Q1050,35 1055,25 Q1060,20 1080,20 L1140,20 Q1155,20 1160,35 Q1165,50 1160,60 L1170,60 Q1175,45 1180,35 Q1185,20 1200,20 L1200,0 Z' fill='%23000000'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: 1200px 60px;
}

/* --- Sections General --- */
.section {
    position: relative;
    z-index: 5;
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    color: var(--text-bright);
    margin-bottom: 4rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.title-decoration {
    color: var(--blood-red);
    margin: 0 0.8rem;
    display: inline-block;
    vertical-align: middle;
}

.title-decoration svg {
    width: 1.2em;
    height: 1.2em;
    fill: var(--blood-red);
    filter: drop-shadow(0 0 4px rgba(139, 0, 0, 0.5));
    vertical-align: middle;
}

/* Fade-in animation for sections */
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Music / Release Cards --- */
.release-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 2px;
    margin-bottom: 3rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.release-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blood-red), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.release-card:hover::before {
    opacity: 1;
}

.release-card:hover {
    border-color: rgba(139, 0, 0, 0.3);
    box-shadow: 0 5px 30px rgba(139, 0, 0, 0.1);
}

.release-header {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.release-art {
    flex-shrink: 0;
}

.release-art-placeholder {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--blood-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.release-art-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(139, 0, 0, 0.05) 10px,
        rgba(139, 0, 0, 0.05) 20px
    );
}

.release-year-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--blood-red);
    letter-spacing: 0.2em;
    position: relative;
}

.placeholder-text {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    color: var(--text-dim);
    position: relative;
}

.release-title {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--text-bright);
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.release-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--blood-red);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.release-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-style: italic;
}

/* Track list */
.track-list {
    border-top: 1px solid var(--dark-border);
}

.track {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
    gap: 1rem;
    flex-wrap: wrap;
}

.track:last-child {
    border-bottom: none;
}

.track:hover {
    background: rgba(139, 0, 0, 0.08);
}

.track-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    min-width: 2rem;
    flex-shrink: 0;
}

.track-name {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    flex: 1;
    min-width: 150px;
}

.remake-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--fire-red);
    border: 1px solid var(--fire-red);
    padding: 0.1em 0.5em;
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.1em;
}

.track-player {
    height: 32px;
    flex-shrink: 0;
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.7;
    transition: opacity 0.2s ease;
    max-width: 250px;
    width: 100%;
}

.track:hover .track-player {
    opacity: 1;
}

/* Spectrum Analyzer */
.spectrum-canvas {
    display: none;
    height: 40px;
    width: 100%;
    order: 5;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    margin-top: 0.5rem;
    padding-top: 0.3rem;
}

.spectrum-canvas.active {
    display: block;
}

.track-playing {
    background: rgba(139, 0, 0, 0.1) !important;
    border-left: 2px solid var(--bright-red);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--dark-border);
    border-radius: 2px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.download-btn:hover {
    color: var(--bright-red);
    border-color: var(--bright-red);
    background: rgba(139, 0, 0, 0.1);
}

/* --- About Section --- */
.about-section {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 0, 0, 0.03) 50%, transparent 100%);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-image-container {
    position: relative;
    flex-shrink: 0;
}

.about-image {
    width: 280px;
    height: auto;
    border: 2px solid var(--blood-red);
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

.about-image:hover {
    filter: grayscale(0%) contrast(1.2);
}

.image-frame {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    pointer-events: none;
}

.about-lead {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--bright-red);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.about-members {
    font-family: var(--font-mono);
    color: var(--text-primary) !important;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-border);
}

/* --- Contact Section --- */
.contact-section {
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--dark-border);
    background: var(--dark-bg);
}

.footer-logo img {
    width: 150px;
    height: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    margin-bottom: 1rem;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.footer-sub {
    font-style: italic;
    opacity: 0.5;
    margin-top: 0.3rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--blood-red);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .release-header {
        flex-direction: column;
        text-align: center;
    }

    .track {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }

    .track-player {
        order: 4;
        max-width: 100%;
        width: 100%;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        width: 200px;
    }

    .section-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .hero-tagline {
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 1rem;
    }

    .release-art-placeholder {
        width: 80px;
        height: 80px;
    }

    .placeholder-text {
        font-size: 1.8rem;
    }
}
