/* ========================================
   CSS Variables & Theme System
   ======================================== */
:root {
    /* JavaCraft Modern Theme - Orange/Blue/Dark */
    --primary: #ff6b35;
    --secondary: #f7931e;
    --accent: #00d9ff;
    --success: #00ff88;
    --warning: #fbbf24;
    --danger: #ef4444;

    /* Dark by default (modern look) */
    --bg-primary: #050816;
    --bg-secondary: #0a0e27;
    --bg-tertiary: #1a1f3a;
    --text-primary: #f4f4f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border-color: rgba(255, 107, 53, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(255, 107, 53, 0.2);
    --shadow-lg: 0 10px 25px rgba(255, 107, 53, 0.3);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);

    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-secondary: linear-gradient(135deg, #00d9ff 0%, #667eea 100%);

    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme (when toggled) */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Animated Background (JavaCraft Style) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
    animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 20%;
    }

    33% {
        background-position: 30% -30%, 70% 70%, 80% 50%;
    }

    66% {
        background-position: -20% 20%, 120% 80%, 20% 80%;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--primary);
    padding: 1rem 2rem;
    z-index: 10000;
    box-shadow: var(--shadow-xl);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-accept {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-accept:hover {
    transform: scale(1.05);
}

/* ========================================
   Theme Toggle
   ======================================== */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon,
.moon-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: inline;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 1rem 0;
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

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

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    font-size: 1.2rem;
}

.search-btn:hover {
    background: var(--bg-tertiary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   Search Overlay
   ======================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 2rem;
    font-size: 1.5rem;
    background: white;
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-primary);
}

.search-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.search-results {
    margin-top: 1rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 8rem 2rem 4rem;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.08;
    border-radius: 50% 0 0 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.08;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.12;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.stat strong {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-cta {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Code Window */
.code-window {
    background: #1e293b;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.window-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.window-dots {
    display: flex;
    gap: 0.5rem;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #94a3b8;
}

.code-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #e2e8f0;
    overflow-x: auto;
}

.keyword {
    color: #c792ea;
}

.class-name {
    color: #82aaff;
}

.string {
    color: #c3e88d;
}

.comment {
    color: #546e7a;
    font-style: italic;
}

/* ========================================
   Ad Containers
   ======================================== */
.ad-container {
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.ad-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-infeed {
    grid-column: span 1;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #00d9ff;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ========================================
   Categories
   ======================================== */
.courses {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
 
.course-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.6), rgba(10, 14, 39, 0.8));
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
 
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}
 
.course-card:hover::before {
    left: 100%;
}
 
.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.3);
}
 
.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
 
.course-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}
 
.course-card p {
    color: rgba(244, 244, 249, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
 
.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
 
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(244, 244, 249, 0.6);
}
 
.progress-bar {
    width: 100%;
    height: 8px;
    background:brown;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}
 
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s ease;
}

/* ========================================
   Blog Section
   ======================================== */
.blog {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.03));
    position: relative;
}

/* Gradient Background Variations for Blog Images */
/* Modern Premium Gradient Backgrounds */
.gradient-bg-1 {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    /* Deep Purple to Blue */
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #06B6D4 0%, #14B8A6 100%);
    /* Cyan to Teal */
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    /* Indigo to Purple */
}

.gradient-bg-4 {
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    /* Pink to Purple */
}

.gradient-bg-5 {
    background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
    /* Emerald to Cyan */
}

.gradient-bg-6 {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    /* Amber to Red */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.blog-card.featured {
    grid-column: span 1;
}

.blog-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-read-more {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.btn-read-more:hover {
    transform: translateX(5px);
}

.blog-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-bookmark,
.btn-share {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 1.125rem;
}

.btn-bookmark:hover,
.btn-share:hover {
    background: var(--bg-tertiary);
}

.blog-cta {
    text-align: center;
}

/* ========================================
   Playground
   ======================================== */
.playground {
    padding: 5rem 0;
}

.playground-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.playground-editor,
.playground-output {
    display: flex;
    flex-direction: column;
}

.editor-header,
.output-header {
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.btn-run,
.btn-clear {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.code-editor {
    flex: 1;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    resize: none;
    min-height: 300px;
}

.code-output {
    flex: 1;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    background: var(--bg-primary);
    min-height: 300px;
}

.output-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   Newsletter
   ======================================== */
.newsletter {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

/* ========================================
   Scroll to Top & Reading Progress
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
}


/* ========================================
   HEADER MOBILE CSS - COMPLETE VERSION
   File: css/header-mobile.css
   Purpose: Mobile navigation & responsive header
   ======================================== */

/* ========================================
   NAVBAR BASE
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 0.75rem 0;
    background: var(--bg-primary, #0a0e27);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

/* ========================================
   LOGO STYLES
   ======================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 1.5rem;
    }
}

/* ========================================
   DESKTOP NAVIGATION - HIDE ON MOBILE
   ======================================== */

.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        color: var(--text-primary, #fff);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary, #00d9ff);
    }
}

/* ========================================
   DESKTOP ACTIONS - HIDE ON MOBILE
   ======================================== */

.nav-actions {
    display: none;
}

@media (min-width: 769px) {
    .nav-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .search-btn {
        background: transparent;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.5rem;
        transition: transform 0.2s ease;
    }

    .search-btn:hover {
        transform: scale(1.1);
    }

    .btn-cta {
        padding: 0.75rem 1.5rem;
        background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
    }
}

/* ========================================
   MOBILE MENU TOGGLE (HAMBURGER)
   ======================================== */

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary, #fff);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger → X Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   MOBILE NAVIGATION DRAWER
   ======================================== */

.mobile-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--bg-secondary, #0a0e27);
    z-index: 1000;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-links.active {
    right: 0;
}

/* Hide on desktop */
@media (min-width: 769px) {

    .mobile-nav-links,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ========================================
   MOBILE MENU LINKS
   ======================================== */

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: var(--text-primary, #fff);
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--primary, #00d9ff);
    padding-left: 0.5rem;
    background: rgba(0, 217, 255, 0.1);
}

.mobile-nav-links a.active {
    color: var(--primary, #00d9ff);
    font-weight: 600;
}

/* ========================================
   MOBILE MENU CLOSE BUTTON
   ======================================== */

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-primary, #fff);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   MOBILE MENU FOOTER
   ======================================== */

.mobile-nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-footer .btn-cta {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.mobile-nav-footer .btn-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

/* ========================================
   BODY SCROLL LOCK
   ======================================== */

body.menu-open {
    overflow: hidden;
}

/* ========================================
   RESPONSIVE FONT SIZES
   ======================================== */

/* Prevent text resize on mobile */
* {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Base font sizes */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus styles */
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.mobile-nav-links a:focus {
    outline: 2px solid var(--primary, #00d9ff);
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

    .mobile-menu-toggle,
    .mobile-menu-overlay,
    .mobile-nav-links {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }
}

@media (max-width: 768px) {

    /* Newsletter mobile */
    .newsletter-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .newsletter-text h2 {
        font-size: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    /* Playground mobile */
    .playground {
        padding: 3rem 0;
    }

    .playground-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .editor-header,
    .output-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .code-editor,
    .code-output {
        padding: 1rem;
        font-size: 0.85rem;
        min-height: 220px;
    }

    /* Hero section */
    @media (max-width: 768px) {

    .hero {
        padding: 4rem 1.5rem 3rem;
        overflow: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        display: block;
    }

}
}