/* ========================================
   Anushka Bhattarai — Portfolio
   Refined professional design system
   ======================================== */

:root {
    --white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f7f8fc;
    --bg-dot: #dde1ec;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --indigo: #4f46e5;
    --indigo-d: #4338ca;
    --indigo-light: rgba(79, 70, 229, .08);
    --indigo-ring: rgba(79, 70, 229, .14);

    --emerald: #10b981;
    --emerald-d: #059669;
    --emerald-light: rgba(16, 185, 129, .08);

    --amber: #f59e0b;

    --border: #e5e7eb;
    --border-hover: #c7d2e0;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .03);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, .04), 0 4px 8px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 8px rgba(15, 23, 42, .04), 0 12px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, .08), 0 24px 48px rgba(15, 23, 42, .08);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, .12);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --r-full: 9999px;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --max-w: 1180px;
    --nav-h: 68px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* Skip link a11y */
.skip-link {
    position: absolute; left: 16px; top: -50px;
    background: var(--indigo); color: white;
    padding: 8px 14px; border-radius: var(--r-sm);
    font-weight: 600; font-size: .82rem; z-index: 9999;
    transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Focus visible — accessible */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); z-index: 1000;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: all .3s var(--ease);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-display);
    font-weight: 700; font-size: .94rem;
    color: var(--text-primary); letter-spacing: -.2px;
    transition: opacity .2s var(--ease);
}
.nav-logo:hover { opacity: .8; }
.nav-logo-icon {
    width: 34px; height: 34px; border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--indigo), #6366f1);
    color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .25);
}
.nav-menu { display: flex; list-style: none; gap: 2px; }
.nav-link {
    display: inline-block; padding: 8px 16px;
    font-size: .84rem; font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--r-full);
    transition: all .2s var(--ease);
    position: relative;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-alt); }
.nav-link.active { color: var(--indigo); background: var(--indigo-light); }

.nav-cta {
    padding: 9px 20px; border-radius: var(--r-full);
    background: var(--text-primary); color: white;
    font-size: .84rem; font-weight: 600;
    transition: all .22s var(--ease);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
}
.nav-cta:hover {
    background: var(--indigo);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, .35);
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: .3s var(--ease);
}

/* ========================================
   HERO — 2-column refined
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 64px) 32px 80px;
    overflow: hidden;
    background: var(--bg);
}
.hero-mesh {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(ellipse at 12% 18%, rgba(79, 102, 241, .08) 0%, transparent 55%),
        radial-gradient(ellipse at 88% 82%, rgba(16, 185, 129, .06) 0%, transparent 55%),
        radial-gradient(circle, var(--bg-dot) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px;
    opacity: .55;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); }
.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(79, 70, 229, .12), transparent 70%);
    top: -160px; left: -120px;
    animation: orbA 22s ease-in-out infinite;
}
.orb-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(16, 185, 129, .09), transparent 70%);
    bottom: -100px; right: -100px;
    animation: orbB 26s ease-in-out infinite;
}
@keyframes orbA { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(60px, 40px) } }
@keyframes orbB { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(-50px, -40px) } }

.hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max-w); width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 64px;
}

/* HERO content (left) */
.hero-content {
    display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px; border-radius: var(--r-full);
    background: var(--emerald-light);
    border: 1px solid rgba(16, 185, 129, .2);
    font-size: .74rem; font-weight: 600;
    color: var(--emerald-d);
    animation: fadeDown .7s var(--ease) .1s both;
}
.hero-badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
    animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .25) }
    50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, .06) }
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 800; line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    animation: fadeDown .7s var(--ease) .2s both;
}
.hero-name { color: var(--indigo); }
.hero-highlight {
    background: linear-gradient(135deg, var(--indigo), var(--emerald));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-typewriter {
    display: inline-block; color: var(--emerald-d); font-style: italic;
    font-weight: 700;
    border-right: 3px solid var(--emerald);
    padding-right: 4px;
    animation: cursorBlink .8s step-end infinite;
}
@keyframes cursorBlink { 0%, 100% { border-color: var(--emerald) } 50% { border-color: transparent } }

.hero-description {
    font-size: 1rem; line-height: 1.75;
    color: var(--text-secondary);
    max-width: 520px;
    animation: fadeUp .7s var(--ease) .35s both;
}

.hero-actions {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    animation: fadeUp .7s var(--ease) .45s both;
}

.hero-meta {
    display: flex; align-items: center; gap: 20px;
    margin-top: 8px; flex-wrap: wrap;
    animation: fadeUp .7s var(--ease) .55s both;
}
.hero-social { display: flex; gap: 10px; }
.hero-social-link {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all .22s var(--ease);
}
.hero-social-link svg { width: 16px; height: 16px; }
.hero-social-link:hover {
    color: var(--indigo);
    border-color: var(--indigo);
    background: var(--indigo-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .2);
}
.hero-divider {
    width: 1px; height: 24px;
    background: var(--border);
}
.hero-location {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .82rem; color: var(--text-muted);
}
.hero-location svg { color: var(--text-muted); }

/* HERO visual (right) — clean professional photo card */
.hero-visual {
    display: flex; align-items: center; justify-content: center;
    position: relative;
    animation: zoomIn .9s var(--spring) .4s both;
}
.hero-photo-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
}
.hero-photo-bg-1 {
    position: absolute;
    inset: 16px 16px 16px 16px;
    background: linear-gradient(135deg, var(--indigo), var(--emerald));
    border-radius: var(--r-2xl);
    transform: rotate(-4deg);
    opacity: .85;
    z-index: 0;
}
.hero-photo-bg-2 {
    position: absolute;
    inset: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .15), rgba(16, 185, 129, .15));
    border: 1px solid var(--indigo-ring);
    border-radius: var(--r-2xl);
    transform: rotate(3deg);
    z-index: 0;
}
.hero-photo-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--r-2xl);
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow: var(--shadow-xl);
    border: 6px solid white;
    z-index: 2;
}
.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform .6s var(--ease);
}
.hero-photo-frame:hover img { transform: scale(1.03); }
.hero-photo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, .15) 100%);
    pointer-events: none;
}

