:root {
  --bg: #080b12;
  --surface: rgba(18, 23, 35, 0.72);
  --surface-solid: #111722;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #9ca6b8;
  --accent: #80a6ff;
  --accent-two: #a984ff;
  --green: #67d8ae;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 16px; background: white; color: #080b12; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.ambient { position: fixed; max-width: 100vw; width: 480px; height: 480px; border-radius: 50%; filter: blur(120px); opacity: .14; pointer-events: none; }
.ambient-one { background: #3f6fff; top: -160px; right: -120px; }
.ambient-two { background: #7f46e8; left: -180px; top: 42%; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(8,11,18,.72); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); }
.site-header.scrolled { border-color: var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.04); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
.nav-links a, .footer a { transition: color .2s; }
.nav-links a:hover, .footer a:hover { color: var(--text); }
.language-toggle { display: flex; align-items: center; gap: 7px; padding: 8px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); cursor: pointer; }
.language-active { color: var(--text); font-weight: 700; }
.menu-toggle { display: none; background: none; border: 0; color: white; }

.hero { min-height: min(820px, calc(100vh - 76px)); display: grid; align-items: center; padding-block: 88px 108px; }
.eyebrow { margin: 0 0 20px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(103,216,174,.1); }
h1 { max-width: 850px; margin: 0; font-size: clamp(52px, 7vw, 100px); line-height: .98; letter-spacing: -.065em; }
.gradient-text { background: linear-gradient(100deg, #b5c8ff, #9c77ff 65%, #e1bcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-summary { max-width: 700px; margin: 30px 0 0; color: #bdc5d3; font-size: clamp(18px, 2vw, 23px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 166px; gap: 24px; padding: 14px 17px; border-radius: 13px; font-size: 14px; font-weight: 700; transition: transform .2s, border-color .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #0b1019; background: #f5f7fb; }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.button-secondary:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 42px; margin-top: 58px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 14px; }
.hero-meta span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }


.section { padding-block: 120px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 72px minmax(0, 760px); margin-bottom: 70px; }
.section-number { margin: 0; color: var(--muted); font-size: 12px; }
h2 { margin: 0; font-size: clamp(35px, 5vw, 64px); line-height: 1.08; letter-spacing: -.05em; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(60px, 10vw, 140px); }
.about-copy { color: var(--muted); }
.large-copy { margin-top: 0; color: #e3e7ee; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.5; letter-spacing: -.02em; }
.principles { display: flex; flex-direction: column; }
.principles article { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.principles article > span { color: var(--accent); font-size: 11px; }
.principles h3 { margin: 0 0 5px; font-size: 17px; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; }

.experience-layout { display: grid; grid-template-columns: 1.18fr .82fr; gap: 24px; }
.experience-card, .skills { padding: clamp(25px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.experience-topline { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.experience-card h3 { margin: 56px 0 8px; font-size: clamp(26px, 3vw, 39px); letter-spacing: -.04em; }
.experience-card > p { color: var(--muted); }
.experience-card ul { margin: 28px 0 0; padding: 0; list-style: none; }
.experience-card li { position: relative; padding: 15px 0 15px 28px; border-top: 1px solid var(--line); color: #c4cbd6; }
.experience-card li::before { content: "↳"; position: absolute; left: 0; color: var(--accent); }
.skills { display: flex; flex-direction: column; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tags span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: #cbd2dd; font-size: 12px; }

.visual-one { background: radial-gradient(circle at 22% 25%, rgba(128,166,255,.45), transparent 28%), linear-gradient(135deg, #1a2231, #10141e); }
.visual-two { background: radial-gradient(circle at 70% 25%, rgba(103,216,174,.32), transparent 28%), linear-gradient(135deg, #142021, #10141e); }
.visual-three { background: radial-gradient(circle at 35% 65%, rgba(169,132,255,.4), transparent 30%), linear-gradient(135deg, #201831, #10141e); }

.contact-section { padding-block: 120px; }
.contact-card { position: relative; overflow: hidden; padding: clamp(34px, 7vw, 90px); border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(135deg, rgba(128,166,255,.14), rgba(169,132,255,.08) 48%, rgba(255,255,255,.025)); }
.contact-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -110px; bottom: -190px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 0 45px rgba(255,255,255,.018), 0 0 0 90px rgba(255,255,255,.012); }
.contact-card h2 { max-width: 850px; }
.contact-card > p:not(.eyebrow) { max-width: 640px; color: var(--muted); }
.email-link { position: relative; z-index: 2; display: inline-flex; gap: 14px; margin-top: 32px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: clamp(18px, 3vw, 30px); font-weight: 700; }
.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; padding-top: 6px; }
.timeline h3 { margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -.03em; }
.timeline p { margin: 0; color: var(--muted); }
.footer { display: flex; justify-content: space-between; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .22s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 850px) {
  :root { --shell: min(100% - 28px, 680px); }
  .nav { min-height: 68px; }
  .menu-toggle { display: grid; gap: 6px; padding: 10px; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; background: white; }
  .nav-links { display: none; position: absolute; left: 14px; right: 14px; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12,16,25,.97); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .language-toggle { align-self: flex-start; margin: 8px 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 70px 90px; }
  .section { padding-block: 90px; }
  .section-heading { grid-template-columns: 42px 1fr; margin-bottom: 50px; }
  .about-grid, .experience-layout { grid-template-columns: 1fr; gap: 24px; }
  .timeline article { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .brand > span:last-child { display: none; }
  h1 { font-size: clamp(38px, 12.5vw, 70px); overflow-wrap: break-word; }
  .hero-meta { gap: 24px; }
  .hero-meta div { min-width: calc(50% - 24px); }
  .section-heading { display: block; }
  .section-number { margin-bottom: 12px; }
  .contact-card { border-radius: 22px; }
  .email-link { word-break: break-all; }
}
