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

:root {
  --bg: #fafaf8;
  --ink: #111110;
  --ink2: #3d3d3a;
  --muted: #888880;
  --line: #e8e8e4;
  --amber: #d47c2a;
  --amber-bg: #fdf3e3;
  --blue: #2a5bd4;
  --blue-bg: #e8eefb;
  --green: #1a7a4a;
  --green-bg: #e3f5ec;
  --purple: #6b2ad4;
  --purple-bg: #f0e8fb;
  --red: #c42a2a;
  --red-bg: #fbe8e8;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Satoshi', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ─── NAV ───────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-name {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600; font-size: .95rem;
  letter-spacing: -.01em; color: var(--ink);
  text-decoration: none;
}
.nav-name span { color: var(--amber); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-badge {
  font-size: .65rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-bg); padding: .3rem .75rem;
  border-radius: 20px; border: 1px solid #b8e8cc;
  display: flex; align-items: center; gap: .4rem;
}
.nav-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ─── HERO ──────────────────────────── */
#hero {
  padding: 120px 2.5rem 80px;
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-text {}
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .6rem;
}
.hero-label::before { content:''; display:block; width:24px; height:1px; background:var(--amber); }
.hero-name {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700; font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1; letter-spacing: -.03em; color: var(--ink);
  margin-bottom: .6rem;
}
.hero-role {
  font-size: 1.1rem; font-weight: 300; color: var(--muted);
  margin-bottom: 2rem; letter-spacing: -.01em;
}
.hero-bio {
  font-size: .95rem; color: var(--ink2); line-height: 1.9;
  max-width: 500px; margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex; gap: 2.5rem; padding: 1.5rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.h-stat-n {
  font-family: 'Clash Display', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--ink);
  line-height: 1;
}
.h-stat-n sup { font-size: .9rem; color: var(--amber); }
.h-stat-l { font-size: .65rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: var(--bg);
  padding: .75rem 1.5rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-decoration: none;
  border-radius: 6px; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--amber); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--ink);
  padding: .75rem 1.5rem; font-size: .78rem; font-weight: 500;
  letter-spacing: .04em; text-decoration: none;
  border-radius: 6px; border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(0,0,0,.03); }
.hero-photo-wrap {
  position: relative; width: 220px; flex-shrink: 0;
}
.hero-photo {
  width: 100%; border-radius: 16px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
  aspect-ratio: 3/4; object-fit: cover; object-position: center top;
}
.hero-photo-ring {
  position: absolute; inset: -8px;
  border-radius: 22px;
  border: 1.5px solid var(--amber);
  opacity: .4; pointer-events: none;
}
.hero-photo-tag {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; font-weight: 500; letter-spacing: .1em;
  padding: .35rem .9rem; border-radius: 20px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(212,124,42,.35);
}

/* ─── SECTION WRAPPER ───────────────── */
.section { max-width: 960px; margin: 0 auto; padding: 5rem 2.5rem; }
.section-header { margin-bottom: 3.5rem; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-label::before { content:''; display:block; width:20px; height:1px; background:var(--amber); }
.section-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -.03em; color: var(--ink); line-height: 1.1;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--amber); }

/* ─── DIVIDER ───────────────────────── */
.divider { border: none; border-top: 1px solid var(--line); margin: 0 2.5rem; }

