:root {
  --bg: #0a0e17;
  --bg-2: #0d1220;
  --panel: rgba(255,255,255,0.04);
  --panel-border: rgba(255,255,255,0.09);
  --text: #e7eaf0;
  --muted: #8b93a7;
  --accent: #4fd1e5;
  --accent-2: #8b7cf6;
  --line: rgba(255,255,255,0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .display { font-family: "Space Grotesk", "Inter", sans-serif; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100; transition: width 0.1s linear;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 24px 80px;
  background:
    radial-gradient(circle at 15% 20%, rgba(79,209,229,0.16), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(139,124,246,0.16), transparent 45%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 40%, transparent 100%);
  pointer-events: none;
}
.net-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.55;
}
.net-svg circle { filter: drop-shadow(0 0 6px currentColor); }
.net-node { animation: drift 9s ease-in-out infinite; transform-origin: center; }
.net-node.n2 { animation-delay: -3s; }
.net-node.n3 { animation-delay: -6s; }
@keyframes drift {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
.net-line { stroke-dasharray: 6 6; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -120; } }

.hero-inner {
  position: relative;
  max-width: 980px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(79,209,229,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,209,229,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(79,209,229,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,209,229,0); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .role {
  font-size: 1.15rem; color: var(--muted); font-weight: 500; margin-bottom: 26px;
}
.hero p.lede { max-width: 54ch; color: #c3c9d6; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--panel-border);
  color: var(--text); background: var(--panel);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(79,209,229,0.08); }
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none; color: #0a0e17;
}
.btn.primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.icon-btn {
  padding: 11px; position: relative;
}
.icon-btn .tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1a2030; color: var(--text); font-size: 0.75rem; font-weight: 500;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.icon-btn.copied .tooltip { opacity: 1; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--muted); font-size: 0.85rem; }
.meta-row span { display: flex; align-items: center; gap: 6px; }
.meta-row svg { width: 14px; height: 14px; opacity: 0.8; }

.card-wrap { perspective: 1000px; }
.photo-card {
  width: 220px; height: 260px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--panel-border);
  padding: 10px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px;
  transform: translateZ(20px);
  display: block;
}
.photo-card:hover { box-shadow: 0 30px 70px -18px rgba(79,209,229,0.25); }

main { max-width: 900px; margin: 0 auto; padding: 10px 24px 120px; }
section { padding: 70px 0; border-top: 1px solid var(--line); }
section:first-child { border-top: none; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 34px; }
.section-num { font-family: "Space Grotesk"; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
h2.section-title { font-size: 1.5rem; margin: 0; font-weight: 600; letter-spacing: -0.01em; }

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

.summary-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 28px 30px; color: #c3c9d6;
  font-size: 1.02rem; max-width: 68ch;
}

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.skill-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px;
  padding: 22px 22px; transition: transform 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: rgba(79,209,229,0.4); }
.skill-card h3 {
  margin: 0 0 12px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent); font-weight: 700; font-family: "Inter";
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.82rem; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--panel-border); color: #d6dae4;
}

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.35;
}
.tl-item { position: relative; margin-bottom: 42px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 4px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.tl-title { font-size: 1.05rem; font-weight: 600; }
.tl-company { color: var(--accent); font-weight: 500; }
.tl-dates {
  font-size: 0.78rem; color: var(--muted); white-space: nowrap;
  background: var(--panel); border: 1px solid var(--panel-border);
  padding: 3px 10px; border-radius: 999px; height: fit-content;
}
.muted-inline { color: var(--muted); font-weight: 400; }
.tl-item ul { margin: 0; padding-left: 18px; color: #c3c9d6; }
.tl-item li { margin-bottom: 6px; font-size: 0.94rem; }

.edu-grid { display: grid; gap: 14px; }
.edu-card {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 16px 20px; flex-wrap: wrap;
}
.edu-card .name { font-weight: 500; }
.edu-card .dates { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.lab-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px;
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.lab-card:hover { transform: translateY(-4px); border-color: rgba(139,124,246,0.4); }
.lab-card svg { width: 26px; height: 26px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.lab-card h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; }
.lab-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }

footer {
  text-align: center; padding: 40px 24px 60px; color: var(--muted); font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .card-wrap { order: -1; margin-bottom: 8px; }
  .photo-card { width: 140px; height: 168px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .progress, .net-svg, .hero::before { display: none; }
  body { background: #fff; color: #111; }
  .hero { min-height: 0; background: none; padding: 20px 0; }
  .btn, .photo-card { display: none; }
  .summary-card, .skill-card, .lab-card, .edu-card { border: 1px solid #ccc; background: #fff; }
}
