::root {
  --bg: #050c12;
  /* darker, more contrast */
  --bg2: #07141c;

  --card: #0b1f2a;
  --card2: #0a1822;

  --text: #eaf4f8;
  --muted: #9fb4c2;

  --line: rgba(255, 255, 255, .06);

  --accent: #38bdf8;
  /* slightly stronger */
  --accent2: #2dd4bf;

  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

h1,
h2,
h3,
h4 {
  color: #eaf4f8;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

/* Fix anchor scroll offset for sticky header */
section[id] {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #eaf4f8;

  background: linear-gradient(180deg, #050c12 0%, #07141c 100%);
}

/* ============================= */
/* TOP BANNER */
/* ============================= */
/* ============================= */
/* TOP BANNER (PREMIUM) */
/* ============================= */
.top-banner {
  width: 100%;
  height: 180px;

  background-image: url("./assets/banner.png");
  background-size: cover;
  background-position: center;

  position: relative;

  filter: saturate(1.15) contrast(1.1) brightness(1.05);
  opacity: 0.98;

  /* floating header support */
  margin-top: -64px;
  padding-top: 64px;

  /* subtle motion */
  animation: bannerDrift 40s ease-in-out infinite alternate;
  opacity: 0.85;
}

.top-banner::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to bottom,
      rgba(7, 18, 26, 0.02),
      rgba(7, 18, 26, 0.22)),
    radial-gradient(circle at 20% 30%,
      rgba(125, 211, 252, 0.10),
      transparent 60%);
}

.ambient {
  position: fixed;
  inset: -200px -200px auto -200px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(243, 231, 200, .18), transparent 70%);
  opacity: 0.35;
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 18px;

  background: rgba(5, 12, 18, .75);
  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(125, 211, 252, .14);
  border: 1px solid rgba(125, 211, 252, .22);
}

.brand-text {
  font-weight: 700;
  letter-spacing: .2px
}

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

.nav a {
  color: rgba(234, 244, 248, .75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav .btn {
  margin-left: 4px
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 34, 48, .55);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 4px auto;
  background: rgba(233, 242, 247, .85);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  margin-top: -20px;
  padding: 70px 18px 0;
}

.hero::before {
  content: "";
  position: absolute;

  top: 120px;
  left: 5%;

  width: 420px;
  height: 220px;

  background: radial-gradient(circle,
      rgba(56, 189, 248, 0.06),
      rgba(56, 189, 248, 0.08),
      transparent 70%);

  filter: blur(40px);

  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;

  bottom: -20px;
  left: 0;
  right: 0;

  height: 120px;

  background: linear-gradient(to bottom,
      transparent,
      rgba(5, 12, 18, 0.8));

  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: start;
}

.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;

  font-size: 13px;

  padding: 8px 12px;

  border-radius: 999px;

  color: rgba(234, 244, 248, .9);

  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .12);
}

.hero h1 {
  margin: 14px 0 10px;

  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;

  letter-spacing: -0.6px;

  color: #eaf4f8;
}

.accent {
  color: #38bdf8;
  /* solid accent color */
  font-weight: inherit;
}

.no-gradient .accent {
  color: #38bdf8;

  text-shadow:
    0 0 12px rgba(56, 189, 248, .25);
}

.lead {
  margin: 0;
  max-width: 62ch;

  color: rgba(234, 244, 248, .78);

  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-copy {
  max-width: 720px;
}

.metric {
  padding: 12px 12px;

  border-radius: 14px;

  background: rgba(255, 255, 255, .03);

  border: 1px solid rgba(255, 255, 255, .06);

  transition: all 0.15s ease;
}

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

  background: rgba(255, 255, 255, .05);

  border-color: rgba(56, 189, 248, .25);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, .35);
}

.metric-title {
  font-size: 12px;
  color: rgba(234, 244, 248, .65);
}

.metric-value {
  margin-top: 6px;

  font-weight: 650;
  font-size: 14px;

  color: #ffffff;
  /* FORCE visibility */
}

.hero-card {
  border-radius: 16px;

  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02));

  border: 1px solid rgba(56, 189, 248, .18);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, .5);

  backdrop-filter: blur(10px);

  overflow: hidden;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(233, 242, 247, .10);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: .9
}

.dot-red {
  background: #ff6b6b
}

.dot-yellow {
  background: #ffd166
}

.dot-green {
  background: #4dd4ac
}

.hero-card-title {
  margin-left: auto;
  font-size: 12px;
  color: rgba(233, 242, 247, .75)
}

.hero-card-body {
  padding: 14px 14px 16px
}

.hero-card-body h3 {
  margin: 0 0 8px;
  font-size: 16px
}

.hero-card-body p {
  margin: 0 0 12px;
  color: rgba(233, 242, 247, .78);
  line-height: 1.5;
  font-size: 14px;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: rgba(233, 242, 247, .80);
  line-height: 1.6;
  font-size: 14px;
}

.bullets li {
  margin: 6px 0
}

.pill-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.pill {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .22);
  background: rgba(125, 211, 252, .10);
  color: rgba(233, 242, 247, .88);
}

/* Waves */
.waves {
  margin-top: 34px;
  height: 70px;
  overflow: hidden;
  opacity: .75;
}

.waves svg {
  width: 140%;
  height: 100%;
  transform: translateX(-10%);
  animation: drift 8s ease-in-out infinite alternate;
}

.waves path {
  fill: rgba(125, 211, 252, .10);
}

@keyframes drift {
  from {
    transform: translateX(-12%);
  }

  to {
    transform: translateX(-6%);
  }
}