/* Floating info cards on photo */
.float-card {
    position: absolute;
    z-index: 3;
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}
.float-card-1 {
    top: 24px;
    left: -32px;
    animation: cardFloat 5s ease-in-out infinite;
}
.float-card-2 {
    bottom: 36px;
    right: -28px;
    animation: cardFloat 5.5s ease-in-out infinite 1.5s;
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-8px) }
}
.float-card-icon {
    width: 32px; height: 32px;
    border-radius: var(--r-sm);
    background: var(--indigo-light);
    color: var(--indigo);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.float-card-icon svg { width: 16px; height: 16px; }
.float-card-icon.emerald { background: var(--emerald-light); color: var(--emerald-d); }
.float-card-title {
    font-size: .78rem; font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.float-card-sub {
    font-size: .68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    z-index: 1;
    opacity: .6;
    transition: opacity .2s var(--ease);
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue span {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    border-radius: 2px;
    background: var(--text-secondary);
    animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translate(-50%, 0); opacity: 1 }
    50% { transform: translate(-50%, 12px); opacity: .3 }
    100% { transform: translate(-50%, 0); opacity: 1 }
}

/* Shared animations */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px) } to { opacity: 1; transform: translateY(0) } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(22px) }  to { opacity: 1; transform: translateY(0) } }
@keyframes zoomIn   { from { opacity: 0; transform: scale(.86) }         to { opacity: 1; transform: scale(1) } }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: var(--r-full);
    font-size: .9rem; font-weight: 600;
    transition: all .22s var(--ease);
    border: none;
}
.btn-primary {
    background: var(--indigo); color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}
.btn-primary:hover {
    background: var(--indigo-d);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .42);
}
.btn-primary svg { transition: transform .22s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--indigo);
    color: var(--indigo);
    background: var(--indigo-light);
    transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 110px 0; background: var(--bg); position: relative; }
.section-alt { background: var(--bg-alt); }

.section + .section,
.section + .section-alt,
.section-alt + .section,
.section-alt + .section-alt {
    border-top: 1px solid var(--border);
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 16px;
}
.section-label::before, .section-label::after {
    content: ''; display: block; width: 32px; height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--indigo));
}
.section-label::after { background: linear-gradient(90deg, var(--indigo), transparent); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-desc {
    color: var(--text-secondary);
    max-width: 540px; margin: 0 auto;
    font-size: 1rem; line-height: 1.7;
}

/* ========================================
   ABOUT
   ======================================== */
.about-wrap {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 72px; align-items: start;
}
.about-intro {
    font-size: 1.12rem; font-weight: 600;
    color: var(--text-primary); line-height: 1.65;
    padding-left: 22px;
    border-left: 3px solid var(--indigo);
    margin-bottom: 24px;
}
.about-body { font-size: .96rem; line-height: 1.85; color: var(--text-secondary); }
.about-body p { margin-bottom: 14px; }
.about-body p:last-child { margin-bottom: 0; }

.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px; margin-top: 40px;
}
.stat-box {
    padding: 22px 16px; border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--white);
    text-align: center;
    transition: all .3s var(--ease);
}
.stat-box:hover {
    border-color: var(--indigo-ring);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 800;
    color: var(--indigo);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-num::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--emerald);
    margin-left: 2px;
}
.stat-num:not([data-count])::after { content: ''; }
.stat-lbl {
    font-size: .72rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.about-right-title {
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px; border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all .3s var(--ease);
}
.tool-card:hover {
    border-color: var(--indigo-ring);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.tool-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    border-radius: var(--r-sm);
    background: var(--indigo-light);
    color: var(--indigo);
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s var(--spring);
}
.tool-card:hover .tool-icon { transform: scale(1.12) rotate(-5deg); }
.tool-icon svg { width: 19px; height: 19px; }
.tool-info h4 {
    font-size: .9rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.tool-info p { font-size: .76rem; color: var(--text-muted); }

/* ========================================
   EXPERIENCE — vertical timeline
   ======================================== */
.exp-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}
.exp-timeline::before {
    content: '';
    position: absolute;
    left: 11px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--indigo), var(--emerald), transparent);
    border-radius: 2px;
}
.exp-card {
    position: relative;
    margin-bottom: 24px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-xs);
    transition: all .3s var(--ease);
}
.exp-card:hover {
    border-color: var(--indigo-ring);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.exp-card:last-child { margin-bottom: 0; }
.exp-dot {
    position: absolute;
    left: -34px; top: 32px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.exp-card.current .exp-dot {
    background: var(--emerald);
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .15);
    animation: dotPulse 2.2s ease-in-out infinite;
}
.exp-body { padding: 26px 30px; }
.exp-meta {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px; flex-wrap: wrap;
}
.exp-badge {
    padding: 4px 12px; border-radius: var(--r-full);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .04em;
    background: var(--indigo-light);
    color: var(--indigo);
}
.exp-card.current .exp-badge {
    background: rgba(16, 185, 129, .1);
    color: var(--emerald-d);
}
.exp-date { font-size: .76rem; color: var(--text-muted); font-weight: 500; }
.exp-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -.3px;
}
.exp-role {
    font-size: .9rem; color: var(--indigo);
    font-weight: 600; margin-bottom: 12px;
}
.exp-desc { font-size: .86rem; color: var(--text-secondary); line-height: 1.78; }

