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

:root {
    --primary-green: #2d5016;
    --dark-green: #1a3d0a;
    --light-green: #4a7c2a;
    --teal: #2d7d7d;
    --dark-teal: #1a5a5a;
    --beige: #f5f1e8;
    --white: #ffffff;
    --black: #000000;
    --dark-gray: #2a2a2a;
    --light-gray: #f0f0f0;
    --yellow: #ffd700;
    --purple: #6b46c1;
    --pink: #ec4899;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--beige);
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Make logo visible on dark backgrounds */
.splash-page .logo-image,
.minigame-page .logo-image {
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
}

.logo-square {
    width: 40px;
    height: 40px;
    background: var(--purple);
    border: 2px solid var(--white);
    position: relative;
}

.logo-triangle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid var(--white);
}

.logo-triangle-small {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid var(--primary-green);
}

.logo-layers {
    width: 40px;
    height: 40px;
    position: relative;
}

.logo-layers::before,
.logo-layers::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 8px;
    background: var(--yellow);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo-layers::before {
    top: 8px;
    left: 0;
}

.logo-layers::after {
    top: 20px;
    left: 3px;
    width: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
}

.logo-sub {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Make logo text visible on dark backgrounds */
.splash-page .logo-main,
.minigame-page .logo-main {
    color: var(--white);
}

.splash-page .logo-sub,
.minigame-page .logo-sub {
    color: rgba(255, 255, 255, 0.9);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link.active {
    background-color: var(--primary-green);
    color: var(--white);
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

/* Splash Page Styles */
.splash-page {
    background: var(--dark-gray);
    color: var(--white);
    min-height: 100vh;
}

.splash-page header {
    background: transparent;
    box-shadow: none;
}

.splash-page .nav-link {
    color: var(--white);
}

.splash-page .nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* IDE/Terminal Backgrounds Container */
.ide-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Individual Terminal Background */
.ide-background {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
}

/* Terminal 1 - Left Side (Green Hacker) */
.terminal-1 {
    top: 5%;
    left: 0.5%;
    width: 32.5%;
    max-width: 750px;
}

/* Terminal 2 - Center */
.terminal-2 {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 33%;
    max-width: 750px;
}

/* Terminal 3 - Right Side */
.terminal-3 {
    top: 5%;
    right: 0.5%;
    width: 32.5%;
    max-width: 750px;
}

/* Gradient fade mask so terminals fade behind hero */
.ide-backgrounds::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.2) 45%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.9) 75%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.terminal-window {
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* Standard Terminal Style - All terminals look the same */
.hacker-terminal,
.blue-terminal,
.purple-terminal {
    background: linear-gradient(135deg, #1e1e1e 0%, #252526 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.hacker-terminal .terminal-header,
.blue-terminal .terminal-header,
.purple-terminal .terminal-header {
    background: linear-gradient(180deg, #2d2d30 0%, #1e1e1e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close {
    background: #ff5f57;
}

.control-minimize {
    background: #ffbd2e;
}

.control-maximize {
    background: #28ca42;
}

.terminal-title {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    flex-grow: 1;
}

.terminal-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px 4px 0 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}

.tab.active {
    background: #1e1e1e;
    color: rgba(255, 255, 255, 0.7);
}

.terminal-body {
    padding: 2rem;
    min-height: 550px;
    max-height: 650px;
    overflow: hidden;
}

.hacker-terminal .terminal-body,
.blue-terminal .terminal-body,
.purple-terminal .terminal-body {
    background: #1e1e1e;
}

.code-editor {
    display: flex;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    line-height: 1.8;
}

.line-numbers {
    color: #858585;
    padding-right: 1rem;
    text-align: right;
    user-select: none;
}

.line-numbers span {
    display: block;
}

.code-content {
    flex: 1;
    color: #d4d4d4;
    position: relative;
    z-index: 1;
    white-space: pre;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    min-height: 520px;
    line-height: 1.8;
    transition: opacity 0.3s;
}

/* VS Code Dark+ Theme Colors - Bright and visible */
.code-content .keyword {
    color: #569cd6 !important;
}

.code-content .function {
    color: #dcdcaa !important;
}

.code-content .string {
    color: #ce9178 !important;
}

.code-content .number {
    color: #b5cea8 !important;
}

.code-content .operator {
    color: #d4d4d4 !important;
}

.code-content .comment {
    color: #6a9955 !important;
    font-style: italic;
}

.code-content .selector {
    color: #d7ba7d !important;
}

.code-content .property {
    color: #9cdcfe !important;
}

.code-content .value {
    color: #ce9178 !important;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    background: #aeafad;
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Floating App/Game Cards - 3D Screens */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    perspective: 1200px;
}

.floating-app-card {
    position: absolute;
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.95) 100%);
    border-radius: 20px 20px 14px 14px;
    padding: 0;
    border: 3px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    animation: floatApp3D 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    transition: all 0.3s;
}

/* Screen bezel effect */
.floating-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

/* Screen notch/camera */
.floating-app-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.app-icon-wrapper {
    width: 100%;
    height: 160px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    overflow: hidden;
    margin-top: 30px;
}

.floating-app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.floating-app-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    padding: 0.6rem 0;
    margin-top: auto;
}

/* Positioning and 3D angles for each floating app */
/* Strategically positioned to frame hero content without overlapping */
/* Top row - above hero content */
.floating-app-1 {
    top: 5%;
    right: 5%;
    animation-delay: 0s;
    transform: rotateY(-20deg) rotateX(8deg) rotateZ(-3deg);
}

.floating-app-2 {
    top: 5%;
    left: 5%;
    animation-delay: 1s;
    transform: rotateY(20deg) rotateX(-8deg) rotateZ(3deg);
}

/* Bottom row - below hero content */
.floating-app-3 {
    bottom: 15%;
    right: 8%;
    animation-delay: 2s;
    transform: rotateY(-25deg) rotateX(5deg) rotateZ(5deg);
}

.floating-app-4 {
    bottom: 15%;
    left: 8%;
    animation-delay: 3s;
    transform: rotateY(25deg) rotateX(-5deg) rotateZ(-5deg);
}


@keyframes floatApp3D {
    0%, 100% {
        transform: translateY(0) rotateY(-25deg) rotateX(10deg) rotateZ(-5deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-20px) rotateY(-30deg) rotateX(15deg) rotateZ(-8deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) rotateY(-20deg) rotateX(5deg) rotateZ(-2deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotateY(-28deg) rotateX(12deg) rotateZ(-6deg);
        opacity: 1;
    }
}

/* Individual animations for each screen's unique 3D rotation */
.floating-app-1 {
    animation-name: floatApp3D_1;
}

@keyframes floatApp3D_1 {
    0%, 100% {
        transform: translateY(0) rotateY(-20deg) rotateX(8deg) rotateZ(-3deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-15px) rotateY(-25deg) rotateX(12deg) rotateZ(-5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px) rotateY(-15deg) rotateX(4deg) rotateZ(-1deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-12px) rotateY(-22deg) rotateX(10deg) rotateZ(-4deg);
        opacity: 1;
    }
}

.floating-app-2 {
    animation-name: floatApp3D_2;
}

@keyframes floatApp3D_2 {
    0%, 100% {
        transform: translateY(0) rotateY(20deg) rotateX(-8deg) rotateZ(3deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-15px) rotateY(25deg) rotateX(-12deg) rotateZ(5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px) rotateY(15deg) rotateX(-4deg) rotateZ(1deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-12px) rotateY(22deg) rotateX(-10deg) rotateZ(4deg);
        opacity: 1;
    }
}

.floating-app-3 {
    animation-name: floatApp3D_3;
}

@keyframes floatApp3D_3 {
    0%, 100% {
        transform: translateY(0) rotateY(-25deg) rotateX(5deg) rotateZ(5deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-18px) rotateY(-30deg) rotateX(8deg) rotateZ(7deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-28px) rotateY(-20deg) rotateX(2deg) rotateZ(3deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotateY(-27deg) rotateX(6deg) rotateZ(6deg);
        opacity: 1;
    }
}

.floating-app-4 {
    animation-name: floatApp3D_4;
}

@keyframes floatApp3D_4 {
    0%, 100% {
        transform: translateY(0) rotateY(25deg) rotateX(-5deg) rotateZ(-5deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-18px) rotateY(30deg) rotateX(-8deg) rotateZ(-7deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-28px) rotateY(20deg) rotateX(-2deg) rotateZ(-3deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotateY(27deg) rotateX(-6deg) rotateZ(-6deg);
        opacity: 1;
    }
}


.floating-app-card:hover {
    transform: scale(1.15) !important;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 255, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 900px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 107, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: var(--yellow);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: badgePulse 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

.title-line-1,
.title-line-2 {
    display: block;
}

.title-line-2 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.7rem 1.3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    animation: featureFloat 3s ease-in-out infinite;
}

.feature-badge:nth-child(1) {
    animation-delay: 0s;
}

.feature-badge:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-badge:nth-child(3) {
    animation-delay: 1s;
}

.feature-badge:nth-child(4) {
    animation-delay: 1.5s;
}

.feature-badge:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

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

.cta-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: var(--black);
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

.hero-cta-subtext {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-style: italic;
}

/* Interactive Horse Hero */
.horse-container {
    position: absolute;
    bottom: 10%;
    left: 10%;
    z-index: 5;
    cursor: pointer;
}

.horse {
    position: relative;
    width: 120px;
    height: 100px;
    animation: horseIdle 2s ease-in-out infinite;
}

.horse-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.horse-head {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 35px;
    background: #8b4513;
    border-radius: 20px 15px 10px 15px;
}

.horse-ear {
    position: absolute;
    width: 12px;
    height: 15px;
    background: #654321;
    border-radius: 50% 50% 0 0;
    top: -5px;
}

.horse-ear-left {
    left: 5px;
    transform: rotate(-20deg);
}

.horse-ear-right {
    right: 5px;
    transform: rotate(20deg);
}

.horse-eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    top: 12px;
    right: 8px;
}

.horse-eye::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--black);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.horse-mane {
    position: absolute;
    top: -8px;
    left: 15px;
    width: 20px;
    height: 25px;
    background: #654321;
    border-radius: 50% 0 50% 50%;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.horse-neck {
    position: absolute;
    top: 25px;
    left: 35px;
    width: 25px;
    height: 30px;
    background: #8b4513;
    border-radius: 0 0 10px 10px;
}

.horse-torso {
    position: absolute;
    top: 35px;
    left: 50px;
    width: 50px;
    height: 35px;
    background: #8b4513;
    border-radius: 0 15px 15px 0;
}

.horse-leg {
    position: absolute;
    width: 8px;
    height: 25px;
    background: #654321;
    bottom: -25px;
}

.horse-leg-front-left {
    left: 5px;
}

.horse-leg-front-right {
    left: 18px;
}

.horse-leg-back-left {
    right: 18px;
}

.horse-leg-back-right {
    right: 5px;
}

.horse-tail {
    position: absolute;
    top: 40px;
    right: -15px;
    width: 15px;
    height: 30px;
    background: #654321;
    border-radius: 0 50% 50% 0;
    transform: rotate(15deg);
}

.pride-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkleFloat 2s ease-in-out infinite;
    opacity: 0;
}

.sparkle-1 {
    top: -20px;
    left: 20px;
    animation-delay: 0s;
}

.sparkle-2 {
    top: -10px;
    right: 10px;
    animation-delay: 0.5s;
}

.sparkle-3 {
    bottom: -20px;
    left: 30px;
    animation-delay: 1s;
}

.sparkle-4 {
    bottom: -10px;
    right: 20px;
    animation-delay: 1.5s;
}

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

@keyframes sparkleFloat {
    0%, 100% { 
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% { 
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

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

.horse.galloping .horse-leg-front-left,
.horse.galloping .horse-leg-back-right {
    animation: legMove 0.3s infinite;
}

.horse.galloping .horse-leg-front-right,
.horse.galloping .horse-leg-back-left {
    animation: legMove 0.3s infinite 0.15s;
}

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

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    font-size: 8rem;
    color: rgba(255,255,255,0.05);
    font-weight: 100;
}

.bg-shape-1 {
    top: 10%;
    left: 5%;
}

.bg-shape-2 {
    bottom: 10%;
    right: 5%;
}

.bg-shape-3 {
    top: 50%;
    left: 2%;
}

.bg-shape-4 {
    top: 30%;
    right: 2%;
}

/* Code Blocks to Apps Transformation */
.code-to-apps-section {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.code-block {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    padding: 6px 10px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 5px;
    color: #60a5fa;
    white-space: nowrap;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(96, 165, 250, 0.3);
    z-index: 2;
    opacity: 0;
    animation: codeBlockFloat 3s ease-out forwards;
    pointer-events: none;
}

.code-block .keyword {
    color: #a78bfa;
}

.code-block .string {
    color: #fbbf24;
}

.code-block .operator {
    color: #ec4899;
}

.code-block .function {
    color: #60a5fa;
}

.app-icon-result {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(96, 165, 250, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    z-index: 3;
    opacity: 0;
    animation: appIconAppear 1.2s ease-out forwards;
    pointer-events: none;
}

.app-icon-result img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.assembly-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(96, 165, 250, 0.6) 20%,
        rgba(167, 139, 250, 0.8) 50%,
        rgba(96, 165, 250, 0.6) 80%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
    z-index: 1;
    opacity: 0;
    animation: lineGlow 2s ease-out forwards;
    pointer-events: none;
}

@keyframes codeBlockFloat {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.8) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9) rotate(5deg);
    }
}

@keyframes appIconAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
        filter: blur(20px) brightness(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(0deg);
        filter: blur(5px) brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px) brightness(1);
    }
}

