:root {
    --accent-red: #bf4840;
    --bg-dark: #0b100a;
    --bg-darker: #060905;
    --text-offwhite: #e3dec9; /* Warm analog paper color */
    
    /* Typography */
    --font-heading: 'League Spartan', sans-serif; /* Thick, wide, geometric */
    --font-body: 'Nunito', sans-serif; /* Soft, readable, rounded */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('assets/70s_floral_wallpaper.png');
    background-size: 400px 400px; /* Scale the pattern to look like realistic wallpaper */
    background-repeat: repeat;
    /* Set body as non-scrolling background / room */
    color: var(--text-offwhite);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow: hidden; /* Stop global scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

/* --- TV MONITOR & SCROLLING SCREEN --- */
#tv-monitor {
    position: relative;
    width: 92vw;  /* Leaves more room on the sides for the wallpaper */
    height: 90vh; /* Leaves more room top/bottom for the wallpaper */
    border-radius: 12vh; /* Strong rounding like old CRT tubes */
    border: 40px solid #0f0f0f; /* Thick physical plastic frame for the TV */
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.8), /* Very heavy cast shadow from the TV onto the wall */
        0 10px 30px rgba(0,0,0,0.6);
    background-color: #000;
    overflow: hidden; /* Clips the inner screen and glass to the bubble shape */
}

/* Glass reflection overlay generated purely in CSS, as requested */
.crt-glass {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10001;
    /* Massive shadows to bend the corners strongly backwards */
    box-shadow: 
        inset 0 0 10vw rgba(0,0,0,1), /* Deep spherical vignette */
        inset 0 0 3vw rgba(0,0,0,1), /* Hard edge darkening */
        inset 1vw 1vw 4vw rgba(255,255,255,0.1), /* Rim light from the thick glass bulb */
        inset -1vw -1vw 4vw rgba(255,255,255,0.05); /* Lower rim light */
    background:
        /* Top reflection – flat lens/pillow highlight */
        radial-gradient(ellipse 63% 22% at 50% 13%,
            rgba(255,255,255,0.30) 0%,
            rgba(255,255,255,0.22) 60%,
            rgba(255,255,255,0.0)  100%
        );
}

#tv-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* The entire website scrolls inside here */
    overflow-x: hidden;
    z-index: 10000;
    /* Original body background moved here */
    background-color: var(--bg-dark);
    background-image: url('assets/bg_dark_cardboard.png');
    background-size: cover;
    background-position: center;
    background-attachment: local; /* Background scrolls with the container */
    background-blend-mode: multiply;
}

/* --- ANALOG TEXTURES (Subtle Global Overlay) --- */
/* Subtle scanlines attached directly to the global analog overlay */
.analog-texture {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    /* Soft noise AND scanlines */
    background: 
        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.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        linear-gradient(transparent 50%, rgba(0, 0, 0, 0.1) 51%);
    background-size: 200px 200px, 100% 4px;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

/* --- VHS STARTUP FLICKER (MP4) --- */
.vhs-flicker {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10002;
    mix-blend-mode: screen; /* Lets the white static punch through heavily */
    opacity: 1;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.vhs-flicker.fade-out {
    opacity: 0;
    visibility: hidden;
}

.vhs-flicker video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Slight transparency so we can still see the hero behind the static */
}



/* --- NAV --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 2px solid var(--accent-red);
}

.logo img {
    max-width: 120px;
    filter: drop-shadow(0 0 5px rgba(191, 72, 64, 0.4));
}

.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger-menu .line {
    width: 30px;
    height: 4px;
    background-color: var(--accent-red);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-offwhite);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* --- HERO --- */
.hero-section {
    position: relative;
    height: 85vh; /* Accounts for the nav height so the next section isn't pushed too far down */
    display: flex;
    align-items: flex-start; /* Pushes content to the top instead of centering */
    justify-content: center;
    padding: 12vh 50px 0 50px; /* High positioning */
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    color: #999;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    color: #fff; /* Pure white center */
    text-transform: uppercase;
    /* Soft, warm CRT/film halation glow */
    text-shadow: 
        0 0 4px rgba(255, 240, 200, 0.9), 
        0 0 10px rgba(255, 200, 120, 0.7), 
        0 0 20px rgba(255, 160, 80, 0.5), 
        0 0 40px rgba(255, 120, 50, 0.3),
        0 0 80px rgba(255, 90, 30, 0.2);
}

.hero-description {
    font-size: 1.4rem;
    color: var(--accent-red);
    font-weight: 600;
}


/* --- SECTIONS --- */
.section-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
    /* Same warm CRT/film halation glow as hero-title */
    text-shadow: 
        0 0 4px rgba(255, 240, 200, 0.9), 
        0 0 10px rgba(255, 200, 120, 0.7), 
        0 0 20px rgba(255, 160, 80, 0.5), 
        0 0 40px rgba(255, 120, 50, 0.3),
        0 0 80px rgba(255, 90, 30, 0.2);
}

