/* ============================================
   TEACH ME FIRST WEBTOON - Optimized Stylesheet
   ============================================ */

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B85FF;
    --secondary: #F857A6;
    --accent: #FF5858;
    --dark: #0D0D2B;
    --dark-card: #161640;
    --dark-surface: #1E1E50;
    --dark-border: #2A2A6A;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D4;
    --text-muted: #8888AA;
    --gradient-main: linear-gradient(135deg, #6C63FF 0%, #F857A6 50%, #FF5858 100%);
    --gradient-card: linear-gradient(145deg, #1a1a4e 0%, #161640 100%);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-card-hover: 0 16px 48px rgba(108,99,255,0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s ease;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --max-width: 1280px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Force system fonts everywhere */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select {
    font-family: var(--font-body) !important;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.header { height: 75px; }

.logo-icon, .logo-icon svg {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
}

.faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particles .particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0.15;
    will-change: transform;
}

.bg-particles .particle:nth-child(1) { width: 300px; height: 300px; background: var(--primary); top: 10%; left: -5%; animation-duration: 25s; }
.bg-particles .particle:nth-child(2) { width: 200px; height: 200px; background: var(--secondary); top: 60%; right: -3%; animation-duration: 20s; animation-delay: -5s; }
.bg-particles .particle:nth-child(3) { width: 150px; height: 150px; background: var(--accent); bottom: 10%; left: 30%; animation-duration: 30s; animation-delay: -10s; }
.bg-particles .particle:nth-child(4) { width: 250px; height: 250px; background: var(--primary-light); top: 40%; left: 50%; animation-duration: 35s; animation-delay: -15s; }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -80px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.9); }
    75% { transform: translate(70px, 40px) scale(1.05); }
}

::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gradient-main); border-radius: 10px; }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover { color: var(--secondary); }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* HEADER */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13, 13, 43, 0.85);
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
}

.header.scrolled {
    background: rgba(13, 13, 43, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
}

.nav a:hover, .nav a.active {
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.15);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px; height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active { opacity: 1; }

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(248,87,166,0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-badge .badge-dot {
    width: 8px; height: 8px;
    background: #00FF88;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat { text-align: center; }

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounceDown 2s infinite;
}

.scroll-indicator svg { color: var(--text-muted); }

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* SECTIONS */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section-divider {
    width: 60px; height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ARTICLE */
.article-section {
    position: relative;
    z-index: 1;
    padding: 60px 0 100px;
}

.article-wrapper {
    max-width: 880px;
    margin: 0 auto;
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.article-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gradient-main);
}

.article-content h2 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.15);
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
    color: var(--primary-light);
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.article-content ul, .article-content ol {
    margin: 16px 0 24px 24px;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content li::marker { color: var(--primary-light); }
.article-content strong { color: var(--text-primary); font-weight: 700; }
.article-content em { color: var(--secondary); font-style: italic; }
.article-content a { color: var(--primary-light); text-decoration: underline; }

.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
    background: rgba(108, 99, 255, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* FIGURES */
.article-content figure {
    margin: 32px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow-card);
    background: var(--dark-surface);
}

.article-content figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.article-content figure figcaption {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(108, 99, 255, 0.05);
    text-align: center;
}

/* INFO BOXES */
.info-box {
    margin: 28px 0;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid;
}

.info-box.tip { background: rgba(0, 255, 136, 0.05); border-color: rgba(0, 255, 136, 0.2); }
.info-box.warning { background: rgba(255, 215, 0, 0.05); border-color: rgba(255, 215, 0, 0.2); }
.info-box.note { background: rgba(108, 99, 255, 0.05); border-color: rgba(108, 99, 255, 0.2); }

.info-box-title {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-box.tip .info-box-title { color: #00FF88; }
.info-box.warning .info-box-title { color: #FFD700; }
.info-box.note .info-box-title { color: var(--primary-light); }

/* TOC */
.toc {
    background: rgba(108, 99, 255, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-bottom: 40px;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.toc ol {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0; padding: 0;
}

.toc li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.toc li::before {
    content: counter(toc-counter) ".";
    color: var(--primary-light);
    font-weight: 700;
    margin-right: 8px;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
}

.toc a:hover { color: var(--primary-light); }

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-question:hover { color: var(--primary-light); }

.faq-icon {
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--primary-light);
}

.faq-item.active .faq-icon {
    background: var(--gradient-main);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.cta-box {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { margin-bottom: 16px; }
.cta-box p { max-width: 550px; margin: 0 auto 32px; }

/* FOOTER */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(13, 13, 43, 0.9);
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; color: var(--text-muted); max-width: 300px; }

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.85rem; color: var(--text-muted); }

/* PAGE HEADER */
.page-header {
    position: relative;
    z-index: 1;
    padding: 140px 0 60px;
    text-align: center;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-header .breadcrumb a { color: var(--primary-light); }

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--gradient-main);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top svg { color: #fff; }

/* BLOG CARDS */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    perspective: 2000px;
}

.card-3d-wrapper {
    perspective: 1200px;
    height: 420px;
}

.card-3d {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.card-3d:hover { transform: rotateY(180deg); }

.card-3d-front, .card-3d-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.card-3d-front {
    background: var(--gradient-card);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.card-3d-front .card-image { height: 200px; overflow: hidden; position: relative; }

.card-3d-front .card-category {
    position: absolute;
    top: 16px; left: 16px;
    padding: 4px 14px;
    background: var(--gradient-main);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.card-3d-front .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-3d-front .card-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.card-3d-front .card-excerpt { font-size: 0.9rem; color: var(--text-muted); flex: 1; }

.card-3d-front .card-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.card-meta-date { font-size: 0.8rem; color: var(--text-muted); }
.card-meta-read { font-size: 0.8rem; color: var(--primary-light); font-weight: 600; }

.card-3d-back {
    background: var(--gradient-main);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.card-3d-back h3 { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.card-3d-back p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }

.card-3d-back .btn-read {
    padding: 12px 28px;
    background: #fff;
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-card, .form-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }

.contact-info-icon {
    width: 48px; height: 48px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-text h4 { font-size: 1rem; margin-bottom: 4px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* LEGAL */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 100px;
}

.legal-content h2 {
    margin-top: 48px;
    color: var(--primary-light);
    font-size: 1.5rem;
}

.legal-content h2:first-child { margin-top: 0; }

/* 404 */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.error-code {
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 360px;
        height: 100vh;
        background: var(--dark-card);
        flex-direction: column;
        padding: 100px 32px 40px;
        transition: right 0.4s ease;
        z-index: 1000;
    }
    .nav.open { right: 0; }
    .nav a { width: 100%; padding: 14px 18px; font-size: 1.05rem; }
    .mobile-overlay { display: block; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .article-wrapper { padding: 32px 24px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .blog-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 24px; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 16px 60px; }
    .section { padding: 60px 0; }
}