/* STRANGER THINGS THEME - STYLES 2 */

:root {
    --bg-dark: #050505;
    --bg-panel: #111;
    --neon-red: #ff0000;
    --neon-dark-red: #800000;
    --terminal-green: #33ff00;
    --terminal-amber: #ffb000;
    --text-main: #e0e0e0;
    
    --font-title: 'ITC Benguiat', 'Merriweather', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-tech: 'VT323', monospace;
    --font-glitch: 'Rubik Glitch', display;
}

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #1a0000; /* Dark Burnt Red Base */
    background-image: radial-gradient(circle at center, #2a0000 0%, #000000 80%);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* === CRT OVERLAY EFFECTS === */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    mix-blend-mode: overlay;
}

.vignette-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%);
    pointer-events: none;
    z-index: 2;
}

.flicker-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 0, 0, 0.02);
    opacity: 0;
    animation: flicker 4s infinite;
    pointer-events: none;
}

@keyframes flicker {
    0% { opacity: 0.02; }
    5% { opacity: 0.05; }
    10% { opacity: 0.02; }
    15% { opacity: 0.06; }
    20% { opacity: 0.02; }
    50% { opacity: 0.02; }
    55% { opacity: 0.05; }
    60% { opacity: 0.02; }
    100% { opacity: 0.02; }
}

/* === SPORES CANVAS === */
#spores-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

/* === NAVIGATION === */
.stranger-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.nav-logo img {
    height: 35px;
    /* Removed glow/drop-shadow as requested */
    filter: none;
}

.nav-items a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    transition: all 0.3s;
}

.nav-items a:hover {
    border-color: var(--neon-red);
    color: var(--neon-red);
    text-shadow: 0 0 8px var(--neon-red);
}

/* === HERO SECTION === */
.hero-gate {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.gate-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.bg-image-layer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* Slight zoom for parallax room */
    filter: contrast(1.2) brightness(0.6) hue-rotate(-10deg);
    animation: breathe 10s infinite alternate ease-in-out;
    opacity: 0.4; /* Added transparency as requested */
}

@keyframes breathe {
    from { transform: scale(1.1); }
    to { transform: scale(1.15); }
}

.fog-layer {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 0 20px;
    transform: translateY(-20px);
}

.stranger-title {
    font-family: var(--font-title);
    color: transparent;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 0.9; /* Tighten line height */
    font-weight: 900;
    text-align: center;
}

/* LINE 1: YOUR WEBSITE IS STUCK IN THE */
.line-1 { 
    font-size: clamp(1.5rem, 3vw, 2.5rem); /* Smaller */
    letter-spacing: 3px; 
    -webkit-text-stroke: 1px var(--neon-red); /* Thin red stroke */
    color: #000; /* Black middle */
    text-shadow: 0 0 10px var(--neon-red); /* Red glow */
    position: relative;
    display: inline-block;
}

/* Capitalize first and last letter logic needs spans in HTML or pseudo elements if possible, but spans are safer */
.big-cap {
    font-size: 1.3em; /* Enlarge specific letters */
    vertical-align: bottom; /* Align properly */
}

/* LINE 2: UPSIDE DOWN */
.line-2-wrapper {
    margin: 10px 0;
    display: block;
}

.line-2 { 
    font-size: clamp(3rem, 8vw, 6rem); /* Bigger */
    letter-spacing: 5px; 
    -webkit-text-stroke: 2px var(--neon-red); /* Thin red stroke (scaled up) */
    color: #000; /* Black middle */
    text-shadow: 0 0 20px var(--neon-red); /* Red glow */
    /* Upside down */
    transform: rotate(180deg); 
    display: inline-block;
}

/* LINE 3: OURS PULLS YOU OUT */
.line-4 {
    display: block;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--neon-red); /* Solid Red */
    margin-top: 20px;
    -webkit-text-stroke: 0;
    text-shadow: none; /* No glow */
    letter-spacing: 2px;
    animation: reveal-up 2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes reveal-up {
    to { opacity: 1; transform: translateY(0); }
}


/* Re-adding animation blocks that may have been truncated */
.hero-message {
    margin-top: 40px;
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: #ccc;
    text-shadow: 1px 1px 2px #000;
}

