* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050914;
  --bg2: #071426;
  --panel: rgba(255, 255, 255, 0.075);
  --panel2: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f6f8ff;
  --muted: #aab8d4;
  --accent: #63f2c2;
  --accent2: #8eb8ff;
  --gold: #ffd166;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(99, 242, 194, 0.16), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(142, 184, 255, 0.18), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  background: var(--accent);
  color: #06101f;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.26;
  z-index: -2;
  pointer-events: none;
}

.orb-one {
  left: -130px;
  top: 180px;
  background: var(--accent);
}

.orb-two {
  right: -130px;
  top: 520px;
  background: var(--accent2);
}

.topbar {
  width: min(1180px, calc(100% - 34px));
  height: 76px;
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px auto 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--accent);
  margin-left: 5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

nav a:hover {
  color: var(--text);
}

.hire-link {
  color: #06101f;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 999px;
  padding: 10px 16px;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  cursor: pointer;
  place-items: center;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 3px auto;
}

main {
  width: min(1180px, calc(100% - 34px));
  margin: auto;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 70px 0 48px;
}

.status-pill,
.label {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 950;
}

.status-pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pulse {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(99,242,194,.8);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 13px rgba(99,242,194,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,242,194,0); }
}

h1 {
  font-size: clamp(3rem, 7.4vw, 6.9rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
  max-width: 890px;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
  margin: 24px 0 28px;
}

.cta-row,
.quick-stack,
.contact-row,
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.contact-row a {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
}

.primary {
  color: #06101f;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.secondary,
.contact-row a {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
}

.quick-stack {
  margin-top: 26px;
}

.quick-stack span,
.certs span,
.project-card li {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top, rgba(99,242,194,.16), transparent 40%),
    var(--panel);
  padding: 18px;
  min-height: 610px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent, rgba(99,242,194,.28), transparent);
  transform: translateX(-100%);
  animation: shine 5s infinite;
}

@keyframes shine {
  45%, 100% { transform: translateX(100%); }
}

.profile-ring {
  width: 230px;
  height: 230px;
  margin: 10px auto 18px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--gold));
  position: relative;
  z-index: 1;
}

.profile-ring img,
.photo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #071426;
  object-fit: cover;
  border: 8px solid #071426;
}

.photo-fallback {
  display: none;
  place-items: center;
  color: var(--accent);
  font-size: 4rem;
  font-weight: 950;
}

.command-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.45);
  border-radius: 24px;
  min-height: 232px;
  overflow: hidden;
}

.window-dots {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6b6b;
}

.window-dots span:nth-child(2) { background: var(--gold); }
.window-dots span:nth-child(3) { background: var(--accent); }

pre {
  padding: 16px;
  color: var(--accent);
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.mini-dashboard {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-dashboard div,
.metrics article,
.glass,
.project-card,
.time-item,
.proof-cards article {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(18px);
}

.mini-dashboard small {
  color: var(--muted);
  display: block;
}

.mini-dashboard strong {
  color: var(--text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 15px 0 70px;
}

.metrics span {
  color: var(--accent);
  font-size: 2.1rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.metrics p,
.glass p,
.project-card p,
.time-item p,
.proof-cards span,
.contact p {
  color: var(--muted);
}

.section {
  padding: 76px 0;
}

.section-title {
  max-width: 860px;
  margin-bottom: 32px;
}

.value-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.glass,
.project-card,
.time-item {
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.glass:hover,
.project-card:hover,
.time-item:hover {
  transform: translateY(-6px);
  border-color: rgba(99,242,194,.38);
  background: var(--panel2);
}

.skill-console {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  border-radius: 30px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tab {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 900;
}

.tab.active {
  background: var(--accent);
  color: #06101f;
}

.skill-output {
  min-height: 230px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  padding: 20px;
}

.skill-output ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  list-style: none;
  margin-top: 16px;
}

.skill-output li {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  background: rgba(0,0,0,.17);
}

.radar-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: center;
}

.radar {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: radial-gradient(circle at center, rgba(99,242,194,.13), transparent 64%), var(--panel);
  overflow: hidden;
}

.radar::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 50%;
  left: 50%;
  top: 0;
  background: linear-gradient(55deg, rgba(99,242,194,.3), transparent 70%);
  transform-origin: left bottom;
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

.ring {
  position: absolute;
  border: 1px solid rgba(99,242,194,.25);
  border-radius: 50%;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.r1 { width: 110px; height: 110px; }
.r2 { width: 210px; height: 210px; }
.r3 { width: 310px; height: 310px; }

.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 22px var(--accent);
}

.d1 { left: 30%; top: 38%; }
.d2 { left: 62%; top: 28%; }
.d3 { left: 70%; top: 66%; }
.d4 { left: 39%; top: 72%; }

.radar p {
  position: absolute;
  left: 22px;
  bottom: 20px;
  font-weight: 950;
}

.proof-cards {
  display: grid;
  gap: 14px;
}

.proof-cards strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
}

.project-card {
  position: relative;
  overflow: hidden;
}

.number {
  display: inline-flex;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 950;
  margin-bottom: 28px;
}

.project-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.time-item {
  position: relative;
}

.time-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 24px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(99,242,194,.12);
}

.time-item span {
  color: #06101f;
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  display: inline-flex;
  margin-bottom: 12px;
}

.certs span {
  font-size: 1rem;
  padding: 14px 18px;
}

.contact {
  margin: 70px 0 80px;
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(99,242,194,.16), transparent 46%),
    var(--panel);
  box-shadow: var(--shadow);
}

.contact h2 {
  max-width: 930px;
  margin: 10px auto 18px;
}

.contact p {
  max-width: 760px;
  margin: auto auto 26px;
}

.contact-row {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 950px) {
  nav {
    position: fixed;
    left: 17px;
    right: 17px;
    top: 96px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 9, 20, .96);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  nav.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero,
  .radar-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    min-height: auto;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-output ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  main,
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    height: 66px;
    top: 8px;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 28px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5.4rem);
  }

  .intro {
    font-size: 1rem;
  }

  .metrics,
  .value-grid,
  .project-grid,
  .mini-dashboard,
  .skill-output ul {
    grid-template-columns: 1fr;
  }

  .profile-ring {
    width: 185px;
    height: 185px;
  }

  .section {
    padding: 54px 0;
  }

  .radar {
    min-height: 315px;
  }

  .r1 { width: 90px; height: 90px; }
  .r2 { width: 170px; height: 170px; }
  .r3 { width: 250px; height: 250px; }

  .btn,
  .contact-row a {
    width: 100%;
  }

  .status-pill {
    align-items: flex-start;
    border-radius: 20px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
