/* CSS Custom Properties for Theme */
:root {
    /* Colors */
    --bg-primary: #0B0A10; /* Very deep charcoal/indigo */
    --bg-secondary: #161420; /* Slightly lighter for cards */
    --text-main: #FDFDFD; /* Pure white for readability */
    --text-muted: #A09EAB; /* Muted warm gray */
    
    /* Brand & Accent Colors - Sunset Neon */
    --color-primary: #FF5E62; /* Vibrant Coral/Sunset */
    --color-secondary: #FF9966; /* Warm Orange */
    --color-accent-1: #B066FE; /* Neon Purple */
    --color-accent-2: #FFD166; /* Bright Yellow */
    --color-accent-3: #06D6A0; /* Mint Green (for contrast) */
    --color-accent-4: #EF476F; /* Deep Pink */

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #FF5E62 0%, #FF9966 100%); /* Coral to Orange */
    --gradient-2: linear-gradient(135deg, #B066FE 0%, #FF5E62 100%); /* Purple to Coral */
    --gradient-3: linear-gradient(135deg, #06D6A0 0%, #118AB2 100%); /* Mint to Deep Blue */
    --gradient-4: linear-gradient(135deg, #EF476F 0%, #B066FE 100%); /* Pink to Purple */
    --gradient-bg: linear-gradient(135deg, #0B0A10 0%, #161420 100%);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 40px rgba(255, 94, 98, 0.2); /* Coral tint */

    /* Layout & Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 9999px;
    --container-max: 1100px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(var(--color-secondary) 0.5px, transparent 0.5px), radial-gradient(var(--color-secondary) 0.5px, var(--bg-primary) 0.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    background-attachment: fixed;
    opacity: 0.98;
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Reusable Utility Classes */
.text-center { text-align: center; }
.highlight { color: var(--color-primary); background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bg-gradient-1 { background: var(--gradient-1); }
.bg-gradient-2 { background: var(--gradient-2); }
.bg-gradient-3 { background: var(--gradient-3); }
.bg-gradient-4 { background: var(--gradient-4); }

.box-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.box-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.title-icon {
    font-size: 0.8em;
    color: var(--color-primary);
    margin-left: 0.5rem;
    display: inline-block;
    animation: bounce-gentle 3s infinite ease-in-out;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 139, 167, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 139, 167, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}


/* Layout Components */
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 10, 16, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: padding var(--transition-base);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

@keyframes playful-wiggle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-3deg); }
    75% { transform: translateY(-3px) rotate(3deg); }
}

.nav-links a.nav-playful {
    background: var(--gradient-1);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 10px rgba(255, 139, 167, 0.3);
    animation: playful-wiggle 3s infinite ease-in-out;
}

.nav-links a.nav-playful i {
    font-size: 1.1em;
}

.nav-links a.nav-playful::after {
    display: none;
}

.nav-links a.nav-playful:hover {
    animation: none;
    transform: scale(1.1) translateY(-2px);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 139, 167, 0.5);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Sections Global */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem; /* Account for navbar */
    position: relative;
    overflow: hidden;
}

.hero-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-3);
    top: -100px;
    left: -100px;
    animation: float 8s infinite ease-in-out;
}

.hero-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    bottom: 50px;
    right: -50px;
    animation: float 10s infinite ease-in-out reverse;
    opacity: 0.3;
}

.hero-shapes .shape-3 {
    width: 250px;
    height: 250px;
    background: var(--color-accent-4);
    top: 30%;
    right: 15%;
    animation: float 12s infinite ease-in-out 1s;
    opacity: 0.4;
}

.hero-content {
    max-width: 800px;
}

.hero-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-1);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--bg-secondary);
    position: relative;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%;
    border: 2px dashed var(--color-primary);
    animation: spin 10s linear infinite;
    opacity: 0.5;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.hero-headline {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}



.metrics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.metric-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 220px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.metric-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

#confetti-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* About Section */
.about-section {
    position: relative;
}

