:root {
  color-scheme: dark;
  --bg: #06080d;
  --bg-soft: #0c111b;
  --panel: rgba(14, 19, 29, 0.78);
  --panel-strong: #111825;
  --text: #f4f8fb;
  --muted: #a7b4c5;
  --subtle: #738196;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #40d9ff;
  --teal: #2ed3b7;
  --amber: #ffc76b;
  --green: #93e36e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(64, 217, 255, 0.13), transparent 31rem),
    linear-gradient(180deg, #06080d 0%, #0a0e15 42%, #06080d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--max));
  margin: 0.85rem auto 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(6, 8, 13, 0.66);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(6, 8, 13, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #031018;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(64, 217, 255, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 999px;
  padding: 0.6rem 0.86rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.24rem auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.19rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.19rem) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: 8.5rem max(1rem, calc((100vw - var(--max)) / 2)) 5rem;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/hero-cloud-devops.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, 0.97) 0%, rgba(6, 8, 13, 0.84) 36%, rgba(6, 8, 13, 0.28) 70%, rgba(6, 8, 13, 0.6) 100%),
    linear-gradient(180deg, rgba(6, 8, 13, 0.16) 0%, rgba(6, 8, 13, 0.24) 64%, #06080d 100%);
}

.hero-content {
  width: min(680px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.6rem, 11vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-role {
  margin: 1.1rem 0 0;
  color: var(--cyan);
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-weight: 780;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-weight: 780;
  line-height: 1.2;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #041018;
}

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

.proof-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(900px, 100%);
  width: min(100% - 2rem, var(--max));
  margin: -4rem auto 0;
}

.proof-strip article {
  min-height: 8.4rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(10, 15, 23, 0.62);
  backdrop-filter: blur(16px);
}

.proof-strip span {
  display: block;
  color: var(--amber);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 850;
  line-height: 1;
}

.proof-strip p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.intro-section {
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.section h2,
.contact-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-grid p,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading p {
  width: min(430px, 100%);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
}

.timeline-date {
  padding-top: 1.1rem;
  color: var(--subtle);
  font-weight: 800;
}

.timeline-card,
.skill-groups article,
.credential-card,
.education article {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.timeline-card {
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
}

.job-head h3,
.skill-groups h3,
.credential-card h3,
.education h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.25;
}

.job-head p,
.education p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.job-head span {
  align-self: start;
  flex: 0 0 auto;
  border: 1px solid rgba(64, 217, 255, 0.32);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 850;
}

.timeline-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.timeline-card li + li {
  margin-top: 0.45rem;
}

.skills-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-groups,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skill-groups article {
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(64, 217, 255, 0.08), transparent 55%),
    var(--panel);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tags span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.credential-grid {
  padding-bottom: 3rem;
}

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

.credential-card {
  min-height: 10.5rem;
  padding: 1.15rem;
  background: var(--panel-strong);
}

.credential-card.highlight {
  border-color: rgba(255, 199, 107, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 199, 107, 0.14), transparent 58%),
    var(--panel-strong);
}

.credential-card span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.education {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.education article {
  padding: 1.25rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: center;
  margin-bottom: 4rem;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgba(64, 217, 255, 0.25);
  border-radius: 0.5rem;
  background:
    linear-gradient(130deg, rgba(64, 217, 255, 0.11), transparent 46%),
    linear-gradient(310deg, rgba(255, 199, 107, 0.09), transparent 48%),
    #0c111b;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
}

.contact-actions a,
.contact-actions span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.86rem 0.95rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  overflow-wrap: anywhere;
}

.contact-actions svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.contact-social {
  font-weight: 750;
}

.contact-actions a:hover {
  border-color: rgba(64, 217, 255, 0.38);
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 920px) {
  .site-header {
    width: calc(100% - 1.2rem);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 4.6rem;
    left: 0.6rem;
    right: 0.6rem;
    display: grid;
    gap: 0.4rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: rgba(6, 8, 13, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-0.6rem);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .hero {
    min-height: 82svh;
    padding-top: 7.8rem;
    padding-bottom: 3.2rem;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 8, 13, 0.97), rgba(6, 8, 13, 0.68)),
      linear-gradient(180deg, rgba(6, 8, 13, 0.35), #06080d 100%);
  }

  .proof-strip,
  .intro-grid,
  .skill-groups,
  .cards-grid,
  .education,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }
}

@media (max-width: 680px) {
  .brand span:last-child {
    max-width: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    margin-top: 1.35rem;
  }

  .button {
    width: 100%;
  }

  .proof-strip {
    gap: 0.6rem;
    margin-top: -1rem;
    width: min(100% - 1.2rem, var(--max));
  }

  .proof-strip article {
    min-height: auto;
  }

  .section {
    width: min(100% - 1.2rem, var(--max));
    padding: 3.4rem 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-date {
    padding-top: 0;
  }

  .job-head {
    display: grid;
  }

  .contact-section {
    margin-bottom: 2rem;
    padding: 1.2rem;
  }

  .site-footer {
    display: grid;
    width: min(100% - 1.2rem, var(--max));
  }
}
