/* Premium Compiler Page Styles */
:root {
    --editor-bg: #0d1117;
    --titlebar-bg: #161b22;
    --terminal-bg: #010409;
    --accent-glow: rgba(99, 102, 241, 0.15);
}

.compiler-page {
    min-height: 100vh;
    padding: 60px 20px;
    background: #0f172a;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* Background grid effect */
.compiler-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.compiler-page > * {
    position: relative;
    z-index: 1;
}

/* Hero Section Upgrade */
.compiler-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.compiler-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: #818cf8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.compiler-hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    color: #f8fafc;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.compiler-hero p {
    font-size: 20px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Playground Container Glassmorphism */
.playground-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Title Bar */
.playground-title-bar {
    background: #161b22;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.title-left {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.traffic-lights .light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.light.red { background: #ff5f56; box-shadow: 0 0 8px rgba(255, 95, 86, 0.3); }
.light.yellow { background: #ffbd2e; box-shadow: 0 0 8px rgba(255, 189, 46, 0.3); }
.light.green { background: #27c93f; box-shadow: 0 0 8px rgba(39, 201, 63, 0.3); }

/* Tab Bar */
.playground-tab-bar {
    background: #0d1117;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-item {
    padding: 14px 24px;
    background: #161b22;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.tab-item .file-name {
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Controls */
.playground-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-selector select {
    background: #161b22;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.lang-selector select:hover {
    border-color: #6366f1;
    background: #1c2128;
}

.btn-playground-clear {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-playground-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-playground-run {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-playground-run::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-playground-run:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px -5px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

.btn-playground-run:hover::after {
    left: 100%;
}

.btn-playground-run:active {
    transform: translateY(-1px) scale(0.98);
}

/* Editor Area */
#editor {
    height: 500px;
    width: 100%;
    font-size: 16px;
    background: #0d1117 !important;
}

/* Execution Area */
.playground-execution-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #010409;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.playground-input, .playground-console {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.playground-input {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.console-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-label i {
    font-size: 12px;
}

#stdin {
    width: 100%;
    height: 140px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: all 0.2s;
}

#stdin:focus {
    border-color: #6366f1;
    background: #161b22;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

#output {
    color: #10b981; /* Terminal Green */
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    height: 140px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
}

/* Custom Scrollbar for Terminal */
#output::-webkit-scrollbar {
    width: 6px;
}
#output::-webkit-scrollbar-track {
    background: transparent;
}
#output::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
#output::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Features Section below compiler */
.compiler-features {
    max-width: 1200px;
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 16px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    color: #f1f5f9;
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
}

/* Premium Compiler Page Styles - LIGHT THEME */
:root {
    --editor-bg: #0d1117;
    --titlebar-bg: #161b22;
    --terminal-bg: #010409;
}

.compiler-page {
    min-height: 100vh;
    padding: 60px 20px;
    background: #f8fafc; /* Light background */
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* Background grid effect for light theme */
.compiler-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.compiler-page > * {
    position: relative;
    z-index: 1;
}

/* Hero Section Upgrade - Dark text for light theme */
.compiler-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.compiler-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.compiler-hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 20px;
}

.compiler-hero p {
    font-size: 20px;
    color: #64748b;
    line-height: 1.6;
}

/* Playground Container */
.playground-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 80px;
    background: #0d1117; /* Keep editor dark */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
}

/* ... existing playground styles (omitted for brevity in this replace call, will keep them) ... */

/* Features Section - Standard light theme cards */
.compiler-features {
    max-width: 1200px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: #64748b;
    font-size: 15px;
}

/* How to Use Section - Updated for light theme */
.how-to-use-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 32px;
    color: #1e293b; /* Dark text */
    margin-bottom: 10px;
}

.section-header p {
    color: #64748b;
}

.tutorial-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f5f9;
    padding: 60px;
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.05);
}

