:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #172033;
  --muted: #667085;
  --line: #d8dee9;
  --primary: #2563eb;
  --primary-dark: #173ea5;
  --accent: #38bdf8;
  --success: #16a34a;
  --shadow: 0 20px 60px rgba(23, 32, 51, .08);
  --radius: 24px;
  --container: 1180px;
  --header: 76px;
}

[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #121a2b;
  --surface-2: #192338;
  --text: #edf2ff;
  --muted: #aab4c7;
  --line: #2a3650;
  --shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.6;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), 1100px);
  height: 58px;
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 100;
  box-shadow: 0 10px 35px rgba(0,0,0,.05);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 13px;
}
.nav { display: flex; gap: 24px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--primary); }
.theme-toggle {
  border: 0; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; color: var(--text); background: var(--surface-2);
}

.section { width: min(calc(100% - 40px), var(--container)); margin: auto; }
.hero {
  min-height: 780px;
  padding-top: 180px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center;
}
.eyebrow, .section-kicker {
  color: var(--primary); font-weight: 800; font-size: 12px; letter-spacing: .14em;
}
.hero h1 {
  font-family: Manrope, sans-serif; font-size: clamp(48px, 6vw, 82px);
  line-height: .98; letter-spacing: -.055em; margin: 18px 0 28px;
}
.hero h1 span, .intro h2 span, .contact h2 span { color: var(--muted); }
.hero-text { max-width: 650px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button {
  display: inline-flex; gap: 12px; align-items: center; padding: 14px 20px;
  border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 12px 30px rgba(37,99,235,.25); }
.button-secondary { border: 1px solid var(--line); background: var(--surface); }

.hero-side { min-height: 430px; position: relative; display: grid; place-items: center; }
.profile-card {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 16px;
  padding: 22px; width: min(100%, 360px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.profile-card span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.profile-avatar {
  width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #bae6fd); color: var(--primary-dark); font-weight: 800; font-size: 20px;
}
.hero-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { width: 380px; height: 380px; }
.orbit-two { width: 270px; height: 270px; border-style: dashed; }
.floating-tag {
  position: absolute; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); font-size: 12px; font-weight: 700;
}
.tag-one { top: 45px; right: 20px; } .tag-two { bottom: 70px; left: 10px; } .tag-three { bottom: 20px; right: 40px; }

.intro { padding: 90px 0 140px; border-top: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 25px; }
.intro h2, .section-heading h2, .contact h2 {
  font-family: Manrope, sans-serif; font-size: clamp(34px, 4vw, 55px); line-height: 1.05; letter-spacing: -.04em; margin: 0;
}
.intro p { color: var(--muted); max-width: 550px; font-size: 17px; margin: 0; }

.journey { padding-bottom: 150px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 80px; }
.section-heading p { color: var(--muted); margin: 0; }
.timeline { position: relative; padding: 20px 0; }
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--line); transform: translateX(-50%);
}
.timeline-line span {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(var(--primary), var(--accent)); transition: height .1s linear;
}
.timeline-item {
  position: relative; width: 50%; padding: 0 55px 110px;
}
.timeline-item.left { margin-right: auto; text-align: right; }
.timeline-item.right { margin-left: 50%; text-align: left; }
.timeline-dot {
  position: absolute; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--primary);
  color: var(--primary); font-size: 11px; font-weight: 800; z-index: 2;
}
.timeline-item.left .timeline-dot { right: -24px; }
.timeline-item.right .timeline-dot { left: -24px; }
.timeline-card {
  display: inline-block; width: min(100%, 480px); padding: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: left; transition: transform .3s, border-color .3s;
}
.timeline-card:hover { transform: translateY(-6px); border-color: #9bb8f8; }
.timeline-meta { display: flex; gap: 10px; justify-content: space-between; color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.status { color: var(--success); }
.timeline-card h3 { font-family: Manrope, sans-serif; font-size: 25px; line-height: 1.1; margin: 18px 0 5px; }
.timeline-card h4 { color: var(--muted); margin: 0 0 15px; font-size: 15px; }
.timeline-card p { color: var(--muted); margin: 0; }
.tags, .tech-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span, .tech-cloud span {
  padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 700;
}

.skills { padding: 0 0 150px; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skill-card {
  padding: 32px; min-height: 220px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.skill-number { color: var(--primary); font-size: 12px; font-weight: 800; }
.skill-card h3 { font-family: Manrope, sans-serif; font-size: 25px; margin: 25px 0 8px; }
.skill-card p { color: var(--muted); margin: 0; }
.tech-cloud { margin-top: 25px; }
.tech-cloud span { padding: 10px 14px; font-size: 12px; }

.formation { padding-bottom: 150px; }
.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.education-card {
  padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.education-card > span { color: var(--primary); font-size: 12px; font-weight: 800; }
.education-card h3 { font-family: Manrope, sans-serif; margin: 18px 0 6px; font-size: 24px; }
.education-card p { color: var(--muted); margin: 0; }

.contact { padding-bottom: 80px; }
.contact-card {
  padding: clamp(35px, 6vw, 75px); border-radius: 32px;
  background: linear-gradient(135deg, #172554, #1d4ed8); color: white;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: end;
}
.contact-card .section-kicker { color: #93c5fd; }
.contact h2 { margin-top: 15px; }
.contact h2 span { color: #bfdbfe; }
.contact-links { display: grid; gap: 12px; }
.contact-links a { font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer {
  width: min(calc(100% - 40px), var(--container)); margin: auto; padding: 30px 0;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  color: var(--muted); font-size: 12px;
}

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .nav { display: none; }
  .hero { min-height: auto; padding: 145px 0 100px; grid-template-columns: 1fr; gap: 35px; }
  .hero-side { min-height: 320px; }
  .orbit-one { width: 300px; height: 300px; } .orbit-two { width: 210px; height: 210px; }
  .intro-grid, .contact-card { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { align-items: start; flex-direction: column; }
  .timeline-line { left: 20px; }
  .timeline-item, .timeline-item.right, .timeline-item.left { width: 100%; margin: 0; padding: 0 0 65px 65px; text-align: left; }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: -4px; right: auto; }
  .timeline-card { width: 100%; }
  .skills-grid, .education-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
