/* ===========================================
   Clément Plançon — Portfolio 2024
   Design Graphique & Fonction Publique
   =========================================== */

:root {
    /* Couleurs */
    --bg: #fafafa;
    --bg-alt: #f0f0f0;
    --text: #1a1a1a;
    --text-light: #666;
    --accent: #000091;
    --accent-light: #4f4fdb;
    --accent-red: #e1000f;
    --white: #fff;
    --border: #e0e0e0;

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* 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: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 5rem;
    --text-7xl: 7rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.5s;
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-alt: #1a1a1a;
    --text: #f5f5f5;
    --text-light: #999;
    --accent: #6b6bff;
    --accent-light: #8f8fff;
    --border: #2a2a2a;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { font: inherit; border: none; background: none; cursor: none; }
img, svg { display: block; max-width: 100%; }

::selection {
    background: var(--accent);
    color: var(--white);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* ===================== CURSOR ===================== */
.cursor {
    pointer-events: none;
    position: fixed;
    z-index: 9999;
}

.cursor__dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}

.cursor__circle {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s;
}

/* Cursor states */
body:has(a:hover) .cursor__circle,
body:has(button:hover) .cursor__circle {
    width: 60px;
    height: 60px;
}

body:has([data-cursor="view"]:hover) .cursor__circle,
body:has([data-cursor="email"]:hover) .cursor__circle {
    width: 100px;
    height: 100px;
    background: var(--accent);
}

body:has([data-cursor="view"]:hover) .cursor__dot,
body:has([data-cursor="email"]:hover) .cursor__dot {
    background: var(--white);
    width: 0;
    height: 0;
}

@media (max-width: 768px) {
    .cursor { display: none; }
    body, a, button { cursor: auto; }
}

/* ===================== GRAIN ===================== */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===================== HEADER ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-8);
    background: linear-gradient(to bottom, var(--bg), transparent);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo__mark {
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo__dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
}

.nav {
    display: flex;
    gap: var(--space-10);
}

.nav__link {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--accent);
}

.nav__num {
    font-size: var(--text-xs);
    color: var(--text-light);
    font-weight: 400;
}

.header__actions {
    display: flex;
    gap: var(--space-3);
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-toggle:hover {
    border-color: var(--accent);
}

.nav-toggle:hover span {
    background: var(--accent);
}

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

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease);
        z-index: 99;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        font-size: var(--text-2xl);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s var(--ease);
    }

    .nav.active .nav__link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav.active .nav__link:nth-child(1) { transition-delay: 0.1s; }
    .nav.active .nav__link:nth-child(2) { transition-delay: 0.15s; }
    .nav.active .nav__link:nth-child(3) { transition-delay: 0.2s; }
    .nav.active .nav__link:nth-child(4) { transition-delay: 0.25s; }
    .nav.active .nav__link:nth-child(5) { transition-delay: 0.3s; }

    .header {
        padding: var(--space-4);
    }

    .header__actions {
        z-index: 100;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* Nav toggle animation when open */
    body.nav-open .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: var(--space-24) 0;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero-bg__gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero-bg__gradient--1 {
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, purple));
    top: -20%;
    right: -10%;
    animation: gradientMove1 20s ease-in-out infinite;
}

.hero-bg__gradient--2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--accent-red), color-mix(in srgb, var(--accent-red) 50%, orange));
    bottom: -20%;
    left: -10%;
    animation: gradientMove2 25s ease-in-out infinite;
}

@keyframes gradientMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 30px) scale(1.1); }
    66% { transform: translate(30px, -50px) scale(0.9); }
}

@keyframes gradientMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(0.95); }
    66% { transform: translate(-40px, 40px) scale(1.05); }
}

.hero-bg__orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    animation: orbFloat 15s ease-in-out infinite;
}

.hero-bg__orb--1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 20%;
}

.hero-bg__orb--2 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 15%;
    animation-delay: -5s;
}