@keyframes lineGlow {
    0% {
        opacity: 0;
        height: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
        height: 120px;
    }
}

/* Showcase Page Styles */
.showcase-page {
    background: var(--beige);
}

.showcase-main {
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

.apps-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 2rem;
}

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

.app-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.app-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.app-logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.minecraft-logo {
    font-family: 'Courier New', monospace;
    color: var(--black);
    font-size: 2rem;
    letter-spacing: 2px;
}

.roblox-card {
    background: #00A2FF;
    color: var(--white);
}

.roblox-logo {
    position: relative;
}

.roblox-r {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.roblox-r::after {
    content: '▶';
    position: absolute;
    font-size: 1rem;
    right: -5px;
    bottom: -5px;
}

.codecombat-card {
    background: #4a90e2;
}

.minecraft-card {
    background: #62B47A;
    color: var(--white);
}

.amongus-crewmate {
    width: 60px;
    height: 80px;
    background: #d3d3d3;
    border-radius: 30px 30px 10px 10px;
    position: relative;
    margin: 0 auto;
}

.amongus-crewmate::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 30px;
    background: #d3d3d3;
    border-radius: 25px 25px 0 0;
}

.fortnite-card {
    background: #1e3a8a;
    color: var(--white);
}

.fortnite-logo {
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: 3px;
}

.tiktok-note {
    width: 50px;
    height: 50px;
    background: var(--black);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.tiktok-note::after {
    content: '♪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--white);
}

.youtube-play {
    width: 0;
    height: 0;
    border-left: 30px solid #ff0000;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    margin: 0 auto;
}

.instagram-camera {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    margin: 0 auto;
    position: relative;
}

.instagram-camera::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--white);
    border-radius: 8px;
}

.snapchat-ghost {
    width: 50px;
    height: 60px;
    border: 3px solid var(--black);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 auto;
    position: relative;
}

.snapchat-ghost::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: var(--black);
    border-radius: 50%;
}

.scratch-card {
    background: #f7cc00;
}

.scratch-logo {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
}

.codeorg-card {
    background: var(--teal);
    color: var(--white);
}

.codeorg-logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.khan-card {
    background: var(--dark-teal);
    color: var(--white);
}

.khan-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.replit-card {
    background: var(--dark-green);
    color: var(--white);
}

.replit-logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.app-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}

.app-description {
    font-size: 0.95rem;
    color: inherit;
    opacity: 0.9;
}

/* Gallery Page Styles */
.gallery-page {
    background: var(--beige);
}

.gallery-main {
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-page .page-subtitle {
    white-space: nowrap;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--teal));
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 16px 48px rgba(0,0,0,0.08);
    border-color: rgba(45, 80, 22, 0.2);
}

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

.project-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
    background: rgba(255,255,255,0.95);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover .project-badge {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.game-image {
    background: linear-gradient(to bottom, #0a0e27 0%, #1a1a3e 50%, #2d1b4e 100%);
    position: relative;
    overflow: hidden;
}

.space-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.star-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star-small {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px white;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star-small-1 { top: 15%; left: 10%; animation-delay: 0s; }
.star-small-2 { top: 25%; left: 30%; animation-delay: 0.5s; }
.star-small-3 { top: 40%; left: 60%; animation-delay: 1s; }
.star-small-4 { top: 60%; left: 20%; animation-delay: 1.5s; }
.star-small-5 { top: 70%; left: 80%; animation-delay: 2s; }
.star-small-6 { top: 50%; left: 90%; animation-delay: 2.5s; }

.star-big {
    position: absolute;
    font-size: 1rem;
    z-index: 2;
    animation: starTwinkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
}

.star-big-1 { top: 20%; right: 15%; animation-delay: 0s; }
.star-big-2 { top: 45%; right: 40%; animation-delay: 0.7s; }
.star-big-3 { top: 65%; right: 70%; animation-delay: 1.4s; }

.planet {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.planet-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #4a5568, #2d3748);
    bottom: 10%;
    right: 10%;
    box-shadow: 0 0 20px rgba(74, 85, 104, 0.5);
}

.planet-2 {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #744210, #553311);
    top: 15%;
    left: 5%;
    box-shadow: 0 0 15px rgba(116, 66, 16, 0.5);
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3);
    }
}

.ufo {
    position: absolute;
    z-index: 3;
    animation: ufoFloat 4s ease-in-out infinite;
}

.ufo-1 {
    top: 10%;
    right: 15%;
}

.ufo-body {
    width: 60px;
    height: 20px;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.2);
    position: relative;
}

.ufo-dome {
    width: 40px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.6));
    border-radius: 50% 50% 0 0;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.ufo-light {
    width: 30px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.6), transparent);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
    animation: ufoBeam 2s ease-in-out infinite;
}

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