.services-section, .about-section {
    padding: 120px 50px;
    max-width: 100%;
    margin: 0 auto;
    background-color: #e3deca;
    background-image: url('assets/bg_light_paper.png');
    background-size: cover;
    background-blend-mode: multiply;
    color: #111;
}

.services-section .section-heading, .about-section .section-heading {
    color: #111;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for print look instead of neon glow */
}

.services-section > *, .about-section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.dark-paper {
    background-color: var(--bg-darker);
    border-top: 1px solid #1a2218;
    border-bottom: 1px solid #1a2218;
    padding: 100px 50px;
}

/* --- SERVICES AS VHS SLEEVES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.vhs-sleeve {
    /* Use exact VHS proportion (120x200 format) */
    aspect-ratio: 120 / 200;
    background-size: cover; /* Cropped perfectly to the sides */
    background-position: center bottom;
    position: relative;
    border-radius: 4px;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.8), inset 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text sits at the bottom */
}

.vhs-sleeve:hover {
    transform: scale(1.05) translateY(-10px);
}

.sleeve-content {
    position: absolute;
    /* Base positioning removed: controlled by specific styles below */
    left: 20px;
    right: 15px; /* Added some breathing room */
    text-align: left;
    mix-blend-mode: multiply; /* Gives a printed-on-paper effect for dark text on light backgrounds */
}

/* Base resets, no shadows */
.sleeve-content h3 {
    margin: 0 0 10px 0;
    line-height: 0.9;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.sleeve-content p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}

/* --- Specific Cover Typography & Layouts --- */

/* White Cover (Samsung Style) - Dark diagonal stripes at bottom */
.style-jvc .sleeve-content {
    top: 30px; /* High up */
    text-align: right; /* Fits nicely against the rising diagonal */
}
.style-jvc .sleeve-content h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 2.1rem;
    font-weight: 700;
    color: #1a1a1a;
}
.style-jvc .sleeve-content p {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    color: #444;
}

/* Purple Cover (Polaroid Style) - Neon bands in center */
.style-cool .sleeve-content {
    top: 25px; /* High up, above the bands */
    mix-blend-mode: normal; /* Light text doesn't multiply well */
}
.style-cool .sleeve-content h3 {
    font-family: var(--font-heading); /* League Spartan */
    font-size: 2.3rem;
    font-weight: 900;
    color: #f0f0f0; /* Off-white print */
    letter-spacing: -1.5px;
}
.style-cool .sleeve-content p {
    font-family: var(--font-body); /* Nunito */
    font-size: 0.85rem;
    font-weight: 800;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Yellow Cover (BASF Style) - Black/Rainbow bands at bottom, left vertical lines */
.style-neon .sleeve-content {
    top: 35px; /* Top heavy */
    left: 45px; /* Avoid the left vertical stripes */
}
.style-neon .sleeve-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f0f0f;
}
.style-neon .sleeve-content p {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1c1c1c;
}



/* --- PORTFOLIO SHELF --- */
#archiv .section-heading {
    margin-top: 30px;
    margin-bottom: 30px; /* Brings it closer to the tapes */
}

.portfolio-hint {
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: #888;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.vhs-shelf {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #080c07;
    border: 10px solid #151e13; /* Wood shelf equivalent */
    border-radius: 4px;
    box-shadow: inset 0 30px 30px rgba(0,0,0,0.9);
}

.vhs-tape {
    display: block;
    width: 60px;
    height: 300px;
    background-color: #111;
    background-size: 100% 100%; /* Prevents cropping, stretches to fill */
    background-position: center;
    border-radius: 4px;
    text-decoration: none;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
}

.tape-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 10px;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.8); 
}

.tape-title {
    font-size: 1.25rem;
    font-weight: bold;
    max-height: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Base font if no specific class is provided */
    font-family: var(--font-heading);
}

