/* ═══════════════════════════════════════════
   CLAYMORPHISM — WARM PORTFOLIO
   Soft, puffy, 3D clay-like UI
   ═══════════════════════════════════════════ */
:root {
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-height: 64px;

    /* ── Warm Clay Palette ── */
    --bg: #f0ebe3;
    --bg-raised: #f5f0e8;
    --bg-inset: #e3ddd4;
    --surface: #f5f0e8;
    --surface-hover: #faf6ef;

    --text: #2d2a26;
    --text-secondary: #5c564d;
    --text-muted: #9a9289;
    --accent: #e07a5f;
    --accent-rgb: 224, 122, 95;
    --accent-dark: #c9654c;
    --accent-light: #f2a891;
    --accent-dim: rgba(224, 122, 95, 0.12);
    --violet: #7c6aef;
    --violet-rgb: 124, 106, 239;
    --pink: #e05297;
    --sage: #81b29a;
    --sage-rgb: 129, 178, 154;
    --amber: #f2cc8f;

    --border-clay: rgba(0, 0, 0, 0.04);

    /* ── Clay Shadows — the signature look ── */
    --shadow-clay:
        8px 8px 16px rgba(0, 0, 0, 0.08),
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.03),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    --shadow-clay-hover:
        12px 12px 24px rgba(0, 0, 0, 0.1),
        -6px -6px 16px rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px rgba(0, 0, 0, 0.04),
        inset 0 3px 6px rgba(255, 255, 255, 0.9);
    --shadow-clay-sm:
        4px 4px 8px rgba(0, 0, 0, 0.06),
        -2px -2px 6px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 2px rgba(255, 255, 255, 0.7);
    --shadow-inset:
        inset 4px 4px 8px rgba(0, 0, 0, 0.06),
        inset -2px -2px 6px rgba(255, 255, 255, 0.7);
    --shadow-deep:
        14px 14px 28px rgba(0, 0, 0, 0.12),
        -7px -7px 20px rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px rgba(0, 0, 0, 0.04),
        inset 0 3px 6px rgba(255, 255, 255, 0.9);
    --shadow-button:
        6px 6px 12px rgba(0, 0, 0, 0.1),
        -3px -3px 8px rgba(255, 255, 255, 0.8),
        inset 0 2px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);

    /* ── Radii — extra round for clay ── */
    --radius: 24px;
    --radius-lg: 32px;
    --radius-sm: 16px;
    --radius-pill: 100px;

    --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    /* ── Particles ── */
    --particle-color: 224, 122, 95;
    --particle-alpha: 0.18;
    --particle-line-alpha: 0.04;
    --scrollbar-track: #e8e2d9;
    --scrollbar-thumb: #c9c1b6;
    --fun-gradient: linear-gradient(135deg, #e07a5f, #7c6aef, #81b29a);
    --tag-bg: rgba(224, 122, 95, 0.1);
    --tag-text: #c9654c;
}

/* ═══════════════════════════════════════════
   DARK MODE — Warm Clay (Dark Variant)
   ═══════════════════════════════════════════ */