.hero-bg__orb--3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 40%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.5; }
}

/* Floating Elements */
.hero-float {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-float__item {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--space-3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: floatItem 20s ease-in-out infinite;
}

.hero-float__item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.hero-float__item--1 { top: 15%; left: 5%; animation-delay: 0s; }
.hero-float__item--2 { top: 25%; right: 8%; animation-delay: -3s; }
.hero-float__item--3 { bottom: 30%; left: 8%; animation-delay: -6s; }
.hero-float__item--4 { bottom: 15%; right: 15%; animation-delay: -9s; }
.hero-float__item--5 { top: 50%; left: 3%; animation-delay: -12s; }

@keyframes floatItem {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

/* Hero Container */
.hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero__left {
    max-width: 650px;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.3s var(--ease);
}

.tag svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.tag--glow {
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent);
}

.tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent);
}

.tag:hover svg {
    color: var(--white);
}

.hero__main {
    margin-bottom: var(--space-8);
}

.hero__intro {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--space-4);
}

.hero__intro-line {
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.hero__title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.hero__title-line {
    display: block;
    overflow: hidden;
}

.hero__title-word {
    display: inline-block;
}

.hero__title-word--gradient {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: var(--text-lg);
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

/* Hero Stats */
.hero__stats {
    display: flex;
    gap: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

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

.hero__stat-num {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero__stat-plus {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--accent);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-1);
}

/* Hero Right - Code Window */
.hero__right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-code {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--space-4);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s var(--ease);
}

.hero-code:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-code__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.hero-code__dots {
    display: flex;
    gap: var(--space-2);
}

.hero-code__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.hero-code__dots span:nth-child(1) { background: #ff5f57; }
.hero-code__dots span:nth-child(2) { background: #ffbd2e; }
.hero-code__dots span:nth-child(3) { background: #28ca42; }

.hero-code__file {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-xs);
    color: var(--text-light);
}

.hero-code__body {
    padding: var(--space-4);
    font-family: 'Space Mono', monospace;
    font-size: var(--text-sm);
    line-height: 1.8;
    overflow: hidden;
}

.hero-code__line {
    display: flex;
    white-space: nowrap;
    animation: codeFadeIn 0.5s ease forwards;
    opacity: 0;
}

.hero-code__line:nth-child(1) { animation-delay: 0.1s; }
.hero-code__line:nth-child(2) { animation-delay: 0.2s; }
.hero-code__line:nth-child(3) { animation-delay: 0.3s; }
.hero-code__line:nth-child(4) { animation-delay: 0.4s; }
.hero-code__line:nth-child(5) { animation-delay: 0.5s; }
.hero-code__line:nth-child(6) { animation-delay: 0.6s; }
.hero-code__line:nth-child(7) { animation-delay: 0.7s; }
.hero-code__line:nth-child(8) { animation-delay: 0.8s; }
.hero-code__line:nth-child(9) { animation-delay: 0.9s; }
.hero-code__line:nth-child(10) { animation-delay: 1s; }
.hero-code__line:nth-child(11) { animation-delay: 1.1s; }
.hero-code__line:nth-child(12) { animation-delay: 1.2s; }
.hero-code__line:nth-child(13) { animation-delay: 1.3s; }

@keyframes codeFadeIn {
    to { opacity: 1; }
}

.hero-code__num {
    width: 30px;
    color: var(--text-light);
    opacity: 0.4;
    flex-shrink: 0;
    user-select: none;
}

.hero-code__keyword { color: #c678dd; }
.hero-code__type { color: #e5c07b; }
.hero-code__string { color: #98c379; }
.hero-code__prop { color: #e06c75; }
.hero-code__var { color: #61afef; }

.hero-code__cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Tech Orbit */
.hero-orbit {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-orbit__ring {
    position: absolute;
    inset: 0;
    border: 1px dashed color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 50%;
}

.hero-orbit__ring--1 {
    inset: 50px;
    animation: orbitSpin 30s linear infinite;
}

.hero-orbit__ring--2 {
    animation: orbitSpin 45s linear infinite reverse;
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.hero-orbit__icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
}

.hero-orbit__ring--1 .hero-orbit__icon {
    --radius: calc(50% - 25px);
    transform: rotate(calc(var(--i) * 120deg)) translateX(calc(200px - 50px)) rotate(calc(var(--i) * -120deg));
}

.hero-orbit__ring--2 .hero-orbit__icon {
    transform: rotate(calc(var(--i) * 90deg)) translateX(300px) rotate(calc(var(--i) * -90deg));
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease);
}

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

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

.btn--primary:hover svg {
    transform: translateX(4px);
}

.btn--ghost {
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Hero Visual */
.hero__visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.hero__shape--1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    opacity: 0.15;
    top: 10%;
    right: 10%;
}

.hero__shape--2 {
    width: 300px;
    height: 300px;
    background: var(--accent-red);
    opacity: 0.1;
    bottom: 20%;
    left: 10%;
    animation-delay: -5s;
}

.hero__shape--3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    opacity: 0.1;
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__badge {
    position: relative;
    z-index: 1;
    width: 180px;
    height: 180px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: pulse 3s ease-in-out infinite;
}

.hero__badge-text {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1;
}

.hero__badge-label {
    font-size: var(--text-sm);
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero Scroll */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: 0 var(--space-6);
    }

    .hero__right {
        display: none;
    }

    .hero__left {
        max-width: 100%;
    }

    .hero__title {
        font-size: var(--text-5xl);
    }

    .hero-code {
        max-width: 400px;
    }

    .hero-orbit {
        width: 400px;
        height: 400px;
    }

    .hero-float__item--2,
    .hero-float__item--4 {
        display: none;
    }

    .hero__stats {
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: var(--space-20);
        padding-bottom: var(--space-8);
    }

    .hero__container {
        padding: 0 var(--space-4);
        display: flex;
        flex-direction: column;
        gap: var(--space-6);
    }

    /* Clean background on mobile - more subtle */
    .hero-bg__grid {
        background-size: 40px 40px;
        opacity: 0.4;
    }

    .hero-bg__gradient--1 {
        width: 280px;
        height: 280px;
        opacity: 0.25;
        top: 5%;
        right: -20%;
    }

    .hero-bg__gradient--2 {
        width: 200px;
        height: 200px;
        opacity: 0.2;
        bottom: 20%;
        left: -15%;
    }

    .hero-bg__orb {
        display: none;
    }

    .hero-float {
        display: none;
    }

    .hero-orbit {
        display: none;
    }

    /* Show simplified code window on mobile */
    .hero__right {
        display: block;
        order: -1;
    }

    .hero-code {
        max-width: 100%;
        transform: none;
        border-radius: var(--space-3);
    }

    .hero-code:hover {
        transform: none;
    }

    .hero-code__header {
        padding: var(--space-2) var(--space-3);
    }

    .hero-code__dots span {
        width: 8px;
        height: 8px;
    }

    .hero-code__file {
        font-size: 10px;
    }

    .hero-code__body {
        padding: var(--space-3);
        max-height: 140px;
        overflow: hidden;
    }

    .hero-code__line {
        font-size: 10px;
        line-height: 1.5;
    }

    .hero-code__num {
        width: 18px;
        font-size: 9px;
    }

    /* Hide some code lines on mobile for cleaner look */
    .hero-code__line:nth-child(n+8) {
        display: none;
    }

    .hero__left {
        max-width: 100%;
    }

    .hero__tags {
        margin-bottom: var(--space-4);
        gap: var(--space-2);
    }

    .tag {
        padding: var(--space-1) var(--space-3);
        font-size: 11px;
        background: color-mix(in srgb, var(--bg) 90%, var(--accent));
        border-color: color-mix(in srgb, var(--accent) 30%, transparent);
        backdrop-filter: blur(10px);
    }

    .tag svg {
        width: 12px;
        height: 12px;
    }

    .hero__main {
        margin-bottom: var(--space-4);
    }

    .hero__intro {
        font-size: var(--text-sm);
        margin-bottom: var(--space-2);
        gap: var(--space-2);
    }

    .hero__intro-line {
        width: 24px;
    }

    .hero__title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-3);
    }

    .hero__desc {
        font-size: var(--text-sm);
        line-height: 1.6;
        max-width: 100%;
    }

    .hero__cta {
        flex-direction: column;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
    }

    .hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
        padding-top: var(--space-4);
        border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    }

    .hero__stat {
        align-items: center;
        text-align: center;
    }

    .hero__stat-num {
        font-size: var(--text-xl);
    }

    .hero__stat-plus {
        font-size: var(--text-base);
    }

    .hero__stat-label {
        font-size: 9px;
        line-height: 1.2;
        opacity: 0.8;
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: var(--text-2xl);
    }

    .hero-code__body {
        max-height: 120px;
    }

    .hero-code__line:nth-child(n+7) {
        display: none;
    }

    .hero__stats {
        gap: var(--space-2);
    }

    .hero__stat-num {
        font-size: var(--text-lg);
    }

    .hero__stat-label {
        font-size: 8px;
    }
}

/* ===================== MARQUEE ===================== */
.marquee {
    padding: var(--space-6) 0;
    background: var(--accent);
    color: var(--white);
    overflow: hidden;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee__item {
    font-size: var(--text-xl);
    font-weight: 600;
    padding: 0 var(--space-4);
    white-space: nowrap;
}

.marquee__sep {
    padding: 0 var(--space-4);
    opacity: 0.5;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===================== SECTIONS ===================== */
.section {
    padding: var(--space-24) 0;
}

.section__head {
    margin-bottom: var(--space-16);
}

.section__num {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--space-1);
    margin-bottom: var(--space-4);
}

.section__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section__title--large {
    font-size: var(--text-5xl);
    line-height: 1.1;
}

.text--accent {
    color: var(--accent);
}

/* ===================== PROJECTS ===================== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.project {
    position: relative;
    background: var(--bg-alt);
    border-radius: var(--space-4);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
}

.project__img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project__img-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transition: transform 0.5s var(--ease);
}

.project:hover .project__img-bg {
    transform: scale(1.05);
}

.project__num {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--white);
    opacity: 0.3;
    line-height: 1;
}

.project__content {
    padding: var(--space-6);
}

.project__cat {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.project__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.project__desc {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.6;
}

.project__link {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.3s var(--ease);
}

.project__link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease);
}

.project:hover .project__link {
    background: var(--accent);
    color: var(--white);
}

.project:hover .project__link svg {
    transform: translate(2px, -2px);
}

@media (max-width: 768px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== ABOUT ===================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16);
    margin-bottom: var(--space-16);
}

.about__visual {
    position: relative;
}

.about__portrait {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__initials {
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--white);
    opacity: 0.9;
}

.about__label {
    position: absolute;
    bottom: -var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: var(--space-2) var(--space-4);
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}

.about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__lead {
    font-size: var(--text-2xl);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: var(--space-6);
}

.about__text {
    color: var(--text-light);
    margin-bottom: var(--space-8);
    line-height: 1.8;
}

.about__stats {
    display: flex;
    gap: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.stat__value {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-2);
}

.stat__plus {
    font-size: var(--text-2xl);
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .about__visual {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }

    .section__head {
        margin-bottom: var(--space-10);
    }

    .section__title {
        font-size: var(--text-3xl);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .about__visual {
        max-width: 200px;
        margin: 0 auto;
    }

    .about__portrait {
        aspect-ratio: 1;
        border-radius: 50%;
        box-shadow: 0 20px 40px color-mix(in srgb, var(--accent) 30%, transparent);
    }

    .about__initials {
        font-size: var(--text-5xl);
    }

    .about__label {
        bottom: -10px;
    }

    .about__lead {
        font-size: var(--text-xl);
        text-align: left;
    }

    .about__text {
        font-size: var(--text-sm);
        text-align: left;
    }

    .about__stats {
        justify-content: space-between;
        gap: var(--space-4);
        flex-wrap: wrap;
    }

    .stat {
        text-align: center;
        flex: 1;
        min-width: 80px;
    }

    .stat__value {
        font-size: var(--text-2xl);
    }

    .stat__label {
        font-size: var(--text-xs);
    }
}

/* Timeline */
.timeline {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.timeline__title {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: var(--space-8);
}

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

.timeline__item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.timeline__item:hover {
    padding-left: var(--space-4);
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent);
}

.timeline__date {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
}

.timeline__info h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.timeline__info p {
    font-size: var(--text-sm);
    color: var(--text-light);
}

@media (max-width: 640px) {
    .timeline__item {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
}

/* ===================== CONTACT ===================== */
.contact {
    background: var(--bg-alt);
}

.contact__email {
    display: inline-block;
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-2);
    border-bottom: 3px solid var(--accent);
    transition: color 0.3s;
}

.contact__email:hover {
    color: var(--accent);
}

.contact__socials {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

.social svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}

.social:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.social:hover svg {
    transform: translate(2px, -2px);
}

@media (max-width: 640px) {
    .contact__email {
        font-size: var(--text-xl);
        word-break: break-all;
    }
}

/* ===================== FOOTER ===================== */
.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--text-light);
}

@media (max-width: 640px) {
    .footer__inner {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}

/* ===================== SKILLS ===================== */
.skills {
    background: var(--bg-alt);
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.skill-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--space-4);
    padding: var(--space-6);
    transition: all 0.3s var(--ease);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.skill-card__icon {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-radius: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.skill-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.skill-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.skill-card__desc {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.skill-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-card__tags span {
    font-size: var(--text-xs);
    font-weight: 500;
    padding: var(--space-1) var(--space-3);
    background: var(--bg-alt);
    border-radius: 100px;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .skills__grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== MODAL ===================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__container {
    position: relative;
    background: var(--bg);
    border-radius: var(--space-4);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s var(--ease);
}

.modal.active .modal__container {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-alt);
    transition: all 0.3s var(--ease);
    z-index: 1;
}

.modal__close svg {
    width: 20px;
    height: 20px;
}

.modal__close:hover {
    background: var(--accent);
    color: var(--white);
}

.modal__content {
    padding: var(--space-10);
}

.modal__header {
    margin-bottom: var(--space-6);
}

.modal__cat {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.modal__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.modal__subtitle {
    font-size: var(--text-base);
    color: var(--text-light);
}

.modal__body {
    margin-bottom: var(--space-6);
}

.modal__body p {
    margin-bottom: var(--space-4);
    line-height: 1.8;
}

.modal__body h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.modal__body ul {
    list-style: none;
    margin-bottom: var(--space-4);
}

.modal__body ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--text-light);
}

.modal__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.modal__tags span,
.modal__tag {
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    border-radius: 100px;
}

.modal__period {
    display: inline-block;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    padding: var(--space-1) var(--space-3);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-radius: var(--space-2);
}

.modal__desc {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--space-6);
}

.modal__section {
    margin-bottom: var(--space-6);
}

.modal__section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text);
}

.modal__list {
    list-style: none;
}

.modal__list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--text-light);
    line-height: 1.6;
}

