:root {
  --bg: #080b12;
  --bg-2: #0d111a;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(20, 28, 43, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(45, 212, 191, 0.32);
  --text: #eef7ff;
  --muted: #9aa8b7;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --green: #7ddf64;
  --amber: #f7b955;
  --rose: #fb7185;
  --violet: #a78bfa;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #080b12 0%, #10131e 48%, #0a0d14 100%);
  background-size: 44px 44px, 44px 44px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.12), transparent 28%),
    linear-gradient(300deg, rgba(247, 185, 85, 0.1), transparent 32%);
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 14% 14%, rgba(45, 212, 191, 0.16), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(167, 139, 250, 0.12), transparent 24%),
    radial-gradient(circle at 50% 86%, rgba(247, 185, 85, 0.09), transparent 28%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

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

:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.55);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 78px;
  margin: 0;
  padding: 14px max(16px, calc((100% - 1180px) / 2));
  background: rgba(8, 11, 18, 0.84);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions,
.quick-stats {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  transition: color 180ms ease;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 8px;
  color: var(--teal);
  background: #0c1220;
  box-shadow: 0 0 34px rgba(45, 212, 191, 0.16);
  font-size: 0.84rem;
}

.brand:hover {
  color: var(--teal);
}

.site-nav {
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 56px 0 82px;
}

.hero::before {
  position: absolute;
  top: 38px;
  left: -18px;
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.8rem, 6.2vw, 5.7rem);
  letter-spacing: 0;
  background: linear-gradient(180deg, #ffffff 0%, #e4f6ff 58%, #b7c6d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
}

h3 {
  font-size: 1.16rem;
}

.hero-text,
.section-heading p,
.contact-section p,
.timeline-item p,
.project-card p,
.skill-groups p {
  color: var(--muted);
}

.hero-text {
  max-width: 670px;
  margin: 24px 0 0;
  font-size: 1.13rem;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-status span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #c9d7e7;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 850;
}

.hero-status span:first-child {
  border-color: rgba(125, 223, 100, 0.28);
  color: #d7ffd1;
  background: rgba(125, 223, 100, 0.08);
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button.primary {
  color: #041015;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 34px rgba(45, 212, 191, 0.24);
}

.button.primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5eead4, #67e8f9);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.button.secondary:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(34, 211, 238, 0.08);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
  align-self: center;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(8, 11, 18, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 32%);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
}

.profile-photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05070b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.profile-photo-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(5, 7, 11, 0.52));
  pointer-events: none;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 63%;
}

.profile-cluster {
  display: grid;
  gap: 16px;
  align-items: center;
}

.panel-label,
.project-date,
.company {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.profile-cluster h2 {
  margin-top: 4px;
  font-size: 1.42rem;
}

.profile-cluster span {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 800;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: #05070b;
  box-shadow: inset 0 0 40px rgba(45, 212, 191, 0.04);
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: #b9f6ea;
  font: 700 0.84rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.quick-stats {
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

.quick-stats div {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0.045));
}

.quick-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.quick-stats dd {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 950;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: -38px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.92), rgba(10, 15, 26, 0.88));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.intro-strip div {
  padding: 24px;
  transition: background 180ms ease;
}

.intro-strip div:hover {
  background: rgba(45, 212, 191, 0.055);
}

.intro-strip div + div {
  border-left: 1px solid var(--line);
}

.intro-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.intro-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 58px;
  padding: 112px 0;
}

.section-heading {
  align-self: start;
  position: sticky;
  top: 110px;
}

.section-heading.narrow {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p {
  font-size: 1.05rem;
}

.github-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #041015;
  background: var(--teal);
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease;
}

.github-link:hover {
  transform: translateY(-2px);
  background: #5eead4;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item,
.skill-groups article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  overflow: hidden;
}

.timeline-item:hover,
.skill-groups article:hover,
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(20, 28, 43, 0.88);
}

.timeline-item::before,
.project-card::before,
.skill-groups article::before {
  position: absolute;
  inset: 0;
  content: "";
  border-top: 1px solid rgba(45, 212, 191, 0.28);
  pointer-events: none;
}

.timeline-meta {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 950;
}

.company {
  margin-top: 6px;
  color: var(--amber);
}

.project-grid,
.skill-groups,
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  overflow: hidden;
}

.project-card h3 {
  margin-top: 12px;
  font-size: 1.35rem;
}

.project-card span {
  margin-top: auto;
  color: var(--teal);
  font-weight: 900;
}

.project-card-link {
  border-color: rgba(45, 212, 191, 0.44);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.16), transparent 38%),
    var(--panel);
}

.project-card-link:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.skill-groups article {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.skill-groups article:nth-child(2) {
  border-color: rgba(247, 185, 85, 0.25);
}

.skill-groups article:nth-child(3) {
  border-color: rgba(167, 139, 250, 0.26);
}

.credentials {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #0b111c, #080b12);
  background-size: 32px 32px, 32px 32px, auto;
}

.credentials .section-heading p {
  max-width: 680px;
}

.credly-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #041015;
  background: var(--teal);
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease;
}

.credly-link:hover {
  transform: translateY(-2px);
  background: #5eead4;
}

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

.cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(5, 7, 11, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.cert-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(247, 185, 85, 0.12), transparent 36%);
  opacity: 0.95;
}

.cert-card > * {
  position: relative;
}

.cert-badge {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #071019;
  background: var(--amber);
  font-size: 1.2rem;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(247, 185, 85, 0.2);
}

.cert-level {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cert-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.32rem;
  line-height: 1.12;
}

.cert-action {
  margin-top: auto;
  color: var(--muted);
  font-weight: 900;
}

.kube .cert-badge {
  color: #ecfeff;
  background: #2563eb;
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.28);
}

.aws-dev .cert-badge {
  background: var(--green);
}

.aws-arch .cert-badge {
  color: #160b23;
  background: var(--violet);
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 58px;
  align-items: start;
  padding: 112px 0 96px;
}

.contact-actions {
  justify-content: flex-start;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.1), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.contact-form::before {
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(103, 232, 249, 0.24);
  content: "";
  pointer-events: none;
}

.contact-form > * {
  position: relative;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  color: var(--text);
  background: rgba(5, 7, 11, 0.72);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 140px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  background: rgba(5, 7, 11, 0.9);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.13);
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

.contact-form button {
  width: 100%;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  font-weight: 900;
  color: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1040px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(300px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 72px;
  }

  .section-heading {
    position: static;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .intro-strip,
  .project-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .intro-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .split-section,
  .credentials,
  .contact-section {
    padding-top: 78px;
    padding-bottom: 78px;
  }
}

@media (max-width: 620px) {
  .timeline-item,
  .cert-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    flex-direction: column;
  }

  .button,
  .contact-actions,
  .contact-actions a,
  .hero-actions a {
    width: 100%;
  }

  .cert-card {
    min-height: 250px;
  }

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