@keyframes ufoBeam {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.space-platform {
    position: absolute;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.5), 
                0 0 20px rgba(59, 130, 246, 0.3),
                inset 0 2px 4px rgba(255,255,255,0.1);
    border: 1px solid rgba(59, 130, 246, 0.4);
    position: relative;
}

.space-platform::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(59, 130, 246, 0.6),
        transparent
    );
    border-radius: 8px 8px 0 0;
}

.space-platform-1 {
    bottom: 35%;
    left: 12%;
    width: 65px;
    height: 10px;
    animation: platformGlow 3s ease-in-out infinite;
}

.space-platform-2 {
    bottom: 50%;
    right: 18%;
    width: 75px;
    height: 10px;
    animation: platformGlow 3s ease-in-out infinite 0.5s;
}

.space-platform-3 {
    bottom: 65%;
    left: 50%;
    width: 60px;
    height: 10px;
    transform: translateX(-50%);
    animation: platformGlow 3s ease-in-out infinite 1s;
}

@keyframes platformGlow {
    0%, 100% {
        box-shadow: 0 -4px 16px rgba(0,0,0,0.5), 
                    0 0 20px rgba(59, 130, 246, 0.3),
                    inset 0 2px 4px rgba(255,255,255,0.1);
    }
    50% {
        box-shadow: 0 -4px 16px rgba(0,0,0,0.5), 
                    0 0 30px rgba(59, 130, 246, 0.6),
                    inset 0 2px 4px rgba(255,255,255,0.2);
    }
}

.alien {
    position: absolute;
    bottom: 35%;
    left: -10%;
    z-index: 4;
    animation: alienGameplay 8s ease-in-out infinite;
}

.alien-head {
    width: 24px;
    height: 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(16, 185, 129, 0.8);
}

.alien-head::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #10b981;
}

.alien-eye {
    position: absolute;
    width: 8px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    top: 8px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8), inset 0 0 4px rgba(59, 130, 246, 1);
    animation: alienBlink 3s ease-in-out infinite;
}

.alien-eye-left {
    left: 5px;
}

.alien-eye-right {
    right: 5px;
}

.alien-body {
    width: 18px;
    height: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px 8px 4px 4px;
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(16, 185, 129, 0.8);
    animation: alienRun 0.3s steps(2) infinite;
}