[data-theme="dark"] {
    --bg: #1a1714;
    --bg-raised: #221f1a;
    --bg-inset: #141210;
    --surface: #252119;
    --surface-hover: #2d2820;

    --text: #ede8df;
    --text-secondary: #b5ae9f;
    --text-muted: #7a7367;
    --accent: #e9987e;
    --accent-rgb: 233, 152, 126;
    --accent-dark: #e07a5f;
    --accent-light: #f2bca8;
    --accent-dim: rgba(233, 152, 126, 0.15);
    --violet: #9a8cf5;
    --violet-rgb: 154, 140, 245;
    --pink: #e87bb3;
    --sage: #9dc6b0;
    --sage-rgb: 157, 198, 176;
    --amber: #f0d8a8;

    --border-clay: rgba(255, 255, 255, 0.06);

    --shadow-clay:
        6px 6px 14px rgba(0, 0, 0, 0.35),
        -3px -3px 10px rgba(255, 255, 255, 0.03),
        inset 0 -1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.04);
    --shadow-clay-hover:
        9px 9px 20px rgba(0, 0, 0, 0.4),
        -4px -4px 14px rgba(255, 255, 255, 0.04),
        inset 0 -2px 4px rgba(0, 0, 0, 0.18),
        inset 0 2px 4px rgba(255, 255, 255, 0.05);
    --shadow-clay-sm:
        3px 3px 7px rgba(0, 0, 0, 0.3),
        -2px -2px 5px rgba(255, 255, 255, 0.02),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.03);
    --shadow-inset:
        inset 3px 3px 7px rgba(0, 0, 0, 0.3),
        inset -2px -2px 5px rgba(255, 255, 255, 0.03);
    --shadow-deep:
        12px 12px 24px rgba(0, 0, 0, 0.45),
        -5px -5px 18px rgba(255, 255, 255, 0.04),
        inset 0 -2px 5px rgba(0, 0, 0, 0.15),
        inset 0 2px 5px rgba(255, 255, 255, 0.05);
    --shadow-button:
        5px 5px 10px rgba(0, 0, 0, 0.35),
        -2px -2px 7px rgba(255, 255, 255, 0.03),
        inset 0 2px 3px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);

    --particle-color: 233, 152, 126;
    --particle-alpha: 0.12;
    --particle-line-alpha: 0.03;
    --scrollbar-track: #1a1714;
    --scrollbar-thumb: #3d3730;
    --fun-gradient: linear-gradient(135deg, #e9987e, #9a8cf5, #9dc6b0);
    --tag-bg: rgba(233, 152, 126, 0.12);
    --tag-text: #e9987e;
}



[data-theme="dark"] .hero-name span {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 16px rgba(56, 189, 248, 0.4));
}

[data-theme="dark"] .section-title {
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .contact-section h2 {
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(145deg, #e9987e, #c76a50);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow:
        8px 8px 20px rgba(233, 152, 126, 0.2),
        -4px -4px 12px rgba(255, 255, 255, 0.02),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .projects-nav button.active,
[data-theme="dark"] .projects-nav button:hover {
    background: linear-gradient(145deg, #e9987e, #c76a50);
}

[data-theme="dark"] .project-status.live { background: rgba(157, 198, 176, 0.15); color: #9dc6b0; }
[data-theme="dark"] .project-status.active { background: rgba(154, 140, 245, 0.15); color: #b0a4f7; }
[data-theme="dark"] .project-status.coming-soon { background: rgba(240, 216, 168, 0.15); color: #f0d8a8; }
[data-theme="dark"] .project-status.discontinued { background: var(--accent-dim); color: var(--text-muted); }

[data-theme="dark"] .project-metrics {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* Dark mode theme toggle button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-clay-sm);
    transition: all 0.35s var(--ease-spring);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: var(--shadow-clay);
    color: var(--accent);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

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

.stat-many {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
}


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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   BACKGROUND LAYERS
   ═══════════════════════════════════════════ */
#hexCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s;
    opacity: 0;
}

/* ═══════════════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════════════ */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
* { cursor: none !important; }

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

.cursor-label {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(0, 0);
    opacity: 0;
    transition: opacity 0.2s;
    will-change: left, top;
}

.cursor-svg {
    display: block;
    transition: transform 0.15s ease, filter 0.15s ease;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.cursor-click { display: none; }

body.cursor-hover .cursor-default { display: none; }
body.cursor-hover .cursor-click   { display: block; }

body.cursor-hover .cursor-svg {
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.7));
}

.cursor-underscore {
    display: none;
}

/* Touch devices — restore default */
@media (hover: none) {
    .cursor-label { display: none; }
    * { cursor: auto !important; }
}

/* ═══════════════════════════════════════════
   NAVIGATION — Clay pill bar
   ═══════════════════════════════════════════ */
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 1000;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-clay);
    box-shadow: var(--shadow-clay);
    transition: all 0.4s var(--ease-out-expo);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring);
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-logo:hover { transform: scale(1.05); }

.nav-dot {
    color: var(--accent);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    display: block;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: calc(var(--nav-height) + 60px) clamp(24px, 5vw, 80px) 0px;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge { display: none; }
.hero-vibe { display: none; }

/* ── Hero Name — massive, puffy clay text ── */
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.8rem, 11vw, 9rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--text);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.35s forwards;
    position: relative;
}

.hero-name span {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(14, 165, 233, 0.35));
}

.hero-tagline {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
    padding: 8px 22px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-clay-sm);
    display: inline-block;
}

