/* =========================================================
   Erlan Maulana — Portfolio
   Light · White & Blue · Minimal · Motion-rich
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --sky-400:  #38bdf8;
  --cyan-400: #22d3ee;

  --ink:      #0a1428;   /* headings */
  --ink-soft: #2c3a52;
  --slate:    #51607a;   /* body */
  --muted:    #7d8aa3;   /* faint */

  --bg:       #ffffff;
  --bg-soft:  #f6f9ff;
  --bg-tint:  #eef4ff;
  --line:     #e4ecf7;
  --line-2:   #d6e3f5;

  --white:    #ffffff;

  --grad:     linear-gradient(110deg, #38bdf8 0%, #2563eb 45%, #1d4ed8 100%);
  --grad-soft:linear-gradient(110deg, #60a5fa 0%, #2563eb 100%);

  --shadow-sm: 0 2px 8px -2px rgba(37, 99, 235, .12);
  --shadow:    0 18px 40px -18px rgba(30, 64, 175, .28);
  --shadow-lg: 0 40px 80px -30px rgba(30, 64, 175, .35);
  --ring:      0 0 0 4px rgba(59, 130, 246, .14);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { position: relative; padding: clamp(72px, 11vw, 150px) 0; }

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

/* ---------- Background scenery ---------- */
.bg-canvas { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: radial-gradient(120% 120% at 50% -10%, #ffffff 0%, var(--bg-soft) 55%, #eaf2ff 100%); }

.grid-overlay {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
}

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob--1 { width: 46vw; height: 46vw; top: -12vw; left: -8vw; background: radial-gradient(circle, #bfdbfe, transparent 70%); animation: float1 22s var(--ease) infinite; }
.blob--2 { width: 40vw; height: 40vw; top: 30vh; right: -10vw; background: radial-gradient(circle, #a5d8ff, transparent 70%); animation: float2 26s var(--ease) infinite; }
.blob--3 { width: 36vw; height: 36vw; bottom: -10vw; left: 25vw; background: radial-gradient(circle, #d7e3ff, transparent 70%); animation: float3 30s var(--ease) infinite; }

@keyframes float1 { 50% { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes float2 { 50% { transform: translate(-7vw, -5vh) scale(1.08); } }
@keyframes float3 { 50% { transform: translate(4vw, -8vh) scale(1.15); } }

/* ---------- Cursor spotlight ---------- */
.spotlight {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56,189,248,.16), rgba(37,99,235,.08) 40%, transparent 70%);
  pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .spotlight.is-on { opacity: 1; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 1000; box-shadow: 0 0 12px rgba(37,99,235,.5);
  transition: width .1s linear;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; gap: 22px; justify-items: center;
  background: var(--bg); transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { display: flex; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 40px; }
.loader__mark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; animation: markIn .5s var(--ease) forwards; }
.loader__mark span:nth-child(2) { animation-delay: .12s; }
@keyframes markIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.loader__bar { width: 160px; height: 3px; border-radius: 99px; background: var(--blue-100); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--grad); animation: load 1.1s var(--ease) infinite; }
@keyframes load { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad); border-radius: 99px; font-weight: 600; font-size: .96rem;
  font-family: var(--font-display); letter-spacing: -.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease;
  white-space: nowrap; will-change: transform;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { color: #fff; background: var(--grad); background-size: 160% 160%; box-shadow: var(--shadow); animation: gradShift 6s ease infinite; }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
@keyframes gradShift { 50% { background-position: 100% 50%; } }

.btn--ghost { color: var(--ink); background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue-400); color: var(--blue-700); }

.btn--sm { --pad: 10px 18px; font-size: .88rem; }
.btn--lg { --pad: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: transform .45s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 16px; padding: 12px 14px 12px 18px;
  border-radius: 99px; border: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, margin .4s ease;
}
.header.is-scrolled .nav {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-color: var(--line); box-shadow: var(--shadow-sm); margin-top: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.brand__mark {
  display: grid; place-content: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-size: .92rem; letter-spacing: -.5px;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-size: 1.02rem; letter-spacing: -.02em; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 9px 15px; border-radius: 99px; font-size: .94rem; font-weight: 500;
  color: var(--ink-soft); transition: color .25s ease, background .25s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--blue-700); }
.nav__link.is-active { color: var(--blue-700); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: .35s var(--ease); }
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(130px, 17vh, 200px); padding-bottom: clamp(50px, 7vw, 90px); min-height: 100svh; display: flex; align-items: center; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 70px); width: 100%; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 99px;
  background: var(--bg-tint); border: 1px solid var(--line-2); color: var(--blue-700);
  font-size: .82rem; font-weight: 600; margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

.hero__title { font-size: clamp(2.7rem, 7vw, 5rem); margin-bottom: 18px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__lineword { display: inline-block; transform: translateY(115%); animation: lineWordIn .95s var(--ease) .55s both; }
@keyframes lineWordIn { to { transform: translateY(0); } }

.hero__role { font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--ink); font-family: var(--font-display); margin-bottom: 20px; min-height: 1.5em; }
.hero__role-static { color: var(--ink-soft); }
.rotator { color: var(--blue-600); border-right: 2px solid var(--blue-500); padding-right: 2px; }
.rotator.is-done { border-right-color: transparent; }

.hero__lead { font-size: 1.08rem; max-width: 36em; color: var(--slate); margin-bottom: 34px; }
.hero__lead strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero__stats { display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat__num { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: .86rem; color: var(--muted); font-weight: 500; }

/* Hero visual — ERP integration network */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 400px; }

.erp-net {
  --mr: 9.3em;   /* module ring radius */
  --len: 13.2em; /* integration link length */
  position: relative; width: min(100%, 400px); aspect-ratio: 1 / 1; margin-inline: auto;
  font-size: clamp(10px, 2.5vw, 13px); transition: transform .2s var(--ease);
}
@media (max-width: 600px) { .erp-net { --mr: 8.7em; --len: 11.6em; } }

/* faint rotating guide rings */
.erp-net::before, .erp-net::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px dashed var(--line-2); transform: translate(-50%, -50%);
}
.erp-net::before { width: 19em; height: 19em; animation: spin 60s linear infinite; }
.erp-net::after  { width: 27em; height: 27em; opacity: .6; animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* integration links + endpoints (fixed) */
.erp-links { position: absolute; inset: 0; }
.erp-link {
  position: absolute; left: 50%; top: 50%; height: 2px; width: var(--len);
  transform-origin: 0 50%; transform: rotate(var(--ang));
  background: linear-gradient(90deg, rgba(37,99,235,.04), rgba(37,99,235,.4));
  border-radius: 2px;
}
.erp-flow {
  position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-500); box-shadow: 0 0 10px 1px rgba(37,99,235,.6);
  transform: translate(-50%, -50%); animation: erpflow 2.8s linear infinite;
}
@keyframes erpflow {
  0% { left: 8%; opacity: 0; } 12% { opacity: 1; }
  82% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}
.erp-node {
  position: absolute; right: 0; top: 50%;
  transform: translate(42%, -50%) rotate(calc(-1 * var(--ang)));
  padding: .5em .8em; border-radius: 11px; white-space: nowrap;
  background: var(--bg-tint); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: 600; font-size: .78em;
  color: var(--blue-700); box-shadow: var(--shadow-sm);
}

/* Odoo modules ring — static placement, labels always upright */
.erp-orbit { position: absolute; inset: 0; }
.erp-mod {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: rotate(var(--a)) translate(var(--mr)) rotate(calc(-1 * var(--a)));
}
.erp-mod__in {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: .45em; white-space: nowrap;
  transform: translate(-50%, -50%);
  padding: .45em .8em; border-radius: 99px; background: #fff;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 600; font-size: .8em; color: var(--ink);
}
.erp-mod__in::before {
  content: ""; flex: none; width: .5em; height: .5em; border-radius: 50%;
  background: var(--grad); animation: moddot 2.8s ease-in-out infinite;
}
.erp-mod:nth-child(2n) .erp-mod__in::before { animation-delay: .7s; }
.erp-mod:nth-child(3n) .erp-mod__in::before { animation-delay: 1.4s; }
@keyframes moddot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }

/* central core */
.erp-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 8.8em; height: 8.8em; border-radius: 50%; z-index: 3;
  display: grid; place-content: center; text-align: center; gap: .1em;
  background: radial-gradient(circle at 32% 28%, #ffffff, #e9f1ff);
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 #fff;
}
.erp-core::before, .erp-core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,.4); animation: corepulse 3.2s ease-out infinite;
}
.erp-core::after { animation-delay: 1.6s; }
@keyframes corepulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.65); opacity: 0; } }
.erp-core__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.65em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.erp-core__sub { font-size: .72em; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); }
.scroll-cue__mouse { display: block; width: 24px; height: 38px; border: 2px solid var(--line-2); border-radius: 99px; position: relative; }
.scroll-cue__mouse i { position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; border-radius: 99px; background: var(--blue-500); transform: translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Marquee ---------- */
.marquee { padding: 22px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.5); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: var(--ink); white-space: nowrap; }
.marquee__track span[aria-hidden] { color: var(--blue-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.kicker--center { display: block; text-align: center; }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
.section__sub { margin-top: 16px; font-size: 1.05rem; color: var(--slate); max-width: 48em; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about__text p { font-size: 1.06rem; margin-bottom: 18px; }
.about__text strong { color: var(--ink); font-weight: 600; }
.about__list { margin-top: 28px; display: grid; gap: 14px; }
.about__list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink-soft); }
.about__list svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 7px; color: var(--blue-600); background: var(--bg-tint); margin-top: 1px; }

.about__card { position: sticky; top: 110px; }
.profile-card {
  position: relative; padding: 30px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-align: center; overflow: hidden; transition: transform .2s var(--ease);
}
.profile-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 92px; background: var(--grad); opacity: .12; }
.profile-card__avatar {
  position: relative; width: 84px; height: 84px; margin: 8px auto 16px; border-radius: 22px;
  display: grid; place-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem;
  color: #fff; background: var(--grad); box-shadow: var(--shadow);
}
.profile-card__name { font-size: 1.35rem; }
.profile-card__role { color: var(--blue-600); font-weight: 600; margin-bottom: 22px; }
.profile-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; margin-bottom: 24px; }
.profile-card__meta > div { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.profile-card__meta span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.profile-card__meta strong { font-size: .95rem; color: var(--ink); font-family: var(--font-display); }
.status-open { color: #16a34a !important; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-group { padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease; }
.skill-group:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.skill-group__title { display: flex; align-items: baseline; gap: 10px; font-size: 1.12rem; margin-bottom: 20px; }
.skill-group__idx { font-size: .82rem; color: var(--blue-400); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line); transition: .3s var(--ease);
}
.chip:hover { color: var(--blue-700); border-color: var(--blue-300); background: var(--bg-tint); transform: translateY(-2px); }
.chip--accent { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.chip--accent:hover { color: #fff; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline__line { position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.timeline__line::after { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--progress, 0%); background: var(--grad); border-radius: 2px; transition: height .15s linear; }

.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item__dot { position: absolute; left: -34px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue-500); box-shadow: 0 0 0 4px var(--bg); z-index: 2; transition: transform .35s var(--ease), background .35s ease; }
.tl-item:hover .tl-item__dot { background: var(--blue-500); transform: scale(1.25); }

.tl-item__card { padding: 24px 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease; }
.tl-item:hover .tl-item__card { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.tl-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.tl-item__top h3 { font-size: 1.16rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-item__org { color: var(--blue-600); font-weight: 600; margin-bottom: 10px; font-size: .96rem; }
.tl-item__card p:last-child { color: var(--slate); font-size: .98rem; margin: 0; }

.badge { font-family: var(--font-display); font-size: .78rem; font-weight: 600; color: var(--ink-soft); padding: 6px 12px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); white-space: nowrap; }
.badge--now { color: #fff; background: var(--grad); border-color: transparent; }
.tag-pill { font-family: var(--font-body); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-700); background: var(--bg-tint); padding: 3px 9px; border-radius: 99px; }

/* Education */
.edu { margin-top: 30px; display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.edu__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-content: center; color: var(--blue-600); background: var(--bg-tint); }
.edu__icon svg { width: 26px; height: 26px; }
.edu h3 { font-size: 1.08rem; }
.edu p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 99px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: var(--white); border: 1px solid var(--line-2); transition: .3s var(--ease); }
.filter span { font-size: .76rem; padding: 1px 7px; border-radius: 99px; background: var(--bg-tint); color: var(--blue-600); }
.filter:hover { border-color: var(--blue-400); color: var(--blue-700); }
.filter.is-active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--shadow-sm); }
.filter.is-active span { background: rgba(255,255,255,.25); color: #fff; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.project {
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s ease, opacity .4s ease;
  will-change: transform;
}
.project::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.18), transparent 65%);
  left: var(--mx, 50%); top: var(--my, 0%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.project:hover::before { opacity: 1; }
.project.is-hidden { display: none; }
.project.is-filtering { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.project__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.project__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-content: center; font-size: 1.4rem; background: var(--bg-tint); border: 1px solid var(--line); }
.project__ver { font-family: var(--font-display); font-size: .74rem; font-weight: 700; color: var(--blue-700); background: var(--bg-tint); padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); }
.project__name { font-size: 1.12rem; margin-bottom: 4px; line-height: 1.25; }
.project__client { font-size: .82rem; color: var(--blue-600); font-weight: 600; margin-bottom: 12px; }
.project__desc { font-size: .92rem; color: var(--slate); margin-bottom: 16px; flex: 1; }
.project__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project__tag { font-size: .72rem; font-weight: 500; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 7px; }