@keyframes alienRun {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(1px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.alien-arm {
    position: absolute;
    width: 6px;
    height: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    top: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: alienArmSwing 0.3s ease-in-out infinite;
}

.alien-arm-left {
    left: -4px;
    transform-origin: top center;
}

.alien-arm-right {
    right: -4px;
    transform-origin: top center;
    animation-delay: 0.15s;
}

@keyframes alienArmSwing {
    0%, 100% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

@keyframes alienGameplay {
    /* Start off screen, run to first platform */
    0% {
        left: -10%;
        bottom: 35%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Land on first platform and collect coin 1 */
    8% {
        left: 12%;
        bottom: 35%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    10% {
        left: 16%;
        bottom: 35%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Jump up to second platform */
    12% {
        left: 16%;
        bottom: 35%;
        transform: translateY(-5px) rotate(-3deg) scaleX(1);
    }
    18% {
        left: 20%;
        bottom: 50%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Run across second platform and collect coin 2 */
    20% {
        left: 20%;
        bottom: 50%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    22% {
        left: 24%;
        bottom: 50%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Jump to third platform */
    26% {
        left: 48%;
        bottom: 50%;
        transform: translateY(-5px) rotate(3deg) scaleX(1);
    }
    32% {
        left: 52%;
        bottom: 65%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Collect coin 3 on third platform */
    34% {
        left: 52%;
        bottom: 65%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    36% {
        left: 56%;
        bottom: 65%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Jump down to second platform */
    42% {
        left: 75%;
        bottom: 65%;
        transform: translateY(-5px) rotate(-3deg) scaleX(1);
    }
    48% {
        left: 78%;
        bottom: 50%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Run and jump down to first platform */
    54% {
        left: 78%;
        bottom: 50%;
        transform: translateY(-5px) rotate(3deg) scaleX(1);
    }
    60% {
        left: 82%;
        bottom: 35%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Run off screen */
    70% {
        left: 110%;
        bottom: 35%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    /* Reset and start over */
    100% {
        left: -10%;
        bottom: 35%;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
}

@keyframes alienBlink {
    0%, 90%, 100% {
        height: 10px;
    }
    95% {
        height: 2px;
    }
}

.space-coin {
    position: absolute;
    font-size: 1.4rem;
    z-index: 5;
    animation: spaceCoinFloat 3s ease-in-out infinite, spaceCoinGlow 2s ease-in-out infinite, coinCollect 8s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
    opacity: 1;
    transform: scale(1);
}

.space-coin-1 {
    bottom: 40%;
    left: 16%;
    animation: spaceCoinFloat 3s ease-in-out infinite, spaceCoinGlow 2s ease-in-out infinite, coinCollect1 8s ease-in-out infinite;
}

.space-coin-2 {
    bottom: 55%;
    left: 20%;
    animation: spaceCoinFloat 3s ease-in-out infinite 0.4s, spaceCoinGlow 2s ease-in-out infinite 0.4s, coinCollect2 8s ease-in-out infinite;
}

.space-coin-3 {
    bottom: 70%;
    left: 52%;
    transform: translateX(-50%);
    animation: spaceCoinFloat 3s ease-in-out infinite 0.8s, spaceCoinGlow 2s ease-in-out infinite 0.8s, coinCollect3 8s ease-in-out infinite;
}

@keyframes coinCollect1 {
    /* Coin 1 - collected at 10% when alien is at 16% */
    0%, 9% {
        opacity: 1;
        transform: translateX(0) scale(1) translateY(0);
    }
    10%, 10.5% {
        opacity: 0;
        transform: translateX(0) scale(1.5) translateY(-20px);
    }
    11%, 100% {
        opacity: 0;
        transform: translateX(0) scale(0) translateY(-30px);
    }
}

@keyframes coinCollect2 {
    /* Coin 2 - collected at 20% when alien is at 20% */
    0%, 19% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    20%, 20.5% {
        opacity: 0;
        transform: scale(1.5) translateY(-20px);
    }
    21%, 100% {
        opacity: 0;
        transform: scale(0) translateY(-30px);
    }
}

@keyframes coinCollect3 {
    /* Coin 3 - collected at 34% when alien is at 52% */
    0%, 33% {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(0);
    }
    34%, 34.5% {
        opacity: 0;
        transform: translateX(-50%) scale(1.5) translateY(-20px);
    }
    35%, 100% {
        opacity: 0;
        transform: translateX(-50%) scale(0) translateY(-30px);
    }
}

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

@keyframes spaceCoinGlow {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 1)) 
                drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
    }
}

.game-ui {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.score-display {
    background: rgba(0,0,0,0.8);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), 
                0 0 15px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.5);
    animation: scorePulse 2s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
    position: relative;
}

.score-number {
    display: inline-block;
    animation: scorePulseNumber 8s ease-in-out infinite;
}

@keyframes scorePulseNumber {
    0%, 9% {
        transform: scale(1);
        color: #60a5fa;
    }
    10%, 10.5% {
        transform: scale(1.3);
        color: #ffd700;
    }
    11%, 19% {
        transform: scale(1);
        color: #60a5fa;
    }
    20%, 20.5% {
        transform: scale(1.3);
        color: #ffd700;
    }
    21%, 33% {
        transform: scale(1);
        color: #60a5fa;
    }
    34%, 34.5% {
        transform: scale(1.3);
        color: #ffd700;
    }
    35%, 100% {
        transform: scale(1);
        color: #60a5fa;
    }
}

@keyframes scorePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.5), 
                    0 0 15px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.6), 
                    0 0 25px rgba(59, 130, 246, 0.7);
    }
}

.art-image {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.art-canvas {
    width: 100%;
    height: 100%;
    position: relative;
}

.art-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
    animation: artPulse 4s ease-in-out infinite;
}

.art-circle-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 15%;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation-delay: 0s;
}

.art-circle-2 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 20%;
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    animation-delay: 1s;
}

.art-circle-3 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 50%;
    border-color: #ec4899;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    animation-delay: 2s;
}

.art-line {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    box-shadow: 0 0 15px currentColor;
    animation: artFlow 3s ease-in-out infinite;
    border-radius: 2px;
    z-index: 2;
}

.art-line-1 {
    width: 150px;
    top: 30%;
    left: 20%;
    transform: rotate(-30deg);
    color: #3b82f6;
    animation-delay: 0s;
}

.art-line-2 {
    width: 120px;
    top: 60%;
    left: 30%;
    transform: rotate(25deg);
    color: #8b5cf6;
    animation-delay: 0.7s;
}

.art-line-3 {
    width: 100px;
    top: 75%;
    right: 25%;
    transform: rotate(-20deg);
    color: #ec4899;
    animation-delay: 1.4s;
}

.art-shape {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    animation: artRotate 6s linear infinite;
}

.art-shape-1 {
    top: 25%;
    right: 15%;
    border-width: 0 15px 25px 15px;
    border-color: transparent transparent #10b981 transparent;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
    animation-delay: 0s;
}

.art-shape-2 {
    bottom: 30%;
    left: 20%;
    border-width: 20px 0 20px 35px;
    border-color: transparent transparent transparent #f59e0b;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
    animation-delay: 2s;
}

.art-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: patternShift 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes artPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes artFlow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(15px) translateY(-10px);
    }
}

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

@keyframes patternShift {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.story-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.story-book {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 100px;
    z-index: 2;
    perspective: 1000px;
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b4513 0%, #654321 50%, #4a2c1a 100%);
    border-radius: 4px 8px 8px 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset -2px 0 4px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    transform-origin: left center;
    animation: bookOpen 4s ease-in-out infinite;
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, #4a2c1a, #654321);
    border-radius: 4px 0 0 4px;
}

.book-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-20deg);
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.book-pages {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.page {
    position: absolute;
    width: 95%;
    height: 90%;
    background: #f5f5dc;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    left: 5%;
    top: 5%;
}

.page-1 {
    transform: rotateY(-5deg) translateZ(2px);
    animation: pageTurn1 4s ease-in-out infinite;
}

.page-2 {
    transform: rotateY(-10deg) translateZ(4px);
    animation: pageTurn2 4s ease-in-out infinite;
    background: #fafafa;
}

.page-3 {
    transform: rotateY(-15deg) translateZ(6px);
    animation: pageTurn3 4s ease-in-out infinite;
    background: #ffffff;
}

@keyframes bookOpen {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(-25deg);
    }
}

@keyframes pageTurn1 {
    0%, 100% {
        transform: rotateY(-5deg) translateZ(2px);
    }
    50% {
        transform: rotateY(-15deg) translateZ(2px);
    }
}

@keyframes pageTurn2 {
    0%, 100% {
        transform: rotateY(-10deg) translateZ(4px);
    }
    50% {
        transform: rotateY(-20deg) translateZ(4px);
    }
}

@keyframes pageTurn3 {
    0%, 100% {
        transform: rotateY(-15deg) translateZ(6px);
    }
    50% {
        transform: rotateY(-25deg) translateZ(6px);
    }
}

.story-choices {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.choice-button {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    animation: choicePulse 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.choice-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
}

.choice-1 {
    animation-delay: 0s;
}

.choice-2 {
    animation-delay: 0.5s;
    background: rgba(139, 92, 246, 0.9);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.choice-2:hover {
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.6);
}

@keyframes choicePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.magic-text {
    position: absolute;
    color: #60a5fa;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 0 15px #3b82f6, 0 0 30px rgba(59, 130, 246, 0.5);
    animation: magicFloat 3s ease-in-out infinite;
    z-index: 4;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.magic-text-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.magic-text-2 {
    top: 15%;
    right: 20%;
    animation-delay: 0.4s;
}

.magic-text-3 {
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.8s;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 12px #3b82f6, 0 0 24px rgba(59, 130, 246, 0.5);
    animation: particleFloat 3s ease-in-out infinite;
    z-index: 3;
}

.particle-1 {
    top: 35%;
    left: 30%;
    animation-delay: 0s;
}

.particle-2 {
    top: 55%;
    right: 30%;
    animation-delay: 0.6s;
}

.particle-3 {
    top: 45%;
    left: 55%;
    animation-delay: 1.2s;
}

.particle-4 {
    top: 65%;
    left: 45%;
    animation-delay: 0.3s;
    width: 6px;
    height: 6px;
}

.particle-5 {
    top: 25%;
    right: 40%;
    animation-delay: 0.9s;
    width: 6px;
    height: 6px;
}

.story-image .sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkleFloat 2.5s ease-in-out infinite;
    opacity: 0;
    z-index: 4;
}

.story-image .sparkle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.story-image .sparkle-2 {
    top: 70%;
    right: 15%;
    animation-delay: 1s;
}

.story-image .sparkle-3 {
    top: 50%;
    left: 10%;
    animation-delay: 1.5s;
}

@keyframes magicFloat {
    0%, 100% { 
        transform: translateY(0) translateX(0);
        opacity: 0.8; 
    }
    25% {
        transform: translateY(-15px) translateX(5px);
        opacity: 1;
    }
    50% { 
        transform: translateY(-25px) translateX(0);
        opacity: 1; 
    }
    75% {
        transform: translateY(-15px) translateX(-5px);
        opacity: 1;
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateY(-40px) translateX(10px) scale(1.8); 
        opacity: 1; 
    }
}

@keyframes sparkleFloat {
    0%, 100% { 
        opacity: 0;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: translateY(-25px) scale(1.2) rotate(180deg);
    }
}

.quiz-image {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quiz-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 2;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    padding-right: 50px; /* Make room for badge */
}

.quiz-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0369a1;
    letter-spacing: 0.5px;
}

.quiz-score {
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.quiz-question {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #3b82f6;
}

.question-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.quiz-option:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    background: #f8fafc;
}

.quiz-option.correct {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    color: #065f46;
    font-weight: 600;
}

.option-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.quiz-option.correct .option-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.checkmark {
    position: absolute;
    right: 1rem;
    color: #10b981;
    font-size: 1.2rem;
    font-weight: 700;
    animation: checkmarkAppear 0.5s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.quiz-progress {
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-top: auto;
}

.progress-bar {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 3px;
    animation: progressPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }
}

.beat-image {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.beat-maker-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.beat-pads {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    z-index: 2;
}

.beat-pad {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    cursor: pointer;
    position: relative;
    animation: padPulse 2s ease-in-out infinite;
}

.beat-pad-1 {
    animation-delay: 0s;
}

.beat-pad-2 {
    animation-delay: 0.5s;
}

.beat-pad-3 {
    animation-delay: 1s;
}

.beat-pad-4 {
    animation-delay: 1.5s;
}

.pad-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beat-sequencer {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    position: relative;
    z-index: 2;
}

.sequencer-row {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
}

.sequencer-cell {
    width: 20px;
    height: 20px;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s;
}

.sequencer-cell.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6), inset 0 2px 4px rgba(255,255,255,0.2);
    border-color: rgba(59, 130, 246, 0.8);
    animation: cellFlash 0.5s ease-in-out;
}

.beat-playhead {
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 80px;
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
    z-index: 3;
    animation: playheadMove 2s linear infinite;
    transform: translateY(-50%);
}

.beat-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    z-index: 2;
}

.control-button {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.control-button:hover {
    transform: scale(1.1);
}

.play-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stop-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes padPulse {
    0%, 100% {
        box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), inset 0 2px 4px rgba(255,255,255,0.2);
        transform: scale(1.05);
    }
}

@keyframes cellFlash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes playheadMove {
    0% {
        left: 5%;
    }
    100% {
        left: 95%;
    }
}

.chatbot-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-container {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.chat-bubble {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 8px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: bubbleAppear 0.5s ease-out;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation-fill-mode: forwards;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255,255,255,0.95);
}

.chat-bubble-user {
    align-self: flex-end;
    background: rgba(45, 80, 22, 0.9);
    color: white;
}

.chat-bubble-user::before {
    left: auto;
    right: 20px;
    border-top-color: rgba(45, 80, 22, 0.9);
}

.chat-bubble-1 {
    animation-delay: 0s;
}

.chat-bubble-2 {
    animation-delay: 0.3s;
}

.chat-bubble-3 {
    animation-delay: 0.6s;
}

.chat-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin: 0;
}

.chat-bubble-user .chat-text {
    color: white;
}

.chatbot-face {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
    animation: botBounce 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border: 2px solid rgba(255,255,255,0.3);
}

.bot-eye {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
    animation: blink 3s ease-in-out infinite;
}

.bot-eye-left {
    margin-right: 8px;
}

.bot-eye-right {
    margin-left: 8px;
}

.bot-mouth {
    width: 20px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-radius: 0 0 20px 20px;
    margin-top: 2px;
}

@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

.website-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.website-content {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.website-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.website-tagline {
    font-size: 0.9rem;
    color: var(--dark-gray);
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.website-leaves {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.leaf {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    border-radius: 0 100% 0 100%;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: leafSway 3s ease-in-out infinite;
}

.leaf-1 {
    animation-delay: 0s;
}

.leaf-2 {
    transform: rotate(45deg);
    animation-delay: 1.5s;
    animation-name: leafSway2;
}

@keyframes leafSway {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-50deg) scale(1.1); }
}

@keyframes leafSway2 {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(50deg) scale(1.1); }
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    padding: 1.75rem 1.75rem 0.75rem;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.project-card:hover .project-title {
    color: var(--primary-green);
}

.project-description {
    padding: 0 1.75rem 1.75rem;
    color: #666;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Mini-Game Page Styles */
.minigame-page {
    background: var(--dark-green);
    color: var(--white);
    min-height: 100vh;
}

.minigame-page header {
    background: transparent;
    box-shadow: none;
}

.minigame-page .nav-link {
    color: var(--white);
}

.minigame-page .nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

.minigame-main {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.minigame-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.power-up-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-container {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 500px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.game-screen {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.2);
    background: #1a1a2e;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
}

/* Animated background clouds */
.game-screen::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -50px;
    width: 100px;
    height: 40px;
    background: rgba(255,255,255,0.6);
    border-radius: 50px;
    animation: cloudMove 20s linear infinite;
}

.game-screen::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -80px;
    width: 120px;
    height: 50px;
    background: rgba(255,255,255,0.5);
    border-radius: 50px;
    animation: cloudMove 25s linear infinite reverse;
}

@keyframes cloudMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

.game-character {
    position: absolute;
    bottom: 100px;
    left: 50px;
    width: 45px;
    height: 55px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transition: left 0.1s, bottom 0.1s;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
}

.game-character::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.game-character::after {
    content: '👤';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    z-index: 1;
}

.game-platform {
    position: absolute;
    height: 20px;
    background: linear-gradient(180deg, #8b6f47 0%, #654321 100%);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.1);
    border: 2px solid rgba(0,0,0,0.2);
    z-index: 5;
}

#platform1 {
    bottom: 80px;
    left: 150px;
    width: 100px;
}

#platform2 {
    bottom: 150px;
    left: 300px;
    width: 120px;
}