.hero-tagline em {
    font-family: var(--font-display);
    font-style: italic;
    text-transform: lowercase;
    font-size: 1.2em;
    color: var(--violet);
}

.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(0.68rem, 1.1vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
    padding: 10px 24px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-inset);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.65s forwards;
}

.hero-cta {
    display: flex;
    gap: 14px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.85s forwards;
}

/* ── Buttons — Puffy clay knobs ── */
.btn-primary {
    padding: 16px 38px;
    background: linear-gradient(145deg, #eb8e74, #d06a4f);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-button);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shine 4s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow:
        8px 8px 20px rgba(224, 122, 95, 0.3),
        -4px -4px 12px rgba(255, 255, 255, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    padding: 16px 38px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-clay);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-clay);
}

.btn-secondary:hover {
    color: var(--accent);
    transform: translateY(-4px) scale(1.04);
    box-shadow: var(--shadow-clay-hover);
    background: var(--surface-hover);
}

.btn-tertiary {
    padding: 16px 28px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
}

.btn-tertiary:hover {
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: var(--shadow-clay-sm);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 1.2s forwards;
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
}

.scroll-line {
    width: 2px;
    height: 44px;
    background: var(--bg-inset);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollLine 2.4s ease infinite;
}

/* ═══════════════════════════════════════════
   SECTIONS SHARED
   ═══════════════════════════════════════════ */
section {
    padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 60px);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 14px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-clay-sm);
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow:
        1px 1px 0px rgba(255, 255, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.04);
}

.section-title em {
    font-style: italic;
    background: var(--fun-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 60px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.skills-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.skills-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.skills-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.skills-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.skills-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.skills-grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.skills-grid .reveal:nth-child(8) { transition-delay: 0.35s; }
.edu-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.edu-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.edu-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.edu-grid .reveal:nth-child(5) { transition-delay: 0.24s; }

/* ═══════════════════════════════════════════
   STATS — Clay pills
   ═══════════════════════════════════════════ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1200px;
    width: calc(100% - clamp(48px, 10vw, 120px));
    margin: 40px auto;
    position: relative;
    z-index: 3;
}

.stat-item {
    background: var(--surface);
    border: 1px solid var(--border-clay);
    padding: 32px 24px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-clay);
    transition: all 0.4s var(--ease-spring);
}

.stat-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-clay-hover);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent);
    display: inline;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   ABOUT — Clay cards
   ═══════════════════════════════════════════ */
#about { display: block; }
.about-content { max-width: 900px; }

.about-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 22px;
}

.about-content p strong {
    color: var(--accent-dark);
    font-weight: 700;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 56px;
}

.highlight-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-clay);
    box-shadow: var(--shadow-clay);
    transition: all 0.4s var(--ease-spring);
    will-change: transform;
}

.highlight-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-clay-hover);
}

.highlight-card .icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--bg);
    box-shadow: var(--shadow-inset);
}

.highlight-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   SKILLS — Clay skill cards
   ═══════════════════════════════════════════ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.skill-card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-clay);
    box-shadow: var(--shadow-clay);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fun-gradient);
    border-radius: var(--radius) var(--radius) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.skill-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-clay-hover);
}

.skill-card:hover::after { transform: scaleX(1); }

.skill-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-inset);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tags span {
    padding: 6px 14px;
    background: var(--bg);
    color: var(--tag-text);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease-spring);
    box-shadow: var(--shadow-inset);
}

.skill-tags span:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px) scale(1.06);
    box-shadow:
        4px 4px 12px rgba(var(--accent-rgb), 0.3),
        -2px -2px 8px rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════
   PROJECTS — Clay project cards
   ═══════════════════════════════════════════ */
.projects-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.projects-nav button {
    padding: 10px 24px;
    border: 1px solid var(--border-clay);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s var(--ease-spring);
    box-shadow: var(--shadow-clay-sm);
}

.projects-nav button.active,
.projects-nav button:hover {
    background: linear-gradient(145deg, #eb8e74, #d06a4f);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-button);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 22px;
}

.project-card {
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-clay);
    overflow: hidden;
    transition: all 0.4s var(--ease-spring);
    position: relative;
    will-change: transform;
    box-shadow: var(--shadow-clay);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-deep);
}

