@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables (portfolio "constellation" palette, sitewide) ── */
:root {
    --bg:           #EDEEF2;
    --surface:      #ffffff;
    --surface-2:    #f0f1f7;
    --surface-3:    #E4E7FF;
    --border:       rgba(43,63,234,0.15);
    --border-light: rgba(23,24,29,0.10);
    --text:         #17181D;
    --text-2:       #5A5C66;
    --muted:        #9a9ba8;
    --violet:       #2B3FEA;
    --grad:         linear-gradient(135deg, #2B3FEA 0%, #8DA0FF 100%);
    --grad-alt:     linear-gradient(135deg, #2B3FEA 0%, #e11d48 100%);
    --glow:         0 0 30px rgba(43,63,234,0.22);
    --shadow-sm:    0 2px 10px rgba(0,0,0,0.07);
    --shadow-lg:    0 20px 60px rgba(0,0,0,0.14);
    --r-sm:   6px;
    --r-md:   12px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-full: 999px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
::selection { background: var(--violet); color: #fff; }

/* ── Constellation background + custom cursor (sitewide) ── */
.site-stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.site-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--violet);
    pointer-events: none;
    z-index: 2147483647;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s, opacity .3s;
    opacity: 0;
}
body:hover .site-cursor { opacity: 1; }
.site-cursor.grow { width: 64px; height: 64px; }
*, *::before, *::after { cursor: none !important; }
@media (hover: none) {
    .site-cursor { display: none; }
    *, *::before, *::after { cursor: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
    .site-stars, .site-cursor { display: none; }
    *, *::before, *::after { cursor: auto !important; }
}

main, .site-footer {
    position: relative;
    z-index: 1;
}

/* ── Typography ── */
h1, h2, h3 {
    font-family: 'Fraunces', serif;
}

h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--text);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
}

h3 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.03rem;
    font-weight: 600;
    color: var(--text);
}

p { color: var(--text-2); text-align: justify; }

/* Gradient text */
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ── */
.container {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: clamp(64px, 8vw, 108px) 0;
}

.section-tight {
    padding: clamp(20px, 2.5vw, 36px) 0;
}

.bg-surface {
    background: var(--surface-3);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* ── Eyebrow ── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px 14px;
    background: rgba(43,63,234,0.08);
    border: 1px solid rgba(43,63,234,0.22);
    border-radius: var(--r-full);
    color: #2B3FEA;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.71rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grad);
    flex-shrink: 0;
}

/* ── Header (floating pill) ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    transition: padding 0.35s;
}

.pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 10px 8px 6px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--border-light);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s, background 0.4s;
}

.site-header.scrolled { padding: 8px 0; }
.site-header.scrolled .pill {
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.94);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 10px 4px 4px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.15);
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.nav-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    background: var(--surface-3);
    border-radius: var(--r-full);
    transition: left 0.35s var(--ease, cubic-bezier(.22,1,.36,1)), width 0.35s var(--ease, cubic-bezier(.22,1,.36,1)), opacity 0.2s;
    opacity: 0;
    z-index: 0;
}

.site-nav a {
    position: relative;
    z-index: 1;
    padding: 8px 13px;
    border-radius: var(--r-full);
    color: var(--text-2);
    font-size: 0.87rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    color: #2B3FEA;
}

.nav-cta {
    margin-left: 4px;
    background: var(--grad) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: var(--r-full) !important;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.88;
    box-shadow: var(--glow) !important;
    transform: translateY(-1px);
}

.lang-switch {
    position: relative;
    flex-shrink: 0;
    margin: 0 10px;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: var(--surface-3);
    color: var(--text-2);
    padding: 7px 10px;
    border-radius: var(--r-full);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.lang-trigger:hover,
.lang-switch.open .lang-trigger {
    color: #2B3FEA;
    background: rgba(43,63,234,0.08);
}

.lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.lang-code[hidden] { display: none; }

.lang-menu .lang-code {
    color: var(--text-2);
    opacity: 0.6;
}

.lang-menu button.active .lang-code { color: inherit; opacity: 1; }

.lang-caret {
    flex-shrink: 0;
    transition: transform 0.25s;
}

.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 130px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}

.lang-switch.open .lang-menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.lang-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    text-align: left;
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-menu button:hover { background: var(--surface-3); color: var(--text); }

.lang-menu button.active {
    color: #2B3FEA;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: var(--surface-3);
    border: 1px solid var(--border-light);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-toggle span {
    width: 18px;
    height: 1.8px;
    background: var(--violet);
    border-radius: var(--r-full);
    transition: transform 0.35s, opacity 0.35s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--r-full);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 22px rgba(43,63,234,0.28);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(43,63,234,0.42);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
    border-color: rgba(43,63,234,0.4);
    color: #2B3FEA;
    background: rgba(43,63,234,0.06);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Dark CTA band (e.g. GitHub callout) ── */
