/* Game Making - Interactive Game Dev Learning */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-cream: #FDF8F3;
    --bg-white: #FFFFFF;
    --bg-warm: #FFF9F0;
    --bg-code: #2D2A3E;

    --orange-primary: #FF6B35;
    --orange-light: #FF8C5A;
    --orange-dark: #E55A2B;
    --purple-accent: #6B5CE7;
    --teal-accent: #2EC4B6;
    --yellow-accent: #FFD23F;
    --pink-accent: #FF6B9D;
    --green-accent: #22c55e;
    --red-accent: #ef4444;

    --text-dark: #2D2A3E;
    --text-medium: #5A5672;
    --text-light: #8E8AA0;
    --text-white: #FFFFFF;

    --border-light: #E8E4DE;
    --shadow-soft: 0 4px 20px rgba(45, 42, 62, 0.08);
    --shadow-medium: 0 8px 30px rgba(45, 42, 62, 0.12);
    --shadow-strong: 0 15px 50px rgba(45, 42, 62, 0.15);

    --gradient-warm: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    --gradient-cool: linear-gradient(135deg, #6B5CE7 0%, #2EC4B6 100%);
    --gradient-game: linear-gradient(135deg, #6B5CE7 0%, #FF6B9D 100%);

    --navbar-bg: rgba(255, 255, 255, 0.95);
    --theme-transition: 0.4s ease;
}

[data-theme="dark"] {
    --bg-cream: #1a1a2e;
    --bg-white: #16213e;
    --bg-warm: #1a1a2e;
    --bg-code: #0f0f1a;
    --text-dark: #e4e4e7;
    --text-medium: #a0a0b0;
    --text-light: #6b6b8d;
    --border-light: #2a2a4a;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.5);
    --navbar-bg: rgba(22, 33, 62, 0.95);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(107, 92, 231, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 157, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(46, 196, 182, 0.03) 0%, transparent 50%);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 100px; right: 25px;
    z-index: 1001;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-white);
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--purple-accent);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-strong);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }
[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-brand .bagel-icon { font-size: 1.8rem; }

.nav-brand span {
    background: var(--gradient-game);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover { color: var(--purple-accent); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-game);
    transition: width 0.3s ease;
}

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

.nav-cta {
    background: var(--gradient-game);
    color: var(--text-white) !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 80px 80px;
    gap: 60px;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--purple-accent);
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
}

.hero-badge i { color: var(--pink-accent); }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    background: var(--gradient-game);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-game);
    color: var(--text-white);
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(107, 92, 231, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(107, 92, 231, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--purple-accent);
    color: var(--purple-accent);
}

.hero-stats { display: flex; gap: 40px; }

.hero-stat { display: flex; flex-direction: column; }

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple-accent);
}

.hero-stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Hero Game Preview */
.hero-visual { flex-shrink: 0; }

.game-preview {
    background: var(--bg-code);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-strong);
}

.game-screen {
    width: 350px;
    height: 250px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.game-player {
    width: 30px;
    height: 30px;
    background: var(--teal-accent);
    border-radius: 4px;
    position: absolute;
    bottom: 60px;
    left: 50px;
    animation: playerBounce 1s ease-in-out infinite;
}

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

.game-platform {
    width: 100px;
    height: 15px;
    background: var(--purple-accent);
    border-radius: 4px;
    position: absolute;
    bottom: 50px;
    left: 30px;
}

.game-platform.platform-2 {
    width: 80px;
    bottom: 100px;
    left: 150px;
    background: var(--pink-accent);
}

.game-coin {
    width: 15px;
    height: 15px;
    background: var(--yellow-accent);
    border-radius: 50%;
    position: absolute;
    animation: coinFloat 1.5s ease-in-out infinite;
}

.coin-1 { top: 80px; left: 180px; animation-delay: 0s; }
.coin-2 { top: 130px; left: 220px; animation-delay: 0.3s; }
.coin-3 { top: 60px; left: 280px; animation-delay: 0.6s; }

@keyframes coinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.game-controls span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-controls i {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 8px;
    border-radius: 4px;
}

/* Sections */
.section {
    padding: 100px 80px;
    position: relative;
    z-index: 1;
}

.section-white { background: var(--bg-white); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-cream);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-accent);
    margin-bottom: 15px;
}

.section-white .section-label { background: var(--bg-warm); }

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Basics Grid */
.basics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.basic-card {
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

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

.basic-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-game);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.basic-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.basic-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Concept Demos */
.concept-demos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.concept-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.concept-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--purple-accent);
    margin-bottom: 10px;
}

.concept-card > p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

/* Game Loop Demo */
.game-loop-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: var(--bg-cream);
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
}

