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

:root {
    --primary-color: #01D29B;
    --secondary-color: #121212;
    --accent-color: #00B894;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --background-primary: #121212;
    --background-secondary: #1E1E1E;
    --background-tertiary: #2A2A2A;
    --border-color: #333333;
    --success-color: #00D4AA;
    --warning-color: #FFA726;
    --error-color: #EF5350;
    --shadow: 0 4px 20px rgba(1, 210, 155, 0.1);
    --shadow-hover: 0 8px 30px rgba(1, 210, 155, 0.2);
    --izno-color:black;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(18, 18, 18, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(1, 210, 155, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.99) 0%, rgba(18, 18, 18, 0.98) 100%);
    border-bottom: 1px solid rgba(1, 210, 155, 0.25);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #01D29B;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(1, 210, 155, 0.1), rgba(1, 210, 155, 0.05));
    border: 1px solid rgba(1, 210, 155, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 210, 155, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-logo:hover::before {
    left: 100%;
}

.nav-logo:hover {
    transform: translateY(-2px);
    color: #00b894;
    background: linear-gradient(135deg, rgba(1, 210, 155, 0.15), rgba(1, 210, 155, 0.1));
    border-color: rgba(1, 210, 155, 0.4);
    box-shadow: 0 6px 20px rgba(1, 210, 155, 0.25);
}

.nav-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #01D29B, #00b894);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 20px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 16px;
    background: transparent;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #01D29B;
    background: rgba(1, 210, 155, 0.1);
    border-color: rgba(1, 210, 155, 0.2);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #01D29B;
    background: linear-gradient(135deg, rgba(1, 210, 155, 0.15), rgba(1, 210, 155, 0.1));
    border-color: rgba(1, 210, 155, 0.3);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(1, 210, 155, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #01D29B, #00b894);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* User dropdown removed */

/* User dropdown styles removed */

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

.cta-btn {
    background: linear-gradient(135deg, #01D29B, #00b894);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(1, 210, 155, 0.3);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #00b894, #00a085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 210, 155, 0.4);
}

.nav-btn-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn-secondary:hover {
    background: linear-gradient(135deg, rgba(1, 210, 155, 0.2), rgba(0, 212, 170, 0.2));
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 210, 155, 0.2);
}

.page-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-indicator i {
    color: var(--primary-color);
    font-size: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(1, 210, 155, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: var(--background-tertiary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
}

.window-header {
    background: var(--background-secondary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F56;
}

.window-dots span:nth-child(2) {
    background: #FFBD2E;
}

.window-dots span:nth-child(3) {
    background: #27CA3F;
}

.window-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 10px;
}

.code-content {
    padding: 20px;
}

.code-content pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.code-content code {
    color: var(--primary-color);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Curriculum Section */
.curriculum {
    padding: 80px 0;
    background: var(--background-secondary);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.day-card {
    background: linear-gradient(135deg, var(--background-tertiary) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(1, 210, 155, 0.08) 0%, 
        rgba(0, 184, 148, 0.04) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.day-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 48px rgba(1, 210, 155, 0.2);
    border-color: rgba(1, 210, 155, 0.4);
    background: linear-gradient(135deg, var(--background-tertiary) 0%, rgba(1, 210, 155, 0.05) 100%);
}

.day-card:hover .card-gradient {
    opacity: 1;
}

.day-card:hover .card-arrow {
    transform: translateX(6px);
    color: var(--primary-color);
    background: rgba(1, 210, 155, 0.1);
    border-color: rgba(1, 210, 155, 0.2);
}

.card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.day-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    font-weight: 600;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 850;
    color: var(--text-primary);
    letter-spacing: 1px;
    line-height: 1;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-status {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.card-status[data-status="completed"] {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--text-primary);
}

.card-status[data-status="active"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.card-body p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 1rem;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tag {
    background: rgba(1, 210, 155, 0.08);
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(1, 210, 155, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.day-card:hover .tag {
    background: rgba(1, 210, 155, 0.12);
    border-color: rgba(1, 210, 155, 0.25);
    transform: translateY(-1px);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.challenge-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.challenge-info i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

/* Challenges Section */
.challenges {
    padding: 80px 0;
    background: var(--background-primary);
}

.challenges-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-button {
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button.active,
.tab-button:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.challenge-container {
    max-width: 1000px;
    margin: 0 auto;
}

.challenge-panel {
    background: var(--background-tertiary);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.challenge-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.challenge-meta {
    display: flex;
    gap: 15px;
}

.difficulty,
.time {
    background: rgba(1, 210, 155, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.challenge-description {
    margin-bottom: 30px;
}

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

.code-editor {
    margin-bottom: 20px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.editor-header span {
    color: var(--text-primary);
    font-weight: 500;
}

.run-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.run-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 212, 170, 0.3);
}

#code-input {
    width: 100%;
    height: 200px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

#code-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.output-panel {
    margin-bottom: 30px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.output-header span {
    color: var(--text-primary);
    font-weight: 500;
}

.reset-button {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

#output-frame {
    width: 100%;
    height: 200px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    overflow: auto;
    color: var(--text-primary);
}

.challenge-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.nav-button {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-button.primary {
    background: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.nav-button.primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Resources Section */
.resources {
    padding: 80px 0;
    background: var(--background-secondary);
}

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

.resource-card {
    background: var(--background-tertiary);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.resource-icon i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: 12px;
}

.resource-card a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-card a::before {
    content: '→';
    color: var(--primary-color);
    font-weight: bold;
}

.resource-card a:hover {
    color: var(--primary-color);
}

/* Lesson Modal */
.lesson-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.lesson-modal-content {
    background-color: var(--background-primary);
    margin: 2% auto;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lesson-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-secondary);
}

.lesson-modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
    background: var(--background-tertiary);
}

.lesson-modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow: hidden;
}

.lesson-tabs {
    display: flex;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
}

.lesson-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.lesson-tab.active,
.lesson-tab:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--background-tertiary);
}

.lesson-content {
    height: calc(90vh - 140px);
    overflow: hidden;
}

.lesson-panel {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.lesson-panel.active {
    display: block;
}

.lesson-documentation {
    padding: 30px;
    line-height: 1.7;
}

.lesson-documentation h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.lesson-documentation h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
}

.lesson-documentation p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.lesson-documentation ul {
    color: var(--text-secondary);
    margin: 20px 0;
    padding-left: 20px;
}

.lesson-documentation li {
    margin-bottom: 10px;
}

.code-example {
    background: var(--background-tertiary);
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.code-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.code-header span {
    color: var(--text-primary);
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: var(--primary-color);
    background: var(--background-tertiary);
}

.code-example pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-example code {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.element-card {
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.element-card h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.element-card p {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin-bottom: 8px;
}

.element-card small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--background-tertiary);
    border-color: var(--primary-color);
}

.nav-btn.primary {
    background: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.nav-btn.primary:hover {
    background: var(--accent-color);
}

.lesson-challenge {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lesson-challenge .challenge-header {
    margin-bottom: 20px;
}

.lesson-challenge .code-editor {
    flex: 1;
    margin-bottom: 20px;
}

.lesson-challenge .output-panel {
    flex: 1;
    margin-bottom: 20px;
}

.lesson-challenge #code-input {
    height: 300px;
}

.lesson-challenge #output-frame {
    height: 300px;
}

/* Day Pages Styles */
.day-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.day-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(1, 210, 155, 0.1) 0%, transparent 50%);
}

.day-header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.day-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    font-weight: 600;
}

.day-number {
    font-size: 1.1rem;
}

.day-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.day-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.day-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-color);
}

/* Content Section */
.day-content {
    padding: 60px 0;
    background: var(--background-primary);
}

.content-grid {
    display: flex;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.content-main {
    background: var(--background-tertiary);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    
}

.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* New content styles for Day 1 */
.concept-highlight {
    background: rgba(1, 210, 155, 0.05);
    border: 1px solid rgba(1, 210, 155, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.concept-highlight h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.concept-highlight ul {
    margin: 0;
    padding-left: 20px;
}

.concept-highlight li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.concept-highlight code {
    background: rgba(1, 210, 155, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.tip-box {
    background: rgba(255, 167, 38, 0.05);
    border: 1px solid rgba(255, 167, 38, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.tip-box h4 {
    color: var(--warning-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tip-box p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.practice-exercise {
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.practice-exercise h4 {
    color: var(--success-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.practice-exercise p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.accessibility-note {
    background: rgba(239, 83, 80, 0.05);
    border: 1px solid rgba(239, 83, 80, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.accessibility-note h4 {
    color: var(--error-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.accessibility-note p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.accessibility-note ul {
    margin: 0;
    padding-left: 20px;
}

.accessibility-note li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.code-output {
    margin-top: 15px;
    padding: 15px;
    background: var(--background-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.code-output h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.browser-preview {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #333;
}

.demo-output {
    margin-top: 15px;
    text-align: center;
}

.content-placeholder {
    background: var(--background-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.placeholder-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.placeholder-header i {
    font-size: 1.2rem;
}

.placeholder-content {
    color: var(--text-secondary);
}

.placeholder-content ul {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.placeholder-content li {
    margin-bottom: 8px;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.concept-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.concept-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.concept-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.concept-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 10;
    background: var(--background-tertiary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    position: relative;
}

.sidebar-nav a:hover {
    color: var(--primary-color);
    background: rgba(1, 210, 155, 0.1);
    transform: translateX(4px);
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 16px;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: width 0.3s ease;
}

.sidebar-nav a:hover::before {
    width: 4px;
}

.resource-links {
    list-style: none;
    padding: 0;
}

.resource-links li {
    margin-bottom: 12px;
}

.resource-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.resource-links a:hover {
    color: var(--primary-color);
    background: rgba(1, 210, 155, 0.1);
    transform: translateX(4px);
}

.resource-links i {
    font-size: 0.9rem;
}

/* Sidebar scrollbar styling */
.content-sidebar::-webkit-scrollbar {
    width: 6px;
}

.content-sidebar::-webkit-scrollbar-track {
    background: var(--background-secondary);
    border-radius: 3px;
}

.content-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.content-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Challenges Section */
.challenges-section {
    padding: 60px 0;
    background: var(--background-secondary);
}

.challenges-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.challenges-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.challenges-section .challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.challenges-section .challenge-card {
    background: linear-gradient(145deg, 
        var(--background-secondary) 0%, 
        var(--background-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.challenges-section .challenge-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 30px rgba(1, 210, 155, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.challenges-section .challenge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.challenges-section .challenge-number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(1, 210, 155, 0.3);
}

.challenges-section .challenge-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    text-align: right;
}

.challenges-section .difficulty {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.challenges-section .difficulty.beginner {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.challenges-section .difficulty.intermediate {
    background: rgba(255, 167, 38, 0.15);
    color: #FFA726;
}

.challenges-section .difficulty.advanced {
    background: rgba(239, 83, 80, 0.15);
    color: #EF5350;
}

.challenges-section .time {
    background: rgba(1, 210, 155, 0.15);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.challenges-section .challenge-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.challenges-section .challenge-card p {
    color: var(--text-secondary);
    margin-bottom: auto;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.challenge-placeholder {
    background: var(--background-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.challenges-section .challenge-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.challenges-section .challenge-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 210, 155, 0.3);
}

.challenges-section .challenge-btn i {
    font-size: 1.1rem;
}

/* New Challenge Styles */
.challenge-content {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.challenge-content.active {
    display: block;
}

.challenge-objective {
    background: rgba(1, 210, 155, 0.1);
    border: 1px solid rgba(1, 210, 155, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.challenge-objective h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.challenge-objective p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.challenge-requirements {
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.challenge-requirements h4 {
    color: var(--warning-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.challenge-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.challenge-requirements li {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.challenge-requirements code {
    background: rgba(1, 210, 155, 0.2);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.challenge-hint {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.challenge-hint h4 {
    color: var(--success-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.challenge-hint p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.challenge-code-editor {
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.challenge-code-editor .editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
}

.challenge-code-editor .editor-header span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.run-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 212, 170, 0.3);
}

.challenge-code-editor textarea {
    width: 100%;
    min-height: 150px;
    background: var(--background-primary);
    border: none;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 15px;
    resize: vertical;
    outline: none;
}

.challenge-code-editor textarea:focus {
    background: var(--background-primary);
}

.challenge-output {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--border-color);
    min-height: 100px;
    color: #333;
    font-family: Arial, sans-serif;
}

.challenge-output:empty {
    display: none;
}

.challenge-output:not(:empty) {
    display: block;
}

/* Day Navigation */
.day-navigation {
    padding: 40px 0;
    background: var(--background-primary);
    border-top: 1px solid var(--border-color);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-btn:hover {
    background: var(--background-tertiary);
    border-color: var(--primary-color);
}

.nav-btn.primary {
    background: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.nav-btn.primary:hover {
    background: var(--accent-color);
}

/* Responsive Design for Day Pages */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        position: static;
        order: -1;
    }
    
    .day-header h1 {
        font-size: 2.5rem;
    }
    
    .day-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn, .nav-button {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--background-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .nav-container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .curriculum-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .challenges-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .concepts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .code-window {
        max-width: 100%;
    }
    
    .lesson-modal-content {
        width: 90%;
        max-width: 800px;
        margin: 20px auto;
    }
    
    .challenge-modal-content {
        width: 90%;
        max-width: 800px;
        margin: 20px auto;
    }
    
    .elements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(18, 18, 18, 0.95));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 15px;
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(1, 210, 155, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile user button removed */

    .nav-container {
        padding: 0 20px;
        height: 70px;
    }
    
    .nav-logo {
        font-size: 1.4rem;
        padding: 8px 12px;
    }
    
    .nav-logo i {
        font-size: 1.6rem;
    }

    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .stat {
        min-width: 120px;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .day-card {
        padding: 32px;
        height: 480px;
        border-radius: 20px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .progress-overview {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .challenges-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-button {
        width: 100%;
        justify-content: center;
    }

    .challenge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .challenge-meta {
        align-self: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .difficulty,
    .time {
        font-size: 12px;
        padding: 4px 8px;
    }

    .challenge-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-button {
        justify-content: center;
        width: 100%;
    }
    
    .code-editor {
        margin: 20px 0;
    }
    
    .editor-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .run-button {
        width: 100%;
        justify-content: center;
    }
    
    .output-panel {
        margin: 20px 0;
    }
    
    .output-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .reset-button {
        width: 100%;
        justify-content: center;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .resource-card {
        padding: 25px;
    }
    
    .lesson-modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: 90vh;
    }
    
    .lesson-modal-header {
        padding: 20px;
    }
    
    .lesson-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .lesson-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .lesson-tab {
        width: 100%;
        justify-content: center;
    }
    
    .lesson-content {
        padding: 15px;
    }
    
    .elements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .element-card {
        padding: 20px;
    }
    
    .lesson-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-section {
        margin-bottom: 25px;
    }
    
    .sidebar-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .sidebar-nav a {
        padding: 12px 15px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .day-header {
        padding: 40px 0;
    }
    
    .day-header h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .day-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .content-section {
        margin-bottom: 30px;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .concept-highlight,
    .tip-box,
    .practice-exercise,
    .accessibility-note {
        padding: 20px;
    }
    
    .concepts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .concept-card {
        padding: 25px;
    }
    
    .challenges-section {
        margin-top: 40px;
    }
    
    .challenges-section h2 {
        font-size: 2rem;
    }
    
    .challenges-intro {
        margin-bottom: 30px;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .challenge-card {
        padding: 25px;
    }
    
    .challenge-card h3 {
        font-size: 1.3rem;
    }
    
    .challenge-content {
        padding: 20px;
    }
    
    .challenge-objective,
    .challenge-requirements,
    .challenge-hint {
        padding: 20px;
    }
    
    .challenge-code-editor {
        margin: 20px 0;
    }
    
    .challenge-code-editor .editor-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .challenge-code-editor .run-btn {
        width: 100%;
        justify-content: center;
    }
    
    .challenge-code-editor textarea {
        min-height: 200px;
    }
    
    .day-navigation {
        margin-top: 40px;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .monaco-editor-container,
    .monaco-editor-container .monaco-editor {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .challenge-modal-content,
    .lesson-modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .challenge-modal-body,
    .lesson-content {
        padding: 10px !important;
    }
    
    .nav-link, .tab-button, .nav-btn, .run-button, .reset-button, .cta-button {
        min-height: 48px;
        font-size: 1rem;
        -webkit-tap-highlight-color: rgba(1,210,155,0.15);
    }
    
    .nav-link, .tab-button, .nav-btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-content, .resources-grid, .curriculum-grid, .challenges-grid, .elements-grid, .concepts-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .sidebar-section, .content-section, .card-content, .challenge-content, .lesson-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .monaco-editor .overflow-guard {
        min-width: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .nav-logo i {
        font-size: 1.4rem;
    }

    .hero {
        padding: 80px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
    }

    .day-card,
    .resource-card,
    .challenge-panel,
    .concept-card {
        padding: 15px;
    }
    
    .day-card {
        height: 500px;
        border-radius: 18px;
        padding: 24px;
    }
    
    .card-content {
        gap: 15px;
    }
    
    .card-header {
        gap: 12px;
    }
    
    .day-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .day-number {
        font-size: 1.8rem;
    }
    
    .card-body h3 {
        font-size: 1.2rem;
    }
    
    .card-body p {
        font-size: 0.9rem;
    }
    
    .card-tags {
        gap: 8px;
    }
    
    .tag {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .challenge-header h3 {
        font-size: 1.2rem;
    }
    
    .challenge-description p {
        font-size: 0.9rem;
    }
    
    .code-editor {
        margin: 15px 0;
    }
    
    .editor-header span {
        font-size: 0.9rem;
    }
    
    .run-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .output-panel {
        margin: 15px 0;
    }
    
    .output-header span {
        font-size: 0.9rem;
    }
    
    .reset-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .resource-card h3 {
        font-size: 1.2rem;
    }
    
    .resource-card ul {
        font-size: 0.9rem;
    }
    
    .lesson-modal-content {
        width: 98%;
        margin: 5px auto;
        max-height: 95vh;
    }
    
    .lesson-modal-header {
        padding: 15px;
    }
    
    .lesson-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .lesson-content {
        padding: 15px;
    }
    
    .lesson-documentation h3 {
        font-size: 1.2rem;
    }
    
    .lesson-documentation h4 {
        font-size: 1.1rem;
    }
    
    .lesson-documentation p,
    .lesson-documentation li {
        font-size: 0.9rem;
    }
    
    .element-card h5 {
        font-size: 1.1rem;
    }
    
    .element-card p {
        font-size: 0.9rem;
    }
    
    .element-card small {
        font-size: 0.8rem;
    }
    
    .nav-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .day-header {
        padding: 30px 0;
    }
    
    .day-header h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 0.9rem;
    }
    
    .concept-highlight h4,
    .tip-box h4,
    .practice-exercise h4,
    .accessibility-note h4 {
        font-size: 1.1rem;
    }
    
    .concept-highlight p,
    .tip-box p,
    .practice-exercise p,
    .accessibility-note p,
    .concept-highlight li,
    .accessibility-note li {
        font-size: 0.9rem;
    }
    
    .concept-highlight code,
    .accessibility-note code {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .concept-card h3 {
        font-size: 1.2rem;
    }
    
    .concept-card p {
        font-size: 0.9rem;
    }
    
    .sidebar-section h3 {
        font-size: 1.2rem;
    }
    
    .sidebar-nav a {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .resource-links a {
        font-size: 0.9rem;
    }
    
    .challenges-section h2 {
        font-size: 1.8rem;
    }
    
    .challenges-intro {
        font-size: 0.9rem;
    }
    
    .challenge-card h3 {
        font-size: 1.2rem;
    }
    
    .challenge-card p {
        font-size: 0.9rem;
    }
    
    .challenge-objective h4,
    .challenge-requirements h4,
    .challenge-hint h4 {
        font-size: 1.1rem;
    }
    
    .challenge-objective p,
    .challenge-requirements li,
    .challenge-hint p {
        font-size: 0.9rem;
    }
    
    .challenge-requirements code {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .challenge-code-editor .editor-header span {
        font-size: 0.9rem;
    }
    
    .challenge-code-editor .run-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .challenge-code-editor textarea {
        min-height: 180px;
        font-size: 0.9rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    .social-links a i {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .nav-logo {
        font-size: 1rem;
        gap: 4px;
    }
    .hero-title {
        font-size: 1.2rem;
    }
    .cta-button {
        font-size: 0.95rem;
        padding: 12px 10px;
    }
    .challenge-modal-content, .lesson-modal-content {
        padding: 0 !important;
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    .hero {
        padding: 40px 0 20px;
    }
    .lesson-modal-content, .challenge-modal-content {
        max-height: 80vh;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .lesson-modal-content,
    .challenge-modal-content {
        max-height: 85vh;
    }
    
    .nav-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo i,
    .card-arrow i,
    .challenge-info i,
    .resource-icon i,
    .concept-icon i,
    .social-links a i {
        transform: scale(1.1);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hamburger span {
        transition: none;
    }
    
    .nav-menu {
        transition: none;
    }
}

/* Dark mode support for system preference */
@media (prefers-color-scheme: dark) {
    :root {
        --background-primary: #121212;
        --background-secondary: #1E1E1E;
        --background-tertiary: #2A2A2A;
        --text-primary: #FFFFFF;
        --text-secondary: #B0B0B0;
        --border-color: #333333;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .nav-actions,
    .cta-button,
    .run-button,
    .reset-button,
    .nav-btn,
    .footer {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .day-card,
    .resource-card,
    .challenge-panel,
    .concept-card {
        break-inside: avoid;
        border: 1px solid var(--border-color);
        margin-bottom: 20px;
    }
    
    .code-example pre {
        background: #f5f5f5;
        border: 1px solid #ddd;
        padding: 10px;
        overflow-x: auto;
    }
    
    .monaco-editor-container {
        display: none;
    }
}

/* Challenge Modal */
.challenge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Embedded Challenge Styles */
.embedded-challenge {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.challenge-info {
    background: rgba(1, 210, 155, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin-bottom: 20px;
}

.challenge-info h3 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.challenge-requirements {
    background: rgba(30, 30, 30, 0.9);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.challenge-requirements h4 {
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.requirement-item.completed {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateX(2px);
}

.req-status {
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 20px;
}

.req-text {
    color: var(--text-primary);
    font-weight: 500;
}

.challenge-editor {
    background: rgba(25, 25, 25, 0.95);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.editor-header {
    background: rgba(40, 40, 40, 0.95);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.editor-header h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

.editor-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.run-btn, .reset-btn, .check-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.run-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.4);
}

.check-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(1, 210, 155, 0.4);
}

#monaco-challenge-editor {
    width: 100%;
    height: 300px;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

#fallback-challenge-editor {
    width: 100%;
    height: 300px;
    background: #1e1e1e;
    color: #ffffff;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 14px;
    padding: 15px;
    border: none;
    outline: none;
    resize: vertical;
    line-height: 1.5;
    border-radius: 4px;
}

.challenge-output {
    background: rgba(25, 25, 25, 0.95);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.challenge-output h4 {
    color: var(--text-primary);
    margin: 0;
    padding: 15px 20px;
    background: rgba(40, 40, 40, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

#challenge-preview {
    width: 100%;
    height: 200px;
    border: none;
    background: white;
}

.challenge-hints {
    background: rgba(255, 193, 7, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.challenge-hints h4 {
    color: #ffc107;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.challenge-hints ul {
    margin: 0;
    padding-left: 20px;
}

.challenge-hints li {
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Responsive Design for Embedded Challenge */
@media (max-width: 768px) {
    .embedded-challenge {
        max-height: 80vh;
        padding: 15px;
    }
    
    .editor-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .editor-buttons {
        justify-content: center;
    }
    
    #challenge-code-editor {
        height: 200px;
        padding: 15px;
        font-size: 13px;
    }
    
    #challenge-preview {
        height: 150px;
    }
    
    .requirement-item {
        padding: 10px 12px;
    }
}

/* Modern Game Styles */

/* Structure Builder Game */
.structure-builder-game {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.builder-header {
    text-align: center;
    margin-bottom: 30px;
}

.builder-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.builder-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.elements-pool, .structure-area {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(1, 210, 155, 0.2);
}

.elements-pool h4, .structure-area h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.elements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.draggable-element {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    user-select: none;
}

.draggable-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 210, 155, 0.4);
}

.draggable-element.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drop-zone {
    min-height: 200px;
    border: 2px dashed rgba(1, 210, 155, 0.3);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(1, 210, 155, 0.1);
}

.drop-placeholder {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 40px 20px;
}

.structure-element {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(1, 210, 155, 0.1);
    border: 1px solid rgba(1, 210, 155, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
}

.structure-element code {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.remove-btn {
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
}

.target-structure {
    background: rgba(18, 18, 18, 0.9);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.target-structure h4 {
    color: #ffc107;
    margin-bottom: 15px;
}

.target-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.target-tag {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Code Detective Game */
.code-detective-game {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.detective-header {
    text-align: center;
    margin-bottom: 30px;
}

.detective-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.detective-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.code-panel {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(1, 210, 155, 0.2);
}

.code-display {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-line {
    display: flex;
    margin-bottom: 4px;
}

.line-number {
    color: var(--text-secondary);
    margin-right: 15px;
    min-width: 30px;
    text-align: right;
}

.line-content {
    color: var(--text-primary);
    flex: 1;
}

.error-highlight {
    background: rgba(239, 83, 80, 0.3);
    color: #ef5350;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-highlight:hover {
    background: rgba(239, 83, 80, 0.5);
}

.error-found {
    background: rgba(76, 175, 80, 0.3) !important;
    color: #4caf50 !important;
    cursor: not-allowed;
}

.detective-stats {
    background: rgba(18, 18, 18, 0.9);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    height: fit-content;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-item .label {
    color: var(--text-secondary);
}

.stat-item .value {
    color: var(--primary-color);
    font-weight: 600;
}

.feedback-area {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-feedback {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    text-align: center;
}

.error-feedback {
    background: rgba(239, 83, 80, 0.2);
    color: #ef5350;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(239, 83, 80, 0.3);
    text-align: center;
}

/* Memory Cards Game */
.memory-cards-game {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.memory-header {
    text-align: center;
    margin-bottom: 20px;
}

.memory-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.memory-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.memory-stats .stat {
    background: rgba(1, 210, 155, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(1, 210, 155, 0.3);
    font-weight: 600;
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card .card-front,
.memory-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.memory-card .card-front {
    background: linear-gradient(135deg, var(--background-secondary), var(--background-tertiary));
    border: 2px solid rgba(1, 210, 155, 0.3);
}

.memory-card .card-front i {
    font-size: 2rem;
    color: var(--primary-color);
}

.memory-card .card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: rotateY(180deg);
}

.memory-card.flipped .card-front {
    transform: rotateY(180deg);
}

.memory-card.flipped .card-back {
    transform: rotateY(0deg);
}

.memory-card.matched {
    pointer-events: none;
}

.memory-card.matched .card-back {
    background: linear-gradient(135deg, #4caf50, #45a049);
    animation: matchPulse 0.6s ease;
}

@keyframes matchPulse {
    0%, 100% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(0deg) scale(1.1); }
}

.card-content {
    text-align: center;
    font-weight: 600;
}

.card-content.element {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.card-content.description {
    font-size: 0.9rem;
}

/* Responsive Design for Games */
@media (max-width: 768px) {
    .game-modal .modal-content {
        width: 95vw;
        height: 90vh;
        margin: auto;
    }
    
    .game-modal.active {
        padding: 15px 10px;
    }
    
    .game-play-area {
        padding: 20px;
        margin: 10px auto;
        width: calc(100% - 20px);
        min-height: 350px;
        max-height: 500px;
    }
    
    .game-footer {
        padding: 20px 25px;
    }
    
    .builder-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detective-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .memory-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .memory-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .elements-list {
        justify-content: center;
    }
}

/* Speed Typing Game Styles */
.speed-typing-game {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.speed-typing-game h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.typing-challenge {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.target-code {
    background: rgba(30, 30, 30, 0.9);
    color: var(--primary-color);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.target-code::before {
    content: 'Type this code:';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--background-primary);
    color: var(--text-secondary);
    padding: 0 8px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
}

#typingInput {
    width: 100%;
    height: 120px;
    background: #1e1e1e;
    color: var(--text-primary);
    border: 2px solid rgba(1, 210, 155, 0.3);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

#typingInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 210, 155, 0.1);
}

#typingInput::placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

.typing-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(18, 18, 18, 0.9);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.typing-stats span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.typing-stats span span {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-left: 8px;
}

@media (max-width: 480px) {
    .game-modal .modal-content {
        width: 98vw;
        height: 95vh;
    }
    
    .game-play-area {
        padding: 15px;
        margin: 5px auto;
        width: calc(100% - 10px);
    }
    
    .memory-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.challenge-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.challenge-modal-content {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.challenge-modal-header {
    background: var(--background-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.challenge-modal-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.challenge-modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.complete-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 210, 155, 0.3);
}

.close-challenge-modal {
    background: var(--background-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-challenge-modal:hover {
    background: var(--background-tertiary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.challenge-modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.challenge-modal-body .challenge-objective,
.challenge-modal-body .challenge-requirements,
.challenge-modal-body .challenge-hint {
    margin-bottom: 25px;
}

.challenge-modal-body .challenge-objective h4,
.challenge-modal-body .challenge-requirements h4,
.challenge-modal-body .challenge-hint h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-modal-body .challenge-objective p,
.challenge-modal-body .challenge-hint p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.challenge-modal-body .challenge-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.challenge-modal-body .challenge-requirements li {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 25px;
}

.challenge-modal-body .challenge-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.challenge-modal-body .challenge-code-editor {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 25px;
}

.challenge-modal-body .editor-header {
    background: var(--background-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.challenge-modal-body .editor-header span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.challenge-modal-body .run-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-modal-body .run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 212, 170, 0.3);
}

.challenge-modal-body .challenge-code-editor textarea {
    width: 100%;
    min-height: 300px;
    background: var(--background-primary);
    color: var(--text-primary);
    border: none;
    padding: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

.challenge-modal-body .challenge-output {
    background: var(--background-primary);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    min-height: 100px;
    color: var(--text-secondary);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.challenge-modal-body::-webkit-scrollbar {
    width: 8px;
}

.challenge-modal-body::-webkit-scrollbar-track {
    background: var(--background-primary);
    border-radius: 4px;
}

.challenge-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.challenge-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Monaco Editor in Challenge Modal */
.challenge-modal-body .monaco-editor-container {
    width: 100%;
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.challenge-modal-body .monaco-editor-container .monaco-editor {
    background: var(--background-primary) !important;
}

.challenge-modal-body .monaco-editor-container .monaco-editor .overflow-guard {
    background: var(--background-primary) !important;
}

.challenge-modal-body .monaco-editor-container .monaco-editor .margin {
    background: var(--background-tertiary) !important;
}

.challenge-modal-body .monaco-editor-container .monaco-editor .monaco-editor-background {
    background: var(--background-primary) !important;
}

.challenge-modal-body .monaco-editor-container .monaco-editor .line-numbers {
    color: var(--text-secondary) !important;
}

.challenge-modal-body .monaco-editor-container .monaco-editor .current-line {
    background: rgba(1, 210, 155, 0.1) !important;
    border: 1px solid rgba(1, 210, 155, 0.3) !important;
}

/* Gaming Section Styles */
.gaming-section {
    background: linear-gradient(135deg, #01D29B 0%, #121212 100%);
    padding: 80px 0;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.gaming-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gaming-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23gaming-pattern)"/></svg>');
    opacity: 0.3;
}

.gaming-section .container {
    position: relative;
    z-index: 2;
}

.gaming-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.gaming-section .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gaming-section .section-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(1, 210, 155, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.game-icon {
    width: 80px;
    height: 80px;
    background: rgba(1, 210, 155, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.game-card:hover .game-icon {
    background: rgba(1, 210, 155, 0.3);
    transform: scale(1.1);
}

.game-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.game-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.game-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat i {
    color: var(--primary-color);
}

.game-arrow {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(1, 210, 155, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.game-card:hover .game-arrow {
    background: rgba(1, 210, 155, 0.3);
    transform: scale(1.1);
}

.gaming-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.info-card i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.info-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive Gaming Section */
@media (max-width: 768px) {
    .gaming-section {
        padding: 60px 0;
    }
    
    .gaming-section .section-title {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        padding: 25px;
    }
    
    .game-content h3 {
        font-size: 1.5rem;
    }
    
    .gaming-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* User info removed */
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gaming-section .section-title {
        font-size: 2rem;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .game-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .game-content h3 {
        font-size: 1.3rem;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* User Modal Styles */
.user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.user-modal.active {
    display: flex;
}

.user-modal-content {
    background: var(--background-primary);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.user-modal-header {
    background: linear-gradient(135deg, #01D29B 0%, #121212 100%);
    color: var(--text-primary);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.user-modal-body {
    padding: 30px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #01D29B, #00b894);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 2rem;
}

.profile-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.profile-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stats .stat-item {
    text-align: center;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.profile-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: 15px;
}

.profile-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-btn {
    background: #01D29B;
    color: var(--text-primary);
}

.profile-btn:hover {
    background: #00b894;
    transform: translateY(-2px);
}

.profile-btn.secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.profile-btn.secondary:hover {
    background: var(--background-tertiary);
    border-color: #01D29B;
}

.profile-auth {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.auth-divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--background-primary);
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hootlabs-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hootlabs-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.auth-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .user-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success {
    border-left: 4px solid #01D29B;
}

.notification-success .notification-content i {
    color: #01D29B;
}

.notification-info {
    border-left: 4px solid #667eea;
}

.notification-info .notification-content i {
    color: #667eea;
}

.notification-error {
    border-left: 4px solid #ff6b6b;
}

.notification-error .notification-content i {
    color: #ff6b6b;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: var(--background-primary);
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.auth-modal-header {
    background: linear-gradient(135deg, #01D29B 0%, #121212 100%);
    color: var(--text-primary);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.auth-modal-body {
    padding: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid rgba(1, 210, 155, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #01D29B;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(1, 210, 155, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    padding: 12px 16px;
    border: 1px solid rgba(1, 210, 155, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #01D29B;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(1, 210, 155, 0.1);
}

.form-group select option {
    background: #121212;
    color: var(--text-primary);
    padding: 8px;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #01D29B, #00b894);
    color: var(--text-primary);
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #00b894, #00a085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 210, 155, 0.3);
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.auth-footer a {
    color: #01D29B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #00b894;
}

.forgot-password {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6) !important;
}

.forgot-password:hover {
    color: #01D29B !important;
}

/* New challenge modal styles */
.challenge-description {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.challenge-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.code-editor-section {
    margin-bottom: 20px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2d3748;
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #4a5568;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.run-button, .reset-button {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.run-button:hover, .reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 212, 170, 0.3);
}

.reset-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.reset-button:hover {
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.output-section {
    margin-bottom: 20px;
}

.output-header {
    background-color: #2d3748;
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #4a5568;
    font-weight: 500;
}

.challenge-output {
    background-color: var(--background-secondary);
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    min-height: 200px;
    padding: 15px;
}

.challenge-hints {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #e17055;
}

.challenge-hints h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 18px;
}

.challenge-hints ul {
    margin: 0;
    padding-left: 20px;
}

.challenge-hints li {
    margin-bottom: 8px;
    color: #2d3748;
    line-height: 1.5;
}

/* Element Checker Styles */
.element-checker {
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.element-checker h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.element-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.element-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.element-check i {
    font-size: 1rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.element-check span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.element-check.completed {
    opacity: 1;
    border-color: #28a745;
    background: #f8fff9;
}

.element-check.completed i {
    color: #28a745;
}

.element-check.completed span {
    color: var(--text-primary);
}

/* Responsive adjustments for element indicators */
@media (max-width: 768px) {
    .element-indicators {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .element-check {
        padding: 8px 10px;
    }
    
    .element-check span {
        font-size: 0.85rem;
    }
}

/* Game Pages Styles */
.game-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin: 50px 0;
    padding: 30px 0;
}

.level-card {
    background: linear-gradient(135deg, var(--background-secondary), var(--background-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 210, 155, 0.1), transparent);
    transition: left 0.5s ease;
}

.level-card:hover::before {
    left: 100%;
}

.level-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(1, 210, 155, 0.25), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.level-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(1, 210, 155, 0.3);
}

.level-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.level-card:hover .level-icon::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.level-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.level-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Game Modal Styles */
.game-modal {
    max-width: 95vw;
    width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.code-section, .output-section {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.code-section h3, .output-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.game-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.game-controls .btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
}

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

.btn.secondary {
    background: var(--background-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn.success {
    background: var(--success-color);
    color: white;
}

.btn.success:hover {
    background: #00B894;
    transform: translateY(-2px);
}

/* Preview Section Styles */
.preview-section {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.preview-section h3, .preview-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.target-preview, .live-preview {
    background: var(--background-tertiary);
    border-radius: 8px;
    padding: 15px;
}

/* Game Result Styles */
.game-result {
    margin-top: 30px;
}

.success-message {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 184, 148, 0.1));
    border: 1px solid var(--success-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: var(--text-primary);
}

.success-message i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 15px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--success-color);
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.15), rgba(239, 83, 80, 0.1));
    border: 1px solid var(--error-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: var(--text-primary);
}

.error-message i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 15px;
}

.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--error-color);
}

/* Navigation styles for game pages */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(18, 18, 18, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(1, 210, 155, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #01D29B;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(1, 210, 155, 0.1), rgba(1, 210, 155, 0.05));
    border: 1px solid rgba(1, 210, 155, 0.2);
    text-decoration: none;
}

.nav-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

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

/* Lesson Container for game pages */
.lesson-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    min-height: 100vh;
}

.lesson-header {
    text-align: center;
    margin-bottom: 50px;
}

.lesson-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lesson-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Responsive Design for Game Pages */
@media (max-width: 1200px) {
    .game-content {
        grid-template-columns: 280px 1fr 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .challenge-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 968px) {
    .game-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr 1fr;
        gap: 16px;
    }
    
    .instruction-panel {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .lesson-container {
        padding: 100px 24px 60px;
    }
    
    .game-header {
        padding: 40px 24px;
        margin-bottom: 40px;
    }
    
    .game-header h1 {
        font-size: 2.8rem;
    }
    
    .player-stats {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    .player-stats .stat {
        min-width: 120px;
        padding: 16px 24px;
    }
    
    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .challenge-card {
        padding: 24px;
        gap: 20px;
    }
    
    .challenge-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .challenge-info h3 {
        font-size: 1.4rem;
    }
    
    .challenge-stats {
        gap: 12px;
    }
    
    .game-modal .modal-content {
        width: 98vw;
        height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 24px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .modal-stats {
        gap: 12px;
    }
    
    .nav-container {
        padding: 0 24px;
        height: 70px;
    }
    
    .nav-logo {
        font-size: 1.4rem;
        padding: 8px 16px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lesson-container {
        padding: 90px 16px 40px;
    }
    
    .game-header {
        padding: 32px 20px;
    }
    
    .game-header h1 {
        font-size: 2.2rem;
    }
    
    .challenge-grid {
        padding: 0 4px;
    }
    
    .challenge-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .challenge-info {
        order: 1;
    }
    
    .challenge-status {
        order: 2;
        position: relative;
        align-self: center;
    }
    
    .game-modal .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .game-content {
        padding: 16px;
        gap: 12px;
    }
    
    /* Lesson challenge cards responsive */
    .challenges-section .challenges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .challenges-section .challenge-card {
        padding: 20px;
        min-height: auto;
    }
    
    .challenges-section .challenge-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Game-specific styles */
.game-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 40px;
    background: linear-gradient(135deg, 
        var(--background-secondary) 0%, 
        var(--background-tertiary) 50%, 
        var(--background-secondary) 100%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.game-header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.game-header p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-weight: 500;
}

.player-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 35px;
}

.player-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: var(--background-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    min-width: 140px;
    transition: all 0.3s ease;
}

.player-stats .stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(1, 210, 155, 0.15);
}

.player-stats .stat i {
    color: var(--primary-color);
    font-size: 2rem;
}

.player-stats .stat span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.player-stats .stat::after {
    content: attr(data-label);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.challenge-grid, .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin: 60px 0;
    padding: 0 8px;
}

.challenge-card, .game-card {
    background: linear-gradient(145deg, 
        rgba(30, 30, 30, 0.8) 0%, 
        rgba(42, 42, 42, 0.9) 50%,
        rgba(30, 30, 30, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(0, 0, 0, 0.5) inset;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(1, 210, 155, 0.15), 
        transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.challenge-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg,
        rgba(1, 210, 155, 0.03) 0%,
        transparent 50%,
        rgba(1, 210, 155, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.challenge-card:hover::before {
    left: 100%;
}

.challenge-card:hover::after {
    opacity: 1;
}

.challenge-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(1, 210, 155, 0.4);
    box-shadow: 
        0 32px 80px rgba(1, 210, 155, 0.3), 
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(1, 210, 155, 0.2);
}

.challenge-card.locked {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.6) brightness(0.7);
    background: linear-gradient(145deg, 
        rgba(20, 20, 20, 0.6) 0%, 
        rgba(25, 25, 25, 0.7) 50%,
        rgba(20, 20, 20, 0.6) 100%);
}

.challenge-card.locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(0, 0, 0, 0.5) inset;
}

.challenge-card.locked .challenge-icon {
    background: linear-gradient(135deg, 
        rgba(100, 100, 100, 0.6) 0%, 
        rgba(80, 80, 80, 0.6) 100%);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.challenge-card.completed {
    border-color: rgba(0, 212, 170, 0.4);
    background: linear-gradient(145deg, 
        rgba(0, 212, 170, 0.08) 0%, 
        rgba(0, 184, 148, 0.12) 50%,
        rgba(0, 212, 170, 0.08) 100%);
    box-shadow: 
        0 8px 32px rgba(0, 212, 170, 0.25),
        0 1px 0 rgba(0, 212, 170, 0.1) inset,
        0 -1px 0 rgba(0, 0, 0, 0.5) inset;
}

.challenge-card.unlocked {
    border-color: rgba(1, 210, 155, 0.3);
}

.challenge-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%,
        #00A085 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 12px 32px rgba(1, 210, 155, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 2;
}

.challenge-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.challenge-card:hover .challenge-icon::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.challenge-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.challenge-info h3 {
    font-size: 1.7rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.challenge-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.challenge-stats {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.difficulty {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.difficulty.easy {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.15));
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.difficulty.medium {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.25), rgba(255, 167, 38, 0.15));
    color: #FFA726;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

.difficulty.hard {
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.25), rgba(239, 83, 80, 0.15));
    color: #EF5350;
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.difficulty.expert {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.25), rgba(156, 39, 176, 0.15));
    color: #9C27B0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.points {
    font-weight: 800;
    color: white;
    font-size: 1rem;
    padding: 8px 14px;
    background: linear-gradient(135deg, 
        rgba(1, 210, 155, 0.9) 0%, 
        rgba(0, 184, 148, 0.9) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(1, 210, 155, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.challenge-status {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(18, 18, 18, 0.9) 0%, 
        rgba(30, 30, 30, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.4s ease;
    font-size: 1.3rem;
    z-index: 2;
    position: relative;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.challenge-card.completed .challenge-status {
    background: linear-gradient(135deg, 
        var(--success-color) 0%, 
        #00A085 100%);
    border-color: rgba(0, 212, 170, 0.5);
    color: white;
    box-shadow: 
        0 8px 25px rgba(0, 212, 170, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.challenge-card.unlocked .challenge-status {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 100%);
    border-color: rgba(1, 210, 155, 0.5);
    color: white;
    box-shadow: 
        0 8px 25px rgba(1, 210, 155, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Game-specific styles */
.game-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, 
        #FF6B6B 0%, 
        #FF8E53 50%,
        #FF6B6B 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 12px 32px rgba(255, 107, 107, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 2;
}

.game-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.game-info h3 {
    font-size: 1.7rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.game-stats {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.game-type {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.game-type.fun {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 107, 107, 0.2));
    color: #FF6B6B;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.game-type.puzzle {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(108, 92, 231, 0.2));
    color: #6C5CE7;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.game-type.challenge {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.3), rgba(255, 167, 38, 0.2));
    color: #FFA726;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

.game-type.speed {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.3), rgba(0, 184, 148, 0.2));
    color: #00B894;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.game-type.memory {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.3), rgba(116, 185, 255, 0.2));
    color: #74B9FF;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

.game-type.quiz {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.3), rgba(253, 203, 110, 0.2));
    color: #FDCB6E;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.best-score {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    padding: 4px 12px;
    background: rgba(1, 210, 155, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(1, 210, 155, 0.2);
}

.play-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.4s ease;
    font-size: 1.3rem;
    color: white;
    z-index: 2;
    position: relative;
    box-shadow: 
        0 6px 20px rgba(1, 210, 155, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.game-card:hover .play-button {
    transform: scale(1.1);
    box-shadow: 
        0 8px 25px rgba(1, 210, 155, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(18, 18, 18, 0.9) 50%,
        rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(20px);
    z-index: 2000;
    animation: fadeIn 0.4s ease-out;
}

.game-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.game-modal .modal-content {
    background: linear-gradient(145deg, 
        rgba(18, 18, 18, 0.95) 0%, 
        rgba(30, 30, 30, 0.98) 50%,
        rgba(18, 18, 18, 0.95) 100%);
    border: 1px solid rgba(1, 210, 155, 0.2);
    border-radius: 28px;
    width: 90vw;
    height: 85vh;
    max-width: 1400px;
    max-height: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 20px 60px rgba(1, 210, 155, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(30px);
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.game-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%,
        var(--primary-color) 100%);
    border-radius: 28px 28px 0 0;
}

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

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(30, 30, 30, 0.8) 0%, 
        rgba(42, 42, 42, 0.9) 50%,
        rgba(30, 30, 30, 0.8) 100%);
    position: relative;
    backdrop-filter: blur(15px);
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(1, 210, 155, 0.5) 50%,
        transparent 100%);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

.modal-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.timer {
    background: linear-gradient(135deg, 
        var(--error-color) 0%, 
        #D32F2F 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 24px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(239, 83, 80, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.points-reward {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(1, 210, 155, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.close-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
    background: linear-gradient(135deg, 
        var(--error-color) 0%, 
        #D32F2F 100%);
    color: white;
    transform: scale(1.1);
    border-color: rgba(239, 83, 80, 0.5);
    box-shadow: 
        0 8px 20px rgba(239, 83, 80, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.game-content {
    display: grid;
    grid-template-columns: 340px 1fr 1fr;
    gap: 28px;
    padding: 32px;
    flex: 1;
    overflow: hidden;
}

.instruction-panel {
    background: linear-gradient(145deg, 
        rgba(30, 30, 30, 0.6) 0%, 
        rgba(42, 42, 42, 0.8) 50%,
        rgba(30, 30, 30, 0.6) 100%);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
}

.instruction-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(1, 210, 155, 0.5) 50%,
        transparent 100%);
    border-radius: 20px 20px 0 0;
}

.instruction-panel h3, .instruction-panel h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.requirements ul, .hints ul {
    list-style: none;
    padding: 0;
}

.requirements li, .hints li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.requirements li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.hints li::before {
    content: "💡";
    position: absolute;
    left: 0;
}

.hint-btn {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.hint-btn:hover {
    background: #FF9800;
    transform: translateY(-2px);
}

.coding-panel, .preview-panel {
    background: linear-gradient(145deg, 
        rgba(30, 30, 30, 0.6) 0%, 
        rgba(42, 42, 42, 0.8) 50%,
        rgba(30, 30, 30, 0.6) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    position: relative;
}

.coding-panel::before, .preview-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(1, 210, 155, 0.5) 50%,
        transparent 100%);
    border-radius: 20px 20px 0 0;
}

.editor-header, .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(10px);
}

.editor-header h3, .preview-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    margin: 0;
}

.editor-controls {
    display: flex;
    gap: 10px;
}

.run-btn, .reset-btn, .submit-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.run-btn {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(1, 210, 155, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.reset-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.12) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.submit-btn {
    background: linear-gradient(135deg, 
        var(--success-color) 0%, 
        #00A085 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(0, 212, 170, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.run-btn:hover, .reset-btn:hover, .submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.run-btn:hover {
    box-shadow: 
        0 8px 20px rgba(1, 210, 155, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.reset-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.18) 100%);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.submit-btn:hover {
    box-shadow: 
        0 8px 20px rgba(0, 212, 170, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

#htmlEditor {
    flex: 1;
    min-height: 400px;
}

#previewFrame {
    flex: 1;
    border: none;
    background: white;
}

.validation-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.validation-status.success {
    background: rgba(0, 212, 170, 0.2);
    color: var(--success-color);
}

.validation-status.pending {
    background: rgba(255, 167, 38, 0.2);
    color: var(--warning-color);
}

.progress-bar {
    height: 6px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%,
        #00E6CC 100%);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
}

.success-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    background: var(--background-primary);
    border: 1px solid var(--success-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-content h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.success-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.success-stats .stat {
    text-align: center;
}

.success-stats .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.success-stats .value {
    display: block;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.next-btn, .continue-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-btn {
    background: var(--primary-color);
    color: white;
}

.continue-btn {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.next-btn:hover, .continue-btn:hover {
    transform: translateY(-2px);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 4000;
    animation: slideIn 0.3s ease;
}

.notification.error {
    background: var(--error-color);
}

.notification.success {
    background: var(--success-color);
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Game Play Area Styles - Ultra Modern */
.game-play-area {
    padding: 40px;
    background: linear-gradient(145deg, 
        rgba(15, 15, 15, 0.98) 0%, 
        rgba(25, 25, 25, 0.95) 50%,
        rgba(15, 15, 15, 0.98) 100%);
    border-radius: 24px;
    min-height: 450px;
    max-height: 600px;
    margin: 20px auto;
    width: calc(100% - 40px);
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(1, 210, 155, 0.15);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 8px 32px rgba(1, 210, 155, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
}

.game-play-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(1, 210, 155, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 184, 148, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.game-play-area > * {
    position: relative;
    z-index: 2;
}

/* Custom Scrollbar for Game Play Area */
.game-play-area::-webkit-scrollbar {
    width: 8px;
}

.game-play-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.game-play-area::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: all 0.3s ease;
}

.game-play-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Firefox scrollbar */
.game-play-area {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

.game-footer {
    text-align: center;
    padding: 25px 30px;
    border-top: 1px solid rgba(1, 210, 155, 0.15);
    margin-top: auto;
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(18, 18, 18, 0.4) 50%,
        rgba(0, 0, 0, 0.3) 100%);
    border-radius: 0 0 24px 24px;
    position: relative;
    backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.game-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(1, 210, 155, 0.6) 50%,
        transparent 100%);
}

.game-action-btn {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 32px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 35px rgba(1, 210, 155, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    margin: 0 auto;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.game-action-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 18px 50px rgba(1, 210, 155, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 6px 20px rgba(0, 0, 0, 0.3);
}

.game-action-btn:hover::before {
    left: 100%;
}

.game-action-btn:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 10px 25px rgba(1, 210, 155, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.game-action-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Match Game Styles */
.match-game {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.match-game h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 800;
}

.match-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.tags-column, .descriptions-column {
    background: rgba(30, 30, 30, 0.8);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tags-column h4, .descriptions-column h4 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.match-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-item {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9), rgba(35, 35, 35, 0.9));
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.match-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(1, 210, 155, 0.3);
}

.match-item.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(1, 210, 155, 0.2), rgba(0, 184, 148, 0.2));
    box-shadow: 0 0 20px rgba(1, 210, 155, 0.4);
}

.match-item.matched {
    border-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    pointer-events: none;
    opacity: 0.7;
}

.match-item.wrong {
    border-color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(211, 47, 47, 0.3));
    animation: shake 0.5s ease-in-out;
}

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

.matches-made {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 20px;
    background: rgba(1, 210, 155, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin: 20px auto;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(1, 210, 155, 0.2);
}

/* Speed Typing Game Styles */
.typing-game {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.typing-game h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 800;
}

.typing-challenge {
    background: rgba(30, 30, 30, 0.8);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.target-code {
    background: rgba(0, 0, 0, 0.7);
    padding: 25px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    border: 3px solid rgba(1, 210, 155, 0.4);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(1, 210, 155, 0.2);
    position: relative;
}

#typingInput {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: white;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
}

#typingInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(1, 210, 155, 0.3),
        0 8px 25px rgba(1, 210, 155, 0.2);
    transform: scale(1.02);
}

.typing-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(1, 210, 155, 0.2);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.typing-stats span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Quiz Game Styles */
.quiz-game {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 3px solid rgba(1, 210, 155, 0.4);
}

.quiz-header h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.quiz-progress {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.question-container {
    background: rgba(30, 30, 30, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.question {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
    line-height: 1.6;
    padding: 0 20px;
}

.answers {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.quiz-option {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9), rgba(35, 35, 35, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(1, 210, 155, 0.3);
}

.quiz-option.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.quiz-option.wrong {
    border-color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(211, 47, 47, 0.3));
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.4);
}

/* Coming Soon Games */
.drag-drop-game, .debug-game, .memory-game {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 30px;
}

.drag-drop-game h3, .debug-game h3, .memory-game h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.drag-drop-game p, .debug-game p, .memory-game p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    background: rgba(1, 210, 155, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin: 0 auto;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(1, 210, 155, 0.1);
}

/* Responsive Design for Games */
@media (max-width: 768px) {
    .game-play-area {
        padding: 25px 15px;
        margin: 20px 10px;
        min-height: 400px;
    }
    
    .match-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }
    
    .match-game, .typing-game, .quiz-game {
        padding: 15px;
    }
    
    .typing-challenge {
        padding: 25px 20px;
    }
    
    .question-container {
        padding: 25px 20px;
    }
    
    .answers {
        gap: 15px;
    }
    
    .quiz-option {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .game-action-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        min-width: 180px;
    }
    
    .game-footer {
        padding: 20px 15px;
    }
    
    .target-code {
        font-size: 1rem;
        padding: 20px 15px;
    }
    
    #typingInput {
        font-size: 1rem;
        padding: 15px;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .game-play-area {
        padding: 20px 10px;
        margin: 15px 5px;
    }
    
    .match-game h3, .typing-game h3, .quiz-header h3 {
        font-size: 1.6rem;
    }
    
    .question {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .typing-challenge, .question-container {
        padding: 20px 15px;
    }
}

/* CSS Game Specific Styles */
.color-game {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.color-game h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 800;
}

.color-challenge {
    background: rgba(30, 30, 30, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.color-display {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    margin: 0 auto 30px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.color-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.color-option {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9), rgba(35, 35, 35, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.color-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 210, 155, 0.3);
}

.color-option.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.color-option.wrong {
    border-color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(211, 47, 47, 0.3));
    animation: shake 0.5s ease-in-out;
}

.color-feedback {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.color-feedback.correct {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.color-feedback.wrong {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.color-score {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 20px;
    background: rgba(1, 210, 155, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin: 20px auto;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(1, 210, 155, 0.2);
}

/* Font Game Styles */
.font-game {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.font-game h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 800;
}

.font-sample {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    border: 3px solid rgba(1, 210, 155, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.font-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.font-option {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9), rgba(35, 35, 35, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.font-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 210, 155, 0.3);
}

.font-option.correct {
    border-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.font-option.wrong {
    border-color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(211, 47, 47, 0.3));
    animation: shake 0.5s ease-in-out;
}

.font-score {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 20px;
    background: rgba(1, 210, 155, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin: 20px auto;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(1, 210, 155, 0.2);
}

/* Placeholder Game Styles */
.flexbox-game, .animation-game, .responsive-game {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 30px;
}

.flexbox-game h3, .animation-game h3, .responsive-game h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.flexbox-game p, .animation-game p, .responsive-game p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    background: rgba(1, 210, 155, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin: 0 auto;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(1, 210, 155, 0.1);
}

/* Responsive Design for CSS Games */
@media (max-width: 768px) {
    .color-options, .font-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .color-display {
        width: 150px;
        height: 150px;
        font-size: 1.5rem;
    }
    
    .font-sample {
        font-size: 1.4rem;
        padding: 30px 20px;
    }
    
    .color-challenge {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .color-game, .font-game {
        padding: 15px;
    }
    
    .color-display {
        width: 120px;
        height: 120px;
        font-size: 1.2rem;
    }
    
    .color-option, .font-option {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .font-sample {
        font-size: 1.2rem;
        padding: 25px 15px;
    }
}

/* JavaScript Game Specific Styles */
.math-game {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.math-game h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 800;
}

.math-challenge {
    background: rgba(30, 30, 30, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.expression {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(1, 210, 155, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    font-family: 'Courier New', monospace;
}

.answer-input {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#mathAnswer {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1.5rem;
    color: white;
    text-align: center;
    width: 200px;
    transition: all 0.3s ease;
}

#mathAnswer:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(1, 210, 155, 0.3);
    transform: scale(1.05);
}

.submit-answer {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(1, 210, 155, 0.4);
}

.submit-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(1, 210, 155, 0.6);
}

.math-feedback {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.math-feedback.correct {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.math-feedback.wrong {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.math-score {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 20px;
    background: rgba(1, 210, 155, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin: 20px auto;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(1, 210, 155, 0.2);
}

/* Logic Game Styles */
.logic-game {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.logic-game h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 800;
}

.logic-challenge {
    background: rgba(30, 30, 30, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.logic-expression {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(1, 210, 155, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    font-family: 'Courier New', monospace;
}

.logic-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.logic-btn {
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    min-width: 120px;
}

.true-btn {
    background: linear-gradient(135deg, #4CAF50, #45A049);
    color: white;
    border-color: rgba(76, 175, 80, 0.3);
}

.false-btn {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
    border-color: rgba(244, 67, 54, 0.3);
}

.logic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.true-btn:hover {
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
}

.false-btn:hover {
    box-shadow: 0 12px 25px rgba(244, 67, 54, 0.4);
}

.logic-feedback {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logic-feedback.correct {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.logic-feedback.wrong {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.logic-score {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 20px;
    background: rgba(1, 210, 155, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin: 20px auto;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(1, 210, 155, 0.2);
}

/* Placeholder JavaScript Game Styles */
.loop-game, .array-game, .function-game {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 30px;
}

.loop-game h3, .array-game h3, .function-game h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.loop-game p, .array-game p, .function-game p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    background: rgba(1, 210, 155, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(1, 210, 155, 0.3);
    margin: 0 auto;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(1, 210, 155, 0.1);
}

/* Responsive Design for JavaScript Games */
@media (max-width: 768px) {
    .answer-input {
        flex-direction: column;
        gap: 15px;
    }
    
    #mathAnswer {
        width: 100%;
        max-width: 300px;
    }
    
    .logic-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .logic-btn {
        width: 100%;
        max-width: 200px;
        padding: 18px 30px;
    }
    
    .expression, .logic-expression {
        font-size: 1.8rem;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .math-game, .logic-game {
        padding: 15px;
    }
    
    .math-challenge, .logic-challenge {
        padding: 25px 20px;
    }
    
    .expression, .logic-expression {
        font-size: 1.5rem;
        padding: 18px 12px;
    }
    
    #mathAnswer {
        font-size: 1.3rem;
        padding: 12px 18px;
    }
    
    .submit-answer {
        padding: 12px 20px;
        font-size: 1rem;
    }
}