/* ========================================
   PROJECTS
   ======================================== */
.project-filters {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; margin-bottom: 40px;
}
.filter-btn {
    padding: 9px 20px; border-radius: var(--r-full);
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: .82rem; font-weight: 600;
    transition: all .22s var(--ease);
}
.filter-btn:hover {
    border-color: var(--indigo);
    color: var(--indigo);
}
.filter-btn.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.project-card {
    background: var(--white);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: all .35s var(--ease);
    position: relative;
}
.project-card.hidden {
    opacity: 0;
    transform: scale(.95);
    pointer-events: none;
    height: 0; margin: 0; padding: 0; border: 0;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(79, 70, 229, .12);
    border-color: var(--indigo-ring);
}
.project-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.project-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease);
}
.project-card:hover .project-image img { transform: scale(1.07); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .2) 100%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    background: white; color: var(--text-primary);
    border-radius: var(--r-full);
    font-size: .82rem; font-weight: 700;
    transform: translateY(14px);
    transition: all .3s var(--ease);
}
.project-card:hover .project-link { transform: translateY(0); }
.project-link:hover { background: var(--indigo); color: white; }
.project-link svg { width: 13px; height: 13px; }

.project-info {
    padding: 22px 24px; flex: 1;
    display: flex; flex-direction: column; gap: 10px;
}
.project-tech {
    display: inline-block;
    padding: 4px 11px;
    background: var(--indigo-light);
    color: var(--indigo);
    font-size: .66rem; font-weight: 700;
    border-radius: var(--r-full);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: .7px;
}
.project-info h3 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    transition: color .2s var(--ease);
}
.project-card:hover .project-info h3 { color: var(--indigo); }
.project-info p {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

/* Placeholder cards */
.project-image.project-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--pp-start, #4f46e5), var(--pp-end, #8b5cf6));
    position: relative;
}
.project-image.project-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .2), transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(255, 255, 255, .12), transparent 40%);
    pointer-events: none;
}
.project-image.project-placeholder svg.pp-icon {
    width: 84px; height: 84px;
    color: rgba(255, 255, 255, .95);
    stroke-width: 1.4;
    transition: transform .55s var(--ease);
    position: relative; z-index: 1;
}
.project-card:hover .project-image.project-placeholder svg.pp-icon { transform: scale(1.12); }
.pp-university { --pp-start: #4f46e5; --pp-end: #8b5cf6; }
.pp-amazon     { --pp-start: #f59e0b; --pp-end: #e97627; }
.pp-sqlpython  { --pp-start: #2563eb; --pp-end: #3776ab; }
.pp-creditcard { --pp-start: #f2c811; --pp-end: #d97706; }
.pp-pizza      { --pp-start: #ef4444; --pp-end: #991b1b; }

/* ========================================
   EDUCATION
   ======================================== */
.edu-grid {
    display: grid; gap: 18px;
    max-width: 780px; margin: 0 auto;
}
.edu-card {
    display: grid; grid-template-columns: 80px 1fr;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all .32s var(--ease);
}
.edu-card:hover {
    border-color: var(--indigo-ring);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.edu-side {
    background: var(--indigo-light);
    display: flex; align-items: center; justify-content: center;
    transition: background .3s var(--ease);
}
.edu-card:hover .edu-side { background: var(--indigo); }
.edu-side svg { width: 28px; height: 28px; color: var(--indigo); transition: color .3s var(--ease); }
.edu-card:hover .edu-side svg { color: white; }
.award-side { background: var(--emerald-light); }
.edu-card:hover .award-side { background: var(--emerald); }
.award-side svg { color: var(--emerald-d); }
.edu-card:hover .award-side svg { color: white; }
.edu-body { padding: 24px 30px; }
.edu-body h3 {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -.2px;
}
.edu-degree {
    font-size: .86rem; color: var(--indigo);
    font-weight: 600; margin-bottom: 4px;
}
.edu-meta { font-size: .76rem; color: var(--text-muted); margin-bottom: 2px; }
.edu-desc {
    font-size: .84rem; color: var(--text-secondary);
    line-height: 1.72; margin-top: 8px;
}

/* ========================================
   CERTIFICATES
   ======================================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.cert-card {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 24px; border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: all .3s var(--ease);
    position: relative; overflow: hidden;
}
.cert-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--indigo), var(--emerald));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s var(--ease);
}
.cert-card:hover {
    border-color: var(--indigo-ring);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.cert-card:hover::before { transform: scaleY(1); }
.cert-logo {
    flex-shrink: 0; width: 56px; height: 56px;
    border-radius: var(--r-md);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s var(--spring);
}
.cert-card:hover .cert-logo { transform: scale(1.08) rotate(-3deg); }
.cert-logo-text {
    font-weight: 700; font-size: .64rem;
    letter-spacing: .4px; text-transform: uppercase;
    color: var(--text-muted);
}
.cert-logo-text.ibm { font-size: .98rem; color: #0530ad; letter-spacing: 1.5px; }
.cert-logo-text.fcc { font-size: .76rem; color: #0a0a23; font-weight: 800; }
.cert-logo-text.nobel { font-size: .64rem; color: var(--indigo); }
.cert-info h3 {
    font-family: var(--font-display);
    font-size: .92rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px; line-height: 1.3;
}
.cert-issuer { font-size: .76rem; color: var(--text-muted); }
.cert-date { font-size: .7rem; color: var(--text-muted); }
.cert-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .78rem; font-weight: 700;
    color: var(--indigo);
    margin-top: 6px;
    transition: gap .18s var(--ease);
}
.cert-link:hover { gap: 8px; }

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 880px; margin: 0 auto;
}
.contact-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: all .3s var(--ease);
}
.contact-card:hover {
    border-color: var(--indigo-ring);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}
.contact-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    transition: all .3s var(--ease);
}
.contact-card:hover .contact-icon { transform: scale(1.12); }
.contact-icon svg { width: 22px; height: 22px; }
.linkedin-icon { background: rgba(10, 102, 194, .08); color: #0a66c2; }
.github-icon   { background: rgba(36, 41, 46, .06); color: #24292e; }
.email-icon    { background: var(--indigo-light); color: var(--indigo); }
.contact-card:hover .linkedin-icon { background: #0a66c2; color: white; box-shadow: 0 6px 16px rgba(10, 102, 194, .25); }
.contact-card:hover .github-icon   { background: #24292e; color: white; box-shadow: 0 6px 16px rgba(36, 41, 46, .2); }
.contact-card:hover .email-icon    { background: var(--indigo); color: white; box-shadow: 0 6px 16px rgba(79, 70, 229, .25); }
.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.contact-card p { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.contact-cta {
    font-size: .78rem; font-weight: 700;
    color: var(--indigo);
    transition: letter-spacing .2s var(--ease);
}
.contact-card:hover .contact-cta { letter-spacing: .3px; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--text-primary);
    color: #cbd5e1;
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: .82rem; color: #94a3b8; }
.footer-links a {
    font-size: .82rem; font-weight: 600;
    color: #cbd5e1;
    transition: color .2s var(--ease);
}
.footer-links a:hover { color: white; }

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--indigo);
    color: white;
    border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(79, 70, 229, .4);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all .3s var(--ease);
    z-index: 100;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--indigo-d); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(79, 70, 229, .5); }
.scroll-top svg { width: 18px; height: 18px; }

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.anim { opacity: 0; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.anim.visible { opacity: 1; transform: none !important; }
.anim-up    { transform: translateY(28px); }
.anim-left  { transform: translateX(-24px); }
.anim-right { transform: translateX(24px); }
.anim-scale { transform: translateY(20px) scale(.97); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-inner { gap: 40px; }
    .hero-photo-stack { max-width: 360px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .float-card-1 { left: -16px; }
    .float-card-2 { right: -12px; }
}

@media (max-width: 860px) {
    :root { --nav-h: 60px; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .nav-menu {
        position: fixed; top: var(--nav-h); left: 12px; right: 12px;
        background: var(--white); flex-direction: column;
        padding: 16px; gap: 4px;
        border: 1px solid var(--border);
        border-radius: var(--r-lg);
        box-shadow: var(--shadow-xl);
        transform: translateY(-120%);
        opacity: 0;
        transition: all .3s var(--ease);
        pointer-events: none;
    }
    .nav-menu.open { transform: translateY(8px); opacity: 1; pointer-events: auto; }
    .nav-link { padding: 12px; text-align: center; border-radius: var(--r-md); }

    .hero { padding: calc(var(--nav-h) + 40px) 24px 64px; min-height: auto; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
    }
    .hero-content { align-items: center; }
    .hero-description { text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-meta { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-photo-stack { max-width: 320px; }
    .scroll-cue { display: none; }

    .about-wrap { grid-template-columns: 1fr; gap: 48px; }
    .about-intro {
        border-left: none;
        padding-left: 0;
        border-bottom: 3px solid var(--indigo);
        padding-bottom: 14px;
    }

    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: 1fr; }
    .edu-card { grid-template-columns: 60px 1fr; }
    .exp-timeline { padding-left: 28px; }
    .exp-dot { left: -22px; }
    .section { padding: 72px 0; }
    .container { padding: 0 20px; }
    .footer-inner { flex-direction: column; text-align: center; padding: 0 20px; }
}

@media (max-width: 480px) {
    .hero-heading { font-size: 1.85rem; }
    .hero-photo-stack { max-width: 260px; }
    .float-card { padding: 9px 12px; }
    .float-card-1 { left: -8px; top: 12px; }
    .float-card-2 { right: -8px; bottom: 20px; }
    .float-card-title { font-size: .72rem; }
    .float-card-sub { font-size: .64rem; }
    .about-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .stat-num { font-size: 1.6rem; }
    .btn { padding: 11px 22px; font-size: .86rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .exp-body, .edu-body { padding: 22px 20px; }
    .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo); }
::selection { background: rgba(79, 70, 229, .15); color: var(--text-primary); }

/* ========================================
   HERO — Background dashboard mockup
   ======================================== */
.hero-dashboard {
    position: absolute;
    right: -90px;
    top: 50%;
    transform: translateY(-50%) rotate(-3deg);
    width: 760px;
    max-width: 65vw;
    opacity: .14;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 30px 50px rgba(15, 23, 42, .12));
}
.hero-dashboard svg { width: 100%; height: auto; display: block; }

/* Ensure hero content sits above the dashboard backdrop */
.hero-inner { position: relative; z-index: 2; }

/* ========================================
   FLOAT CARDS — Mini charts on photo
   ======================================== */
.float-card {
    /* Override the simple flex from earlier — these are now richer cards */
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    min-width: 154px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}
.mini-chart-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
}
.mini-chart-label {
    font-size: .68rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mini-chart-delta {
    font-size: .68rem; font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--r-full);
    color: var(--indigo);
    background: var(--indigo-light);
}
.mini-chart-delta.up.emerald,
.mini-chart-delta.emerald {
    color: var(--emerald-d);
    background: var(--emerald-light);
}
.mini-chart-value {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.3px;
    line-height: 1.1;
}
.mini-chart-spark,
.mini-bars {
    width: 100%; height: 30px;
    display: block;
}
.mini-chart-foot {
    display: flex; align-items: center; gap: 10px;
    font-size: .62rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mini-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}
.mini-dot.indigo  { background: var(--indigo); }
.mini-dot.emerald { background: var(--emerald); }

/* On smaller screens, hide the background dashboard so it doesn't fight the photo */
@media (max-width: 1024px) {
    .hero-dashboard { opacity: .08; right: -160px; }
}
@media (max-width: 860px) {
    .hero-dashboard { display: none; }
    .float-card { min-width: 130px; padding: 10px 12px; }
    .mini-chart-value { font-size: .92rem; }
}

/* ========================================
   DASHBOARD SHOWCASE
   ======================================== */
.dashboard-section { background: var(--bg-alt); position: relative; }
.dashboard-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 12% 30%, rgba(79, 70, 229, .05), transparent 55%),
        radial-gradient(ellipse at 90% 80%, rgba(16, 185, 129, .04), transparent 55%);
    pointer-events: none;
}

.dashboard-wrap {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    background: white;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.dashboard-chrome {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px;
    background: #f7f8fc;
    border-bottom: 1px solid var(--border);
}
.dashboard-chrome .dot {
    width: 11px; height: 11px; border-radius: 50%;
    display: inline-block;
}
.dashboard-chrome .dot.red    { background: #ff5f57; }
.dashboard-chrome .dot.yellow { background: #febc2e; }
.dashboard-chrome .dot.green  { background: #28c840; }
.dashboard-url {
    flex: 1; text-align: center;
    font-size: .76rem; color: var(--text-muted);
    font-weight: 500;
}
.dashboard-live {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .7rem; font-weight: 700;
    color: var(--emerald-d);
    padding: 4px 10px; border-radius: var(--r-full);
    background: var(--emerald-light);
}
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--emerald);
    animation: dotPulse 2s ease-in-out infinite;
}

.dashboard-body { padding: 26px 28px 30px; }

.dashboard-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.dashboard-h {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.3px;
    margin-bottom: 2px;
}
.dashboard-sub { font-size: .78rem; color: var(--text-muted); }
.dashboard-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.db-chip {
    padding: 7px 14px;
    font-size: .76rem; font-weight: 600;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text-secondary);
    transition: all .2s var(--ease);
}
.db-chip.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}
.db-chip:hover:not(.active) {
    border-color: var(--indigo);
    color: var(--indigo);
}

/* KPI row */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.kpi-card {
    padding: 16px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all .25s var(--ease);
}
.kpi-card:hover {
    border-color: var(--indigo-ring);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.kpi-label {
    font-size: .68rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.kpi-value {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.5px;
    line-height: 1.1;
    margin-bottom: 6px;
}
.kpi-delta {
    display: inline-block;
    font-size: .7rem; font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
    color: var(--indigo);
    background: var(--indigo-light);
}
.kpi-delta.up.emerald, .kpi-delta.emerald { color: var(--emerald-d); background: var(--emerald-light); }
.kpi-delta.down { color: #b45309; background: rgba(245, 158, 11, .12); }
.kpi-spark { width: 100%; height: 28px; margin-top: 10px; }

/* Charts row */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.dashboard-card {
    padding: 20px 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.chart-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 14px;
}
.chart-head h4 {
    font-family: var(--font-display);
    font-size: .92rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    letter-spacing: -.1px;
}
.chart-head p { font-size: .72rem; color: var(--text-muted); }
.chart-legend {
    display: flex; gap: 12px;
    font-size: .72rem; color: var(--text-secondary);
    font-weight: 600;
}
.chart-legend i {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.chart-legend i.indigo,
.donut-legend .dot.indigo { background: var(--indigo); }
.chart-legend i.emerald,
.donut-legend .dot.emerald { background: var(--emerald); }
.donut-legend .dot.amber { background: var(--amber); }
.donut-legend .dot.slate { background: #94a3b8; }
.bar-chart-svg { width: 100%; height: 200px; display: block; }

/* Donut */
.donut-wrap {
    display: flex; align-items: center; gap: 18px;
    flex-wrap: wrap;
}
.donut-svg { width: 150px; height: 150px; flex-shrink: 0; }
.donut-legend {
    list-style: none;
    flex: 1; min-width: 130px;
    display: flex; flex-direction: column; gap: 9px;
}
.donut-legend li {
    display: flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 600;
    color: var(--text-primary);
}
.donut-legend li em {
    margin-left: auto;
    font-style: normal;
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 700;
}
.donut-legend .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Bottom row */
.dashboard-bottom {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}
.db-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.db-table thead th {
    text-align: left;
    font-size: .66rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}
.db-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--bg-alt);
    color: var(--text-secondary);
}
.db-table tbody td:first-child { color: var(--text-primary); font-weight: 600; }
.db-table tbody tr:last-child td { border-bottom: none; }
.db-table tbody tr:hover td { background: var(--bg-alt); }
.trend {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--r-full);
    font-size: .68rem; font-weight: 700;
}
.trend.up { color: var(--emerald-d); background: var(--emerald-light); }
.trend.down { color: #b45309; background: rgba(245, 158, 11, .12); }

/* Region bars */
.region-list { display: flex; flex-direction: column; gap: 12px; }
.region-row {
    display: grid;
    grid-template-columns: 120px 1fr 56px;
    align-items: center;
    gap: 12px;
}
.region-name { font-size: .78rem; color: var(--text-primary); font-weight: 600; }
.region-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: var(--r-full);
    overflow: hidden;
}
.region-fill {
    height: 100%;
    border-radius: var(--r-full);
    transition: width .8s var(--ease);
}
.region-val { font-size: .76rem; color: var(--text-muted); text-align: right; font-weight: 600; }

/* Hide the obsolete hero-dashboard if any HTML still references it */
.hero-dashboard { display: none !important; }

/* Responsive dashboard */
@media (max-width: 980px) {
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .dashboard-charts { grid-template-columns: 1fr; }
    .dashboard-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .dashboard-body { padding: 18px 16px 22px; }
    .kpi-value { font-size: 1.25rem; }
    .db-table { font-size: .74rem; }
    .db-table thead th, .db-table tbody td { padding: 6px 6px; }
    .region-row { grid-template-columns: 80px 1fr 48px; gap: 8px; }
}

/* ========================================
   ABOUT — Skills proficiency meter (data vibe)
   ======================================== */
.about-right-title {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.about-right-title .title-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .62rem; font-weight: 600;
    color: var(--emerald-d);
    background: var(--emerald-light);
    padding: 4px 10px;
    border-radius: var(--r-full);
    letter-spacing: .04em;
    text-transform: none;
}
.about-right-title .title-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
    animation: dotPulse 2.2s ease-in-out infinite;
}

.skills-meter {
    display: flex; flex-direction: column;
    gap: 16px;
}
.skill-row {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    transition: all .25s var(--ease);
}
.skill-row:hover {
    border-color: var(--indigo-ring);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.skill-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.skill-name {
    font-family: var(--font-display);
    font-size: .9rem; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.1px;
    display: inline-flex; align-items: center; gap: 8px;
}
.skill-tag {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: .62rem;
    color: var(--indigo);
    background: var(--indigo-light);
    padding: 2px 7px;
    border-radius: var(--r-xs);
    font-weight: 600;
}
.skill-pct {
    font-family: var(--font-display);
    font-size: .82rem; font-weight: 800;
    color: var(--indigo);
    letter-spacing: -.2px;
}
.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-alt);
    border-radius: var(--r-full);
    overflow: hidden;
    position: relative;
}
.skill-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--indigo), #6366f1);
    border-radius: var(--r-full);
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 12px rgba(79, 70, 229, .25);
}
.skill-fill.emerald {
    background: linear-gradient(90deg, var(--emerald), #34d399);
    box-shadow: 0 0 12px rgba(16, 185, 129, .25);
}
.skill-sub {
    margin-top: 8px;
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   EXPERIENCE — KPI chips inside cards
   ======================================== */
.exp-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}
.exp-kpi {
    text-align: center;
    padding: 10px 8px;
    background: var(--bg-alt);
    border-radius: var(--r-sm);
    transition: all .25s var(--ease);
}
.exp-kpi:hover {
    background: var(--indigo-light);
    transform: translateY(-2px);
}
.exp-kpi-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 800;
    color: var(--indigo);
    letter-spacing: -.3px;
    line-height: 1;
    margin-bottom: 4px;
}
.exp-kpi-lbl {
    display: block;
    font-size: .66rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.exp-card.current .exp-kpi-num { color: var(--emerald-d); }

/* ========================================
   ABOUT — stats: add monospace prefix accent
   ======================================== */
.stat-box {
    position: relative;
    overflow: hidden;
}
.stat-box::before {
    content: '01';
    position: absolute;
    top: 6px; left: 8px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: .58rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: .5;
    letter-spacing: .04em;
}
.stat-box:nth-child(2)::before { content: '02'; }
.stat-box:nth-child(3)::before { content: '03'; }

/* Data-vibe: subtle grid pattern in background of section-alt */
.section-alt {
    background-image:
        linear-gradient(var(--bg-alt), var(--bg-alt)),
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, .15) 1px, transparent 0);
    background-size: 100% 100%, 24px 24px;
    background-blend-mode: normal;
}