.about-content {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.highlight-tag {
    background: rgba(255, 139, 167, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.highlight-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 24px;
    height: 100%; width: 2px;
    background: rgba(0,0,0,0.05);
    border-radius: var(--radius-pill);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

.timeline-icon {
    position: absolute;
    top: 0; left: 0;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.timeline-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.company-name {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-achievements {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.timeline-achievements li {
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    width: 100%;
    max-width: 310px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skill-category-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(255, 139, 167, 0.08);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 139, 167, 0.15);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 139, 167, 0.3);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    cursor: pointer;
    text-align: left;
    height: auto;
    display: flex;
    flex-direction: column;
}

.portfolio-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    background: rgba(255, 139, 167, 0.1);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.portfolio-card:hover .portfolio-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.portfolio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.portfolio-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.portfolio-expand {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
    display: none;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.portfolio-card:hover .portfolio-expand,
.portfolio-card:focus .portfolio-expand {
    display: block;
}

/* Growth Playground Section */
.playground-section {
    position: relative;
    padding: 6rem 0 6rem;
    background-color: #1A1325;
    background-image: 
        radial-gradient(circle at top right, rgba(176, 102, 254, 0.15), transparent 400px),
        radial-gradient(circle at bottom left, rgba(255, 94, 98, 0.1), transparent 400px),
        repeating-linear-gradient(45deg, rgba(255,255,255, 0.02), rgba(255,255,255, 0.02) 2px, transparent 2px, transparent 10px);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin: 3rem 0;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

.playground-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.playground-module {
    display: flex;
    flex-direction: column;
}

.playground-module h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.module-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.module-content {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.module-result {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 139, 167, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 139, 167, 0.2);
    animation: fadeIn 0.5s ease-in;
}

.module-result p {
    font-style: italic;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.hidden {
    display: none !important;
}

.featured-game {
    grid-column: 1 / -1;
}

/* Module 1: Growth Lab */
.plant-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 0.5rem;
    align-items: flex-end;
    width: 100%;
}

.droplets {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 30px;
    z-index: 2;
}

.droplets-left {
    align-items: flex-end; /* Align right towards the plant */
    max-width: 100%;
}

.droplets-right {
    align-items: flex-start; /* Align left towards the plant */
    max-width: 100%;
}

.droplet {
    background: white;
    border: 2px solid var(--color-accent-2);
    color: var(--text-main);
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
}

.droplet:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.droplet.dropped {
    opacity: 0;
    transform: translateY(40px) scale(0.5);
    pointer-events: none;
}

/* Custom droplet shapes */
.droplet-water { border-radius: 0 50px 50px 50px; background: #E0F2FE; border-color: #38BDF8; color: #0284C7; }
.droplet-sun { border-radius: 50px; background: #FEF9C3; border-color: #FACC15; color: #CA8A04; box-shadow: 0 0 15px rgba(250, 204, 21, 0.4); }
.droplet-soil { border-radius: 12px; background: #FFEDD5; border-color: #FB923C; color: #9A3412; }
.droplet-fertilizer { border-radius: 30px 30px 10px 10px; background: #DCFCE7; border-color: #4ADE80; color: #166534; }
.droplet-insight { border-radius: 20px; background: #CCFBF1; border-color: #2DD4BF; color: #0F766E; }
.droplet-care { border-radius: 30px; background: #FCE7F3; border-color: #F472B6; color: #9D174D; }
.droplet-seed { border-radius: 100px / 50px; background: #ECFCCB; border-color: #A3E635; color: #3F6212; }

.plant-visual {
    position: relative;
    height: 220px;
    width: 100px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin: 0 auto;
}

.stem-container {
    position: absolute;
    bottom: 0px;
    width: 60px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pot {
    width: 60px;
    height: 50px;
    background: linear-gradient(135deg, #e6b980 0%, #eacda3 100%);
    border-radius: 4px 4px 12px 12px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pot::before {
    content: '';
    position: absolute;
    top: 0; left: -2px; right: -2px;
    height: 8px;
    background: #d4a373;
    border-radius: 2px;
}

.stem-container::after {
    content: '';
    position: absolute;
    bottom: 45px;
    width: 6px;
    height: var(--plant-height, 0px);
    background: linear-gradient(to top, #7CB342, #8BC34A);
    border-radius: 3px;
    transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

/* Add leaves via JS dynamic class or pseudo elements scaling */
.leaf {
    position: absolute;
    width: 32px; height: 18px; /* Slightly longer, organic leaf shape */
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
    z-index: 4;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0);
}

.flower {
    position: absolute;
    width: 40px; height: 40px;
    background: radial-gradient(circle, #FDE047 30%, #ec4899 35%, #f472b6 100%);
    border-radius: 50%;
    z-index: 6;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0) rotate(-180deg);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}
.flower.bloomed {
    transform: scale(1) rotate(0deg);
}

/* Module 2: Compass */
.compass-container {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.compass-side {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 32%;
}

.compass-arrow {
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bad-arrow {
    background: #FFEbee;
    color: #c62828;
}
.good-arrow {
    background: #E8F5E9;
    color: #2E7D32;
    transform: translateX(-10px);
    opacity: 0;
}
.good-arrow.visible {
    transform: translateX(0);
    opacity: 1;
}

.compass-visual {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.compass-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #ef4444;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s linear, border-color 0.3s;
    background: white;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.compass-needle {
    width: 4px;
    height: 60px;
    background: #ef4444;
    border-radius: 2px;
    position: relative;
    transition: background 0.3s;
}

.compass-needle::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -4px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #ef4444;
    transition: border-bottom-color 0.3s;
}

.compass-ring.aligned {
    border-color: var(--color-primary);
    transform: rotate(90deg);
}
.compass-ring.aligned .compass-needle {
    background: var(--color-primary);
}
.compass-ring.aligned .compass-needle::after {
    border-bottom-color: var(--color-primary);
}

.compass-ring.success-green {
    border-color: #22c55e !important;
}

.compass-ring.success-green .compass-needle {
    background: #22c55e !important;
}

.compass-ring.success-green .compass-needle::after {
    border-bottom-color: #22c55e !important;
}

#compass-btn {
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

#compass-btn.success-green {
    background-color: #22c55e !important;
    border-color: #16a34a !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4) !important;
}

/* Module 3: Machine */
.machine-container {
    justify-content: flex-start;
}
.ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    z-index: 10;
}

.ingredient {
    background: white;
    border: 1px dashed var(--color-accent-2);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.ingredient:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.ingredient.added {
    opacity: 0.3;
    pointer-events: none;
    background: #f3f4f6;
    border-color: transparent;
    color: var(--text-muted);
    transform: scale(0.95);
    box-shadow: none;
}

.machine-visual {
    position: relative;
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: auto;
}

.gears {
    position: absolute;
    top: -10px;
    font-size: 2rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    z-index: 1;
}

.gear {
    transition: transform 2s linear, color 0.5s;
}

.machine-visual.running .gear-1 { transform: rotate(360deg); color: var(--color-primary); }
.machine-visual.running .gear-2 { transform: rotate(-360deg); color: var(--color-accent-2); }

.machine-body {
    font-size: 4rem;
    color: var(--text-main);
    z-index: 2;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    background: var(--bg-secondary);
    border-radius: 50%;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.machine-visual.running .machine-body {
    color: var(--color-primary);
    animation: machine-shake 0.5s infinite alternate;
}

@keyframes machine-shake {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-3px) scale(1.05); }
}

.chemical-bubble {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    bottom: 40%;
    left: 45%;
    z-index: 10;
    pointer-events: none;
    animation: chemical-pop 0.8s ease-out forwards;
    box-shadow: 0 0 10px currentColor;
}

@keyframes chemical-pop {
    0% { transform: translate(0, 0) scale(0.5); opacity: 1; }
    50% { transform: translate(var(--dx), -30px) scale(1.2); opacity: 0.8; }
    100% { transform: translate(calc(var(--dx) * 1.5), -60px) scale(0.1); opacity: 0; }
}

.machine-output-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.mo-stat {
    background: var(--gradient-1);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.85rem;
    animation: fadeUpIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: translateY(15px);
    box-shadow: 0 4px 10px rgba(255, 139, 167, 0.3);
}

@keyframes fadeUpIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Module 4: Puzzle */
.puzzle-container {
    padding: 1.5rem 1rem;
}

.puzzle-pieces {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 40px;
}

.puzzle-piece {
    background: var(--gradient-3);
    color: var(--text-main);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: grab;
    user-select: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, opacity 0.2s;
}

.puzzle-piece:active { cursor: grabbing; transform: scale(0.95); }
.puzzle-piece.dragging { opacity: 0.5; }
.puzzle-piece.placed { opacity: 0; pointer-events: none; transform: scale(0); }

.graph-visual {
    width: 100%;
    height: 140px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    transition: background 0.3s, border-color 0.3s;
}

.graph-visual.drag-over {
    background: rgba(161, 201, 241, 0.1);
    border-color: var(--color-accent-2);
}

.graph-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    padding: 10px;
}

#puzzle-graph-path {
    transition: d 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.6s, stroke-width 0.6s;
}

.drop-hint {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .compass-container { flex-direction: column; align-items: center; }
    .compass-side { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .compass-arrow { flex: 1 1 40%; }
}

/* Creative Section */
.creative-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.creative-card {
    text-align: center;
}

.creative-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white;
}

.creative-card h3 {
    margin-bottom: 0.5rem;
}

.creative-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    margin-top: 4rem;
}

.contact-headline {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-subtext {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.footer-shapes .shape-4 {
    width: 300px; height: 300px;
    background: var(--color-accent-2);
    bottom: -100px; left: -100px;
}

.footer-shapes .shape-5 {
    width: 250px; height: 250px;
    background: var(--color-accent-4);
    top: -50px; right: -50px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--bg-primary);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-headline { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 3.5rem; }
    .timeline-icon { width: 40px; height: 40px; font-size: 1rem; }
    
    section { padding: 5rem 0; }
    .contact-headline { font-size: 2.2rem; }
}
