/* ═══════════════════════════════════════════════════
   CORNTAMINATION — Vision Website
   ═══════════════════════════════════════════════════ */

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

:root {
    --bg-dark: #0a0a0c;
    --bg-card: #111115;
    --bg-card-hover: #1a1a20;
    --green-glow: #39ff14;
    --green-dim: #1a6b0a;
    --green-mid: #2acd0f;
    --amber: #ffaa00;
    --amber-dim: #8a5a00;
    --red-alert: #ff2d2d;
    --text-primary: #e8e8ec;
    --text-secondary: #9a9aaa;
    --text-muted: #5a5a6a;
    --border-subtle: rgba(255,255,255,0.06);
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1200px;
    --font-display: 'Creepster', cursive;
    --font-body: 'Inter', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

html { scroll-behavior: smooth; }

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Hero ── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 50% 80%, rgba(57,255,20,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 20%, rgba(255,170,0,0.05) 0%, transparent 50%),
        var(--bg-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="1" height="1" fill="rgba(255,255,255,0.02)"/></svg>');
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--green-glow);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 6s infinite;
    box-shadow: 0 0 6px var(--green-glow);
}

@keyframes float-up {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-100vh) scale(0); }
}

.hero-content { position: relative; z-index: 1; }

.hero-subtitle {
    font-family: var(--font-tech);
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    letter-spacing: 0.4em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    animation: fadeInDown 1s ease-out;
}

.hero-logo {
    max-width: clamp(320px, 70vw, 750px);
    height: auto;
    margin: 0 auto 20px;
    display: block;
    animation: fadeInUp 1s ease-out 0.2s both;
    filter: drop-shadow(0 0 30px rgba(57,255,20,0.35)) drop-shadow(0 0 60px rgba(57,255,20,0.15));
    mix-blend-mode: lighten;
}

.glow-green {
    color: var(--green-glow);
    text-shadow: 
        0 0 20px rgba(57,255,20,0.6),
        0 0 40px rgba(57,255,20,0.3),
        0 0 80px rgba(57,255,20,0.15);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(57,255,20,0.6), 0 0 40px rgba(57,255,20,0.3), 0 0 80px rgba(57,255,20,0.15); }
    50% { text-shadow: 0 0 30px rgba(57,255,20,0.8), 0 0 60px rgba(57,255,20,0.5), 0 0 120px rgba(57,255,20,0.25); }
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(57,255,20,0.06);
    border: 1px solid rgba(57,255,20,0.15);
    padding: 10px 24px;
    border-radius: 100px;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--green-mid);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.badge-icon { font-size: 1.2rem; }

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--green-dim), #0d4a06);
    border: 1px solid rgba(57,255,20,0.3);
    padding: 16px 40px;
    border-radius: 100px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--green-glow);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-button:hover {
    background: linear-gradient(135deg, #1a6b0a, #0f5a07);
    box-shadow: 0 0 30px rgba(57,255,20,0.3), 0 4px 20px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Story Section ── */
#story {
    padding: 100px 0 60px;
}

.story-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green-glow), transparent);
    opacity: 0.5;
}

.biohazard-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.story-card h2 {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
    color: var(--green-glow);
}

.story-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.story-callout {
    margin-top: 24px !important;
    padding: 20px 28px;
    background: rgba(57,255,20,0.04);
    border: 1px solid rgba(57,255,20,0.12);
    border-radius: var(--radius);
    color: var(--text-primary) !important;
    font-size: 1.1rem !important;
}

/* ── Room Navigation ── */
#room-nav { padding: 40px 0 80px; }

.section-title {
    font-family: var(--font-tech);
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.room-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.room-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.room-nav-card:hover {
    border-color: rgba(57,255,20,0.3);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(57,255,20,0.1);
}

.room-nav-number {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 900;
    color: var(--green-glow);
    opacity: 0.6;
}

.room-nav-name {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

/* ── Room Sections ── */
.room-section {
    padding: 0 0 100px;
    position: relative;
}

.room-header {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.room-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--green-dim));
}

.room-label {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.room-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 0.04em;
}

.room-1 .room-title { color: var(--green-glow); text-shadow: 0 0 30px rgba(57,255,20,0.4); }
.room-2 .room-title { color: var(--amber); text-shadow: 0 0 30px rgba(255,170,0,0.4); }
.room-3 .room-title { color: #ff6b2d; text-shadow: 0 0 30px rgba(255,107,45,0.4); }
.room-4 .room-title { color: var(--red-alert); text-shadow: 0 0 30px rgba(255,45,45,0.4); }

.room-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Room Layout */
.room-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.room-layout.reverse { direction: rtl; }
.room-layout.reverse > * { direction: ltr; }

.room-image-wrapper {
    position: sticky;
    top: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.room-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-image-wrapper:hover .room-image {
    transform: scale(1.03);
}

.image-caption {
    padding: 12px 16px;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

/* Room Description */
.room-description {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.room-description p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Walkthrough Steps */
.walkthrough-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.room-1 .walkthrough-title svg { color: var(--green-glow); }
.room-2 .walkthrough-title svg { color: var(--amber); }
.room-3 .walkthrough-title svg { color: #ff6b2d; }
.room-4 .walkthrough-title svg { color: var(--red-alert); }

.step-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
}

.step {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    transition: background 0.3s ease;
    cursor: default;
}

.step:hover {
    background: rgba(255,255,255,0.02);
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    margin-top: 2px;
}

.room-1 .step-number { border-color: rgba(57,255,20,0.2); color: var(--green-dim); }
.room-2 .step-number { border-color: rgba(255,170,0,0.2); color: var(--amber-dim); }
.room-3 .step-number { border-color: rgba(255,107,45,0.2); color: #8a3a12; }
.room-4 .step-number { border-color: rgba(255,45,45,0.2); color: #8a1a1a; }

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.interactive-badge {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, rgba(57,255,20,0.15), rgba(57,255,20,0.05));
    border: 1px solid rgba(57,255,20,0.3);
    border-radius: 100px;
    font-family: var(--font-tech);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--green-glow);
    vertical-align: middle;
    margin-left: 8px;
    font-style: normal;
}

/* Effects Grid */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.effect-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.effect-card:hover {
    border-color: rgba(57,255,20,0.2);
    background: var(--bg-card-hover);
}

.effect-icon { font-size: 1.1rem; }

/* ── Tech Section ── */
.tech-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark), #0d0d10, var(--bg-dark));
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(57,255,20,0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.tech-card h3 {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: var(--green-mid);
}

.tech-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Footer ── */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-logo-img {
    max-width: 280px;
    height: auto;
    margin: 0 auto 12px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(57,255,20,0.25));
    mix-blend-mode: lighten;
}

footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-small {
    font-family: var(--font-tech);
    font-size: 0.65rem !important;
    letter-spacing: 0.15em;
    color: var(--text-muted) !important;
    margin-top: 12px !important;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
    .room-layout,
    .room-layout.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .room-image-wrapper {
        position: relative;
        top: 0;
    }

    .room-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .effects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .room-nav-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .effects-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        padding: 40px 24px;
    }
}