@media (max-width: 600px) {
    .exp-kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .exp-kpi { padding: 8px 4px; }
    .exp-kpi-num { font-size: .92rem; }
    .exp-kpi-lbl { font-size: .58rem; }
}

/* ========================================
   THEME TOGGLE BUTTON (navbar)
   ======================================== */
.theme-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .22s var(--ease);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.theme-toggle:hover {
    color: var(--indigo);
    border-color: var(--indigo);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .2);
}
.theme-toggle svg {
    width: 17px; height: 17px;
    position: absolute;
    transition: transform .35s var(--spring), opacity .25s var(--ease);
}
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }

/* ========================================
   DARK MODE — variable + surface overrides
   ======================================== */
[data-theme="dark"] {
    --white: #1e293b;
    --bg: #0b1220;
    --bg-alt: #111a2e;
    --bg-dot: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --indigo: #818cf8;
    --indigo-d: #6366f1;
    --indigo-light: rgba(129, 140, 248, .12);
    --indigo-ring: rgba(129, 140, 248, .25);

    --emerald: #34d399;
    --emerald-d: #10b981;
    --emerald-light: rgba(52, 211, 153, .14);

    --border: #1f2a44;
    --border-hover: #334155;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, .35);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, .45);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, .5);

    color-scheme: dark;
}