/* ─── TIMELINE ──────────────────────── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px; background: var(--line);
}
.tl-item {
  position: relative; padding-bottom: 3rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.tl-item.visible { opacity: 1; transform: none; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -2.5rem;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--amber); background: var(--bg);
  top: 6px; transform: translateX(calc(-50% + .5px));
  transition: background .3s;
}
.tl-item:hover .tl-dot { background: var(--amber); }
.tl-item.current .tl-dot {
  background: var(--amber); width: 11px; height: 11px; top: 5px;
  box-shadow: 0 0 0 4px rgba(212,124,42,.15);
}
.tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; letter-spacing: .12em;
  color: var(--muted); margin-bottom: .6rem;
  display: flex; align-items: center; gap: .6rem;
}
.tl-current-badge {
  font-size: .55rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-bg); padding: .15rem .5rem;
  border-radius: 10px; border: 1px solid #b8e8cc;
}
.tl-card {
  background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .3s, transform .3s, border-color .3s;
  cursor: default;
}
.tl-item:hover .tl-card {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
  border-color: rgba(212,124,42,.3);
}
.tl-card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem; margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tl-company {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink);
}
.tl-role {
  font-size: .82rem; color: var(--amber);
  font-weight: 500; margin-top: .2rem;
}
.tl-loc {
  font-size: .7rem; color: var(--muted); margin-top: .15rem;
}
.tl-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; color: var(--muted);
  background: var(--amber-bg); padding: .3rem .7rem;
  border-radius: 6px; white-space: nowrap; flex-shrink: 0;
  border: 1px solid rgba(212,124,42,.15);
}
.tl-pts { list-style: none; margin-bottom: 1rem; }
.tl-pts li {
  font-size: .82rem; color: var(--ink2); line-height: 1.75;
  padding: .2rem 0 .2rem 1.1rem; position: relative;
}
.tl-pts li::before {
  content: ''; position: absolute; left: 0; top: .75rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line); border: 1px solid var(--amber);
  transition: background .2s;
}
.tl-item:hover .tl-pts li::before { background: var(--amber); }
.tl-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tl-tag {
  font-size: .62rem; font-weight: 500; letter-spacing: .03em;
  padding: .25rem .65rem; border-radius: 5px;
  background: var(--amber-bg); color: var(--amber);
  border: 1px solid rgba(212,124,42,.2);
}
.tl-tag.blue { background: var(--blue-bg); color: var(--blue); border-color: rgba(42,91,212,.2); }
.tl-tag.green { background: var(--green-bg); color: var(--green); border-color: rgba(26,122,74,.2); }
.tl-tag.purple { background: var(--purple-bg); color: var(--purple); border-color: rgba(107,42,212,.2); }
.tl-highlight {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; font-weight: 500;
  background: var(--green-bg); color: var(--green);
  padding: .3rem .75rem; border-radius: 6px;
  border: 1px solid rgba(26,122,74,.2);
  margin-bottom: 1rem;
}
.tl-highlight::before { content: '↑'; font-size: .7rem; }

/* ─── PROJECTS ──────────────────────── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.proj-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem; transition: box-shadow .3s, transform .3s, border-color .3s;
  cursor: default; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .3s, border-color .3s;
}
.proj-card.visible { opacity: 1; transform: translateY(0); }
.proj-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px) !important;
  border-color: rgba(212,124,42,.3);
}
.proj-card.featured { grid-column: span 2; flex-direction: row; gap: 2rem; align-items: center; }
.proj-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; letter-spacing: .15em; color: var(--muted);
  margin-bottom: .6rem;
}
.proj-name {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink); margin-bottom: .6rem;
}
.proj-desc {
  font-size: .82rem; color: var(--ink2); line-height: 1.8;
  flex: 1; margin-bottom: 1rem;
}
.proj-metric {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; font-weight: 500;
  color: var(--green); background: var(--green-bg);
  padding: .25rem .65rem; border-radius: 5px;
  border: 1px solid rgba(26,122,74,.2); margin-bottom: .8rem;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.proj-tag {
  font-size: .6rem; padding: .22rem .6rem; border-radius: 4px;
  background: var(--amber-bg); color: var(--amber);
  border: 1px solid rgba(212,124,42,.18); font-weight: 500;
}
.proj-visual {
  width: 220px; flex-shrink: 0; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--amber-bg), #fff);
  border-radius: 8px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Clash Display', sans-serif;
  font-size: 2.5rem; font-weight: 700;
  color: rgba(212,124,42,.25); letter-spacing: -.04em;
}
.proj-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; color: var(--blue);
  text-decoration: none; margin-top: .8rem;
  transition: gap .2s;
}
.proj-link:hover { gap: .6rem; }
.proj-link::after { content: '↗'; }

/* ─── SKILLS ────────────────────────── */
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.skill-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.skill-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.skill-item:last-child { border-bottom: none; }
.skill-name { font-size: .82rem; font-weight: 500; color: var(--ink2); flex: 1; }
.skill-bar { width: 100px; height: 3px; background: var(--line); border-radius: 2px; flex-shrink: 0; }
.skill-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), #e89a4a);
  width: 0%; transition: width 1.1s cubic-bezier(.77,0,.175,1);
}
.skill-pct { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: var(--muted); width: 2rem; text-align: right; }

/* ─── ACHIEVEMENTS ──────────────────── */
.ach-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.ach-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem; text-align: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s, transform .6s, box-shadow .3s, border-color .3s;
}
.ach-card.visible { opacity: 1; transform: none; }
.ach-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); border-color: rgba(212,124,42,.25); }
.ach-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.ach-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 2.2rem; font-weight: 700; color: var(--ink);
  line-height: 1; margin-bottom: .4rem;
}
.ach-num em { font-style: normal; color: var(--amber); font-size: 1.2rem; }
.ach-desc { font-size: .78rem; color: var(--muted); line-height: 1.65; }

/* ─── CONTACT ───────────────────────── */
#contact { background: var(--ink); }
#contact .section {}
#contact .section-label { color: rgba(212,124,42,.9); }
#contact .section-label::before { background: rgba(212,124,42,.9); }
#contact .section-title { color: #fff; }
.contact-inner {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 5rem; align-items: start; margin-top: 3rem;
}
.contact-tagline {
  font-size: 1rem; color: rgba(255,255,255,.5);
  line-height: 1.9; margin-top: 1.5rem; margin-bottom: 2.5rem;
}
.contact-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--amber); color: #fff;
  padding: .85rem 2rem; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-decoration: none;
  border-radius: 8px; transition: background .2s, transform .15s;
}
.contact-cta:hover { background: #e89a4a; transform: translateY(-1px); }
.contact-rows { display: flex; flex-direction: column; gap: 0; }
.c-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: padding-left .25s;
}
.c-row:hover { padding-left: .5rem; }
.c-icon { font-size: 1rem; width: 1.5rem; text-align: center; flex-shrink: 0; }
.c-label { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: .15rem; }
.c-value { font-size: .85rem; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.c-value:hover { color: var(--amber); }

/* ─── FOOTER ────────────────────────── */
footer {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.f-copy { font-size: .7rem; color: rgba(255,255,255,.25); }
.f-links { display: flex; gap: 1.5rem; }
.f-link { font-size: .7rem; color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.f-link:hover { color: var(--amber); }

/* ─── REVEAL ANIMATION ──────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1{transition-delay:.1s}.reveal.d2{transition-delay:.2s}.reveal.d3{transition-delay:.3s}

/* ─── RESPONSIVE ────────────────────── */
@media(max-width: 768px){
  #hero { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
  .projects-grid, .skills-layout, .ach-grid { grid-template-columns: 1fr; }
  .proj-card.featured { flex-direction: column; grid-column: span 1; }
  .proj-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .timeline { padding-left: 1.5rem; }
}