.animated-demo-container {
    position: relative;
    width: 100%;
    background: transparent;
    height: 650px; /* More height for steps below */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

.demo-window-3d {
    width: 100%;
    max-width: 650px;
    background: #161b22;
    border-radius: 24px; /* More curvy */
    box-shadow: 0 50px 100px rgba(0,0,0,0.4);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden; /* Ensure children follow the curve */
    border: 1px solid rgba(255,255,255,0.05);
    animation: windowOrbit 12s infinite ease-in-out;
}

/* Simulated Cursor Pro - RE-ADJUSTED COORDINATES */
.simulated-cursor-pro {
    position: absolute;
    width: 24px;
    height: 24px;
    color: white; /* Back to white for contrast on dark window */
    font-size: 24px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 5px 15px rgba(0,0,0,0.5);
    z-index: 9999;
    pointer-events: none;
    animation: cursorMovePro 15s infinite cubic-bezier(0.65, 0, 0.35, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes cursorMovePro {
    0% { top: 60px; left: 60px; opacity: 0; }
    5% { opacity: 1; }
    25% { top: 100px; left: 60px; } /* Writing code */
    35% { top: 250px; left: 80px; } /* Move to Input */
    55% { top: 280px; left: 180px; } /* Done input */
    65% { top: 435px; left: 520px; } /* Move to Run (relative to window) */
    70% { transform: scale(0.8); } /* Click */
    75% { transform: scale(1); top: 435px; left: 520px; opacity: 1; }
    85% { opacity: 0; }
    100% { top: 60px; left: 60px; opacity: 0; }
}

/* Progress Steps - RESTORED PILL STYLE */
.demo-progress-steps {
    position: relative;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.p-step {
    background: white;
    padding: 12px 24px;
    border-radius: 100px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    justify-content: center;
}

/* Typing Carets */
.typing-cursor-editor, .typing-cursor-stdin {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #6366f1;
    margin-left: 2px;
    vertical-align: middle;
    animation: caretBlink 0.8s infinite;
}

.typing-cursor-editor { animation-delay: 0s; opacity: 0; animation-name: caretBlink, caretShowEditor; animation-duration: 0.8s, 15s; }
.typing-cursor-stdin { animation-delay: 0s; opacity: 0; animation-name: caretBlink, caretShowStdin; animation-duration: 0.8s, 15s; }

@keyframes caretBlink { 50% { opacity: 0; } }
@keyframes caretShowEditor { 0%, 5% { opacity: 0; } 10%, 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes caretShowStdin { 0%, 40% { opacity: 0; } 45%, 60% { opacity: 1; } 65%, 100% { opacity: 0; } }

/* Demo Layout */
.demo-header {
    background: #0d1117;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.demo-tab {
    margin-left: 15px;
    font-size: 13px;
    color: #f1f5f9;
    font-weight: 700;
}

.demo-body {
    padding: 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    background: #0d1117;
    line-height: 2;
}

.code-line-anim {
    color: #e2e8f0;
    opacity: 0;
    animation: codeTypePro 15s infinite;
}

.code-keyword { color: #f472b6; }
.code-string { color: #fbbf24; }

/* Execution Simulation Area */
.demo-execution-sim {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #010409;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sim-input-box, .sim-output-box { padding: 25px; }
.sim-input-box { border-right: 1px solid rgba(255,255,255,0.1); }

.sim-label {
    font-size: 11px;
    font-weight: 900;
    color: #475569;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sim-textarea-pro {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    height: 90px;
    padding: 15px;
    color: #f1f5f9;
    font-size: 16px;
}

.typing-stdin-pro {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: stdinTypePro 15s infinite;
}

.sim-console-pro {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    height: 90px;
    padding: 15px;
    color: #10b981;
    font-size: 14px;
    font-family: monospace;
}

.sim-console-pro div { opacity: 0; animation: outputShowPro 15s infinite; }
.out-line-spinner { color: #94a3b8; font-size: 12px; }

/* Run Button Pro */
.sim-run-btn-pro {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 36px;
    border-radius: 14px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    animation: runBtnWorkflow 15s infinite;
    cursor: default;
    border: 1px solid rgba(255,255,255,0.1);
}

.sim-run-btn-pro::before {
    content: '\f04b'; /* FontAwesome play icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 12px;
}

/* Keyframes - RE-ADDED */
@keyframes windowOrbit {
    0%, 100% { transform: rotateX(5deg) rotateY(-5deg) translateY(0); }
    50% { transform: rotateX(2deg) rotateY(5deg) translateY(-10px); }
}

@keyframes cursorMovePro {
    0% { top: 40px; left: 40px; opacity: 0; }
    5% { opacity: 1; }
    25% { top: 80px; left: 40px; } /* Writing code (relative) */
    35% { top: 220px; left: 60px; } /* Move to Input */
    55% { top: 260px; left: 160px; } /* Done input */
    65% { top: 410px; left: 480px; } /* Move to Run (relative to window) */
    70% { transform: scale(0.8); } /* Click */
    75% { transform: scale(1); top: 410px; left: 480px; opacity: 1; }
    85% { opacity: 0; }
    100% { top: 40px; left: 40px; opacity: 0; }
}

/* Step Highlighting - ENHANCED */
.s-1 { animation: stepActive1 15s infinite; }
.s-2 { animation: stepActive2 15s infinite; }
.s-3 { animation: stepActive3 15s infinite; }

/* Step Highlighting - CRYSTAL CLEAR */
.p-step {
    background: white;
    padding: 12px 28px;
    border-radius: 100px;
    color: #94a3b8; /* Lighter grey for inactive */
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.6s ease;
    opacity: 0.4;
}

.p-step span {
    font-size: 16px;
    font-weight: 800;
    color: inherit;
}

@keyframes stepActive1 { 
    0%, 34% { 
        background: #4f46e5; 
        color: white; 
        opacity: 1;
        transform: scale(1.05); 
        box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3); 
    } 
    35%, 100% { 
        background: white; 
        color: #94a3b8;
        opacity: 0.4;
        transform: scale(1);
    } 
}
@keyframes stepActive2 { 
    0%, 34% { background: white; color: #94a3b8; opacity: 0.4; } 
    35%, 64% { 
        background: #4f46e5; 
        color: white; 
        opacity: 1;
        transform: scale(1.05); 
        box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3); 
    } 
    65%, 100% { 
        background: white; 
        color: #94a3b8;
        opacity: 0.4;
        transform: scale(1);
    } 
}
@keyframes stepActive3 { 
    0%, 64% { background: white; color: #94a3b8; opacity: 0.4; } 
    65%, 92% { 
        background: #10b981; 
        color: white; 
        opacity: 1;
        transform: scale(1.05); 
        box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3); 
    } 
    93%, 100% { 
        background: white; 
        color: #94a3b8;
        opacity: 0.4;
        transform: scale(1);
    } 
}

@keyframes codeTypePro {
    0%, 5% { opacity: 0; transform: translateY(5px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    95%, 100% { opacity: 0; }
}

@keyframes stdinTypePro {
    0%, 45% { width: 0; }
    60%, 90% { width: 100%; }
    95%, 100% { width: 0; }
}

@keyframes runBtnWorkflow {
    0%, 69% { background: #6366f1; transform: scale(1); }
    70% { background: #4f46e5; transform: scale(0.9); }
    71%, 85% { background: #10b981; transform: scale(1); }
    90%, 100% { background: #6366f1; }
}

@keyframes outputShowPro {
    0%, 72% { opacity: 0; transform: translateY(10px); }
    75%, 90% { opacity: 1; transform: translateY(0); }
    95%, 100% { opacity: 0; }
}

/* Section Header for Tutorial */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.icon-tutorial {
    color: #6366f1;
    font-size: 32px;
    margin-bottom: 15px;
}

.tutorial-title {
    font-size: 36px;
    color: #1e293b;
    font-weight: 800;
}

.tutorial-subtitle {
    color: #64748b;
    font-size: 18px;
}

/* --- Mobile Responsiveness Consolidate --- */

@media (max-width: 1024px) {
    .compiler-hero h1 { font-size: 48px; }
    .playground-container { max-width: 95%; }
}

@media (max-width: 992px) {
    .compiler-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .playground-execution-area {
        grid-template-columns: 1fr;
    }
    
    .playground-input {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .compiler-page { padding: 40px 15px; }
    
    .compiler-hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .compiler-hero p {
        font-size: 16px;
    }

    .playground-container {
        border-radius: 12px;
        overflow: hidden;
    }

    .playground-title-bar {
        padding: 12px 16px;
    }

    .playground-tab-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .tab-item {
        border-left: none;
        border-right: none;
        padding: 12px 16px;
    }

    .playground-controls {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
        background: #161b22;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .lang-selector {
        width: 100%;
    }

    .lang-selector select {
        width: 100%;
    }

    .btn-playground-clear {
        flex: 1;
        padding: 10px;
    }

    .btn-playground-run {
        flex: 2;
        padding: 10px;
        justify-content: center;
    }
    
    #editor {
        height: 350px;
    }

    .playground-input, .playground-console {
        padding: 16px;
    }

    #stdin, #output {
        height: 120px;
        font-size: 13px;
    }

    /* Demo Section Adjustments */
    .tutorial-grid { padding: 20px 10px; border-radius: 20px; }
    .animated-demo-container { height: auto; padding: 0; }
    .demo-window-3d { width: 100%; margin-bottom: 30px; animation: none; transform: none !important; }
    .simulated-cursor-pro { display: none; }
    .demo-body { font-size: 14px; padding: 20px; }
    .demo-execution-sim { grid-template-columns: 1fr; }
    .sim-textarea-pro, .sim-console-pro { height: 70px; font-size: 13px; }
    .demo-progress-steps { flex-direction: column; width: 100%; gap: 10px; }
    .p-step { width: 100%; opacity: 1 !important; animation: none !important; background: #4f46e5 !important; color: white !important; }
    
    .tutorial-title { font-size: 28px; }
    .tutorial-subtitle { font-size: 15px; }
}

@media (max-width: 480px) {
    .compiler-hero h1 { font-size: 28px; }
    .compiler-badge { font-size: 10px; padding: 4px 12px; }
    .playground-title-bar .title-left span { font-size: 10px; }
    .traffic-lights { display: none; }
}