.gh-band {
    background: linear-gradient(120deg, #14132b, #241f52);
    color: var(--bg);
    border-radius: var(--r-xl);
    padding: clamp(44px, 6vw, 64px) clamp(28px, 6vw, 48px);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.gh-band::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129,140,248,0.32), transparent 70%);
    top: -160px;
    right: -110px;
}

.gh-band-icon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(129,140,248,0.3);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.gh-band .eyebrow-dark {
    background: rgba(129,140,248,0.18);
    color: #c7d2fe;
    border-color: transparent;
    position: relative;
    z-index: 1;
}

.gh-band h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 14px 0 14px;
    position: relative;
    z-index: 1;
}

.gh-band h2 .accent-light { color: #c7d2fe; }

.gh-band p {
    color: #b8b4d9;
    max-width: 460px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

.gh-band .btn-primary {
    position: relative;
    z-index: 1;
}

/* ── Hero (index) ── */
.hero-section {
    position: relative;
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(72px, 8vw, 120px) 0;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-section::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(43,63,234,0.10) 0%, transparent 65%);
    top: -120px;
    right: -60px;
    animation: float-blob 9s ease-in-out infinite;
}

.hero-section::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8,145,178,0.07) 0%, transparent 65%);
    bottom: -80px;
    left: 5%;
    animation: float-blob 12s ease-in-out infinite reverse;
}

@keyframes float-blob {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.06); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: #0891b2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: #0891b2;
    border-radius: var(--r-full);
    flex-shrink: 0;
}

.hero-copy h1 {
    margin-bottom: 22px;
}

.hero-bio {
    font-size: 1.06rem;
    color: var(--text-2);
    max-width: 530px;
    line-height: 1.82;
    margin-bottom: 38px;
}

/* ── Avatar ── */
.hero-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.avatar-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--grad);
    padding: 4px;
    box-shadow: 0 0 50px rgba(43,63,234,0.22), 0 0 100px rgba(8,145,178,0.08);
    flex-shrink: 0;
    position: relative;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--surface);
    color: #2B3FEA;
    font-size: 2.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
}

.avatar-social {
    display: flex;
    gap: 10px;
    width: 220px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    padding: 9px 14px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-full);
    color: var(--text-2);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: rgba(43,63,234,0.35);
    color: #2B3FEA;
    background: rgba(43,63,234,0.06);
}

/* ── Section header ── */
.section-header {
    margin-bottom: 44px;
}

.section-header h2  { margin-top: 6px; }

.section-header-center {
    text-align: center;
}

.section-header-center .section-title-logo {
    justify-content: center;
}

.section-title-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-logo .cert-org-logo {
    width: 36px;
    height: 36px;
}
.section-header p   { margin-top: 12px; max-width: 560px; font-size: 1rem; }

.edu-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    font-weight: 700;
    color: #2B3FEA;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 6px;
}

/* ── Skills path (horizontal line with points, arrow at the end) ── */
.skills-path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-right: 16px;
    margin-bottom: 32px;
}

.skills-path::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 15px;
    height: 2px;
    background: linear-gradient(to right, #2B3FEA, #8DA0FF, rgba(43,63,234,0.3));
    border-radius: var(--r-full);
}

.skills-path-arrow {
    position: absolute;
    right: 0;
    top: 9px;
    color: rgba(43,63,234,0.55);
}

.skills-path-item {
    display: flex;
    flex-direction: column;
}

.skills-path-dot {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid rgba(43,63,234,0.22);
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    transition: border-color 0.2s;
}

.skills-path-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2B3FEA;
}

.skills-path-item:hover .skills-path-dot {
    border-color: #2B3FEA;
    box-shadow: 0 0 0 5px rgba(43,63,234,0.08);
}