#platform3 {
    bottom: 220px;
    left: 500px;
    width: 100px;
}

/* Coin Styles */
.game-coin {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255,215,0,0.6), 0 4px 8px rgba(0,0,0,0.3);
    animation: coinSpin 2s linear infinite, coinFloat 3s ease-in-out infinite;
    z-index: 8;
    border: 2px solid rgba(255,255,255,0.4);
    transition: transform 0.3s, opacity 0.3s;
}

.game-coin::before {
    content: '$';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.9);
    font-weight: bold;
    font-size: 0.7em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.game-coin.coin {
    background: radial-gradient(circle at 30% 30%, #ffed4e, #ffd700);
}

.game-coin.coin-special {
    background: radial-gradient(circle at 30% 30%, #ff9fa8, #ff6b6b);
}

.game-coin.coin-rare {
    background: radial-gradient(circle at 30% 30%, #7fdede, #4ecdc4);
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

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

/* Enemy Styles */
.game-enemy {
    position: absolute;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50%;
    z-index: 7;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    animation: enemyBounce 1s ease-in-out infinite;
}

.game-enemy::before {
    content: '👾';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

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

/* Power-up Styles */
.game-powerup {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 8;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.6), 0 4px 8px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: powerUpFloat 2s ease-in-out infinite, powerUpGlow 2s ease-in-out infinite;
    transition: transform 0.3s, opacity 0.3s;
}

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

@keyframes powerUpGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(155, 89, 182, 0.6), 0 4px 8px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 30px rgba(155, 89, 182, 1), 0 4px 12px rgba(0,0,0,0.4); }
}

/* Particle Effects */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 0 10px currentColor;
}

/* Game Messages */
.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    z-index: 1000;
    font-size: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.3);
    animation: messageAppear 0.5s ease-out;
    min-width: 400px;
}

.game-message.win {
    border-color: #2ecc71;
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.4);
}

.game-message.lose {
    border-color: #e74c3c;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.4);
}

.game-message h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.game-message p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.game-instructions {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    line-height: 1.8;
}

.game-instructions p {
    margin: 0.5rem 0;
}

.game-instructions strong {
    color: var(--yellow);
}

.restart-button {
    background: linear-gradient(135deg, var(--teal) 0%, var(--dark-teal) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.restart-button:active {
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--dark-gray);
    background: transparent;
}

.splash-page footer,
.minigame-page footer {
    background: transparent;
    color: var(--white);
}

/* Instagram Page Styles */
.instagram-page {
    background: var(--beige);
}

.instagram-main {
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.instagram-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.instagram-page .page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.instagram-page .page-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Instagram Photo Collage with Flip Book Container */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    height: calc(100vh - 250px);
    min-height: 500px;
    max-height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-content: center;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

.slideshow-slide {
    position: absolute;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    opacity: 0;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    backface-visibility: hidden;
    pointer-events: none;
    display: inline-block;
    width: auto;
    height: auto;
}

/* Collage layout - show multiple images at once, positioned in a collage */
/* Images scaled smaller to fit better on page */
.slideshow-slide:nth-child(1) { 
    top: 8%;
    left: 3%;
    transform: rotate(-8deg) scale(0.5);
    z-index: 1;
}
.slideshow-slide:nth-child(2) { 
    top: 12%;
    left: 22%;
    transform: rotate(5deg) scale(0.55);
    z-index: 2;
}
.slideshow-slide:nth-child(3) { 
    top: 3%;
    right: 18%;
    transform: rotate(-5deg) scale(0.5);
    z-index: 1;
}
.slideshow-slide:nth-child(4) { 
    top: 18%;
    right: 3%;
    transform: rotate(7deg) scale(0.55);
    z-index: 2;
}
.slideshow-slide:nth-child(5) { 
    bottom: 22%;
    left: 8%;
    transform: rotate(-6deg) scale(0.55);
    z-index: 2;
}
.slideshow-slide:nth-child(6) { 
    bottom: 18%;
    left: 32%;
    transform: rotate(4deg) scale(0.5);
    z-index: 1;
}
.slideshow-slide:nth-child(7) { 
    bottom: 12%;
    right: 22%;
    transform: rotate(-4deg) scale(0.55);
    z-index: 2;
}
.slideshow-slide:nth-child(8) { 
    bottom: 8%;
    right: 5%;
    transform: rotate(6deg) scale(0.5);
    z-index: 1;
}
.slideshow-slide:nth-child(9) { 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg) scale(0.6);
    z-index: 3;
}
.slideshow-slide:nth-child(10) { 
    top: 32%;
    left: 12%;
    transform: rotate(3deg) scale(0.5);
    z-index: 1;
}
.slideshow-slide:nth-child(11) { 
    top: 38%;
    right: 12%;
    transform: rotate(-2deg) scale(0.55);
    z-index: 2;
}

/* Show all images initially in collage */
.slideshow-slide {
    opacity: 1;
    pointer-events: auto;
    animation: collageFadeIn 0.8s ease-out forwards;
}

/* Flip book effect - bring image to front */
.slideshow-slide.active {
    z-index: 100 !important;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.85) !important;
    top: 50% !important;
    left: 50% !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    pointer-events: auto;
}

.slideshow-slide:hover:not(.active) {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 50;
}

.slideshow-slide.active:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.2) !important;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}

.slideshow-slide img {
    width: auto !important;
    height: auto !important;
    max-width: 400px !important;
    max-height: 400px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    object-fit: contain !important;
    object-position: center;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.slideshow-slide:hover img {
    transform: scale(1.05);
}

.slideshow-slide.active img {
    transform: scale(1.02);
}

@keyframes collageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg);
    }
    to {
        opacity: 1;
    }
}

@keyframes flipBook {
    0% {
        transform: translate(-50%, -50%) rotateY(-90deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) rotateY(0deg) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) rotateY(0deg) scale(1.15);
        opacity: 1;
    }
}

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

/* Floating animation for non-active images */
.slideshow-slide:not(.active) {
    animation: collageFadeIn 0.8s ease-out forwards, float 6s ease-in-out infinite;
}

.slideshow-slide:nth-child(odd):not(.active) {
    animation: collageFadeIn 0.8s ease-out forwards, float 7s ease-in-out infinite;
}

.slideshow-slide:nth-child(even):not(.active) {
    animation: collageFadeIn 0.8s ease-out forwards, float 8s ease-in-out infinite 1s;
}

/* Flip book animation when becoming active */
.slideshow-slide.active {
    animation: flipBook 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loading Spinner */
.slideshow-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 3rem;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.slideshow-loader p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Navigation Dots - Hidden for grid view */
.slideshow-nav-dots {
    display: none;
}

.slideshow-dot {
    display: none;
}

/* Caption - Overlay on hover */
.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    z-index: 5;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.slideshow-slide:hover .slideshow-caption,
.slideshow-slide.active .slideshow-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Error Message */
.slideshow-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 3rem;
    text-align: center;
}

