/* ======== CSS VARIABLES (Cosmic/Neon Aesthetic) ======== */
:root {
    --bg-dark: #0f172a; /* Deep Space Navy */
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --neon-cyan: #06b6d4;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    --neon-yellow: #f59e0b;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(6, 182, 212, 0.3);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    font-size: 1.1rem; /* Slightly larger for kids */
}

/* ======== ANIMATED LIGHT WAVES ======== */
.light-wave {
    position: fixed;
    width: 200vw;
    height: 100vh;
    top: -50vh;
    left: -50vw;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -5;
    animation: waveDrift 25s infinite linear;
    transform-origin: center;
}
.wave-2 { background: radial-gradient(circle at center, rgba(236, 72, 153, 0.03) 0%, transparent 60%); animation-duration: 35s; animation-direction: reverse; left: -20vw; }
.wave-3 { background: radial-gradient(circle at center, rgba(16, 185, 129, 0.04) 0%, transparent 40%); animation-duration: 40s; top: 0; left: -80vw; }

@keyframes waveDrift {
    0% { transform: rotate(0deg) scale(1) translate(0,0); }
    50% { transform: rotate(180deg) scale(1.2) translate(100px, 50px); }
    100% { transform: rotate(360deg) scale(1) translate(0,0); }
}

/* ======== UTILITIES & GLASSMORPHISM ======== */
.glass-nav {
    position: fixed; width: 100%; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px;
    background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
.nav-links a { color: #cbd5e1; text-decoration: none; margin: 0 15px; font-weight: 700; transition: color 0.3s; }
.nav-links a:hover { color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); }
.user-progress { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 20px; font-family: var(--font-heading); font-size: 0.9rem; border: 1px solid var(--neon-yellow); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
.teacher-link { display: inline-block; padding: 5px 12px; background: rgba(255,255,255,0.1); border-radius: 10px; border: 1px dotted #cbd5e1; }

.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); padding: 40px;
}
.glass-panel {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 30px;
}

.text-glow { text-shadow: 0 0 15px rgba(255,255,255,0.5); }
.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.flex-col-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

h1, h2, h3 { font-family: var(--font-heading); letter-spacing: 1px; }

.btn {
    display: inline-block; padding: 15px 35px; border-radius: 30px; font-size: 1.2rem;
    font-weight: 800; cursor: pointer; text-decoration: none; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none; outline: none; text-align: center; font-family: var(--font-body);
}
.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #0284c7); color: #fff;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.4); text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.btn-primary:active { transform: scale(0.95); }
.btn-secondary {
    background: transparent; color: #fff; border: 2px solid var(--neon-pink);
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.2);
}
.btn-secondary:hover { background: rgba(236, 72, 153, 0.1); }
.btn-outline { background: transparent; border: 2px solid var(--neon-cyan); color: #fff; padding: 10px 20px; border-radius: 20px;}
.btn-outline:hover { background: rgba(6, 182, 212, 0.1); transform: translateY(-3px); }

.pulse-glow { animation: pulseAnim 2s infinite; }
@keyframes pulseAnim {
    0% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.4), 0 0 20px rgba(6, 182, 212, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 40px rgba(6, 182, 212, 0.4); transform: scale(1.05); }
    100% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.4), 0 0 20px rgba(6, 182, 212, 0.2); transform: scale(1); }
}

.hover-bounce { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.hover-bounce:hover { transform: translateY(-10px) scale(1.05); }

/* Glowing Button hover effect */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent, transparent);
    transform: rotate(45deg); transition: 0.5s; opacity: 0; pointer-events: none;
}
.btn-glow:hover::after { opacity: 1; top: 100%; left: 100%; }


/* Card lifting globally */
.card-lift { transition: transform 0.4s ease, box-shadow 0.4s ease; border: 1px solid rgba(255,255,255,0.05); }
.card-lift:hover { transform: translateY(-8px); box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.2); border-color: rgba(6, 182, 212, 0.3); }

.hidden { display: none !important; }
.mt-top { margin-top: 30px; }
.mb-4 { margin-bottom: 25px; }


/* ======== BACKGROUND CANVAS ======== */
#quantum-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -10; opacity: 0.6; pointer-events: none; mix-blend-mode: screen; }


