/* --- CSS VARIABLES & THEME --- */
:root {
    --bg-dark: #0b0d17;
    --neon-blue: #00f3ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff00ea;
    --glass-bg: rgba(20, 25, 45, 0.6);
    --glass-border: rgba(0, 243, 255, 0.3);
    --text-main: #e2e8f0;
}

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

body {
    font-family: 'Fredoka', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: crosshair; /* Detective feel */
}

h1, h2, h3, .neon-text, .neon-title {
    font-family: 'Orbitron', sans-serif;
}

/* --- CUSTOM MOUSE GLOW --- */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,243,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
}

/* --- BACKGROUND CANVAS --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 13, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 1000;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-blue);
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-blue);
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
}

/* --- LAYOUT & SECTIONS --- */
.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-desc {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- GLASSMORPHISM COMPONENTS --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--neon-purple);
    border-color: var(--neon-purple);
}

.glow-card {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0,243,255,0.2);
}

/* --- TYPOGRAPHY & BUTTONS --- */
.neon-title {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-blue);
    margin-bottom: 30px;
    text-align: center;
}

.neon-btn {
    display: inline-block;
    background: transparent;
    color: var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 30px;
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 10px inset var(--neon-blue), 0 0 10px var(--neon-blue);
    transition: 0.3s;
    margin-top: 20px;
}

.neon-btn:hover {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}

/* --- HERO SPECIFIC --- */
#hero .hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple);
}

.floating-dna {
    font-size: 6rem;
    position: absolute;
    top: 20%;
    right: 10%;
    animation: float 4s ease-in-out infinite;
    opacity: 0.6;
    z-index: 1;
}

/* --- GRIDS & SPLITS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.big-dna {
    font-size: 8rem;
    text-align: center;
}

/* --- CRIME SCENE (INTERACTIVE) --- */
.interactive-scene {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scene-background {
    position: relative;
    width: 100%;
    height: 350px;
    background: radial-gradient(circle, #1a1c2e 0%, #080a12 100%);
    border: 2px dashed var(--neon-blue);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.scanline {
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--neon-blue);
    opacity: 0.5;
    box-shadow: 0 0 15px var(--neon-blue);
    animation: scan 3s linear infinite;
}

.clue {
    position: absolute;
    font-size: 2.5rem;
    cursor: pointer;
    filter: drop-shadow(0 0 10px var(--neon-pink));
    animation: pulse 2s infinite;
    transition: transform 0.2s;
}

.clue:hover {
    transform: scale(1.3);
}

.inventory-panel {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--neon-purple);
}

#inventory-list {
    list-style: none;
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}

#inventory-list li {
    background: var(--glass-bg);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
    font-weight: bold;
}

.contamination-warning {
    color: #ffaa00;
    font-size: 0.9rem;
    background: rgba(255, 170, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #ffaa00;
}

/* --- PCR GAME --- */
.dna-tube {
    width: 100px;
    height: 150px;
    border: 4px solid var(--neon-blue);
    border-top: none;
    border-radius: 0 0 50px 50px;
    margin: 0 auto 20px auto;
    position: relative;
    background: rgba(0,243,255,0.1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    overflow: hidden;
}

.dna-particles {
    font-size: 2rem;
    transition: all 0.5s;
    letter-spacing: -10px;
    word-wrap: break-word;
    text-align: center;
    line-height: 1;
}

/* --- GEL ELECTROPHORESIS GAME --- */
.gel-machine {
    background: rgba(0,0,0,0.6);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.electrodes {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.neg { color: var(--text-main); }
.pos { color: var(--neon-pink); text-shadow: 0 0 5px var(--neon-pink); }

.gel-track-container {
    height: 300px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    position: relative;
    padding: 10px;
}

.track {
    width: 60px;
    height: 100%;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    position: relative;
    border-radius: 5px;
}

.dna-band {
    background: var(--neon-purple);
    height: 10px;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    box-shadow: 0 0 10px var(--neon-purple);
    color: transparent; /* hide text initially */
    font-size: 0.6rem;
    text-align: center;
    line-height: 10px;
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dna-band.large { width: 50px; left: 5px; }
.dna-band.medium { width: 35px; left: 12.5px; }
.dna-band.small { width: 20px; left: 20px; }

.dna-band.run.large { transform: translateY(60px); color: white; }
.dna-band.run.medium { transform: translateY(150px); color: white; }
.dna-band.run.small { transform: translateY(260px); color: white; }

/* --- MATCHING GAME --- */
.matching-game {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.barcode {
    width: 100%;
    height: 150px;
    background: #111;
    border: 1px solid #333;
    margin-top: 15px;
    position: relative;
}

.line {
    position: absolute;
    width: 100%;
    height: 8px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}

.l1 { top: 20px; }
.l2 { top: 60px; }
.l3 { top: 90px; }
.l4 { top: 130px; }

.suspects-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.suspect {
    cursor: pointer;
    flex: 1;
    max-width: 250px;
}

.suspect:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

.suspect.selected-correct {
    border-color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
}

.suspect.selected-wrong {
    border-color: #ff0000;
    box-shadow: 0 0 20px #ff0000;
    animation: shake 0.5s;
}

/* --- QUIZ --- */
.quiz-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.quiz-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid var(--neon-blue);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    transition: 0.3s;
}

.quiz-btn:hover {
    background: rgba(0, 243, 255, 0.2);
}

.badge {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    box-shadow: 0 0 20px var(--neon-purple);
    animation: pulse 2s infinite;
}

/* --- UTILS & ANIMATIONS --- */
.hidden { display: none !important; }
.mt-2 { margin-top: 20px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--neon-pink)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 25px var(--neon-pink)); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

/* Responsive */
@media (max-width: 768px) {
    #hero h1 { font-size: 2.5rem; }
    .split-layout { grid-template-columns: 1fr; }
    .suspects-grid { flex-direction: column; align-items: center; }
    .nav-links { display: none; /* simple mobile fix */ }
}