.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--neon-red);
    width: 0;
    animation: typing 3s steps(40, end) forwards, blink-caret .75s step-end infinite;
    margin: 0 auto;
    display: inline-block;
}

.typewriter-text.delay-1 {
    animation: typing 3s steps(40, end) 2.5s forwards, blink-caret .75s step-end infinite;
    border-right: 3px solid transparent; /* Hide caret initially */
    width: 0;
    display: block;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-red); }
}

.hero-actions { margin-top: 50px; }

.btn-stranger {
    background: transparent;
    border: 2px solid var(--neon-red);
    padding: 20px 50px;
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--neon-red);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 15px var(--neon-dark-red);
}

.btn-stranger:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 50px var(--neon-red);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.arrow-down {
    width: 20px; height: 20px;
    border-right: 2px solid var(--neon-red);
    border-bottom: 2px solid var(--neon-red);
    transform: rotate(45deg);
    animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(10px) rotate(45deg); }
}

/* === SECTION 2: LAB REPORT === */
.lab-report-section {
    background: #080808;
    padding: 100px 0;
    position: relative;
    border-top: 1px solid #222;
}

.terminal-monitor {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.monitor-casing {
    background: #000;
    border: 10px solid #333;
    border-radius: 5px;
    padding: 5px;
    position: relative;
}

.screen-surface {
    background: #001100; /* Dark green terminal bg */
    padding: 30px;
    border-radius: 4px;
    font-family: var(--font-tech);
    color: var(--terminal-green);
    min-height: 400px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.screen-surface::after {
    /* Scanlines on terminal */
    content: ';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.terminal-header-bar {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--terminal-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.term-line { margin-bottom: 5px; font-size: 1.1rem; }
.blink-cursor { animation: blink 1s infinite; }

.data-grid {
    margin-top: 30px;
    border: 1px solid rgba(51, 255, 0, 0.3);
    padding: 20px;
}

.data-entry {
    margin-bottom: 25px;
    position: relative;
}

.label { opacity: 0.7; margin-right: 10px; }
.val { font-weight: bold; text-transform: uppercase; }
.highlight-green { text-shadow: 0 0 5px var(--terminal-green); }

.metric-bar {
    display: block;
    height: 10px;
    background: rgba(51, 255, 0, 0.2);
    margin-top: 5px;
    position: relative;
}
.metric-bar::after {
    content: ';
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: var(--width);
    background: var(--terminal-green);
    box-shadow: 0 0 10px var(--terminal-green);
}

.section-caption { text-align: center; color: #666; max-width: 600px; margin: 0 auto; }
.section-caption h2 { 
    font-family: var(--font-title); 
    color: #fff; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
}

/* === SECTION 3: ROT === */
.rot-section {
    background: #0a0000; /* Very dark red */
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.rot-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjMWEwMDAwIi8+PGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iMjAiIGZpbGw9IiMwMDAiIG9wYWNpdHk9IjAuMiIvPjwvc3ZnPg==");
    opacity: 0.1;
    z-index: 0;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.infected-frame {
    position: relative;
    border: 2px solid var(--neon-dark-red);
    box-shadow: 0 0 30px rgba(255,0,0,0.2);
}

.glitch-image {
    width: 100%;
    display: block;
    filter: sepia(1) hue-rotate(-50deg) saturate(2); /* Rot look */
    mix-blend-mode: luminosity;
}

.veins-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(100, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.rot-content { color: #ccc; }
.stranger-heading {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.stranger-list { margin-top: 30px; list-style: none; font-family: var(--font-tech); font-size: 1.4rem; }
.stranger-list li {
    margin-bottom: 15px;
    border-left: 3px solid var(--neon-red);
    padding-left: 15px;
    color: #fff;
}

/* === SECTION 4: WEAPON === */
.weapon-section {
    background: #111;
    padding: 100px 0;
    border-top: 1px solid #222;
}

.center-header { text-align: center; margin-bottom: 60px; }

.weapon-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.weapon-card {
    background: #050505;
    border: 1px solid #333;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.weapon-card:hover {
    border-color: var(--neon-red);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(255,0,0,0.1);
}

.card-icon { font-size: 3rem; margin-bottom: 20px; filter: grayscale(1); }
.weapon-card:hover .card-icon { filter: grayscale(0) drop-shadow(0 0 10px var(--neon-red)); }

.weapon-card h3 { color: #fff; font-family: var(--font-title); margin-bottom: 15px; }
.weapon-card p { color: #888; }

/* === SECTION 5: ESCAPE === */
.escape-section {
    padding: 150px 0;
    position: relative;
    text-align: center;
    background: #000;
    overflow: hidden;
}

.portal-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 800px; height: 800px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 50px var(--neon-red), inset 0 0 100px var(--neon-red);
    opacity: 0.2;
    animation: spin-portal 20s linear infinite;
    pointer-events: none;
}

@keyframes spin-portal {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.scan-module {
    max-width: 600px;
    margin: 40px auto 0;
}

.input-box {
    display: flex;
    background: #111;
    border: 1px solid var(--neon-red);
    padding: 5px;
}

.input-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: var(--neon-red);
    font-family: var(--font-tech);
    font-size: 1.2rem;
    outline: none;
}

.input-box button {
    background: var(--neon-red);
    color: #000;
    border: none;
    padding: 0 30px;
    font-family: var(--font-title);
    font-weight: bold;
    cursor: pointer;
}

.scan-status {
    margin-top: 15px;
    font-family: var(--font-tech);
    color: var(--neon-red);
    animation: blink 1s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* === FOOTER === */
.stranger-footer {
    padding: 40px 0;
    background: #050505;
    text-align: center;
    border-top: 1px solid #222;
}
.stranger-footer p { margin-top: 20px; color: #555; font-family: var(--font-tech); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .weapon-showcase {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
    
    .line-2 { font-size: 4rem; }
    .portal-ring { width: 600px; height: 600px; }
}

@media (max-width: 768px) {
    /* Navigation */
    .stranger-nav { 
        padding: 15px 20px; 
        flex-direction: column;
        gap: 15px;
        background: rgba(0,0,0,0.9);
    }
    
    .nav-logo img { height: 30px; }
    .nav-items a { font-size: 1rem; padding: 8px 20px; display: block; width: 100%; text-align: center; }

    /* Hero Typography */
    .hero-content-wrapper { transform: translateY(0); padding-top: 80px; }
    
    .line-1 { 
        font-size: 1.1rem; 
        letter-spacing: 1px; 
        display: block;
        margin-bottom: 5px;
    }
    
    .line-2 { 
        font-size: 2.8rem; 
        letter-spacing: 2px; 
        margin: 10px 0; 
        -webkit-text-stroke: 1px var(--neon-red);
    }
    
    .line-4 { 
        font-size: 1.4rem; 
        letter-spacing: 1px; 
        margin-top: 10px; 
        display: block;
    }
    
    /* Fix Typewriter on Mobile */
    .typewriter-text, .typewriter-text.delay-1 {
        white-space: normal;
        width: auto;
        border: none;
        animation: reveal-up 1s ease forwards;
        opacity: 0;
        margin-bottom: 15px;
        font-size: 1.1rem;
        line-height: 1.4;
    }
    .typewriter-text.delay-1 { animation-delay: 0.5s; }
    
    /* Buttons */
    .btn-stranger { 
        padding: 15px 30px; 
        font-size: 1.2rem; 
        width: 100%;
        max-width: 300px;
    }

    /* Sections */
    .lab-report-section, .rot-section, .weapon-section, .escape-section { 
        padding: 60px 0; 
    }

    /* Terminal */
    .terminal-monitor { margin: 0 10px 40px; width: auto; }
    .monitor-casing { border-width: 5px; padding: 2px; }
    .screen-surface { padding: 15px; min-height: auto; }
    .terminal-header-bar { font-size: 0.9rem; flex-direction: column; gap: 5px; text-align: center; }
    .data-grid { padding: 10px; margin-top: 15px; }
    .data-entry { font-size: 0.9rem; }
    
    /* Split Layouts */
    .split-layout { flex-direction: column; gap: 40px; }
    .rot-visual { width: 100%; padding: 0 20px; }
    
    .stranger-heading { font-size: 2rem; text-align: center; line-height: 1.2; }
    .rot-content p { text-align: center; padding: 0 20px; }
    
    .stranger-list { 
        text-align: center; 
        padding: 0 20px;
    }
    .stranger-list li {
        border-left: none;
        border-bottom: 2px solid var(--neon-red);
        padding-left: 0;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    /* Cards */
    .weapon-showcase { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding: 0 20px;
    }
    
    /* Portal / Escape */
    .portal-ring { 
        width: 280px; 
        height: 280px; 
        border-width: 1px;
        box-shadow: 0 0 20px var(--neon-red), inset 0 0 20px var(--neon-red);
    }
    
    .stranger-heading.large { font-size: 2.5rem; margin-bottom: 20px; }
    
    .scan-module { margin-top: 2rem; width: 100%; padding: 0 20px; }
    
    /* Modals */
    .modal-content { width: 95%; margin: 10px; padding: 15px; height: auto; max-height: 90vh; overflow-y: auto; }
    .calendly-modal-content { padding: 10px; height: 85vh; }
}

/* Small Mobile */
@media (max-width: 380px) {
    .line-2 { font-size: 2.2rem; }
    .stranger-heading { font-size: 1.8rem; }
    .btn-stranger { padding: 12px 20px; font-size: 1rem; }
}


/* === UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === MODALS === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 1100px;
    background: #000;
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 50px var(--neon-red);
    position: relative;
    padding: 20px;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--neon-red);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    font-family: var(--font-tech);
}

.close-modal:hover {
    text-shadow: 0 0 10px var(--neon-red);
}

/* Login Modal Specifics */
.login-modal-content {
    max-width: 400px;
    text-align: center;
}

.login-container h2 {
    color: var(--neon-red);
    font-family: var(--font-title);
    margin-bottom: 30px;
}

.login-container .input-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-container label {
    display: block;
    color: var(--text-main);
    margin-bottom: 5px;
    font-family: var(--font-tech);
}

.login-container input {
    width: 100%;
    padding: 10px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-tech);
}

.login-container input:focus {
    border-color: var(--neon-red);
    outline: none;
}

/* Calendly Override */
.calendly-modal-content {
    padding: 40px;
    height: 80vh;
}


/* Animation Utilities required by script.js */
.hero-content { transition: all 0.8s ease; }
.hero-content.scroll-out { opacity: 0; transform: scale(0.9) translateY(-50px); filter: blur(10px); }

.subheader, .hero-cta, .hero-scan, .hero-scan-desc { opacity: 0; transform: translateY(20px); }
.fade-in-up { opacity: 1 !important; transform: translateY(0) !important; transition: all 0.8s ease-out; }

.element-visible { opacity: 1 !important; transform: translateY(0) !important; }

.zoom-out-exit { transform: scale(1.15); opacity: 0 !important; filter: blur(8px); transition: all 0.8s ease-out; pointer-events: none; }

/* Base states for scroll animations */
.why-perform h2, .why-perform p, .why-perform .feature-list, .why-perform .highlight, .why-perform .visual-content,
.how-it-works .section-header, .how-it-works .content-split-rev, .how-it-works .visual-content, .how-it-works .text-content,
.project-x .section-header, .project-x .project-x-list, 
.comparison-table .section-header, .comparison-table .comparison-column,
.build-timeline .section-header, .build-timeline .timeline-node, .build-timeline .closer-line,
.proof-block .section-header, .proof-block .terminal-window, .proof-block .proof-footer p {
    opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out;
}

/* Ensure comparison columns are visible if JS fails or delays */
.comparison-column { opacity: 1; }

/* Transition for Color Change */
.stranger-title, .line-1, .line-2, .line-4, .btn-stranger, .nav-items a, .scan-status, .input-box, .input-box input, .input-box button, .monitor-casing, .terminal-header-bar, .data-grid, .metric-bar, .stranger-list li, .weapon-card, .weapon-card:hover .card-icon {
    transition: color 2s ease, text-shadow 2s ease, border-color 2s ease, stroke 2s ease, -webkit-text-stroke 2s ease;
}

/* Cross-fade logic helpers */
.bg-image-layer {
    position: absolute;
    top: 0; left: 0;
    transition: opacity 2s ease;
}


.nav-logo img { transition: opacity 1s ease, filter 1s ease; }