/* Smooth color transition when toggling */
html, body, .navbar, .section, .section-alt,
.skill-row, .exp-card, .edu-card, .cert-card,
.project-card, .contact-card, .tool-card, .stat-box,
.kpi-card, .dashboard-wrap, .dashboard-card,
.nav-menu, .float-card, .scroll-top, .filter-btn,
.btn-ghost, .nav-cta, .theme-toggle, .hero-photo-frame {
    transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

/* Body & navbar surface */
[data-theme="dark"] body { background: var(--bg); color: var(--text-secondary); }
[data-theme="dark"] .navbar {
    background: rgba(11, 18, 32, .8);
}
[data-theme="dark"] .navbar.scrolled {
    background: rgba(11, 18, 32, .94);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}
[data-theme="dark"] .nav-cta {
    background: var(--indigo);
    color: var(--bg);
    box-shadow: 0 4px 14px rgba(129, 140, 248, .35);
}
[data-theme="dark"] .nav-cta:hover {
    background: var(--indigo-d);
    color: white;
}
[data-theme="dark"] .nav-menu { background: var(--white); }

/* Hero photo frame border in dark mode */
[data-theme="dark"] .hero-photo-frame {
    border-color: #1e293b;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
}

/* Float cards on photo */
[data-theme="dark"] .float-card {
    background: #1e293b;
    border-color: #334155;
}

/* Buttons in dark mode */
[data-theme="dark"] .btn-primary {
    background: var(--indigo);
    color: var(--bg);
}
[data-theme="dark"] .btn-primary:hover { background: #6366f1; color: white; }
[data-theme="dark"] .btn-ghost {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Section-alt dot grid uses different dot color in dark */
[data-theme="dark"] .section-alt {
    background-image:
        linear-gradient(var(--bg-alt), var(--bg-alt)),
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, .12) 1px, transparent 0);
    background-size: 100% 100%, 24px 24px;
}

/* Cards bg in dark — uses --white var which is mapped to #1e293b */
[data-theme="dark"] .section-alt .skill-row,
[data-theme="dark"] .section-alt .tool-card,
[data-theme="dark"] .section-alt .stat-box,
[data-theme="dark"] .section-alt .cert-card {
    background: var(--bg);
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--indigo); }
[data-theme="dark"] ::selection { background: rgba(129, 140, 248, .25); color: var(--text-primary); }

