/* The Milk Snatchers - Refined Grit */

@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --accent-color: #ff0000;
    --font-heading: 'Permanent Marker', cursive;
    /* Gorillaz-style marker font */
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --grain-opacity: 0.12;
    /* Slightly grittier */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Background Texture Layers --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity);
    mix-blend-mode: overlay;
}

.pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../img/pattern.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.15;
    filter: contrast(150%) brightness(80%);
    mix-blend-mode: soft-light;
}

/* --- Layout Sections --- */
section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 1.5rem;
    mix-blend-mode: difference;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: transform 0.2s;
}

nav a:hover {
    color: var(--accent-color);
    transform: rotate(-2deg) scale(1.1);
}

/* --- Hero Section --- */
.hero {
    overflow: hidden;
}

.hero-logo {
    width: 70%;
    max-width: 600px;
    height: auto;
    filter: invert(1);
    animation: drift 8s ease-in-out infinite alternate;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    opacity: 0.8;
    animation: pulse 1.5s infinite;
}

/* --- EP Section --- */
.ep-section {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.ep-container {
    width: 100%;
    max-width: 600px;
    background: #000;
    box-shadow: 10px 10px 0px var(--text-color);
    border: 2px solid var(--text-color);
    padding: 0;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.ep-container:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 15px 15px 0px var(--accent-color);
    border-color: var(--accent-color);
}

h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: white;
    text-align: center;
    text-shadow: 4px 4px 0px #000;
    transform: rotate(-2deg);
}

/* --- Live Section (Gritty Sign) --- */
.live-section {
    background-color: transparent;
}

.gritty-sign {
    background: #111;
    border: none;
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: rotate(1deg);
    background-image: repeating-linear-gradient(45deg,
            #111,
            #111 10px,
            #1a1a1a 10px,
            #1a1a1a 20px);
}

.gritty-sign::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed #333;
    pointer-events: none;
    margin: 10px;
}

.sign-header {
    background: var(--accent-color);
    color: black;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 0.5rem 2rem;
    display: inline-block;
    transform: translateY(-50%) rotate(-3deg);
    box-shadow: 4px 4px 0px black;
    margin-bottom: 2rem;
}

.carousel-content {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.sign-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: white;
}

.sign-sub {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
}

.sign-footer {
    margin-top: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.sign-footer a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
    transition: all 0.2s ease;
}

.sign-footer a:hover {
    background: var(--accent-color);
    color: black;
}

/* --- Band Section --- */
.band-section {
    padding: 0;
}

.band-photo-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.band-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.5s ease;
}

.band-photo:hover {
    filter: grayscale(0%) contrast(110%);
}

.band-overlay {
    /* Quotes removed per request */
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    mix-blend-mode: difference;
}

.band-logo-small {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    opacity: 0.5;
}

/* --- Connect Section --- */
.connect-section {
    min-height: 40vh;
    background: black;
}

.social-links {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.social-link {
    color: white;
    font-family: var(--font-heading);
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.2s;
    transform: rotate(2deg);
}

.social-link:hover {
    color: var(--accent-color);
    transform: rotate(-5deg) scale(1.2);
    text-shadow: 4px 4px 0px #333;
}

footer {
    position: absolute;
    bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #444;
    text-align: center;
    width: 100%;
}

.footer-email {
    margin-bottom: 0.5rem;
}

.footer-email a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px dotted #666;
    transition: color 0.2s;
}

.footer-email a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- Animations --- */
@keyframes drift {
    0% {
        transform: rotate(-2deg) translateY(0px);
    }

    100% {
        transform: rotate(2deg) translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 4rem 1rem 2rem 1rem;
        /* Increased top padding for fixed nav items */
        min-height: auto;
        /* Allow sections to be naturally sized */
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 85%;
    }

    .sign-title {
        font-size: 1.8rem;
    }

    .gritty-sign {
        width: 95%;
        padding: 2rem;
        margin: 2rem auto;
    }

    /* Fix Band Photo */
    .band-photo-container {
        height: 50vh;
    }

    .band-photo {
        object-position: center 20%;
        /* Try to center on faces better */
    }

    /* Fix Connect Section Overlaps */
    .connect-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .social-links {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    footer {
        position: relative;
        bottom: auto;
        width: 100%;
        margin-top: 2rem;
    }
}