/* ======== QUBIT CURSOR / COMPANION ======== */
#qubit-follower {
    position: fixed; top: -50px; left: -50px; width: 40px; height: 40px; pointer-events: none; z-index: 9999;
    display: flex; justify-content: center; align-items: center; transition: opacity 0.3s;
}
.qubit-core { width: 15px; height: 15px; background: var(--neon-cyan); border-radius: 50%; box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px #fff; animation: glowCore 1.5s infinite alternate; }
@keyframes glowCore { from { transform: scale(1); } to { transform: scale(1.3); box-shadow: 0 0 25px var(--neon-cyan), 0 0 40px #fff; } }
.qubit-ring { position: absolute; border: 2px solid var(--neon-pink); border-radius: 50%; opacity: 0.6; }
.ring1 { width: 30px; height: 30px; animation: spinRing1 3s linear infinite; border-top-color: transparent; border-bottom-color: transparent; }
.ring2 { width: 40px; height: 40px; border-color: var(--neon-green); animation: spinRing2 4s linear infinite; border-left-color: transparent; border-right-color: transparent; }
@keyframes spinRing1 { 100% { transform: rotate(360deg) scale(1.1); } 50% { transform: rotate(180deg) scale(0.9); } }
@keyframes spinRing2 { 100% { transform: rotate(-360deg) scale(0.9); } 50% { transform: rotate(-180deg) scale(1.1); } }
.qubit-dialog {
    position: absolute; left: 40px; top: -20px; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    border: 1px solid var(--neon-cyan); padding: 8px 15px; border-radius: 12px; font-size: 0.95rem; color: #fff;
    white-space: nowrap; opacity: 0; transform: scale(0.8); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-origin: left bottom;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); font-weight: 700;
}
.qubit-dialog.show { opacity: 1; transform: scale(1); }


/* ======== HERO SECTION ======== */
.hero-section { min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 100px 20px 50px; position: relative; perspective: 1000px; }
.hero-content { max-width: 800px; text-align: center; z-index: 5; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero-subtext { font-size: 1.3rem; color: #cbd5e1; margin-bottom: 40px; max-width: 600px; margin-inline: auto; font-weight: 400; }

.character-intro { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; }
.char-box { background: rgba(255,255,255,0.05); padding: 15px 25px; border-radius: 15px; text-align: center; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.char-img { font-size: 3rem; margin-bottom: 10px; }
.deniz-img { text-shadow: 0 0 20px #fff; }
.qubit-img { text-shadow: 0 0 20px var(--neon-cyan); animation: floatImg 3s ease-in-out infinite; }
@keyframes floatImg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.floating-element { position: absolute; font-size: 4rem; opacity: 0.6; filter: blur(1px); animation: driftAnim 20s linear infinite; pointer-events: none; z-index: 1; }
.element-1 { top: 20%; left: 10%; } /* animated-atom applies its own animation */
.element-2 { bottom: 20%; right: 15%; animation-duration: 18s; animation-direction: reverse; filter: drop-shadow(0 0 10px var(--neon-pink)); }
.element-3 { top: 60%; left: 80%; animation-duration: 30s; filter: drop-shadow(0 0 10px var(--neon-green)); }
@keyframes driftAnim { 0% { transform: translate(0,0) rotate(0deg); } 25% { transform: translate(50px, -50px) rotate(90deg); } 50% { transform: translate(-30px, -100px) rotate(180deg); } 75% { transform: translate(-80px, 30px) rotate(270deg); } 100% { transform: translate(0,0) rotate(360deg); } }


/* ======== ANIMATED ATOM ======== */
.animated-atom { position: absolute; width: 60px; height: 60px; pointer-events: none; animation: floatAtom 10s ease-in-out infinite; filter: none !important; }
.atom-core { width: 14px; height: 14px; background: var(--neon-cyan); border-radius: 50%; position: absolute; top: 23px; left: 23px; box-shadow: 0 0 15px var(--neon-cyan); }
.atom-orbit { width: 100%; height: 100%; position: absolute; border: 2px solid rgba(6, 182, 212, 0.4); border-radius: 50%; box-sizing: border-box; }
.orbit-x { animation: spinOrbit 4s linear infinite; transform: rotateX(60deg); }
.orbit-y { animation: spinOrbit 5s linear infinite; transform: rotateX(60deg) rotateY(60deg); border-color: rgba(236, 72, 153, 0.4); }
.orbit-z { animation: spinOrbit 6s linear infinite; transform: rotateX(60deg) rotateY(120deg); border-color: rgba(16, 185, 129, 0.4); }
@keyframes spinOrbit { 100% { transform: rotateZ(360deg) rotateX(60deg); } } /* Fake 3D spin */
@keyframes floatAtom { 0% { transform: translate(0, 0); } 50% { transform: translate(30px, -40px); } 100% { transform: translate(0, 0); } }


/* ======== STORY INTRO (DIALOGUE) ======== */
.story-section { padding: 100px 20px; display: flex; justify-content: center; align-items: center; }
.glass-container { width: 100%; max-width: 700px; padding: 40px; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); }
.dialogue-box { display: flex; gap: 20px; align-items: flex-end; width: 100%; margin-bottom: 20px; }
.dialogue-box.reverse { flex-direction: row-reverse; }
.speaker-avatar { font-size: 3.5rem; background: rgba(255,255,255,0.1); border-radius: 50%; width: 80px; height: 80px; display: flex; justify-content: center; align-items: center; border: 2px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.deniz-avatar { border-color: #f59e0b; }
.qubit-avatar { border-color: var(--neon-cyan); box-shadow: 0 0 15px var(--neon-cyan); }
.speech-bubble { background: var(--glass-bg); padding: 20px 25px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); position: relative; font-size: 1.2rem; max-width: 80%; }
.deniz-speech { border-bottom-left-radius: 5px; border-color: rgba(245, 158, 11, 0.3); }
.qubit-speech { border-bottom-right-radius: 5px; border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.1); }
.instruction-text { margin-top: 40px; font-size: 1.4rem; font-weight: 700; color: var(--neon-pink); animation: glowText 2s infinite alternate; }
@keyframes glowText { from { text-shadow: 0 0 10px rgba(236, 72, 153, 0.4); } to { text-shadow: 0 0 20px rgba(236, 72, 153, 0.8), 0 0 30px #fff; } }
.down-arrow { font-size: 2.5rem; margin-top: 15px; animation: bounceArrow 1s infinite alternate; }
@keyframes bounceArrow { from { transform: translateY(0); } to { transform: translateY(15px); } }


/* ======== ADVENTURE MAP ======== */
.journey-section { padding: 80px 20px; min-height: 1200px; position: relative; }
.section-title { font-size: 2.5rem; margin-bottom: 10px; }
.text-sub { color: #94a3b8; font-size: 1.2rem; }
.journey-path-container { position: relative; width: 100%; max-width: 600px; margin: 50px auto 0; height: 850px; }
.path-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; filter: drop-shadow(0 0 10px var(--neon-cyan)); }

.level-node { position: absolute; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.slow-pulse { animation: slowLayerPulse 3s infinite; }
@keyframes slowLayerPulse { 0% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } 100% { transform: translateX(-50%) scale(1); } }

.level-btn {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 2.5rem;
    background: var(--glass-bg); border: 3px solid rgba(255,255,255,0.3);
    cursor: pointer; box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative;
}
.level-node.active .level-btn { background: var(--bg-darker); border-color: var(--neon-cyan); box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 10px var(--neon-cyan); }
.level-node.active .level-btn:hover { transform: scale(1.15) !important; border-color: #fff; }
.level-node.locked .level-btn { background: #334155; border-color: #1e293b; color: #64748b; cursor: not-allowed; filter: grayscale(1); }
.level-node.completed .level-btn { background: var(--neon-green); border-color: #fff; box-shadow: 0 0 20px var(--neon-green), inset 0 0 15px rgba(255,255,255,0.5); }

.crown-icon { position: absolute; top: -15px; right: -15px; font-size: 1.5rem; filter: drop-shadow(0 0 5px gold); animation: popCrown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes popCrown { 0% { transform: scale(0) rotate(-45deg); } 100% { transform: scale(1) rotate(20deg); } }

.level-info {
    position: absolute; top: 50%; transform: translateY(-50%); width: 220px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    padding: 10px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.level-node:hover .level-info { opacity: 1; transform: translateY(-50%) scale(1.05); border-color: var(--neon-cyan); }
.level-info.right { left: 95px; }
.level-info.left { right: 95px; text-align: right; }
.level-info h3 { font-size: 1.1rem; color: #fff; font-family: var(--font-body); margin-bottom: 2px; }
.level-info p { font-size: 0.85rem; color: #cbd5e1; }


/* ======== MODAL (GAME SIMULATION) ======== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 1; transition: opacity 0.3s; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-content { max-width: 600px; width: 90%; text-align: center; position: relative; transform: scale(1); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.hidden .modal-content { transform: scale(0.8); }
.close-btn { position: absolute; top: 15px; right: 20px; background: transparent; border: none; font-size: 1.5rem; color: rgba(255,255,255,0.5); cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: var(--neon-pink); transform: rotate(90deg); }
.interactive-sandbox { background: rgba(0,0,0,0.5); border-radius: 16px; margin: 20px 0; min-height: 250px; display: flex; justify-content: center; align-items: center; border: 1px inset rgba(6, 182, 212, 0.3); position: relative; overflow: hidden; box-shadow: inset 0 0 30px rgba(0,0,0,0.8); }

/* Mini Game Elements */
.quantum-box { width: 120px; height: 120px; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink)); border-radius: 20px; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 0 30px rgba(236, 72, 153, 0.5); position: relative; overflow: hidden; }
.quantum-box::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.quantum-box:hover::before { opacity: 0.3; }
.box-text { font-size: 4rem; font-weight: 800; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.feedback-text { font-size: 1.3rem; font-weight: 700; color: var(--neon-green); animation: fadeIn 0.5s; background: rgba(16, 185, 129, 0.1); padding: 10px; border-radius: 8px; border: 1px dashed var(--neon-green); }


/* ======== MINI GAMES PREVIEW ======== */
.games-preview-section { padding: 80px 20px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.game-card { text-align: center; position: relative; overflow: hidden; cursor: crosshair; }
.game-icon { font-size: 4rem; margin-bottom: 15px; text-shadow: 0 0 15px rgba(255,255,255,0.3); }
.game-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--neon-cyan); }
.game-card p { font-size: 0.95rem; color: #94a3b8; margin-bottom: 20px; min-height: 60px; }
/* JS interactive glow effect background */
.hover-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.game-card:hover .hover-glow { opacity: 1; }

/* ======== TEACHERS SECTION ======== */
.teachers-section {
    padding: 80px 20px;
}
.teacher-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}
.topic-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 25px;
}
.topic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.topic-card:hover::before { opacity: 1; }
.topic-card:hover {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3), 0 10px 40px rgba(0, 0, 0, 0.5);
}
.topic-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}
.topic-card:hover .topic-icon {
    transform: scale(1.15) rotate(5deg);
}
.topic-card h3 {
    font-size: 1.3rem;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    transition: text-shadow 0.3s ease;
}
.topic-card:hover h3 {
    text-shadow: 0 0 15px var(--neon-cyan);
}
.topic-card p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 15px;
    line-height: 1.5;
}
.topic-arrow {
    font-size: 1.5rem;
    color: var(--neon-pink);
    font-weight: 800;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.topic-card:hover .topic-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Teacher Modal Content Area */
.teacher-modal-content {
    margin-top: 25px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    min-height: 200px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
}
.teacher-modal-content p {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* Topic Video */
.topic-video-container {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}
.topic-video {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* ======== FOOTER ======== */
.glass-footer { margin-top: 50px; padding: 40px 20px; background: rgba(15, 23, 42, 0.4); border-top: 1px solid var(--glass-border); }
.footer-content { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-left { max-width: 500px; }
.footer-left h3 { color: var(--neon-pink); margin-bottom: 10px; }
.footer-right { text-align: right; }
.social-icons { margin-top: 15px; font-size: 1.5rem; display: flex; gap: 15px; justify-content: flex-end; }
.social-icons span { cursor: pointer; transition: transform 0.2s; }
.social-icons span:hover { transform: scale(1.2); filter: drop-shadow(0 0 10px #fff); }

/* ======== LEVEL 2: DOUBLE SLIT EXPERIMENT ======== */
.slit-experiment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
    width: 100%;
}
.slit-experiment canvas {
    border-radius: 10px;
    max-width: 100%;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.slit-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.slit-info {
    font-size: 1.1rem;
    color: var(--neon-cyan);
    font-weight: 700;
    text-align: center;
    min-height: 30px;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* ======== LEVEL 3: QUANTUM GATE PUZZLE ======== */
.gate-puzzle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
}
.puzzle-header {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.puzzle-states {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.state-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    min-width: 90px;
    text-align: center;
    transition: all 0.3s ease;
}
.start-state { border-color: var(--neon-cyan); }
.target-state { border-color: var(--neon-pink); }
.current-state { border-color: var(--neon-yellow); }
.correct-state {
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    animation: correctPulse 0.5s ease;
}
@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.state-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.state-value {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.state-arrow { font-size: 1.5rem; }
.applied-gates {
    font-size: 1rem;
    color: #cbd5e1;
    min-height: 30px;
}
.gate-chip {
    display: inline-block;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid var(--neon-cyan);
    padding: 3px 10px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin: 0 2px;
}
.gate-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.gate-btn {
    font-family: var(--font-heading) !important;
    font-size: 1rem !important;
    min-width: 120px;
    transition: all 0.2s ease;
}
.gate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
.puzzle-hint {
    font-size: 0.95rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}

/* ======== LEVEL 4: ENTANGLEMENT MEMORY GAME ======== */
.entangle-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 15px;
    width: 100%;
}
.entangle-stats {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 380px;
    width: 100%;
}
.memory-card {
    aspect-ratio: 1;
    perspective: 600px;
    cursor: pointer;
}
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}
.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.3s ease;
}
.card-front {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #64748b;
}
.card-front:hover {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    border-color: var(--neon-cyan);
}
.card-back {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    transform: rotateY(180deg);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}
.memory-card.matched .card-back {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
.memory-card.matched {
    cursor: default;
}

/* ======== LEVEL 5: QUANTUM SHIELD GAME ======== */
.shield-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
}
.shield-progress {
    width: 100%;
    max-width: 350px;
}
.shield-bar {
    width: 100%;
    height: 20px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}
.shield-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #10b981);
    border-radius: 8px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}
.shield-text {
    text-align: center;
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--neon-cyan);
}
.photon-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.photon-count {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--neon-yellow);
}
.incoming-photon {
    font-size: 4rem;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border: 3px solid var(--neon-cyan);
    border-radius: 50%;
}
.photon-hint {
    font-size: 1rem;
    color: #94a3b8;
    font-style: italic;
}
.filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 350px;
    width: 100%;
}
.filter-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px;
    padding: 15px !important;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.filter-icon { font-size: 1.8rem; }
.filter-name { font-size: 0.85rem; color: #94a3b8; }
.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}
.filter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}
.score-display {
    font-size: 0.95rem;
    color: #94a3b8;
    font-family: var(--font-heading);
}

/* Fade-in for GSAP */
.section-fade-in { opacity: 0; }

@media (max-width: 768px) {
    .glass-nav { flex-direction: column; gap: 10px; padding: 10px; }
    .hero-content h1 { font-size: 2.5rem; }
    .journey-path-container { height: 1000px; }
    .dialogue-box, .dialogue-box.reverse { flex-direction: column; align-items: center; text-align: center; }
    .speech-bubble { max-width: 100%; border-radius: 20px; }
    .deniz-speech::after, .qubit-speech::after { display: none; }
    .level-info.right, .level-info.left { position: relative; left: 0; right: 0; top: 10px; transform: none; text-align: center; opacity: 1; display: none; } /* Hide info on small screens to save space. Could use a click to show. */
    .memory-grid { grid-template-columns: repeat(3, 1fr); }
    .puzzle-states { gap: 8px; }
    .state-box { padding: 10px 12px; min-width: 70px; }
    .state-value { font-size: 1.2rem; }
    .filter-buttons { grid-template-columns: 1fr 1fr; }
}