.slideshow-error p {
    color: var(--dark-gray);
    font-size: 1.2rem;
    background: rgba(231, 76, 60, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }

    .feature-badge {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .floating-app-card {
        width: 120px;
        height: 165px;
    }

    .app-icon-wrapper {
        height: 120px;
        margin-top: 25px;
        padding: 1rem;
    }

    .floating-app-card::after {
        width: 45px;
        height: 6px;
        top: 8px;
    }

    .floating-app-name {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }


    .floating-app-1 {
        top: 8%;
        right: 3%;
    }

    .floating-app-2 {
        top: 8%;
        left: 3%;
    }

    .floating-app-3 {
        bottom: 12%;
        right: 5%;
    }

    .floating-app-4 {
        bottom: 12%;
        left: 5%;
    }

    .terminal-1,
    .terminal-2,
    .terminal-3 {
        width: 90%;
        max-width: none;
    }

    .terminal-1 {
        top: 3%;
        left: 5%;
    }

    .terminal-2 {
        top: 35%;
        left: 5%;
        transform: none;
    }

    .terminal-3 {
        top: 67%;
        right: 5%;
    }

    .ide-background {
        opacity: 0.1;
    }

    .terminal-body {
        min-height: 200px;
        max-height: 250px;
    }

    .code-editor {
        font-size: 0.65rem;
    }

    .code-content {
        min-height: 200px;
    }

    .apps-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .horse-container {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 2rem auto;
    }

    /* Instagram Page Responsive */
    .instagram-main {
        padding: 2rem 1rem;
    }

    .instagram-page .page-title {
        font-size: 2rem;
    }

    .instagram-page .page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .slideshow-container {
        padding: 0.5rem;
        height: calc(100vh - 200px);
        min-height: 400px;
        max-height: 600px;
    }
    
    .slideshow-slide img {
        max-width: none !important;
        max-height: none !important;
    }
    
    .slideshow-slide.active {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.7) !important;
    }
    
    .slideshow-slide:nth-child(n) {
        transform: scale(0.4) !important;
    }
    
    .slideshow-track {
        gap: 0.5rem;
    }
    
    /* Smaller sizes on mobile, still collage */
    .slideshow-slide:nth-child(1) { width: 100px; top: 5%; left: 2%; }
    .slideshow-slide:nth-child(2) { width: 110px; top: 10%; left: 20%; }
    .slideshow-slide:nth-child(3) { width: 95px; top: 3%; right: 15%; }
    .slideshow-slide:nth-child(4) { width: 105px; top: 12%; right: 2%; }
    .slideshow-slide:nth-child(5) { width: 115px; bottom: 20%; left: 5%; }
    .slideshow-slide:nth-child(6) { width: 100px; bottom: 15%; left: 28%; }
    .slideshow-slide:nth-child(7) { width: 110px; bottom: 10%; right: 20%; }
    .slideshow-slide:nth-child(8) { width: 95px; bottom: 5%; right: 5%; }
    .slideshow-slide:nth-child(9) { width: 120px; top: 50%; left: 50%; }
    .slideshow-slide:nth-child(10) { width: 100px; top: 30%; left: 10%; }
    .slideshow-slide:nth-child(11) { width: 105px; top: 35%; right: 10%; }
    
    .slideshow-slide.active {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.1) !important;
    }
    
    .slideshow-slide:nth-child(n) {
        width: auto !important;
        max-width: none !important;
    }

    .slideshow-loader {
        min-height: 400px;
    }

    .slideshow-error {
        min-height: 400px;
    }

    .slideshow-caption {
        bottom: 60px;
        max-width: 90%;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .slideshow-nav-dots {
        bottom: 15px;
        padding: 8px 12px;
    }

    .slideshow-dot {
        width: 10px;
        height: 10px;
    }
}

/* Robotics Page Styles */
.robotics-page {
    background: var(--beige);
}

.robotics-main {
    padding: 1.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.robotics-page .page-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.robotics-page .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.robotics-page .page-subtitle {
    font-size: 1rem;
    color: var(--dark-gray);
    max-width: 650px;
    margin: 0 auto;
}

/* Project Showcase */
.project-showcase {
    margin-bottom: 2rem;
    margin-top: 0;
}

.project-hero {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.project-image-container {
    position: relative;
}

/* Robot Car Image Styles */
.robot-car-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    object-fit: contain;
    max-height: 150px;
    object-position: top;
}

/* Robot Car Gallery (for multiple images) */
.robot-car-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.robot-car-gallery .gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.robot-car-gallery .gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Legacy placeholder styles (kept for backwards compatibility) */
.robot-car-placeholder {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--teal) 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.robot-car-visual {
    width: 200px;
    height: 150px;
    position: relative;
    margin-bottom: 1rem;
}

.robot-body {
    width: 180px;
    height: 100px;
    background: var(--dark-gray);
    border-radius: 8px;
    position: absolute;
    top: 25px;
    left: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.robot-wheel {
    width: 30px;
    height: 30px;
    background: var(--black);
    border-radius: 50%;
    position: absolute;
    border: 3px solid #444;
}

.robot-wheel-1 {
    top: 10px;
    left: 20px;
}

.robot-wheel-2 {
    top: 10px;
    right: 20px;
}

.robot-wheel-3 {
    bottom: 10px;
    left: 20px;
}

.robot-wheel-4 {
    bottom: 10px;
    right: 20px;
}

.robot-camera {
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--dark-gray);
}

.robot-camera::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.robot-sensor {
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    animation: sensorPulse 2s ease-in-out infinite;
}

.robot-sensor-1 {
    left: 5px;
}

.robot-sensor-2 {
    right: 5px;
}

@keyframes sensorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.robot-led {
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    animation: ledBlink 1s ease-in-out infinite;
}

.robot-led-1 {
    left: 30px;
}

.robot-led-2 {
    right: 30px;
}

@keyframes ledBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.placeholder-text {
    color: var(--white);
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;
    opacity: 0.9;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 0.5rem 0;
}

.project-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0 0 0 0;
}

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: -0.5rem;
}

.tech-badge {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
    margin-top: 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.25rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.feature-visual {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--dark-gray);
    margin: 0;
}

/* Flat Design Robot Car Visual - Based on reference image */
.mini-robot {
    width: 75px;
    height: 50px;
    position: absolute;
    transition: transform 0.1s linear;
    transform-origin: center center;
    background: transparent;
}

/* Dark Gray Base/Chassis - Main rectangular base */
.mini-robot::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 32px;
    background: #4b5563; /* Dark gray */
    border-radius: 3px;
    top: 10px;
    left: 8px;
    z-index: 1;
    border: none;
}

/* Lighter Gray Component on top of base */
.mini-robot::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 18px;
    background: #9ca3af; /* Light gray */
    border-radius: 2px;
    top: 14px;
    left: 16px;
    z-index: 2;
}

/* Remove old chassis background - keep transparent for flat design */

/* Robot Car Wheels - Dark blue with white centers (flat design) */
.mini-robot .robot-wheel {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #1e3a8a; /* Dark blue */
    border-radius: 50%;
    z-index: 1;
    transform-origin: center center;
    border: none;
    box-shadow: none;
}

/* White center of wheel */
.mini-robot .robot-wheel::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Remove wheel spokes for flat design */
.mini-robot .robot-wheel::after {
    display: none;
}

.mini-robot .wheel-front-left {
    top: 6px;
    left: 8px;
}

.mini-robot .wheel-front-right {
    top: 6px;
    right: 8px;
}

.mini-robot .wheel-back-left {
    bottom: 6px;
    left: 8px;
}

.mini-robot .wheel-back-right {
    bottom: 6px;
    right: 8px;
}

/* Robot Axles - Dark blue horizontal bars connecting wheels */
.robot-axle {
    position: absolute;
    height: 2px;
    background: #1e3a8a; /* Dark blue */
    z-index: 0;
}

.axle-front {
    width: 50px;
    top: 13px;
    left: 8px;
}

.axle-back {
    width: 50px;
    bottom: 13px;
    left: 8px;
}

/* Colored Indicator Squares - Red, Orange, and two Yellow */
.robot-components {
    position: absolute;
    width: 24px;
    height: 8px;
    top: 18px;
    left: 20px;
    z-index: 3;
    display: flex;
    gap: 3px;
}

.component-block {
    width: 5px;
    height: 5px;
    border-radius: 1px;
}

.block-1 {
    background: #ef4444; /* Red */
}

.block-2 {
    background: #f97316; /* Orange */
}

.block-3 {
    background: #fbbf24; /* Yellow */
}

.block-4 {
    background: #fbbf24; /* Yellow */
}

.block-5, .block-6 {
    display: none; /* Only 4 indicators shown */
}

/* Colored Wires - Arcing from front head to components */
.robot-wire {
    position: absolute;
    height: 2px;
    z-index: 1;
    border-radius: 50px;
}

.wire-orange {
    width: 20px;
    background: #f97316; /* Orange */
    top: 17px;
    left: 10px;
    transform: rotate(-12deg);
    transform-origin: left center;
}

.wire-green {
    width: 20px;
    background: #22c55e; /* Green */
    top: 20px;
    left: 10px;
    transform: rotate(-2deg);
    transform-origin: left center;
}

.wire-red {
    width: 20px;
    background: #ef4444; /* Red */
    top: 23px;
    left: 10px;
    transform: rotate(8deg);
    transform-origin: left center;
}

@keyframes sensorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}


/* Add car body details - side panels */

@keyframes ledBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Movement Pattern Visual */
.movement-pattern-visual {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.pattern-track {
    width: 120px;
    height: 120px;
    position: relative;
}

.pattern-path {
    position: absolute;
    border: 2px dashed var(--primary-green);
    opacity: 0.3;
}

.pattern-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mini-robot-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: moveCircle 4s linear infinite;
}

.mini-robot-1 .robot-wheel {
    animation: wheelRotate 0.5s linear infinite;
}

@keyframes moveCircle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(50px) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

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

/* Navigation Visual */
.navigation-visual {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.nav-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.obstacle {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 6px;
    position: absolute;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 2px solid #991b1b;
}

.obstacle::before {
    content: '⚠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.obstacle-1 {
    top: 30%;
    right: 30%;
    animation: obstaclePulse 2s ease-in-out infinite;
}

.obstacle-2 {
    bottom: 25%;
    left: 25%;
    animation: obstaclePulse 2s ease-in-out infinite 1s;
}

@keyframes obstaclePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.9; 
        box-shadow: 0 3px 6px rgba(0,0,0,0.3), 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% { 
        transform: scale(1.08); 
        opacity: 1; 
        box-shadow: 0 3px 6px rgba(0,0,0,0.3), 0 0 8px 4px rgba(220, 38, 38, 0.3);
    }
}

