/* Main Stylesheet for GlitchRealm EDU */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00fff9;
    --secondary-color: #ff0080;
    --accent-color: #00fff9;
    --text-dark: #ffffff;
    --text-medium: #cccccc;
    --text-light: #aaaaaa;
    --bg-white: #0a0a0a;
    --bg-gray: #1a1a1a;
    --bg-light: #2a2a2a;
    --border-color: #00fff9;
    --success-color: #00ff41;
    --warning-color: #ffb800;
}

body {
    font-family: 'Rajdhani', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 249, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 249, 0.03) 3px
        );
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 255, 249, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 249, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(0, 255, 249, 0.8);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    padding: 25px 20px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 249, 0.5);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

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

.content-container {
    max-width: 900px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-dark);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 249, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 249, 0.5);
    position: relative;
}

.page-header p {
    font-size: 1.1em;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Lessons Grid */
.lessons-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.lesson-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 255, 249, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 255, 249, 0.3);
    position: relative;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lesson-card:hover {
    box-shadow: 0 8px 30px rgba(0, 255, 249, 0.3), 0 0 40px rgba(255, 0, 128, 0.1);
    transform: translateY(-5px);
}

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

.lesson-card.coming-soon {
    opacity: 0.7;
}

.lesson-header {
    background: linear-gradient(135deg, rgba(0, 255, 249, 0.05) 0%, transparent 100%);
    color: var(--text-dark);
    padding: 30px;
    border-bottom: 1px solid rgba(0, 255, 249, 0.2);
}

.lesson-tag {
    display: inline-block;
    background: rgba(0, 255, 249, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8em;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 255, 249, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

.lesson-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.lesson-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lesson-body p {
    color: var(--text-medium);
    margin-bottom: 20px;
    flex-grow: 1;
}

.lesson-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.9em;
}

.lesson-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(255, 0, 128, 0.1);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid rgba(255, 0, 128, 0.3);
}

.lesson-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 255, 249, 0.8));
    color: #0a0a0a;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9em;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 255, 249, 0.3);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lesson-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), rgba(255, 0, 128, 0.8));
    box-shadow: 0 6px 25px rgba(255, 0, 128, 0.4);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.lesson-btn.disabled {
    background: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    border-color: var(--bg-light);
}

.lesson-btn.disabled:hover {
    transform: none;
    background: var(--bg-light);
    box-shadow: none;
}

/* About Section */
.about-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.about-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(0, 255, 249, 0.3);
    border-left-width: 4px;
    box-shadow: 0 4px 20px rgba(0, 255, 249, 0.1);
}

.about-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 255, 249, 0.4);
}

.about-card p {
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.8;
}

.feature-list,
.approach-list {
    margin: 20px 0;
    padding-left: 20px;
}

.feature-list li,
.approach-list li {
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.8;
}

.approach-list {
    list-style: decimal;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 255, 249, 0.7));
    color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 255, 249, 0.3);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.cta-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(0, 255, 249, 0.05) 0%, rgba(255, 0, 128, 0.05) 100%);
    border-radius: 8px;
    margin-top: 40px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 255, 249, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 249, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 249, 0.5);
    position: relative;
}

.cta-section p {
    color: var(--text-medium);
    margin-bottom: 25px;
    font-size: 1.1em;
    position: relative;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 255, 249, 0.8));
    color: var(--bg-white);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 255, 249, 0.3);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--secondary-color), rgba(255, 0, 128, 0.8));
    box-shadow: 0 6px 30px rgba(255, 0, 128, 0.4);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 255, 249, 0.1);
}

.footer p {
    opacity: 0.8;
    margin: 5px 0;
    color: var(--text-medium);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 0;
    }
    
    .nav-links a {
        padding: 25px 15px;
        font-size: 0.9em;
    }
    
    .logo {
        font-size: 1.4em;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 25px;
    }
}