/* ===== CSS Variables & Root Styles ===== */
:root {
    --milk-white: #f8f4f0;
    --milk-cream: #fff9f0;
    --casein-blue: #4a90d9;
    --casein-blue-glow: rgba(74, 144, 217, 0.5);
    --acid-green: #4ade80;
    --acid-green-glow: rgba(74, 222, 128, 0.5);
    --neutral-purple: #a78bfa;
    --curd-yellow: #fcd34d;
    --whey-cyan: #67e8f9;
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --surface-glass-hover: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-bright: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-milk: linear-gradient(180deg, #fff9f0 0%, #f0e6d8 100%);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.hidden {
    display: none !important;
}

/* ===== Animated Background ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #1a1a3e 0%, var(--bg-primary) 70%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-secondary);
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-success);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }

    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* ===== Header Styles ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
    animation: wobble 3s infinite ease-in-out;
}

@keyframes wobble {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.nav-pills {
    display: flex;
    gap: var(--space-sm);
    background: var(--surface-glass);
    padding: var(--space-xs);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

.nav-pill {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-pill:hover {
    color: var(--text-primary);
    background: var(--surface-glass-hover);
}

.nav-pill.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* ===== Container & Hero ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.hero-section {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.main-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-family: var(--font-display);
    margin-bottom: var(--space-lg);
}

.title-gradient {
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(90deg, var(--text-secondary), var(--text-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-highlight {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Stage Indicator ===== */
.stage-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.stage {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-glass);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    opacity: 0.5;
    transition: all var(--transition-base);
}

.stage.active {
    opacity: 1;
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.stage.completed {
    opacity: 1;
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.5);
}

.stage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all var(--transition-base);
}

.stage.active .stage-dot {
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    animation: pulse 2s infinite;
}

.stage.completed .stage-dot {
    background: var(--acid-green);
}

.stage span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stage-line {
    width: 40px;
    height: 2px;
    background: var(--border-glass);
    border-radius: var(--radius-full);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* ===== Simulation Container ===== */
.simulation-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 900px) {
    .simulation-container {
        grid-template-columns: 1fr;
    }
}

.beaker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

/* ===== Beaker Styles ===== */
.beaker {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

.beaker-rim {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 10px 10px 0 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
}

.milk-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 350px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 0 0 20px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.3);
}

#simulationCanvas {
    width: 100%;
    height: 100%;
    background: var(--gradient-milk);
    transition: background var(--transition-slow);
}

.milk-container.curdling #simulationCanvas {
    background: linear-gradient(180deg, #e8e0d4 0%, #d4c8b8 50%, #c0b0a0 100%);
}

.whey-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(103, 232, 249, 0.3) 30%, rgba(103, 232, 249, 0.5) 100%);
    transition: height 2s ease-out;
}

.whey-layer.visible {
    height: 30%;
}

.beaker-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 0 0 10px 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: none;
}