/* ---------- Contact ---------- */
.section--contact { padding-bottom: clamp(80px, 12vw, 160px); }
.cta-card {
  position: relative; text-align: center; padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta-card__glow { position: absolute; inset: auto 0 -50% 0; height: 80%; background: radial-gradient(60% 100% at 50% 100%, rgba(37,99,235,.16), transparent 70%); pointer-events: none; }
.cta-card__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 8px 0 16px; }
.cta-card__lead { max-width: 36em; margin: 0 auto 38px; font-size: 1.08rem; color: var(--slate); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 0 auto 38px; }
.contact-item { display: grid; gap: 4px; padding: 22px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); text-align: left; transition: .4s var(--ease); }
.contact-item:hover { transform: translateY(-5px); border-color: var(--blue-300); box-shadow: var(--shadow); background: var(--white); }
.contact-item__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-content: center; color: #fff; background: var(--grad); margin-bottom: 8px; }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact-item__value { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-soft); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__brand strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.footer__brand span { font-size: .85rem; color: var(--muted); }
.footer__copy { font-size: .88rem; color: var(--muted); }
.footer__top { width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; color: var(--blue-700); background: var(--white); border: 1px solid var(--line-2); transition: .35s var(--ease); }
.footer__top:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; }
[data-reveal].d2 { transition-delay: .16s; }
[data-reveal].d3 { transition-delay: .24s; }

/* Split text (hero) */
.char { display: inline-block; transform: translateY(110%); opacity: 0; }
.char.is-in { animation: charIn .7s var(--ease) forwards; }
@keyframes charIn { to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__visual { order: -1; min-height: 320px; margin-bottom: 8px; }
  .about { grid-template-columns: 1fr; }
  .about__card { position: static; }
  .profile-card { max-width: 420px; margin-inline: auto; }
  .projects { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    padding: 40px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: -20px 0 60px -20px rgba(30,64,175,.3); transform: translateX(110%); transition: transform .5s var(--ease); z-index: 50;
  }
  .nav__links.is-open { transform: none; }
  .nav__link { font-size: 1.3rem; font-family: var(--font-display); width: 100%; }
  .nav__link::after { display: none; }
  .nav__toggle { display: block; z-index: 60; }
  .nav__actions .btn--sm { display: none; }
  .skills { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .profile-card__meta { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .hero__stats { gap: 20px; }
  .float-chip { display: none; }
}