/* Project filter active state */
[data-theme="dark"] .filter-btn.active {
    background: var(--indigo);
    color: var(--bg);
    border-color: var(--indigo);
}

/* Stat box numbered prefix slightly brighter */
[data-theme="dark"] .stat-box::before { color: var(--text-muted); opacity: .4; }

/* Project overlay still works (it uses dark gradient) — fine */

/* Footer in dark mode — keep dark, but a touch lighter */
[data-theme="dark"] .footer {
    background: #060912;
    border-top-color: #1f2a44;
}

/* Hide on small screens */
@media (max-width: 480px) {
    .theme-toggle { width: 34px; height: 34px; }
    .theme-toggle svg { width: 15px; height: 15px; }
}

/* ========================================
   SECTION BACKGROUNDS — subtle ambient accents
   ======================================== */

/* Light, unified base for every section: soft gradient + faint grid */
.section {
    position: relative;
    isolation: isolate;
}
.section::before,
.section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

/* ::before — soft directional gradient over the section */
.section::before {
    background:
        radial-gradient(ellipse 60% 50% at 10% 0%, rgba(79, 70, 229, .045), transparent 60%),
        radial-gradient(ellipse 50% 40% at 95% 100%, rgba(16, 185, 129, .035), transparent 60%);
}

/* ::after — micro-dot grid */
.section::after {
    background-image: radial-gradient(circle, rgba(148, 163, 184, .14) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
    opacity: .55;
}

/* section-alt — distinct from section, slightly stronger gradient */
.section-alt {
    background: var(--bg-alt);
}
.section-alt::before {
    background:
        radial-gradient(ellipse 70% 60% at 95% 0%, rgba(79, 70, 229, .055), transparent 60%),
        radial-gradient(ellipse 55% 45% at 5% 100%, rgba(16, 185, 129, .04), transparent 60%);
}
.section-alt::after {
    background-image:
        linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
    opacity: .7;
}

/* Per-section flavor tweaks (low cost, low opacity) */
#about::before {
    background:
        radial-gradient(ellipse 50% 60% at 100% 50%, rgba(79, 70, 229, .055), transparent 55%),
        radial-gradient(circle 320px at 0% 0%, rgba(16, 185, 129, .04), transparent 60%);
}
#experience::before {
    background:
        radial-gradient(ellipse 65% 55% at 0% 30%, rgba(79, 70, 229, .07), transparent 55%),
        radial-gradient(circle 380px at 100% 80%, rgba(16, 185, 129, .055), transparent 60%);
}
#projects::before {
    background:
        radial-gradient(ellipse 80% 45% at 50% 0%, rgba(79, 70, 229, .06), transparent 55%),
        radial-gradient(ellipse 55% 45% at 50% 100%, rgba(16, 185, 129, .045), transparent 55%);
}
#education::before {
    background:
        radial-gradient(circle 340px at 90% 20%, rgba(79, 70, 229, .065), transparent 60%),
        radial-gradient(circle 300px at 10% 90%, rgba(16, 185, 129, .055), transparent 60%);
}
#certificates::before {
    background:
        radial-gradient(ellipse 55% 60% at 20% 30%, rgba(79, 70, 229, .055), transparent 55%),
        radial-gradient(ellipse 50% 50% at 85% 70%, rgba(16, 185, 129, .045), transparent 55%);
}
#contact::before {
    background:
        radial-gradient(ellipse 75% 60% at 50% 0%, rgba(79, 70, 229, .07), transparent 55%),
        radial-gradient(circle 280px at 50% 100%, rgba(16, 185, 129, .06), transparent 65%);
}