/* project image */
.project-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease-spring);
}
.project-card:hover .project-card-image img {
    transform: scale(1.04);
}

.project-card-header {
    padding: 18px 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* links inside header */
.project-card-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    background: var(--bg);
    color: var(--text-muted);
    box-shadow: var(--shadow-inset);
    transition: all 0.25s ease;
}
.project-link:hover {
    color: var(--accent);
}

.project-status {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    box-shadow: var(--shadow-inset);
}

.project-status.live { background: rgba(129, 178, 154, 0.2); color: #3d7a5a; }
.project-status.active { background: rgba(124, 106, 239, 0.15); color: #5b49c9; }
.project-status.coming-soon { background: rgba(242, 204, 143, 0.3); color: #b8860b; }
.project-status.discontinued { background: var(--accent-dim); color: var(--text-muted); }

.project-card-body { padding: 24px 30px 30px; }

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.project-stack span {
    padding: 5px 14px;
    background: var(--bg);
    color: var(--tag-text);
    font-size: 0.66rem;
    font-family: var(--font-mono);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-inset);
}

.project-metrics {
    display: flex;
    gap: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.metric { display: flex; flex-direction: column; }
.metric-value { font-weight: 700; font-size: 0.9rem; }
.metric-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.coming-soon-card {
    background: repeating-linear-gradient(-45deg,
        var(--surface),
        var(--surface) 10px,
        var(--bg) 10px,
        var(--bg) 20px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    box-shadow: var(--shadow-clay) !important;
}

.coming-soon-content { padding: 40px; }

.coming-soon-content .cs-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    opacity: 0.45;
    animation: float 4s ease infinite;
}

.coming-soon-content h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.coming-soon-content p { color: var(--text-muted); font-size: 0.88rem; }

/* ═══════════════════════════════════════════
   EDUCATION — Clay cards
   ═══════════════════════════════════════════ */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.edu-card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-clay);
    box-shadow: var(--shadow-clay);
    transition: all 0.4s var(--ease-spring);
    will-change: transform;
}

.edu-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-clay-hover);
}

.edu-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--bg);
    box-shadow: var(--shadow-inset);
}

.edu-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.edu-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

.edu-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 16px;
    background: var(--bg);
    color: var(--tag-text);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-inset);
}

/* ═══════════════════════════════════════════
   CONTACT & FOOTER
   ═══════════════════════════════════════════ */
.contact-section {
    text-align: center;
    padding: clamp(100px, 12vw, 180px) clamp(24px, 5vw, 80px);
    position: relative;
    z-index: 3;
}

.contact-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow:
        1px 1px 0px rgba(255, 255, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.04);
}

.contact-section h2 em {
    font-style: italic;
    background: var(--fun-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section > div > p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 40px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border-clay);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.35s var(--ease-spring);
    color: var(--text-secondary);
    will-change: transform;
    box-shadow: var(--shadow-clay);
}

.contact-link:hover {
    color: var(--accent);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-clay-hover);
}

footer {
    padding: 32px clamp(24px, 5vw, 60px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

footer p { font-size: 0.78rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-spring);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.footer-links a:hover {
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: var(--shadow-clay-sm);
}

/* ═══════════════════════════════════════════
   TILT CARD EFFECT
   ═══════════════════════════════════════════ */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

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

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    #about { grid-template-columns: 1fr; gap: 40px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav {
        top: 10px;
        width: calc(100% - 32px);
        padding: 0 20px;
        border-radius: 20px;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--nav-height) + 20px);
        left: 16px;
        right: 16px;
        bottom: auto;
        height: auto;
        background: var(--surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px) scale(0.95);
        transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
        padding: 24px;
        border-radius: var(--radius);
        border: 1px solid var(--border-clay);
        box-shadow: var(--shadow-deep);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 0.06em;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .nav-hamburger { display: flex; }
    .about-highlights { grid-template-columns: 1fr 1fr; }

    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .about-highlights { grid-template-columns: 1fr; }
    .contact-links { flex-direction: column; align-items: center; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── Dark mode transition (smooth color change) ── */
html, body, nav, .nav-links,
.stat-item, .skill-card, .project-card, .edu-card,
.highlight-card, .contact-link, .blog-card, .back-link,
.hero-tagline, .hero-role, .btn-secondary, .section-label,
.theme-toggle, footer, .blog-empty {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
