:root {
  color-scheme: dark;
  --bg: #05070c;
  --ink: #f5f8ff;
  --muted: #9aa6b8;
  --line: rgba(135, 246, 255, .18);
  --cyan: #00e7ff;
  --lime: #b6ff3b;
  --orange: #ff6a1a;
  --violet: #8d5cff;
  --panel: rgba(9, 15, 27, .72);
  --glass: rgba(255, 255, 255, .065);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
main { width: min(1180px, calc(100% - 30px)); margin: 0 auto; padding: 110px 0 70px; }
.scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(circle at 50% -10%, #122444, transparent 42%), #05070c; }
.scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,231,255,.08) 1px, transparent 1px), linear-gradient(180deg, rgba(0,231,255,.06) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 82%); }
.orb { position: absolute; width: 42vw; aspect-ratio: 1; border-radius: 50%; filter: blur(68px); opacity: .55; animation: drift 12s ease-in-out infinite alternate; }
.orb-a { left: -8vw; top: 8vh; background: var(--cyan); }
.orb-b { right: -10vw; bottom: 2vh; background: var(--orange); animation-delay: -4s; }
.grid-floor { position: absolute; left: -20%; right: -20%; bottom: -18%; height: 48%; transform: perspective(520px) rotateX(62deg); background: linear-gradient(rgba(0,231,255,.32) 1px, transparent 1px), linear-gradient(90deg, rgba(0,231,255,.28) 1px, transparent 1px); background-size: 48px 48px; opacity: .22; animation: floorMove 10s linear infinite; }
.topbar { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 20; width: min(1180px, calc(100% - 30px)); min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5,7,12,.72); backdrop-filter: blur(18px); box-shadow: 0 0 34px rgba(0,231,255,.12); }
.brand { font-weight: 950; letter-spacing: -.06em; color: var(--lime); text-shadow: 0 0 18px rgba(182,255,59,.55); }
.topbar nav { display: flex; gap: 8px; }
.topbar nav a { color: var(--muted); padding: 10px 12px; border-radius: 999px; font-size: 14px; }
.topbar nav a:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.panel { border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); box-shadow: 0 24px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18), 0 0 55px rgba(0,231,255,.12); backdrop-filter: blur(18px); }
.hero { min-height: calc(100dvh - 140px); display: grid; grid-template-columns: 1.08fr .82fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(28px, 6vw, 72px); border-radius: 38px; transform-style: preserve-3d; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 900; text-shadow: 0 0 18px rgba(182,255,59,.45); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; max-width: 760px; font-size: clamp(48px, 7vw, 98px); line-height: .88; letter-spacing: -.085em; text-wrap: balance; }
h2 { margin-bottom: 22px; max-width: 820px; font-size: clamp(34px, 5vw, 72px); line-height: .94; letter-spacing: -.07em; text-wrap: balance; }
h3 { margin-bottom: 12px; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.02; letter-spacing: -.045em; }
.hero-text { max-width: 650px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { position: relative; display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; font-weight: 900; letter-spacing: -.015em; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0) scale(.98); }
.primary { color: #031014; background: linear-gradient(135deg, var(--cyan), var(--lime)); box-shadow: 0 0 28px rgba(0,231,255,.38), 0 0 48px rgba(182,255,59,.18); }
.ghost { border: 1px solid rgba(255,255,255,.22); color: var(--ink); background: rgba(255,255,255,.055); }
.command-card { position: relative; min-height: 420px; padding: 22px; border-radius: 30px; border: 1px solid rgba(0,231,255,.28); background: rgba(3,8,18,.74); box-shadow: inset 0 0 45px rgba(0,231,255,.08), 0 0 60px rgba(141,92,255,.18); overflow: hidden; transform: translateZ(38px); }
.clean-card::after { content: ""; position: absolute; right: 28px; bottom: 28px; width: 150px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--lime)); box-shadow: 0 0 28px rgba(0,231,255,.35); opacity: .75; }
.scanline { position: absolute; inset: 0; background: linear-gradient(transparent 0 48%, rgba(0,231,255,.18) 50%, transparent 52%); background-size: 100% 12px; opacity: .2; pointer-events: none; }
.terminal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); }
.terminal-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 15px var(--orange); }
.terminal-head span:nth-child(2) { background: var(--lime); box-shadow: 0 0 15px var(--lime); }
.terminal-head span:nth-child(3) { background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.terminal-head strong { margin-left: auto; font-size: 12px; letter-spacing: .12em; }
dl { margin: 0; display: grid; gap: 14px; }
dl div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
dt { color: var(--cyan); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
dd { margin: 0; color: var(--ink); font-weight: 800; }
.section { padding: 120px 0 0; }
.section-head { margin-bottom: 34px; }
.timeline-card { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; margin-bottom: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: rgba(8,14,26,.72); box-shadow: 0 20px 80px rgba(0,0,0,.28); overflow: hidden; transform-style: preserve-3d; transform: perspective(1400px) rotateX(0deg) rotateY(0deg) translateZ(0); will-change: transform; backface-visibility: hidden; contain: paint; }
.timeline-card::before, .skill-card::before, .glass-strip::before { content: ""; position: absolute; inset: -1px; background: linear-gradient(120deg, transparent, rgba(0,231,255,.28), transparent); transform: translateX(-100%); transition: transform .8s ease; pointer-events: none; }
.timeline-card:hover::before, .skill-card:hover::before, .glass-strip:hover::before { transform: translateX(100%); }
.card-glow { position: absolute; width: 260px; height: 260px; left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%) translateZ(22px); border-radius: 50%; background: radial-gradient(circle, rgba(0,231,255,.24), rgba(182,255,59,.1) 32%, transparent 66%); opacity: 0; pointer-events: none; transition: opacity .18s ease; filter: blur(4px); }
.motion-card:hover .card-glow { opacity: 1; }
.motion-card > *:not(.card-glow) { position: relative; z-index: 1; transform: translateZ(18px); }
.time { color: var(--lime); font-weight: 900; font-size: 14px; letter-spacing: .04em; }
.company { color: var(--cyan); font-weight: 800; margin-bottom: 16px; }
ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
li { position: relative; margin-bottom: 12px; padding-left: 18px; line-height: 1.6; }
li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 7px; background: var(--orange); box-shadow: 0 0 15px var(--orange); }
.skill-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.skill-card { position: relative; min-height: 250px; grid-column: span 3; padding: 26px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); overflow: hidden; transform-style: preserve-3d; transform: perspective(1400px) rotateX(0deg) rotateY(0deg) translateZ(0); will-change: transform; backface-visibility: hidden; contain: paint; transition: border-color .25s ease, box-shadow .25s ease; }
.skill-card:hover { border-color: rgba(0,231,255,.45); box-shadow: 0 0 50px rgba(0,231,255,.16); }
.skill-card.wide { grid-column: span 6; min-height: 190px; background: linear-gradient(135deg, rgba(255,106,26,.13), rgba(0,231,255,.06)); }
.skill-card span { display: inline-flex; margin-bottom: 24px; color: var(--lime); font-weight: 950; text-shadow: 0 0 16px rgba(182,255,59,.45); }
.skill-card p, .glass-strip p { color: var(--muted); line-height: 1.6; }
.glass-strip { position: relative; display: grid; grid-template-columns: .55fr 1fr; gap: 40px; padding: 34px; border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,.055); backdrop-filter: blur(18px); overflow: hidden; transform-style: preserve-3d; transform: perspective(1400px) rotateX(0deg) rotateY(0deg) translateZ(0); will-change: transform; backface-visibility: hidden; contain: paint; }
.glass-strip h2 { font-size: clamp(28px, 3vw, 48px); color: var(--ink); text-transform: none; letter-spacing: -.055em; }
.contact { margin-top: 120px; padding: clamp(34px, 7vw, 72px); border-radius: 38px; text-align: center; }
.contact h2 { margin-left: auto; margin-right: auto; }
.contact .actions { justify-content: center; }
.reveal { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(8vw,-4vh,0) scale(1.12); } }
@keyframes floorMove { from { background-position: 0 0; } to { background-position: 0 480px; } }
@media (max-width: 900px) {
  main { width: min(100% - 22px, 720px); padding-top: 96px; }
  .topbar { top: 10px; width: calc(100% - 18px); }
  .topbar nav a { padding: 9px 8px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding: 26px; min-height: auto; }
  .command-card { min-height: 380px; }
  .timeline-card, .glass-strip { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card, .skill-card.wide { grid-column: auto; min-height: auto; }
  .section { padding-top: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