.tape-title.font-oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.tape-title.font-marker {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem; /* Marker tends to be wider */
}

.tape-title.font-courier {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
}

.tape-year {
    margin-top: auto;
    font-size: 0.8rem;
    opacity: 0.7;
}

.vhs-tape:hover {
    transform: translateY(-30px);
}

/* --- ABOUT CARDS --- */
.spec-card {
    background-color: var(--bg-darker); 
    background-image: url('assets/bg_dark_cardboard.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: var(--text-offwhite);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border: 3px solid var(--accent-red);
    box-shadow: 15px 15px 30px rgba(0,0,0,0.5);
}

.spec-card .card-header {
    border-bottom: 8px solid var(--accent-red);
}

.spec-card .spec-tag {
    background: var(--accent-red);
    color: #fff;
}

.card-header {
    border-bottom: 8px solid #111;
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    line-height: 1;
}

.spec-tag {
    font-weight: bold;
    background: #111;
    color: #e3dec9;
    padding: 4px 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.card-body {
    display: flex;
    gap: 40px;
}

.photo-placeholder {
    width: 200px; height: 200px;
    background: #111;
    /* Static noise inside photo box as fallback */
    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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.3'/%3E%3C/svg%3E");
    border: 2px solid var(--accent-red);
    overflow: hidden;
    flex-shrink: 0;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.analog-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.analog-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-style: italic;
}

.analog-form input, .analog-form textarea {
    width: 100%;
    padding: 15px;
    background: #111810;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-body);
    border-radius: 4px;
}

.analog-form input:focus, .analog-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.cta-button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 4px 4px 0px #000;
}

.cta-button:hover {
    background: #9a352d;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.cta-button:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #000;
}

.submit-btn {
    width: 100%;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background: #111810;
    padding: 20px;
    border: 1px dashed var(--accent-red);
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    padding: 30px;
    border-top: 2px dashed #333;
    background-color: var(--bg-dark);
}

.main-footer p {
    font-size: 0.9rem;
    color: #888;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--accent-red);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e3deca;
}

/* --- LEGAL PAGES --- */
.legal-content {
    background-color: #e3deca;
    background-image: url('assets/bg_light_paper.png');
    background-size: cover;
    background-blend-mode: multiply;
    color: #111;
    padding: 100px 50px;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.legal-wrapper h1.section-heading {
    margin-bottom: 40px;
    color: #111;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.legal-wrapper h2 {
    font-family: var(--font-heading);
    color: var(--accent-red);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-wrapper h3 {
    font-family: var(--font-heading);
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-wrapper p {
    margin-bottom: 20px;
}

.legal-wrapper a {
    color: var(--accent-red);
    font-weight: bold;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 1. Remove the TV bounding box restrictions and CRT features */
    #tv-monitor {
        width: 100vw;
        height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .crt-glass {
        box-shadow: none; /* Remove harsh heavy vignette */
        /* Keep just the soft surface reflections */
        background: radial-gradient(ellipse at 50% 2%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    }

    /* 2. Typography Scaling */
    .hero-title { 
        font-size: 3rem; 
        margin-bottom: 20px;
    }
    
    .section-heading {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    /* 3. Navigation & Burger Menu */
    .top-nav { 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* Allows menu to drop below */
        padding: 20px;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        display: none; /* Hidden strictly via js class toggle */
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-top: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    /* Burger Animation when active */
    .burger-menu.active .line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger-menu.active .line:nth-child(2) { opacity: 0; }
    .burger-menu.active .line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .hero-section {
        padding: 8vh 20px 0 20px;
        height: auto; /* Let it flow on mobile instead of forcing full vertical */
        min-height: 80vh;
    }

    .services-section, .about-section, .dark-paper {
        padding: 60px 20px;
    }

    /* 4. Fix Services Grid to prevent clipping */
    .services-grid {
        /* Drop min-width from 300px down to 250px so it fits into mobile sizes cleanly */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    /* 5. Miscellaneous cleanups */
    .card-body { 
        flex-direction: column; 
    }
    
    .photo-placeholder { 
        width: 100%; 
        height: 250px; 
    }
    
    .spec-card {
        padding: 20px; /* Reduce heavy padding on the about card */
    }
    
    .card-header h2 {
        font-size: 2rem;
    }
    
    /* 6. Hide the last 3 tapes on mobile devices */
    #archiv .vhs-tape:nth-last-child(-n+3) {
        display: none;
    }
}
