:root {
  --bg: #07111f;
  --bg-elevated: rgba(9, 20, 38, 0.84);
  --bg-strong: #091a31;
  --surface: rgba(12, 28, 51, 0.7);
  --surface-strong: rgba(15, 38, 69, 0.92);
  --ink: #eff6ff;
  --ink-soft: #98b0d5;
  --accent: #46d9ff;
  --accent-strong: #00ffa3;
  --accent-deep: #1d7df2;
  --line: rgba(98, 154, 255, 0.2);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29, 125, 242, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 255, 163, 0.14), transparent 28%),
    linear-gradient(180deg, #040912 0%, #07111f 46%, #040814 100%);
  font-family: Aptos, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(70, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 217, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 96%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-orb {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.page-orb-one {
  top: -6rem;
  left: -3rem;
  width: 18rem;
  height: 18rem;
  background: rgba(70, 217, 255, 0.18);
}

.page-orb-two {
  right: -5rem;
  top: 20rem;
  width: 20rem;
  height: 20rem;
  background: rgba(0, 255, 163, 0.14);
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(70, 217, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(70, 217, 255, 0.14), rgba(0, 255, 163, 0.16));
  color: var(--ink);
  font-family: "Segoe UI Variable Display", Aptos Display, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  box-shadow: inset 0 0 24px rgba(70, 217, 255, 0.12);
}

.brand-avatar {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(13, 28, 50, 0.86), rgba(7, 18, 33, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel-accent {
  background:
    linear-gradient(180deg, rgba(12, 30, 56, 0.96), rgba(6, 18, 33, 0.96)),
    var(--bg-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
  gap: 1.5rem;
  padding: 5rem 0 2.5rem;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
}

.hero-copy::after {
  position: absolute;
  inset: auto -10% -35% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 217, 255, 0.18), transparent 65%);
  content: "";
}

.hero h1,
.section h2,
.statement-card h3,
.info-card h3,
.cert-card h3 {
  margin: 0;
  font-family: "Segoe UI Variable Display", Aptos Display, sans-serif;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  letter-spacing: -0.05em;
}

.hero-subtitle {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lede,
.info-card p,
.statement-card p,
.contact-copy,
.hero-card li,
.footer p,
.cert-card p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.lede {
  max-width: 46rem;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions,
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.contact-strip {
  margin-top: 1.3rem;
}

.contact-strip a,
.contact-strip span {
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(70, 217, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #02101f;
  box-shadow: 0 18px 40px rgba(29, 125, 242, 0.28);
}

.button-secondary {
  border-color: rgba(70, 217, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.hero-card {
  padding: 1.5rem;
}

.identity-panel {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(70, 217, 255, 0.12);
}

.hero-avatar {
  width: 92px;
  height: 92px;
}

.identity-copy h2 {
  margin: 0;
  font-size: 1.4rem;
}

.identity-copy p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.card-label {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.terminal-card {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(70, 217, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(3, 10, 20, 0.86);
}

.terminal-line {
  display: flex;
  gap: 0.7rem;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.terminal-prompt {
  color: var(--accent-strong);
}

.focus-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.focus-list li,
.tag-list li,
.platform-wall span {
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(70, 217, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.focus-list li {
  color: var(--ink-soft);
}

.tag-list li,
.platform-wall span {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.section {
  padding: 2rem 0 1rem;
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
}

.card-grid,
.split-layout,
.skill-grid,
.cert-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.split-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.info-card,
.statement-card,
.skill-card,
.cert-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.info-card h3,
.statement-card h3,
.cert-card h3 {
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 3px;
}

.microsoft-mark span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.microsoft-mark span:nth-child(1) {
  background: #f25022;
}

.microsoft-mark span:nth-child(2) {
  background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
  background: #ffb900;
}

.cert-code {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(70, 217, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-section {
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-section h2 {
  max-width: 13ch;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .card-grid,
  .split-layout,
  .skill-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }

  .identity-panel {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