.skills-path-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.skills-path-content h3 { font-size: 0.98rem; }

.skills-path-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2B3FEA;
    flex-shrink: 0;
}

.skills-path-content p { font-size: 0.86rem; color: var(--muted); }

/* ── Timeline ── */
.timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #2B3FEA, #8DA0FF, rgba(43,63,234,0.08));
    border-radius: var(--r-full);
}

.timeline-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 24px;
    padding: 18px 0;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid rgba(43,63,234,0.22);
    flex-shrink: 0;
    margin-top: 2px;
    display: grid;
    place-items: center;
    transition: border-color 0.2s;
}

.timeline-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
}

.timeline-dot.current {
    border-color: #2B3FEA;
    background: rgba(43,63,234,0.10);
    box-shadow: 0 0 0 5px rgba(43,63,234,0.08), var(--glow);
}

.timeline-dot.current::after {
    background: #2B3FEA;
    box-shadow: 0 0 10px rgba(43,63,234,0.7);
}

.timeline-content { padding-bottom: 14px; }

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    font-weight: 700;
    color: #2B3FEA;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 6px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.tl-company {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.87rem;
}

.tl-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(43,63,234,0.15);
    flex-shrink: 0;
}

/* ── Timeline accordion header ── */
.tl-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 6px 10px;
    margin: -6px -10px;
}

.tl-header-text { flex: 1; min-width: 0; }

.tl-panel-inner { min-height: 0; }

.tl-panel ul {
    padding-left: 18px;
    margin: 0;
    padding-top: 12px;
}

.tl-panel li {
    color: var(--text-2);
    font-size: 0.9rem;
    margin: 6px 0;
}

/* ── Project grid ── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
    border-color: rgba(43,63,234,0.35);
    box-shadow: 0 12px 44px rgba(43,63,234,0.10);
    transform: translateY(-5px);
}

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

.project-visual {
    display: grid;
    place-items: center;
    height: 96px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: 'Instrument Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.project-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.22));
}

.pv-java, .pv-ml, .pv-pms, .pv-api, .pv-web, .pv-bus {
    background: linear-gradient(135deg, #2B3FEA, #8DA0FF);
}

.project-body { padding: 18px 20px 22px; }

.project-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    font-weight: 700;
    color: #2B3FEA;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.project-body h3 { font-size: 0.95rem; margin: 8px 0; }
.project-body p  { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }

.project-body ul {
    margin-top: 14px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-body li {
    font-size: 0.74rem;
    color: #0891b2;
    background: rgba(8,145,178,0.08);
    border: 1px solid rgba(8,145,178,0.18);
    border-radius: var(--r-full);
    padding: 3px 10px;
    font-weight: 500;
}

/* ── See all link ── */
.see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2B3FEA;
    transition: gap 0.2s;
}

.see-all:hover { gap: 10px; }

/* ── Page hero (sub-pages) ── */
.page-hero {
    padding: clamp(60px, 7vw, 100px) 0 clamp(48px, 5vw, 80px);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(43,63,234,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero h1   {
    max-width: 780px;
    margin: 8px 0 14px;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    font-weight: 500;
    line-height: 1.28;
}
.page-hero p    { max-width: 600px; font-size: 0.95rem; line-height: 1.72; }

.hero-stats {
    display: flex;
    gap: clamp(28px, 5vw, 56px);
    margin-top: 28px;
    flex-wrap: wrap;
    position: relative;
}

.hero-stat { display: flex; flex-direction: column; gap: 4px; }

.hero-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #2B3FEA;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ── Split page-hero with a highlight card (e.g. experience.html) ── */
.page-hero-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.page-hero-highlight {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 26px 28px;
    position: relative;
    z-index: 1;
}

.hero-current-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    font-weight: 700;
    color: #2B3FEA;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 16px;
}

.hero-current-tag .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2B3FEA;
    box-shadow: 0 0 8px rgba(43,63,234,0.7);
}

.hero-current-role {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-hero-highlight .tl-logo { width: 38px; height: 38px; }
.page-hero-highlight h3 { font-size: 1.05rem; margin: 0 0 2px; }
.page-hero-highlight .hero-current-role p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    max-width: none;
    line-height: 1.4;
}

.hero-current-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    margin: 14px 0 12px;
}

.page-hero-highlight .hero-current-desc {
    font-size: 0.87rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: none;
}

