:root {
  --bg: #0a0d12;
  --surface: #11161e;
  --surface2: #161d27;
  --text: #eef2f7;
  --muted: #9ca8b7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7c9cff;
  --accent2: #9b7cff;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}
body.light {
  --bg: #f5f7fb;
  --surface: #fff;
  --surface2: #edf1f7;
  --text: #111827;
  --muted: #5d6877;
  --line: rgba(17, 24, 39, 0.11);
  --accent: #4d65e8;
  --accent2: #8158db;
  --shadow: 0 25px 70px rgba(30, 45, 80, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  transition: 0.25s;
}
a {
  color: inherit;
  text-decoration: none;
}
.nav {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.brand span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 30px;
}
nav a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: 0.2s;
}
nav a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  gap: 8px;
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.menu-btn {
  display: none;
}
.section {
  max-width: 1160px;
  margin: auto;
  padding: 110px 6vw;
}
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  position: relative;
}
.hero:before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 5%;
  top: 8%;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: 0.12;
  filter: blur(20px);
  pointer-events: none;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0;
  max-width: 850px;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
  margin: 30px 0;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 11px;
  font-weight: 750;
  border: 1px solid var(--line);
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--text);
  color: var(--bg);
}
.secondary {
  background: var(--surface);
}
.quick-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.quick-stack span,
.tags span {
  font-size: 0.72rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--muted);
}
.hero-card {
  position: relative;
  max-width: 680px;
  justify-self: center;
}
.code-window {
  background: #080b10;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  width: 100%;
  max-width: 680px;
}
.window-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #7e8998;
  font:
    12px ui-monospace,
    monospace;
}
.window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #46505e;
}
.window-bar span {
  margin-left: 8px;
}
.code-window pre {
  padding: 25px;
  margin: 0;
  overflow: auto;
  color: #c7d0dc;
  font:
    13px/1.9 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.code-window b {
  color: #8da5ff;
}
.code-window em {
  color: #a6d6a8;
  font-style: normal;
}
.section-heading {
  display: block;
  margin-bottom: 36px;
}
.section-heading h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0 0 12px 0;
  max-width: 100%;
}
.section-heading p {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}
.business-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.business-profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
}
.business-profile-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.business-profile-card p {
  margin: 0;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
}
.stats div:last-child {
  border: 0;
}
.stats strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 5px;
}
.skill-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.skill-card,
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  transition: 0.25s;
}
.skill-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.skill-no {
  color: var(--accent);
  font:
    700 0.72rem ui-monospace,
    monospace;
}
.skill-card h3,
.project-card h3 {
  font-size: 1.35rem;
  margin: 25px 0 8px;
  letter-spacing: -0.03em;
}
.skill-card p,
.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.project-grid {
  grid-template-columns: repeat(2, 1fr);
}
.project-card.featured {
  background: linear-gradient(
    145deg,
    var(--surface),
    color-mix(in srgb, var(--accent) 7%, var(--surface))
  );
}
.project-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font:
    11px ui-monospace,
    monospace;
}
.project-card h3 {
  font-size: 1.7rem;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.timeline article {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 35px;
}
.time {
  font:
    700 0.72rem ui-monospace,
    monospace;
  color: var(--accent);
  padding-top: 6px;
}
.timeline h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.timeline p {
  color: var(--muted);
  margin: 0;
}
.contact {
  max-width: 1000px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact h2 {
  margin: 0 auto 20px;
}
.contact > p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--muted);
}
.contact .cta-row {
  justify-content: center;
}
.contact small {
  display: block;
  color: var(--muted);
  margin-top: 22px;
  font-size: 0.72rem;
}
footer {
  max-width: 1160px;
  margin: auto;
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Experience grid to match projects layout */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.experience-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: 0.25s;
}
.experience-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.experience-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font:
    12px ui-monospace,
    monospace;
  margin-bottom: 8px;
}
.experience-card h3 {
  font-size: 1.3rem;
  margin: 6px 0;
}
.experience-card p {
  color: var(--muted);
  margin: 0 0 8px;
}
.experience-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
/* Portrait panel styles */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.portrait-frame {
  position: relative;
  width: min(420px, 86vw);
  aspect-ratio: 0.8;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--surface), var(--surface2));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}

/* Certifications */
.certifications {
  margin-top: 28px;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.cert-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 12px;
}
.cert-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.cert-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.cert-body h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.cert-body .issuer {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.cert-body .cred {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.btn.small {
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
}
@media (max-width: 800px) {
  .nav {
    padding: 0 5vw;
  }
  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 18px 5vw;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 16px;
  }
  nav.open {
    display: flex;
  }
  .menu-btn {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 70px;
  }
  .hero-card {
    display: none;
  }
  .section {
    padding: 80px 5vw;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats div:nth-child(2) {
    border-right: 0;
  }
  .stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .business-profile-grid,
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  footer {
    margin: 0 5vw;
    padding: 25px 0;
    display: block;
  }
  footer span {
    display: block;
    margin: 5px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none;
  }
}

@media (max-width: 800px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}