/* Override the legacy section-alt dot-grid so the new pattern takes over cleanly */
.section-alt {
    background-image: none;
    background-color: var(--bg-alt);
}

/* DARK MODE adjustments — make accents more vivid against dark surface */
[data-theme="dark"] .section::before {
    background:
        radial-gradient(ellipse 60% 50% at 10% 0%, rgba(129, 140, 248, .09), transparent 60%),
        radial-gradient(ellipse 50% 40% at 95% 100%, rgba(52, 211, 153, .07), transparent 60%);
}
[data-theme="dark"] .section::after {
    background-image: radial-gradient(circle, rgba(148, 163, 184, .08) 1px, transparent 1px);
    opacity: .65;
}
[data-theme="dark"] .section-alt::before {
    background:
        radial-gradient(ellipse 70% 60% at 95% 0%, rgba(129, 140, 248, .12), transparent 60%),
        radial-gradient(ellipse 55% 45% at 5% 100%, rgba(52, 211, 153, .08), transparent 60%);
}
[data-theme="dark"] .section-alt::after {
    background-image:
        linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px);
}
[data-theme="dark"] #about::before {
    background:
        radial-gradient(ellipse 50% 60% at 100% 50%, rgba(129, 140, 248, .1), transparent 55%),
        radial-gradient(circle 320px at 0% 0%, rgba(52, 211, 153, .07), transparent 60%);
}
[data-theme="dark"] #experience::before {
    background:
        radial-gradient(ellipse 65% 55% at 0% 30%, rgba(129, 140, 248, .13), transparent 55%),
        radial-gradient(circle 380px at 100% 80%, rgba(52, 211, 153, .1), transparent 60%);
}
[data-theme="dark"] #projects::before {
    background:
        radial-gradient(ellipse 80% 45% at 50% 0%, rgba(129, 140, 248, .11), transparent 55%),
        radial-gradient(ellipse 55% 45% at 50% 100%, rgba(52, 211, 153, .08), transparent 55%);
}
[data-theme="dark"] #education::before {
    background:
        radial-gradient(circle 340px at 90% 20%, rgba(129, 140, 248, .12), transparent 60%),
        radial-gradient(circle 300px at 10% 90%, rgba(52, 211, 153, .1), transparent 60%);
}
[data-theme="dark"] #certificates::before {
    background:
        radial-gradient(ellipse 55% 60% at 20% 30%, rgba(129, 140, 248, .1), transparent 55%),
        radial-gradient(ellipse 50% 50% at 85% 70%, rgba(52, 211, 153, .08), transparent 55%);
}
[data-theme="dark"] #contact::before {
    background:
        radial-gradient(ellipse 75% 60% at 50% 0%, rgba(129, 140, 248, .13), transparent 55%),
        radial-gradient(circle 280px at 50% 100%, rgba(52, 211, 153, .1), transparent 65%);
}

/* Ensure section content sits above the ::before/::after layers */
.section > .container { position: relative; z-index: 1; }