/* ── Skills page: interactive 3D robot mascot ── */
.page-hero-robot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: none;
    border: none;
    padding: 8px 0 0;
}

.page-hero-robot .hero-current-tag { align-self: flex-start; }

.page-hero-robot .hero-current-desc {
    margin-top: 6px;
    text-align: center;
}

.skills-robot {
    width: 100%;
    max-width: 200px;
    height: 260px;
    margin: 16px auto 4px;
    cursor: pointer;
}

.skills-robot canvas { width: 100% !important; height: 100% !important; }

/* ── Tools swiper (skills) ── */
.tools-swiper { position: relative; }

.tools-swiper-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
    margin: -2px;
    cursor: grab;
}

.tools-swiper-track::-webkit-scrollbar { display: none; }
.tools-swiper-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

.tools-swiper-slide {
    flex: 0 0 auto;
    width: min(300px, 82vw);
    scroll-snap-align: start;
}

.tools-swiper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
}

.tools-swiper-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.tools-swiper-btn:hover { border-color: #0891b2; color: #0891b2; }
.tools-swiper-btn:active { transform: scale(0.93); }
.tools-swiper-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

.tools-swiper-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tools-swiper-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.tools-swiper-dot.active { background: #0891b2; transform: scale(1.35); }

.tool-card {
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    transition: border-color 0.2s, transform 0.2s;
}

.tool-card:hover {
    border-color: rgba(8,145,178,0.28);
    transform: translateY(-3px);
}

.tool-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    font-weight: 700;
    color: #0891b2;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.tool-card h3 { margin-bottom: 8px; font-size: 0.98rem; }
.tool-card p  { font-size: 0.87rem; }

/* ── Language levels (bars, no cards) ── */
.lang-levels {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lang-level-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.lang-level-head h3 { font-size: 0.98rem; }

.lang-level-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--muted);
    flex-shrink: 0;
}

.progress-bar {
    height: 6px;
    background: rgba(0,0,0,0.07);
    border-radius: var(--r-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--grad);
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Strengths list ── */
.strengths-list {
    display: grid;
    gap: 10px;
    max-width: 900px;
    padding-left: 0;
    list-style: none;
}

.strengths-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: 0.94rem;
    transition: border-color 0.2s, transform 0.2s;
}

.strengths-list li::before {
    content: '→';
    color: #2B3FEA;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.strengths-list li:hover {
    border-color: rgba(43,63,234,0.28);
    transform: translateX(4px);
}

/* ── Cert grid ── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    display: grid;
    gap: 16px;
    transition: border-color 0.2s, transform 0.2s;
}

.cert-card:hover {
    border-color: rgba(43,63,234,0.30);
    transform: translateY(-3px);
}

.cert-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    font-weight: 700;
    color: #2B3FEA;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.cert-year.is-pending {
    color: #b7791f;
    background: transparent;
}

.cert-card h3 { margin: 6px 0; font-size: 0.98rem; }
.cert-card p  { font-size: 0.87rem; color: var(--muted); }

.cert-org {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-org-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(43,63,234,0.15);
    flex-shrink: 0;
}

.cert-org-logo.cert-org-logo-wide {
    width: auto;
    max-width: 90px;
    height: 20px;
    padding: 2px 5px;
}

.cert-org-logo.cert-org-logo-plain {
    background: none;
    border: none;
}

.cert-preview {
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    background: var(--surface-2);
    order: -1;
}

.cert-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.35s;
}

.cert-preview:hover img { transform: scale(1.04); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: #2B3FEA;
    font-size: 0.87rem;
    font-weight: 600;
    transition: gap 0.2s;
}

.text-link:hover {
    gap: 9px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Edu detail (certifications) ── */
.edu-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edu-detail-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.edu-detail-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad);
}

.edu-detail-card:hover { border-color: rgba(43,63,234,0.30); }
.edu-detail-card .edu-year { margin-bottom: 8px; }
.edu-detail-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.edu-detail-card p  { font-size: 0.9rem; }
.edu-detail-card p + p { margin-top: 10px; }
.edu-detail-card .edu-org {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 12px;
}

/* ── Contact page ── */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

.contact-intro h2       { margin-bottom: 14px; }
.contact-intro p        { line-height: 1.82; }
.contact-intro p + p    { margin-top: 14px; }