.navigation-path {
    position: absolute;
    width: 3px;
    height: 60%;
    background: var(--primary-green);
    top: 20%;
    left: 20%;
    opacity: 0.4;
    animation: pathDraw 2s ease-in-out infinite;
}

@keyframes pathDraw {
    0% { height: 0; }
    50% { height: 60%; }
    100% { height: 60%; }
}

.mini-robot-2 {
    top: 20%;
    left: 20%;
    animation: navigatePath 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.mini-robot-2 .robot-wheel {
    animation: wheelRotate 0.4s linear infinite;
}

/* Removed - sensor-front no longer exists in new flat design */

@keyframes navigatePath {
    0% { 
        top: 15%; 
        left: 15%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    20% { 
        top: 15%; 
        left: 35%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    25% { 
        top: 15%; 
        left: 40%; 
        transform: translate(-50%, -50%) rotate(90deg);
    }
    42% { 
        top: 42%; 
        left: 40%; 
        transform: translate(-50%, -50%) rotate(90deg);
    }
    48% { 
        top: 48%; 
        left: 40%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    60% { 
        top: 48%; 
        left: 55%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    65% { 
        top: 48%; 
        left: 55%; 
        transform: translate(-50%, -50%) rotate(90deg);
    }
    80% { 
        top: 80%; 
        left: 55%; 
        transform: translate(-50%, -50%) rotate(90deg);
    }
    85% { 
        top: 80%; 
        left: 55%; 
        transform: translate(-50%, -50%) rotate(180deg);
    }
    95% { 
        top: 80%; 
        left: 15%; 
        transform: translate(-50%, -50%) rotate(180deg);
    }
    100% { 
        top: 15%; 
        left: 15%; 
        transform: translate(-50%, -50%) rotate(270deg);
    }
}

@keyframes scanObstacle {
    0%, 20% { opacity: 1; }
    21%, 24% { opacity: 0.3; }
    25%, 45% { opacity: 1; }
    46%, 49% { opacity: 0.3; }
    50%, 70% { opacity: 1; }
    71%, 74% { opacity: 0.3; }
    75%, 95% { opacity: 1; }
    96%, 99% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Line Following Visual */
.line-following-visual {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.line-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.track-line {
    position: absolute;
    width: 80%;
    height: 5px;
    background: linear-gradient(to bottom, #1f2937 0%, #000000 100%);
    top: 50%;
    left: 10%;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.track-line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: lineShine 2s linear infinite;
    border-radius: 3px;
}

.track-line::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    top: 1px;
    left: 0;
    border-radius: 2px;
    animation: lineMarker 2s linear infinite;
}

@keyframes lineShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes lineMarker {
    0% { left: 0; }
    100% { left: calc(100% - 20px); }
}

.mini-robot-3 {
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    animation: followLine 4s ease-in-out infinite;
}

.mini-robot-3 .robot-wheel {
    animation: wheelRotate 0.3s linear infinite;
}

.mini-robot-3 .sensor-left,
.mini-robot-3 .sensor-right {
    animation: sensorPulse 1s ease-in-out infinite, lineDetect 4s ease-in-out infinite;
}

@keyframes followLine {
    0% { 
        left: 10%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    10% { 
        left: 20%; 
        transform: translate(-50%, -50%) rotate(-2deg);
    }
    20% { 
        left: 30%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    30% { 
        left: 40%; 
        transform: translate(-50%, -50%) rotate(2deg);
    }
    40% { 
        left: 50%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% { 
        left: 60%; 
        transform: translate(-50%, -50%) rotate(-2deg);
    }
    60% { 
        left: 70%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    70% { 
        left: 80%; 
        transform: translate(-50%, -50%) rotate(2deg);
    }
    80% { 
        left: 85%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    90% { 
        left: 90%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% { 
        left: 10%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes lineDetect {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* LED Visual */
.led-visual {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.led-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.led {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.led-1 {
    background: #ef4444;
    color: #ef4444;
    animation: ledBlink 1s ease-in-out infinite;
}

.led-2 {
    background: #f59e0b;
    color: #f59e0b;
    animation: ledBlink 1s ease-in-out infinite 0.2s;
}

.led-3 {
    background: #10b981;
    color: #10b981;
    animation: ledBlink 1s ease-in-out infinite 0.4s;
}

.led-4 {
    background: #3b82f6;
    color: #3b82f6;
    animation: ledBlink 1s ease-in-out infinite 0.6s;
}

.led-5 {
    background: #8b5cf6;
    color: #8b5cf6;
    animation: ledBlink 1s ease-in-out infinite 0.8s;
}

@keyframes ledBlink {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Camera Visual */
.camera-visual {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid #a5b4fc;
}

.camera-scene {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.camera-robot {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.robot-body-cam {
    width: 60px;
    height: 35px;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-radius: 6px 6px 4px 4px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4), 0 0 0 2px #6366f1;
    position: relative;
    border: 1px solid #1f2937;
}

.robot-body-cam::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    top: 8px;
    left: 8px;
    box-shadow: 0 0 4px #ef4444;
    animation: ledBlink 1.5s ease-in-out infinite;
}

.camera-servo-mount {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center bottom;
    animation: cameraPan 4s ease-in-out infinite;
}

.servo-base {
    width: 12px;
    height: 8px;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-radius: 2px;
    margin: 0 auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.camera-assembly {
    position: relative;
    margin-top: 2px;
}

.camera-body {
    width: 20px;
    height: 15px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 3px;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.camera-lens-front {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 50%, #000000 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8), 0 0 6px rgba(16, 185, 129, 0.6);
}

@keyframes cameraPan {
    0%, 100% { transform: translateX(-50%) rotate(-40deg); }
    50% { transform: translateX(-50%) rotate(40deg); }
}

.camera-targets {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.target-object {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
    animation: targetPulse 2s ease-in-out infinite;
    z-index: 2;
}

.target-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.target-2 {
    top: 35%;
    right: 20%;
    animation-delay: 0.7s;
}

.target-3 {
    top: 60%;
    right: 25%;
    animation-delay: 1.4s;
}

@keyframes targetPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.camera-view-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 70px;
    height: 45px;
    background: rgba(30, 58, 95, 0.9);
    border: 2px solid #6366f1;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

.camera-view-indicator::before {
    content: '📹 LIVE';
    font-size: 0.7rem;
    font-weight: bold;
}

/* Behaviors Visual */
.behaviors-visual {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.behavior-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.behavior-path {
    position: absolute;
    border: 2px dashed var(--pink);
    opacity: 0.3;
}

.behavior-zigzag {
    width: 80px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(0% 50%, 25% 0%, 50% 50%, 75% 100%, 100% 50%);
}

.mini-robot-4 {
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    animation: zigzagMove 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.mini-robot-4 .robot-wheel {
    animation: wheelRotate 0.35s linear infinite;
}

.mini-robot-4 .robot-led {
    animation: ledBlink 0.8s ease-in-out infinite;
}

@keyframes zigzagMove {
    0% { 
        top: 50%; 
        left: 20%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    12.5% { 
        top: 45%; 
        left: 30%; 
        transform: translate(-50%, -50%) rotate(15deg);
    }
    25% { 
        top: 30%; 
        left: 40%; 
        transform: translate(-50%, -50%) rotate(45deg);
    }
    37.5% { 
        top: 40%; 
        left: 50%; 
        transform: translate(-50%, -50%) rotate(15deg);
    }
    50% { 
        top: 50%; 
        left: 60%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    62.5% { 
        top: 60%; 
        left: 70%; 
        transform: translate(-50%, -50%) rotate(-15deg);
    }
    75% { 
        top: 70%; 
        left: 80%; 
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    87.5% { 
        top: 60%; 
        left: 15%; 
        transform: translate(-50%, -50%) rotate(-15deg);
    }
    100% { 
        top: 50%; 
        left: 20%; 
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.behavior-track .sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkleFloat 2s ease-in-out infinite;
}

.sparkle-1 {
    top: 25%;
    right: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    bottom: 30%;
    left: 30%;
    animation-delay: 1s;
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

/* Specifications Section */
.specifications-section {
    margin-bottom: 4rem;
}

.specs-container {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.specs-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:nth-child(even) {
    background: var(--beige);
}

.spec-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.spec-value {
    color: var(--dark-gray);
}

/* Code Examples Section */
.code-examples-section {
    margin-bottom: 4rem;
}

.code-examples-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.code-walkthrough-card {
    background: var(--white);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Walkthrough Split Layout */
.walkthrough-split {
    display: flex;
    position: relative;
    min-height: 500px;
    overflow: visible;
}

/* Code Editor Panel */
.code-editor-panel {
    flex: 1.2;
    background: #1e1e1e;
    border-radius: 12px 0 0 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.code-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #252526;
    border-bottom: 1px solid #3e3e42;
    border-radius: 12px 0 0 0;
}

.code-filename {
    color: #cccccc;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 600;
}

.code-editor-content {
    display: flex;
    flex: 1;
    overflow: auto;
    background: #1e1e1e;
}

.line-numbers-column {
    background: #252526;
    padding: 0.5rem 0.75rem;
    border-right: 1px solid #3e3e42;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 50px;
}

.line-number {
    color: #858585;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0 0.5rem;
    user-select: none;
}

.code-content-column {
    flex: 1;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.code-content-column pre {
    margin: 0;
    padding: 0;
    background: transparent;
}

.code-line {
    display: block;
    padding: 0 8px;
    margin: 0;
    position: relative;
    line-height: 1.2;
    transition: all 0.2s;
    border-radius: 3px;
}

/* Highlighted code lines with connections */
.code-line[data-hw] {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid transparent;
    padding-left: 12px;
    margin-left: -8px;
}

.code-line[data-hw*="right-motor"] {
    color: #ffb84d;
    background: rgba(255, 140, 0, 0.15);
    border-left-color: #ff8c00;
    box-shadow: -2px 0 8px rgba(255, 140, 0, 0.3);
}

.code-line[data-hw*="left-motor"] {
    color: #7dd3fc;
    background: rgba(79, 195, 247, 0.15);
    border-left-color: #4fc3f7;
    box-shadow: -2px 0 8px rgba(79, 195, 247, 0.3);
}

.code-line[data-hw*="ultrasonic-sensor"] {
    color: #c084fc;
    background: rgba(156, 39, 176, 0.15);
    border-left-color: #9c27b0;
    box-shadow: -2px 0 8px rgba(156, 39, 176, 0.3);
}

.code-line[data-hw*="motor-driver"] {
    color: #86efac;
    background: rgba(102, 187, 106, 0.15);
    border-left-color: #66bb6a;
    box-shadow: -2px 0 8px rgba(102, 187, 106, 0.3);
}

/* Add connection indicator dot */
.code-line[data-hw]::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    opacity: 0.8;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.connection-lines path {
    stroke-width: 3;
    fill: none;
    opacity: 0.95;
    filter: drop-shadow(0 0 2px currentColor);
}

.connection-lines path[data-hw*="right-motor"] {
    stroke: #ff8c00;
    stroke-dasharray: 0;
}

.connection-lines path[data-hw*="left-motor"] {
    stroke: #4fc3f7;
    stroke-dasharray: 0;
}

.connection-lines path[data-hw*="ultrasonic-sensor"] {
    stroke: #9c27b0;
    stroke-dasharray: 0;
}

.connection-lines path[data-hw*="motor-driver"] {
    stroke: #66bb6a;
    stroke-dasharray: 0;
}

/* Connection start markers at code side */
.connection-lines circle {
    stroke-width: 2;
    filter: drop-shadow(0 0 3px currentColor);
}

.connection-lines circle[data-hw*="right-motor"] {
    fill: #ff8c00;
    stroke: #fff;
    r: 5;
}

.connection-lines circle[data-hw*="left-motor"] {
    fill: #4fc3f7;
    stroke: #fff;
    r: 5;
}

.connection-lines circle[data-hw*="ultrasonic-sensor"] {
    fill: #9c27b0;
    stroke: #fff;
    r: 5;
}

.connection-lines circle[data-hw*="motor-driver"] {
    fill: #66bb6a;
    stroke: #fff;
    r: 5;
}

/* Callout labels - LARGE AND READABLE */
.connection-lines text {
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    fill: #ffffff !important;
    font-weight: bold !important;
    text-anchor: middle;
    pointer-events: none;
    stroke: #000000 !important;
    stroke-width: 2 !important;
    paint-order: stroke fill;
}

/* Information Panel */
.info-panel {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-left: 1px solid #e0e0e0;
    border-radius: 0 12px 12px 0;
    position: relative;
    z-index: 1;
    overflow-y: auto;
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.info-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
}

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

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4caf50;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.info-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.info-section-text {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.list-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hardware-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hardware-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: relative;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.hardware-info-item[id="right-motor"] {
    border-left-color: #ff8c00;
    background: linear-gradient(to right, rgba(255, 140, 0, 0.05) 0%, var(--white) 10%);
}

.hardware-info-item[id="left-motor"] {
    border-left-color: #4fc3f7;
    background: linear-gradient(to right, rgba(79, 195, 247, 0.05) 0%, var(--white) 10%);
}

.hardware-info-item[id="ultrasonic-sensor"] {
    border-left-color: #9c27b0;
    background: linear-gradient(to right, rgba(156, 39, 176, 0.05) 0%, var(--white) 10%);
}

.hardware-info-item[id="motor-driver"] {
    border-left-color: #66bb6a;
    background: linear-gradient(to right, rgba(102, 187, 106, 0.05) 0%, var(--white) 10%);
}

.hardware-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.left-motor-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.right-motor-icon {
    background: #fff3e0;
    color: #f57c00;
}

.sensor-icon {
    background: #f3e5f5;
    color: #7b1fa2;
}

.hardware-info-content {
    flex: 1;
}

.hardware-info-content strong {
    display: block;
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 0.4rem;
}

.hardware-info-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.hardware-info-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
    color: #d73502;
}

.code-example-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    padding: 1.5rem 2rem 0.5rem;
    margin: 0;
}

.code-example-description {
    font-size: 1rem;
    color: var(--dark-gray);
    padding: 0 2rem 1.5rem;
    margin: 0;
    line-height: 1.6;
}

.arduino-code-block {
    background: #1e1e1e;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--beige);
    border-bottom: 1px solid var(--light-gray);
    border-radius: 8px 8px 0 0;
}

.code-language {
    color: #858585;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.copy-button {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.copy-button:hover {
    background: var(--dark-green);
}

.arduino-code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-footer {
    padding: 1rem 1.5rem;
    background: #252526;
    border-top: 1px solid #3e3e42;
    border-radius: 0 0 0 12px;
}

.code-footer p {
    color: #858585;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.arduino-code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #d4d4d4;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    white-space: pre;
}

.arduino-code .keyword {
    color: #0066cc;
    font-weight: 600;
}

.arduino-code .string {
    color: #d73502;
}

.arduino-code .number {
    color: #098658;
}

.arduino-code .comment {
    color: #6a737d;
    font-style: italic;
}

.arduino-code .function {
    color: #8250df;
    font-weight: 600;
}

/* Hardware Breakdown Section */
.hardware-breakdown {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-top: 3px solid var(--primary-green);
}

.breakdown-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.hardware-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hardware-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hardware-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hardware-info {
    flex: 1;
}

.hardware-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.hardware-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-gray);
    margin: 0;
}

/* Assembly Section */
.assembly-section {
    margin-bottom: 4rem;
}

.assembly-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.assembly-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.assembly-step {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0;
}

/* Customization Ideas Section */
.customization-ideas-section {
    margin-bottom: 4rem;
}

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

.idea-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-green);
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.idea-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.idea-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Resources Section */
.resources-section {
    margin-bottom: 4rem;
}

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

.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.resource-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.resource-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.resource-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s;
}

.resource-link:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Responsive Design for Robotics Page */
@media (max-width: 768px) {
    .robotics-main {
        padding: 2rem 1rem;
    }

    .robotics-page .page-title {
        font-size: 2rem;
    }

    .robotics-page .page-subtitle {
        font-size: 1rem;
    }

    .project-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .robot-car-image {
        max-height: 300px;
    }

    .robot-car-gallery {
        grid-template-columns: 1fr;
    }

    .robot-car-placeholder {
        min-height: 250px;
        padding: 2rem 1rem;
    }

    .robot-car-visual {
        width: 150px;
        height: 120px;
    }

    .robot-body {
        width: 140px;
        height: 80px;
    }

    .project-name {
        font-size: 1.5rem;
    }

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

    .features-grid,
    .resources-grid,
    .ideas-grid {
        grid-template-columns: 1fr;
    }

    .feature-visual {
        height: 150px;
    }

    .pattern-track,
    .nav-track,
    .line-track,
    .behavior-track {
        transform: scale(0.9);
    }

    .led-container {
        gap: 0.5rem;
    }

    .led {
        width: 16px;
        height: 16px;
    }

    .camera-container {
        width: 50px;
        height: 50px;
    }

    .camera-base {
        width: 40px;
        height: 25px;
    }

    .camera-lens {
        width: 20px;
        height: 20px;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .spec-label {
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .assembly-step {
        flex-direction: column;
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .arduino-code {
        font-size: 0.85rem;
    }

    .arduino-code-block pre {
        padding: 1rem;
    }

    .robotics-page .page-title {
        font-size: 1.75rem;
    }

    .robotics-page .page-subtitle {
        font-size: 0.9rem;
    }

    .project-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .robot-car-image {
        max-height: 200px;
    }

    .project-name {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .feature-visual {
        height: 100px;
    }

    .feature-card {
        padding: 0.75rem;
    }

    .walkthrough-split {
        flex-direction: column;
    }

    .code-editor-panel {
        border-radius: 12px 12px 0 0;
    }

    .info-panel {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        border-radius: 0 0 12px 12px;
    }

    .code-file-header {
        border-radius: 12px 12px 0 0;
    }

    .code-footer {
        border-radius: 0;
    }

    .hardware-breakdown {
        padding: 1rem;
    }

    .hardware-grid {
        grid-template-columns: 1fr;
    }

    .hardware-item {
        flex-direction: column;
        text-align: center;
    }

    .hardware-icon {
        margin: 0 auto;
    }
}

