:root {
  --navy: #0b2f5f;
  --blue: #1768c4;
  --blue-2: #3f91e8;
  --ink: #102033;
  --muted: #5e6d7f;
  --line: #dce5ef;
  --soft: #f5f8fc;
  --white: #ffffff;
  --dark: #071a2e;
  --dark-2: #0d2745;
  --success: #0b7a53;
  --shadow: 0 24px 70px rgba(19, 53, 91, 0.12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9999;
  background: var(--dark);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.section-pad { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(145deg, #061627 0%, #0b2949 100%); color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,229,239,.78);
}
.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  box-shadow: 0 10px 24px rgba(23,104,196,.22);
  letter-spacing: -1px;
}
.brand-text { font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 650; color: #33465c; }
.site-nav a:hover { color: var(--blue); }
.nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; background: white; }
.menu-button { display: none; }

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 26%, rgba(83,158,230,.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f6f9fd 72%, #eef6ff 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -260px 36%;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(23,104,196,.10);
  transform: rotate(-8deg);
}
.hero-orb { position: absolute; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.hero-orb-one { width: 380px; height: 380px; right: 4%; top: 6%; background: radial-gradient(circle, rgba(49,137,224,.12), transparent 65%); }
.hero-orb-two { width: 280px; height: 280px; left: -120px; bottom: 0; background: radial-gradient(circle, rgba(11,47,95,.08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 70px; align-items: center; position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}
.eyebrow::before, .section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}
.hero h1 {
  font-size: clamp(46px, 6.1vw, 84px);
  line-height: .99;
  letter-spacing: -.045em;
  margin: 18px 0 24px;
  max-width: 850px;
}
.accent-text { color: var(--blue); }
.hero-lead { font-size: clamp(18px, 2vw, 22px); color: #43546a; max-width: 780px; margin: 0 0 25px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.hero-tags span, .tech-row span {
  border: 1px solid #cfdbea;
  background: rgba(255,255,255,.78);
  color: #34506f;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 760;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; box-shadow: 0 14px 34px rgba(23,104,196,.26); }
.button.secondary { background: white; color: var(--navy); border: 1px solid #ccdae9; }
.hero-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.hero-links a { color: #4c5f75; text-decoration: none; font-size: 14px; font-weight: 700; }
.hero-links a:hover { color: var(--blue); }

.hero-card {
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(202,217,233,.95);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.monogram {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 27px;
  font-weight: 850;
  background: linear-gradient(145deg, var(--navy), var(--blue-2));
  box-shadow: 0 18px 36px rgba(23,104,196,.24);
  margin-bottom: 22px;
}
.mini-label { color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 820; margin: 0; }
.hero-card h2 { font-size: 28px; letter-spacing: -.025em; margin: 4px 0 3px; }
.hero-card > div > p:not(.mini-label) { margin: 0; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.mini-grid > div { padding: 16px; border-radius: 18px; background: #f5f8fc; border: 1px solid #e3eaf2; }
.mini-number { display: block; color: var(--navy); font-size: 22px; font-weight: 850; line-height: 1.1; margin-bottom: 7px; }
.mini-grid span:last-child { display: block; color: #617186; font-size: 12px; line-height: 1.35; }
.availability { padding: 11px 14px; border-radius: 13px; background: #eaf8f2; color: var(--success); font-size: 13px; font-weight: 760; text-align: center; }

.split-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.section-intro h2, .section-heading h2, .contact-card h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 12px 0 0;
}
.about-copy { font-size: 18px; color: #485a70; }
.about-copy p { margin: 0 0 18px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 28px; }
.about-points span { padding: 11px 13px; background: white; border: 1px solid var(--line); border-radius: 12px; color: #34485f; font-size: 14px; }

.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading > p:not(.section-kicker) { color: var(--muted); font-size: 17px; max-width: 680px; }
.section-heading.light > p:not(.section-kicker) { color: #a9bfd5; }
.section-heading.light .section-kicker { color: #7ebaf2; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .22s ease, box-shadow .22s ease; }
.skill-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(32,67,105,.10); }
.skill-icon { color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .12em; margin-bottom: 38px; }
.skill-card h3 { margin: 0 0 9px; font-size: 20px; }
.skill-card p { margin: 0; color: var(--muted); font-size: 14px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { display: flex; flex-direction: column; min-height: 540px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 26px; }
.project-card.featured { background: linear-gradient(160deg, rgba(35,110,184,.23), rgba(255,255,255,.055)); border-color: rgba(121,184,244,.32); }
.project-topline { display: flex; justify-content: space-between; gap: 20px; color: #8fb5d8; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.project-card h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; margin: 22px 0 12px; }
.project-card p { color: #bdd0e2; margin: 0 0 16px; }
.project-card ul { padding-left: 18px; color: #c8d7e6; margin: 0 0 22px; font-size: 14px; }
.project-card li { margin: 7px 0; }
.tech-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; margin-bottom: 18px; }
.tech-row span { background: rgba(255,255,255,.08); color: #d6e6f6; border-color: rgba(255,255,255,.15); }
.project-link { color: white; font-weight: 800; text-decoration: none; }
.project-link:hover { color: #86c3ff; }
.project-status { color: #9dc7ee; font-weight: 750; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 230px 1fr; gap: 50px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--blue); font-weight: 800; font-size: 14px; }
.timeline-company { color: var(--muted); margin: 0 0 6px; }
.timeline-content h3 { font-size: 27px; margin: 0 0 14px; letter-spacing: -.025em; }
.timeline-content ul { color: #4d5e72; padding-left: 20px; }
.timeline-content li { margin: 7px 0; }

.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.education-card { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: white; }
.edu-year { color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.education-card h3 { font-size: 25px; margin: 12px 0 5px; }
.education-card p { margin: 0 0 8px; color: #4f6278; }
.education-card small { color: #7b8796; }

.contact-section { background: white; }
.contact-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; padding: 48px; border-radius: 30px; background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%); border: 1px solid #d8e6f5; }
.contact-card p:not(.section-kicker) { color: #52657a; max-width: 760px; }
.contact-actions { justify-content: flex-end; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: #69798a; font-size: 13px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .skill-card { transition: none; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid, .split-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .split-grid { gap: 30px; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 780px) {
  .section-pad { padding: 72px 0; }
  .brand-text { display: none; }
  .menu-button {
    display: inline-flex;
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
    border-radius: 11px;
    padding: 9px 12px;
    font-weight: 750;
  }
  .site-nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 9px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .nav-cta { border: 0; background: #f1f6fb; }
  .hero h1 { font-size: clamp(44px, 14vw, 68px); }
  .mini-grid, .about-points, .education-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 24px; }
  .footer-wrap { flex-direction: column; }
}
