:root {
  --bg: #07111f;
  --bg-2: #0b1728;
  --panel: rgba(255,255,255,.075);
  --panel-2: rgba(255,255,255,.105);
  --text: #eef6ff;
  --muted: #a9bad0;
  --soft: #d5e4f5;
  --line: rgba(255,255,255,.14);
  --brand: #38bdf8;
  --brand-2: #22c55e;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.18), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(34,197,94,.12), transparent 32rem),
    radial-gradient(circle at 50% 100%, rgba(59,130,246,.12), transparent 34rem);
  z-index: -2;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  background: var(--brand);
  color: #04111f;
  padding: 10px 14px;
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7,17,31,.72);
  border-bottom: 1px solid rgba(255,255,255,.09);
  transition: background .25s ease, box-shadow .25s ease;
}
.topbar.is-scrolled { background: rgba(7,17,31,.92); box-shadow: 0 16px 50px rgba(0,0,0,.22); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #07111f;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(56,189,248,.22);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); padding: 10px 12px; border-radius: 999px; font-weight: 650; font-size: 14px; transition: .2s ease; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav .nav-cta { color: #07111f; background: var(--text); }
.nav .nav-cta:hover { color: #07111f; background: #ffffff; transform: translateY(-1px); }
.menu-btn { display: none; width: 44px; height: 44px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); margin: 5px auto; transition: .2s ease; }
.hero { position: relative; padding: 82px 0 74px; min-height: calc(100vh - 74px); display: grid; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.055), transparent 36%),
    radial-gradient(circle at 76% 50%, rgba(56,189,248,.16), transparent 26rem);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .78fr); gap: 62px; align-items: center; }
.eyebrow, .section-kicker { color: var(--brand); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 850; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(52px, 8vw, 92px); line-height: .92; letter-spacing: -.075em; margin-bottom: 26px; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 18px; }
h3 { font-size: 22px; line-height: 1.18; letter-spacing: -.025em; margin-bottom: 12px; }
.hero-subtitle { font-size: clamp(22px, 2.5vw, 33px); line-height: 1.17; letter-spacing: -.035em; color: #f5fbff; max-width: 760px; margin-bottom: 20px; font-weight: 730; }
.hero-text, .section-head p, .two-col p, .contact p { color: var(--muted); font-size: 17px; max-width: 780px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 32px; }
.btn { border: 0; cursor: pointer; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 22px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #06111d; box-shadow: 0 18px 42px rgba(56,189,248,.24); }
.btn.secondary { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid rgba(255,255,255,.14); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 720px; }
.hero-stats div { padding: 18px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; }
.hero-stats strong { display: block; font-size: 21px; line-height: 1.1; }
.hero-stats span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.hero-photo { display: flex; justify-content: center; }
.photo-card { position: relative; width: min(440px, 100%); border-radius: 36px; padding: 10px; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.07)); border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow); }
.photo-card::before { content:""; position:absolute; inset:-18px; z-index:-1; border-radius: 48px; background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(34,197,94,.12)); filter: blur(26px); }
.photo-card img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.section { padding: 96px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border-block: 1px solid rgba(255,255,255,.08); }
.two-col { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 68px; align-items: start; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badges span, .tags span { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: var(--soft); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.section-head { max-width: 780px; margin-bottom: 34px; }
.cards { display: grid; gap: 18px; }
.skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .project, .quote-card, .value, .contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 54px rgba(0,0,0,.18); }
.card { padding: 26px; min-height: 100%; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.card:hover, .project:hover { transform: translateY(-4px); background: var(--panel-2); border-color: rgba(56,189,248,.34); }
.card-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: rgba(56,189,248,.12); color: var(--brand); border: 1px solid rgba(56,189,248,.22); font-size: 13px; font-weight: 900; margin-bottom: 22px; }
.card p, .project p, .timeline p, .value span { color: var(--muted); }
ul { padding-left: 18px; margin: 18px 0 0; color: var(--soft); }
li + li { margin-top: 6px; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project { padding: 30px; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.project-meta { color: var(--brand-2); font-weight: 850; font-size: 12px; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.timeline { position: relative; }
.timeline::before { content:""; position: absolute; left: 10px; top: 10px; bottom: 8px; width: 1px; background: linear-gradient(var(--brand), rgba(255,255,255,.1)); }
.timeline-item { position: relative; padding: 0 0 34px 46px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--bg); border: 5px solid var(--brand); box-shadow: 0 0 0 6px rgba(56,189,248,.1); }
.timeline-place { color: var(--brand-2) !important; font-weight: 750; margin-bottom: 10px; }
.quote-card { padding: clamp(28px, 5vw, 56px); margin-bottom: 18px; }
.quote-card p { font-size: clamp(24px, 3.4vw, 44px); line-height: 1.13; letter-spacing: -.04em; margin: 0; color: #f7fbff; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value { padding: 24px; }
.value strong { display: block; font-size: 22px; margin-bottom: 8px; }
.value span { display: block; }
.contact { padding-bottom: 110px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 42px; align-items: stretch; }
.contact-card { padding: 20px; display: grid; gap: 10px; }
.contact-card a, .contact-card p { margin: 0; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); transition: background .2s ease, transform .2s ease; }
.contact-card a:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.contact-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.contact-card strong { display: block; font-size: 18px; word-break: break-word; }
.footer { border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); }
.footer-wrap { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer a { color: var(--text); font-weight: 750; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
@media (max-width: 980px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding-top: 54px; }
  .hero-photo { order: -1; }
  .photo-card { width: min(340px, 88vw); }
  .skills-grid, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .menu-btn { display: block; }
  .nav { position: fixed; left: 14px; right: 14px; top: 84px; padding: 12px; border-radius: 22px; background: rgba(7,17,31,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); display: grid; opacity: 0; transform: translateY(-10px); pointer-events: none; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 14px; }
  h1 { font-size: 52px; }
  .hero-subtitle { font-size: 23px; }
  .hero-stats, .skills-grid, .value-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-wrap { flex-direction: column; justify-content: center; text-align: center; padding: 22px 0; }
}
@media print {
  .topbar, .hero-actions, .footer, .skip-link { display: none !important; }
  body { background: white; color: #111827; }
  body::before, .hero-bg { display: none; }
  .section, .hero { padding: 26px 0; min-height: auto; }
  .container { width: 100%; max-width: 100%; padding: 0 28px; }
  .hero-grid, .two-col, .contact-grid, .skills-grid, .projects, .value-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card, .project, .quote-card, .value, .contact-card, .photo-card { box-shadow: none; border: 1px solid #d1d5db; background: #fff; }
  p, .card p, .project p, .timeline p, .value span, .hero-text, .section-head p, .two-col p, .contact p, .contact-card span { color: #374151 !important; }
  h1, h2, h3, .quote-card p, .contact-card strong { color: #111827 !important; }
}
