/* ============================================
   STARTER TEMPLATE - DESIGN SYSTEM
   
   HOW TO CUSTOMIZE:
   1. Change colors in the :root section below
   2. Change fonts in the --font-* variables
   3. All design tokens are CSS variables
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Primary Colors */
    --color-primary: #1a1a2e;
    --color-primary-light: #16213e;
    --color-accent: #e07a5f;
    --color-accent-hover: #c96a51;
    --color-accent-light: rgba(224, 122, 95, 0.1);

    /* Neutrals */
    --color-white: #ffffff;
    --color-bg: #fafafa;
    --color-bg-alt: #f0efeb;
    --color-text: #1a1a2e;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;

    /* Typography */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 400;
}

/* ---------- UTILITIES ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-5xl) 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--text-4xl);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-text);
}

.btn-light:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-full {
    width: 100%;
}

/* ---------- HEADER / NAVIGATION ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-base);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.site-header.scrolled .nav-link {
    color: var(--color-text-secondary);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
    color: var(--color-text);
}

.site-header.scrolled .logo {
    color: var(--color-text);
}

.site-header.scrolled .header-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    z-index: 1001;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    font-size: var(--text-sm);
}

.header-cta:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.site-header.scrolled .mobile-toggle span {
    background: var(--color-text);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(22, 33, 62, 0.7) 50%,
        rgba(26, 26, 46, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-5xl) 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: var(--text-7xl);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
    max-width: 800px;
}

.hero-title em {
    font-style: italic;
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin-bottom: var(--space-3xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-5xl);
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ---------- ABOUT ---------- */
.about {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about-content .section-title {
    font-size: var(--text-3xl);
}

.about-text {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ---------- SERVICES ---------- */
.services {
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    color: var(--color-accent);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
    font-weight: 600;
}

.service-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---------- PORTFOLIO ---------- */
.portfolio {
    background: var(--color-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.portfolio-item--wide {
    grid-column: span 2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.portfolio-title {
    font-size: var(--text-xl);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
}

/* ---------- BLOG ---------- */
.blog {
    background-color: var(--color-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: var(--space-xl);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.blog-date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.blog-tag {
    font-size: var(--text-xs);
    padding: 0.2rem 0.6rem;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.blog-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.4;
}

.blog-title a:hover {
    color: var(--color-accent);
}

.blog-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact-info .section-title {
    font-size: var(--text-3xl);
}

.contact-desc {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Contact Form */
.contact-form {
    background: var(--color-bg);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-desc {
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.footer-links a {
    display: block;
    font-size: var(--text-sm);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 100ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 200ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 300ms; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 400ms; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 500ms; }

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --text-7xl: 3.5rem;
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --space-5xl: 6rem;
        --space-4xl: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-item--wide {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

/* Large Mobile */
@media (max-width: 768px) {
    :root {
        --text-7xl: 2.75rem;
        --text-6xl: 2.25rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --space-5xl: 5rem;
        --space-4xl: 3rem;
        --header-height: 64px;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .main-nav .nav-link {
        font-size: var(--text-2xl);
        color: rgba(255, 255, 255, 0.7);
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--color-white);
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile nav open state always shows white hamburger lines */
    .mobile-toggle.active span {
        background: var(--color-white);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image-accent {
        display: none;
    }

    .about-stats {
        gap: var(--space-xl);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-overlay {
        opacity: 1;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    /* Hero */
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --text-7xl: 2.25rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.25rem;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* ---------- ARTICLE PAGE ---------- */
.article-page {
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-5xl);
}

.article-page .article-header {
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
}

.article-page .article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.article-page .article-body {
    max-width: 720px;
    margin: 0 auto;
}

.article-page .article-body h2 {
    font-size: var(--text-2xl);
    margin: var(--space-2xl) 0 var(--space-md);
}

.article-page .article-body h3 {
    font-size: var(--text-xl);
    margin: var(--space-xl) 0 var(--space-md);
    font-family: var(--font-body);
    font-weight: 600;
}

.article-page .article-body p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.article-page .article-body img {
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}

.article-page .article-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-xl);
    margin: var(--space-2xl) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.article-page .article-body ul,
.article-page .article-body ol {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article-page .article-body li {
    margin-bottom: var(--space-sm);
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--color-accent);
}

.back-link svg {
    width: 16px;
    height: 16px;
}
