:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(14, 29, 49, 0.72);
  --panel-solid: #0e1d31;
  --text: #f6f9fc;
  --muted: #9fb0c3;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #55d6be;
  --accent-2: #72a9ff;
  --accent-3: #a18cff;
  --shadow: 0 26px 70px rgba(0,0,0,.34);
  --radius: 22px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(85,214,190,.06), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(114,169,255,.06), transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 105px 0; position: relative; }
.section-panel { background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)); border-block: 1px solid var(--line); }

.page-glow { position: fixed; border-radius: 999px; filter: blur(110px); opacity: .16; pointer-events: none; z-index: -1; }
.page-glow-one { width: 420px; height: 420px; background: var(--accent); top: 5vh; left: -180px; }
.page-glow-two { width: 500px; height: 500px; background: var(--accent-2); top: 55vh; right: -240px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,17,31,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06111c; font-family: 'Manrope', sans-serif; font-weight: 800; }
.brand-name { font-family: 'Manrope', sans-serif; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 600; transition: .2s ease; }
.site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 12px; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

.hero { padding-top: 120px; min-height: 760px; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent); opacity: .8; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 6vw, 76px); max-width: 900px; }
h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); max-width: 760px; font-size: 18px; margin: 28px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 13px 20px; border-radius: 13px; font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #79e5d1); color: #07111f; box-shadow: 0 10px 35px rgba(85,214,190,.16); }
.btn-secondary { background: rgba(255,255,255,.035); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.055); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.hero-meta a:hover { color: var(--accent); }

.hero-visual { display: grid; place-items: center; }
.network-orbit { width: min(440px, 100%); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; inset: 10%; border: 1px solid rgba(114,169,255,.22); border-radius: 50%; }
.orbit-a { animation: spin 18s linear infinite; }
.orbit-b { inset: 22%; border-color: rgba(85,214,190,.2); animation: spinReverse 14s linear infinite; }
.orbit::before, .orbit::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 22px rgba(114,169,255,.8); }
.orbit::before { top: 8%; left: 24%; }
.orbit::after { right: 5%; bottom: 30%; background: var(--accent); }
.core-card { width: 225px; padding: 26px; border-radius: 22px; background: rgba(12,26,44,.9); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); position: relative; z-index: 2; text-align: left; }
.core-kicker { display: block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .15em; margin-bottom: 10px; }
.core-card strong { font-family: 'Manrope', sans-serif; font-size: 22px; line-height: 1.2; display: block; }
.core-card p { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.node { position: absolute; min-width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(15,31,52,.86); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 35px rgba(0,0,0,.22); }
.node-1 { top: 6%; left: 38%; }
.node-2 { right: 2%; top: 37%; }
.node-3 { bottom: 5%; right: 25%; }
.node-4 { bottom: 12%; left: 11%; }
.node-5 { top: 31%; left: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

.split-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.section-heading h2 { font-size: clamp(34px, 4vw, 52px); max-width: 700px; }
.section-heading-wide { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 48px; }
.section-heading-wide > p { color: var(--muted); max-width: 430px; margin: 0; }
.about-copy { color: var(--muted); font-size: 17px; }
.about-copy p:first-child { margin-top: 0; }
.about-facts { margin-top: 34px; display: grid; gap: 16px; }
.about-facts div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); }
.about-facts span { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; margin-bottom: 5px; }
.about-facts strong { color: var(--text); font-size: 14px; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014)); box-shadow: 0 20px 50px rgba(0,0,0,.13); transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(85,214,190,.28); }
.project-card-featured { grid-column: span 2; padding: 36px; background: linear-gradient(145deg, rgba(85,214,190,.08), rgba(114,169,255,.04) 50%, rgba(255,255,255,.018)); }
.project-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.project-number { font-family: 'Manrope', sans-serif; color: rgba(255,255,255,.3); font-weight: 800; }
.project-status { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-card h3 { font-size: 27px; margin-bottom: 14px; }
.project-card > p { color: var(--muted); margin: 0 0 18px; }
.project-points { margin: 0 0 22px; padding-left: 20px; color: #c7d2df; }
.project-points li { margin: 8px 0; }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tech-row span { padding: 6px 10px; border-radius: 999px; font-size: 11px; color: #cbd7e5; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.project-link { display: inline-block; margin-top: 24px; color: var(--accent); font-weight: 700; font-size: 13px; }

.timeline { margin-top: 50px; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.timeline-item h3 { font-size: 24px; }
.timeline-company { color: var(--accent-2); margin: 6px 0 10px; font-size: 14px; font-weight: 600; }
.timeline-item p:last-child { margin-bottom: 0; color: var(--muted); max-width: 780px; }

.skills-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill-group { padding: 22px; border-radius: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.skill-group h3 { font-size: 17px; margin-bottom: 9px; color: var(--text); }
.skill-group p { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.7; }

.education-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.education-year { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.education-card h3 { font-size: 25px; margin-top: 10px; }
.education-card > p { color: var(--muted); }
.education-divider { height: 1px; background: var(--line); margin: 28px 0; }

.contact-section { padding-top: 80px; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 50px; padding: 44px; border-radius: 26px; border: 1px solid rgba(85,214,190,.18); background: linear-gradient(135deg, rgba(85,214,190,.08), rgba(114,169,255,.05)); box-shadow: var(--shadow); }
.contact-card h2 { font-size: clamp(30px, 4vw, 45px); max-width: 720px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; min-width: 250px; }

footer { padding: 32px 0 42px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; color: #74879b; font-size: 12px; border-top: 1px solid var(--line); padding-top: 26px; }

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

@media (max-width: 960px) {
  .hero-grid, .split-grid, .skills-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 35px; }
  .hero-visual { order: -1; }
  .network-orbit { width: 360px; max-width: 90vw; }
  .section-heading-wide { display: block; }
  .section-heading-wide > p { margin-top: 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: span 1; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-card { display: block; }
  .contact-actions { justify-content: flex-start; margin-top: 30px; }
}

@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .section { padding: 78px 0; }
  .hero { padding-top: 70px; min-height: auto; }
  .hero-visual { display: none; }
  .site-nav { position: absolute; top: 76px; left: 14px; right: 14px; padding: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10,23,39,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .nav-toggle { display: block; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; }
  .contact-card { padding: 28px; }
  h1 { font-size: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
.brand-mark {
  overflow: hidden;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  display: block;
}
}