/* Sections */
.section {
  padding: 54px 18px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 34, 48, .28), rgba(7, 18, 26, 0));
  border-top: 1px solid rgba(233, 242, 247, .06);
  border-bottom: 1px solid rgba(233, 242, 247, .06);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.3px;

  color: #eaf4f8;
  /* ADD THIS */
}

.section-head p {
  margin: 8px 0 0;
  color: rgba(233, 242, 247, .78);
  line-height: 1.6;
  max-width: 75ch;
}

/* Grid helpers */
.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

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

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

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

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

.card {
  border-radius: 16px;

  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.015));

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;

  border: 1px solid rgba(255, 255, 255, 0.06);

  position: relative;

  backdrop-filter: blur(8px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .04);

  padding: 16px;
}

.card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(56, 189, 248, .18);

  border-color: rgba(56, 189, 248, .25);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 1px;

  background: linear-gradient(to right,
      transparent,
      rgba(56, 189, 248, .4),
      transparent);

  opacity: 0.6;
}

/* 🔥 Cert card hover glow */
.cert.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  width: 100%;
  min-width: 0;
  max-width: 100%;

  overflow: hidden;
}

.cert.card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(56, 189, 248, 0.15);

  border-color: rgba(125, 211, 252, 0.25);
}

.card h3 {
  margin: 0 0 8px;

  font-size: 17px;
  font-weight: 600;

  color: #ffffff;
}

.card:hover h3 {
  color: #eaf4f8;
}

.card p {
  margin: 0;
  color: rgba(234, 244, 248, .78);
  line-height: 1.55;
  font-size: 14px;
}

.cert.card p {
  margin-top: 14px;
  width: 100%;
  margin-bottom: 14px;
}

/* === Certifications Enhancement === */

.cert-header {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 16px;
  align-items: start;
}

.cert-badge {
    width: 90px;
}

.cert-badge img {
  height: auto;

  border-radius: 10px;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.cert-badge img {
  width: 100%;
  height: auto;

  border-radius: 10px;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

.cert.card:hover .cert-badge img {
  transform: scale(1.06) translateY(-2px);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, .5),
    0 0 20px rgba(56, 189, 248, .25);

  filter: brightness(1.05);
}

.cert-verify {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(233, 242, 247, .6);
  text-align: center;
}

.card-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 242, 247, .12);
  background: rgba(10, 27, 37, .40);
  color: rgba(233, 242, 247, .80);
}

.tag-primary {
  border-color: rgba(94, 234, 212, .25);
  background: rgba(94, 234, 212, .12);
}

.card-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(233, 242, 247, .08);
}

.meta-k {
  font-size: 12px;
  color: rgba(234, 244, 248, .5);
}

.meta-v {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(234, 244, 248, .75);
}

.card-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 10px 16px;

  border-radius: 999px;

  background: linear-gradient(180deg,
      rgba(56, 189, 248, .35),
      rgba(56, 189, 248, .18));

  border: 1px solid rgba(56, 189, 248, .5);

  color: #ffffff;

  font-weight: 600;

  box-shadow:
    0 8px 22px rgba(56, 189, 248, .25);

  transition: all 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);

  box-shadow:
    0 12px 30px rgba(56, 189, 248, .35);
}

.btn:hover {
  transform: translateY(-1px);

  box-shadow:
    0 10px 25px rgba(56, 189, 248, .25);

  border-color: rgba(56, 189, 248, .5);
}

.btn:active {
  transform: translateY(0)
}

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(234, 244, 248, .9);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.callout {
  max-width: var(--max);
  margin: 14px auto 0;
}

.callout-inner {
  border-radius: var(--radius);
  border: 1px solid rgba(243, 231, 200, .18);
  background: radial-gradient(700px 220px at 20% 0%, rgba(243, 231, 200, .10), transparent 55%),
    rgba(11, 34, 48, .35);
  padding: 16px;
}

.callout-inner h3 {
  margin: 0 0 8px;
  font-size: 16px
}

.callout-inner ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(233, 242, 247, .80);
  line-height: 1.6
}

.about {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  text-decoration: none;
  color: var(--text);
}

.contact-k {
  font-size: 12px;
  color: rgba(233, 242, 247, .65)
}

.contact-v {
  margin-top: 8px;
  font-weight: 650
}

.muted {
  color: rgba(233, 242, 247, .70)
}

/* Footer */
.footer {
  border-top: 1px solid rgba(233, 242, 247, .08);
  padding: 18px;
  background: rgba(7, 18, 26, .65);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 750
}

.dot-sep {
  opacity: .65;
  margin: 0 8px
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr
  }

  .skills {
    grid-template-columns: 1fr 1fr
  }

  .certs {
    grid-template-columns: 1fr
  }

  .contact {
    grid-template-columns: 1fr
  }

  .about {
    grid-template-columns: 1fr
  }

  .cert-header {
    grid-template-columns: 1fr;
  }

  .cert-badge {
    margin-top: 8px;
  }

  .cert.card {
    grid-template-columns: 1fr;
  }

  .cert-badge {
    grid-column: auto;
    grid-row: auto;
    margin-top: 10px;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none
  }

  .nav-toggle {
    display: block
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    right: 18px;
    left: 18px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(233, 242, 247, .10);
    background: rgba(7, 18, 26, .92);
    flex-direction: column;
    gap: 12px;
  }
}

.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;

  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, .06),
      transparent);
}

/* ============================= */
/* NEXT SECTION STYLING */
/* ============================= */

#next .card {
  border: 1px solid rgba(94, 234, 212, .15);
}

#next .card:hover {
  border-color: rgba(94, 234, 212, .35);
}

#certs .cert.card:nth-child(2) .cert-badge img {
  opacity: 0.85;
  filter: grayscale(20%);
}

#certs .cert.card:nth-child(2):hover .cert-badge img {
  opacity: 1;
  filter: grayscale(0%);
}