.contact-links-list { display: grid; gap: 12px; }

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-link-item:hover {
    border-color: rgba(43,63,234,0.35);
    transform: translateX(5px);
    box-shadow: 0 4px 22px rgba(43,63,234,0.07);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: rgba(43,63,234,0.08);
    border: 1px solid rgba(43,63,234,0.18);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    color: #2B3FEA;
}

/* ── Filter bar (projects) ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-full);
    color: var(--text-2);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: rgba(43,63,234,0.35);
    color: #2B3FEA;
}

.filter-btn.active {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 18px rgba(43,63,234,0.28);
}

/* ── Footer ── */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: clamp(48px, 8vw, 96px);
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}

.footer-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    width: 640px;
    height: 320px;
    transform: translateX(-50%);
    background: var(--grad);
    opacity: 0.16;
    filter: blur(90px);
    pointer-events: none;
}

.footer-top {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr;
    gap: 40px;
    padding: clamp(44px, 6vw, 64px) 0 clamp(28px, 4vw, 36px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-col-title {
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-pages-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 28px;
    row-gap: 10px;
}

.footer-pages-grid a {
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
}

.footer-pages-grid a:hover {
    color: #2B3FEA;
    transform: translateX(2px);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.footer-logo-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-tagline {
    max-width: 320px;
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: rgba(43,63,234,0.08);
    border: 1px solid rgba(43,63,234,0.2);
    border-radius: var(--r-full);
    color: #2B3FEA;
    font-size: 0.76rem;
    font-weight: 600;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
    animation: statusPulse 2.2s infinite;
}

@keyframes statusPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-full);
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    color: var(--text-2);
    transition: all 0.25s;
}

.footer-social-link:hover {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(43,63,234,0.32);
}

.footer-bottom {
    position: relative;
    border-top: 1px solid var(--border-light);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 20px 0;
    color: var(--muted);
    font-size: 0.8rem;
}

/* ── Code rain (experience page) ── */
.rain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #07071a;
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.rain-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#pageContent {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#pageContent.reveal { opacity: 1; }

.rain-overlay canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-photo-col {
        order: -1;
        align-items: center;
    }

    .hero-label  { justify-content: center; }
    .hero-bio    { margin: 0 auto 36px; }
    .btn-group   { justify-content: center; }

    .avatar-wrapper  { width: 170px; height: 170px; }
    .avatar-social   { width: 220px; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }

    .contact-page-grid,
    .edu-detail-grid  { grid-template-columns: 1fr; }

    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid    { grid-template-columns: 1fr; }

    .page-hero-split { grid-template-columns: 1fr; }
    .page-hero-highlight { max-width: 480px; }

    .skills-path {
        grid-template-columns: repeat(5, minmax(150px, 1fr));
        overflow-x: auto;
        padding-bottom: 6px;
    }
}

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

    .site-nav {
        display: flex;
        position: fixed;
        top: 78px; left: 16px; right: 16px;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-light);
        border-radius: var(--r-xl);
        padding: 14px;
        gap: 2px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.35s, transform 0.35s;
    }

    .site-nav.open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .nav-indicator      { display: none; }
    .site-nav a          { padding: 13px 16px; font-size: 0.98rem; border-radius: var(--r-md); }
    .site-nav a:hover,
    .site-nav a.active   { background: var(--surface-3); }
    .nav-cta             { text-align: center; border-radius: var(--r-md) !important; margin-left: 0 !important; margin-top: 6px; }
    .lang-switch         { align-self: flex-start; margin: 6px 0 !important; }

    .hero-section { min-height: unset; }

    .project-grid { grid-template-columns: 1fr; }

    .skills-path {
        grid-template-columns: 1fr;
        overflow-x: visible;
        padding-right: 0;
        gap: 0;
    }
    .skills-path::before,
    .skills-path-arrow { display: none; }
    .skills-path-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-light);
    }
    .skills-path-item:last-child { border-bottom: none; }
    .skills-path-dot { margin-bottom: 0; flex-shrink: 0; margin-top: 2px; }
    .skills-path-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-brand      { align-items: center; }
    .footer-tagline    { max-width: 420px; }
    .footer-col        { align-items: center; }
    .footer-pages-grid { grid-template-columns: 1fr; justify-items: center; }
    .footer-bottom-inner { flex-direction: column; gap: 14px; text-align: center; }
}