.modal__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===================== TIMELINE UPDATES ===================== */
.timeline__subtitle {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: calc(var(--space-8) * -1);
    margin-bottom: var(--space-8);
}

.timeline__item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: var(--space-8);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.timeline__arrow {
    display: flex;
    align-items: center;
    color: var(--text-light);
    transition: all 0.3s var(--ease);
}

.timeline__arrow svg {
    width: 20px;
    height: 20px;
}

.timeline__item:hover .timeline__arrow {
    color: var(--accent);
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .timeline__item {
        grid-template-columns: 1fr auto;
    }

    .timeline__date {
        grid-column: 1 / -1;
    }
}

/* ===================== SECTION SUBTITLE ===================== */
.section__subtitle {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-2);
}

/* ===================== ARTICLES PAGE ===================== */
.articles-hero {
    padding: var(--space-24) 0 var(--space-12);
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.articles-hero__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.articles-hero__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-radius: 100px;
}

.articles-hero__title {
    font-size: var(--text-5xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
}

.articles-hero__desc {
    font-size: var(--text-lg);
    color: var(--text-light);
    line-height: 1.7;
}

/* Search & Filters */
.articles-filters {
    max-width: 900px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: var(--space-6);
}

.search-box__icon {
    position: absolute;
    left: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

.search-box__input {
    width: 100%;
    padding: var(--space-4) var(--space-5) var(--space-4) var(--space-12);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--space-3);
    color: var(--text);
    transition: all 0.3s var(--ease);
}

.search-box__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.search-box__input::placeholder {
    color: var(--text-light);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

.category-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.category-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.category-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Articles Grid */
.articles-section {
    padding-top: var(--space-8);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .articles-hero {
        padding: var(--space-20) 0 var(--space-8);
    }

    .articles-hero__content {
        margin-bottom: var(--space-8);
    }

    .articles-hero__title {
        font-size: var(--text-4xl);
    }

    .articles-hero__desc {
        font-size: var(--text-base);
    }

    .search-box {
        margin-bottom: var(--space-4);
    }

    .search-box__input {
        padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
        font-size: var(--text-base);
    }

    .search-box__icon {
        left: var(--space-3);
        width: 18px;
        height: 18px;
    }

    .categories {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: var(--space-2);
        padding-bottom: var(--space-3);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0;
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .articles-section {
        padding-top: var(--space-4);
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .articles-hero__title {
        font-size: var(--text-3xl);
    }

    .article-card__content {
        padding: var(--space-4);
    }

    .article-card__title {
        font-size: var(--text-lg);
    }

    .article-card__img {
        height: 150px;
    }

    .medium-cta {
        padding: var(--space-12) 0;
    }

    .medium-cta__title {
        font-size: var(--text-2xl);
    }

    .medium-cta__desc {
        font-size: var(--text-base);
    }
}

/* Article Card */
.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--space-4);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.article-card.hidden {
    display: none;
}

.article-card__img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.article-card__img-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient, linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%));
    transition: transform 0.6s var(--ease);
}

.article-card:hover .article-card__img-bg {
    transform: scale(1.1);
}

.article-card__read-time {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 100px;
}

.article-card__content {
    padding: var(--space-6);
}

.article-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.article-card__category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.article-card__date {
    font-size: var(--text-xs);
    color: var(--text-light);
}

.article-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s var(--ease);
}

.article-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}

.article-card__link:hover {
    gap: var(--space-3);
}

.article-card__link:hover svg {
    transform: translate(2px, -2px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-16) 0;
    color: var(--text-light);
}

.no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.no-results p {
    font-size: var(--text-lg);
}

/* Medium CTA */
.medium-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: var(--space-16) 0;
}

.medium-cta__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.medium-cta__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.medium-cta__desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
}

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

.medium-cta .btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.medium-cta .btn--primary svg {
    width: 20px;
    height: 20px;
}

/* Nav active state */
.nav__link--active .nav__text {
    color: var(--accent);
}

.nav__link--active .nav__num {
    color: var(--accent);
}

/* ===================== ANIMATIONS ===================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