.loop-phase {
    text-align: center;
    padding: 15px;
    background: var(--bg-white);
    border-radius: 10px;
    min-width: 100px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.loop-phase.active {
    border-color: var(--purple-accent);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(107, 92, 231, 0.3);
}

.phase-icon {
    font-size: 1.5rem;
    color: var(--purple-accent);
    margin-bottom: 8px;
}

.phase-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.phase-desc {
    font-size: 0.75rem;
    color: var(--text-light);
}

.loop-arrow {
    color: var(--purple-accent);
    font-size: 1.2rem;
}

.loop-back {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.loop-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.loop-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--gradient-game);
    color: white;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loop-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.fps-counter {
    font-weight: 600;
    color: var(--teal-accent);
}

/* Collision Demo */
.collision-demo {
    height: 200px;
    background: var(--bg-cream);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.collision-box {
    width: 60px;
    height: 60px;
    background: var(--purple-accent);
    border-radius: 8px;
    position: absolute;
    top: 70px;
    left: 30px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    user-select: none;
    transition: box-shadow 0.3s ease;
}

.collision-box:active { cursor: grabbing; }

.collision-box.colliding {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    background: var(--red-accent);
}

.collision-target {
    width: 80px;
    height: 80px;
    background: var(--teal-accent);
    border-radius: 8px;
    position: absolute;
    top: 60px;
    right: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.collision-target.hit {
    animation: shake 0.3s ease;
}

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

.collision-status {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: var(--bg-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collision-status.hit {
    background: var(--red-accent);
    color: white;
}

.collision-status.hit i { color: white; }

/* Sprite Demo */
.sprite-demo {
    text-align: center;
}

.sprite-display {
    height: 100px;
    background: var(--bg-cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.sprite-character {
    width: 64px;
    height: 64px;
    background: var(--purple-accent);
    border-radius: 8px;
    position: relative;
}

.sprite-character::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

.sprite-character.frame-1 { background: var(--pink-accent); }
.sprite-character.frame-2 { background: var(--teal-accent); }
.sprite-character.frame-3 { background: var(--yellow-accent); }

.sprite-sheet-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.sprite-frame {
    width: 40px;
    height: 40px;
    background: var(--bg-cream);
    border: 2px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.sprite-frame.active {
    border-color: var(--purple-accent);
    background: var(--purple-accent);
    color: white;
}

.sprite-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sprite-btn {
    padding: 8px 16px;
    border: 2px solid var(--purple-accent);
    border-radius: 6px;
    background: transparent;
    color: var(--purple-accent);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sprite-btn:hover {
    background: var(--purple-accent);
    color: white;
}

.sprite-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* Engines Grid */
.engines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.engine-card {
    background: var(--bg-cream);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

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

.engine-card.featured { border-color: var(--teal-accent); }

.engine-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--teal-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 1;
}

.engine-header {
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.engine-header.unity { background: linear-gradient(135deg, #222 0%, #444 100%); }
.engine-header.unreal { background: linear-gradient(135deg, #1a1a1a 0%, #333 100%); }
.engine-header.godot { background: linear-gradient(135deg, #478cbf 0%, #3a6f9a 100%); }
.engine-header.gamemaker { background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%); }
.engine-header.phaser { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }

.engine-header i { font-size: 2rem; }

.engine-header h3 { font-size: 1.3rem; flex: 1; }

.engine-lang {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.engine-body { padding: 20px 25px; }

.engine-body > p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.engine-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.engine-features span {
    font-size: 0.8rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 5px;
}

.engine-features i { color: var(--green-accent); font-size: 0.7rem; }

.engine-games {
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 10px;
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 15px;
}

.engine-games strong { color: var(--text-medium); }

.engine-difficulty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.diff-label {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.diff-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
}

.diff-fill {
    height: 100%;
    background: var(--gradient-game);
    border-radius: 4px;
}

.diff-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple-accent);
}

.engine-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--gradient-game);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.engine-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 92, 231, 0.3);
}

/* Engines Comparison */
.engines-comparison {
    max-width: 1000px;
    margin: 0 auto;
}

.engines-comparison h4 {
    text-align: center;
    margin-bottom: 25px;
}

.comparison-table-wrap { overflow-x: auto; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-cream);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--purple-accent);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table td {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-white); }

.difficulty {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.difficulty.easy {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green-accent);
}

.difficulty.medium {
    background: rgba(255, 210, 63, 0.2);
    color: #d97706;
}

.difficulty.hard {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red-accent);
}

/* Languages Grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.lang-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

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

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

.lang-icon.csharp { background: linear-gradient(135deg, #239120 0%, #1e7a1a 100%); }
.lang-icon.cpp { background: linear-gradient(135deg, #00599C 0%, #004482 100%); }
.lang-icon.gdscript { background: linear-gradient(135deg, #478cbf 0%, #3a6f9a 100%); }
.lang-icon.javascript { background: linear-gradient(135deg, #F7DF1E 0%, #E5CD1B 100%); color: #333; }

.lang-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.lang-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.lang-uses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.lang-uses span {
    padding: 4px 10px;
    background: var(--bg-cream);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-medium);
}

.lang-verdict {
    padding: 10px;
    background: rgba(107, 92, 231, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* No-Code Section */
.nocode-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-medium);
    font-size: 1.05rem;
}

.nocode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto 50px;
}

.nocode-card {
    background: var(--bg-cream);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.nocode-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--purple-accent);
}

.nocode-header {
    padding: 20px 25px;
    background: var(--gradient-cool);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nocode-header i { font-size: 1.5rem; }
.nocode-header h3 { font-size: 1.2rem; margin: 0; }

.nocode-body { padding: 20px 25px; }

.nocode-body > p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.nocode-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.nocode-features span {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nocode-features i { color: var(--green-accent); font-size: 0.75rem; }

.nocode-best {
    font-size: 0.85rem;
    color: var(--purple-accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.nocode-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-white);
    color: var(--purple-accent);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid var(--purple-accent);
}

.nocode-link:hover {
    background: var(--purple-accent);
    color: white;
}

/* Code vs No-Code */
.code-vs-nocode {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.code-vs-nocode h4 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.comparison-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.compare-box {
    padding: 20px;
    border-radius: 12px;
}

.compare-box h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.code-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.code-box h5 { color: var(--orange-primary); }

.nocode-box {
    background: linear-gradient(135deg, rgba(107, 92, 231, 0.1) 0%, rgba(107, 92, 231, 0.05) 100%);
    border: 1px solid rgba(107, 92, 231, 0.2);
}

.nocode-box h5 { color: var(--purple-accent); }

.compare-box ul { list-style: none; }

.compare-box li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.compare-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.code-box li::before { color: var(--orange-primary); }
.nocode-box li::before { color: var(--purple-accent); }

/* Mini Game */
.mini-game-container {
    max-width: 600px;
    margin: 0 auto;
}

.mini-game {
    background: var(--bg-code);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.game-hud {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: 600;
}

.game-score { color: var(--yellow-accent); }
.game-time { color: var(--teal-accent); }

.game-area {
    height: 300px;
    position: relative;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.game-player-mini {
    width: 30px;
    height: 30px;
    background: var(--teal-accent);
    border-radius: 4px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.1s, bottom 0.1s;
}

.game-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.game-instructions p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.start-game-btn {
    padding: 15px 30px;
    background: var(--gradient-game);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.start-game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(107, 92, 231, 0.4);
}

.game-result {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 16px;
    margin-top: 20px;
}

.game-result.show { display: block; }

.game-result h3 {
    font-size: 1.5rem;
    color: var(--purple-accent);
    margin-bottom: 10px;
}

.game-result p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

#finalScore { color: var(--yellow-accent); font-weight: 700; }

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.resource-card {
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--purple-accent);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--purple-accent);
    margin-bottom: 15px;
}

.resource-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.tools-section {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.tools-section h4 {
    color: var(--text-dark);
    margin-bottom: 25px;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tool-item i {
    font-size: 2rem;
    color: var(--purple-accent);
}

.tool-item span { font-weight: 600; }
.tool-item small { font-size: 0.8rem; color: var(--text-light); }

/* Footer */
.footer {
    background: var(--bg-code);
    color: var(--text-light);
    text-align: center;
    padding: 50px 30px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.footer p { margin-bottom: 20px; }

.footer-link {
    color: var(--purple-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover { color: var(--pink-accent); }

/* Showcase Section */
.showcase-section {
    background: var(--gradient-game);
    border-radius: 16px;
    padding: 30px;
    margin: 0 auto 50px;
    max-width: 800px;
    text-align: center;
    color: white;
}

.showcase-section h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.showcase-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.showcase-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.showcase-link:hover {
    background: white;
    color: var(--purple-accent);
}

/* Responsive */
@media (max-width: 1100px) {
    .hero {
        flex-direction: column;
        padding: 120px 40px 60px;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .basics-grid { grid-template-columns: repeat(2, 1fr); }
    .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .nav-menu { display: none; }
    .section { padding: 60px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .game-screen { width: 100%; max-width: 350px; }
    .basics-grid { grid-template-columns: 1fr; }
    .concept-demos { grid-template-columns: 1fr; }
    .comparison-boxes { grid-template-columns: 1fr; }
    .resources-grid { grid-template-columns: 1fr; }
    .theme-toggle { top: auto; bottom: 25px; }
}