.beaker-label {
    position: absolute;
    right: -60px;
    bottom: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

/* ===== pH Meter ===== */
.ph-meter {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    width: 280px;
    backdrop-filter: blur(10px);
}

.ph-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.ph-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.ph-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ph-bar {
    position: relative;
    height: 20px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 15%, #eab308 30%, #84cc16 45%, #22c55e 55%, #14b8a6 70%, #0ea5e9 85%, #6366f1 100%);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.ph-indicator {
    position: absolute;
    top: 50%;
    left: 48.5%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 28px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: left var(--transition-slow);
}

.ph-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Control Panel ===== */
.control-panel {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(20px);
    height: fit-content;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.control-group {
    margin-bottom: var(--space-lg);
}

.control-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.control-group label span {
    float: right;
    font-weight: 600;
    color: var(--acid-green);
}

/* Acid Buttons */
.acid-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.acid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--surface-glass);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.acid-btn:hover {
    background: var(--surface-glass-hover);
    border-color: var(--border-glass-bright);
    transform: translateY(-2px);
}

.acid-btn.active {
    background: rgba(74, 222, 128, 0.2);
    border-color: var(--acid-green);
    color: var(--acid-green);
}

.acid-icon {
    font-size: 1.5rem;
}

/* Sliders */
.slider {
    width: 100%;
    height: 8px;
    background: var(--surface-glass);
    border-radius: var(--radius-full);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
}

.action-btn.secondary {
    background: var(--surface-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.action-btn.secondary:hover {
    background: var(--surface-glass-hover);
}

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

/* ===== Info Cards ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.info-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    opacity: 0.4;
    transform: scale(0.98);
    transition: all var(--transition-base);
}

.info-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.card-icon {
    font-size: 2rem;
}

.card-header h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.card-content strong {
    color: var(--text-primary);
}

.key-point {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-md);
    border-left: 3px solid #667eea;
    margin-bottom: var(--space-md);
}

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

.molecule-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.preview-protein {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    border-radius: 50%;
    min-width: 70px;
    min-height: 70px;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
}

.preview-protein.negative {
    background: var(--casein-blue);
    box-shadow: 0 0 20px var(--casein-blue-glow);
}

.preview-protein.positive {
    background: var(--acid-green);
    box-shadow: 0 0 20px var(--acid-green-glow);
}

.preview-protein.neutral {
    background: var(--neutral-purple);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.preview-protein .charge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: white;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.repel-arrows,
.attract-arrows,
.arrow-right {
    font-size: 1.5rem;
    color: var(--text-muted);
    animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.result-visual {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.curd-preview {
    width: 60px;
    height: 60px;
    background: var(--curd-yellow);
    border-radius: 40% 60% 50% 50%;
    box-shadow: 0 0 20px rgba(252, 211, 77, 0.5);
}

.whey-preview {
    width: 60px;
    height: 60px;
    background: var(--whey-cyan);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(103, 232, 249, 0.5);
}

/* ===== Learn Section ===== */
.learn-section {
    padding: var(--space-3xl) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.learn-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.learn-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-bright);
    box-shadow: var(--shadow-lg);
}

.learn-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.learn-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.learn-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.learn-card strong {
    color: var(--acid-green);
}

.fun-facts {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.fun-facts h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.facts-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.fact-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-md);
    border-left: 3px solid #667eea;
}

.fact-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.fact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Quiz Section ===== */
.quiz-section {
    padding: var(--space-3xl) 0;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-progress {
    margin-bottom: var(--space-xl);
}

.progress-bar {
    height: 8px;
    background: var(--surface-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    width: 20%;
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quiz-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(10px);
}

.question-number {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.question-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.option-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-glass);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
}

.option-btn:hover:not(:disabled) {
    background: var(--surface-glass-hover);
    border-color: var(--border-glass-bright);
    transform: translateX(5px);
}

.option-btn.correct {
    background: rgba(74, 222, 128, 0.2);
    border-color: var(--acid-green);
    color: var(--acid-green);
}

.option-btn.incorrect {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--surface-glass);
    border-radius: 50%;
    font-weight: 600;
}

.quiz-result {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.result-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
}

.result-score {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.result-score span {
    font-weight: 700;
    color: var(--acid-green);
    font-size: 1.5rem;
}

/* ===== Summary Section ===== */
.summary-section {
    padding: var(--space-2xl) 0;
}

.summary-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(10px);
}

.summary-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.analogy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.analogy-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    min-width: 150px;
}

.analogy-icon {
    font-size: 2.5rem;
}

.analogy-step p {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.analogy-step small {
    color: var(--text-muted);
}

.analogy-arrow {
    font-size: 2rem;
    font-weight: 700;
    color: var(--acid-green);
}

/* ===== Footer ===== */
.main-footer {
    text-align: center;
    padding: var(--space-2xl);
    border-top: 1px solid var(--border-glass);
    background: var(--surface-glass);
}

.main-footer p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.footer-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .nav-pills {
        width: 100%;
        justify-content: center;
    }

    .title-highlight {
        font-size: 2.5rem;
    }

    .beaker {
        width: 250px;
        height: 340px;
    }

    .beaker-rim {
        width: 270px;
    }

    .milk-container {
        width: 250px;
        height: 300px;
    }

    .analogy-visual {
        flex-direction: column;
    }

    .analogy-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-md);
    }

    .title-highlight {
        font-size: 2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}