:root {
  --nav-height: 104px;
  --bg: #0b1530;
  --bg-panel: #161b25;
  --bg-panel-2: #131721;
  --border: #262e3d;
  --border-soft: #1d2431;
  --text: #eaecef;
  --text-muted: #8891a3;
  --text-dim: #5b6478;
  --accent: #f2a93b;
  --accent-soft: rgba(242, 169, 59, 0.12);
  --accent-2: #52d9c4;
  --accent-2-soft: rgba(82, 217, 196, 0.12);
  --text-blue: #39d5ea;
  --status: #6fcf97;
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Inter", sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  scroll-behavior: smooth;
}

body {
  background-color: #101319;
  background-image:
    radial-gradient(
      ellipse at 84% 58%,
      rgba(35, 112, 101, 0.24),
      transparent 31%
    ),
    linear-gradient(rgba(153, 168, 183, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 168, 183, 0.055) 1px, transparent 1px);
  background-size:
    auto,
    70px 70px,
    70px 70px;
  background-position:
    center,
    center top,
    center top;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 96px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-2);
  color: #07111e;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

.accent-word {
  color: var(--text-blue);
}

/* ---------- HOVER SWEEP ---------- */
/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(7, 17, 30, 0.96);
  border-bottom: 1px solid rgba(123, 158, 190, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-height);
  width: min(1600px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 8px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 48px;
}
.nav-logo {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span {
  color: var(--text-blue);
}
nav.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(123, 158, 190, 0.15);
  border-radius: 999px;
  background: #101a29;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
nav.links a {
  position: relative;
  color: #71839d;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
  padding: 10px 20px;
  border-radius: 999px;
}
nav.links a:hover,
nav.links a:focus-visible {
  color: #e7f4ff;
  background: #1b2736;
}
nav.links a.active {
  color: #f4f7fb;
  background: #273342;
}
nav.links a:focus-visible {
  outline: 2px solid #55e5f4;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .nav-inner {
    gap: 14px;
    width: calc(100% - 32px);
    padding: 0;
  }
  nav.links {
    gap: 2px;
  }
  nav.links a {
    padding: 10px 12px;
  }
}
@media (max-width: 720px) {
  :root {
    --nav-height: 78px;
  }
  .nav-inner {
    width: calc(100% - 32px);
  }
  .nav-logo {
    font-size: 24px;
  }
  nav.links {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
#Home {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
@media (min-width: 861px) {
  .hero-grid {
    transform: translateY(-155px);
  }
  #about > .sec-head,
  #about > .about-centered {
    transform: translateY(-205px);
  }
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.8vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero h1 span {
  color: var(--text-blue);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.4rem, 8vw, 2.6rem);
  }
}

.hero p.role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--text);
  margin-top: 10px;
}

.hero p.lede {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 18px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions .btn {
  padding: 15px 24px;
  font-size: 15px;
}
.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid var(--border);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--accent);
  color: #17110a;
  border-color: var(--accent);
  font-weight: 500;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(242, 169, 59, 0.22);
}
.btn-ghost {
  color: var(--text-muted);
}
.hero-actions .btn-ghost {
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--text-blue);
  transform: translateY(-2px);
}

.social-row {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}
.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.social-circle svg {
  width: 19px;
  height: 19px;
}
.social-circle svg {
  transition: transform 0.2s ease;
}
.social-circle:hover {
  border-color: currentColor;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}
.social-circle:hover svg {
  transform: scale(1.08);
}
.social-circle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 431 / 496;
  max-width: 390px;
  max-height: 560px;
  align-self: center;
  object-fit: contain;
  margin-left: auto;
  filter: grayscale(8%) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}
@media (max-width: 860px) {
  .hero-photo {
    max-width: 260px;
    max-height: 420px;
    margin: 0 auto;
    order: -1;
  }
}
.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 76%;
  filter: grayscale(8%);
}

/* ---------- SECTION SCAFFOLDING ---------- */
section {
  padding: 76px 0;
  border-bottom: 1px solid var(--border-soft);
}
section:last-of-type {
  border-bottom: none;
}
#about {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@supports (height: 100svh) {
  #Home,
  #about {
    min-height: calc(100svh - var(--nav-height));
  }
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}
.sec-head h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}
.sec-head h2::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-2) 50%,
    transparent
  );
  background-size: 220% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.sec-head h2:hover::after,
.sec-head h2:active::after {
  transform: scaleX(1);
  animation: green-sweep 0.9s ease-in-out infinite alternate;
}
#projects .project-heading h2 {
  position: relative;
}
#projects .project-heading h2::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-2) 50%,
    transparent
  );
  background-size: 220% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
#projects .project-heading h2:hover::after,
#projects .project-heading h2:active::after {
  transform: scaleX(1);
  animation: green-sweep 0.9s ease-in-out infinite alternate;
}
#about .sec-head {
  justify-content: center;
}
/* ---------- ABOUT + SKILLS ---------- */
.about-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.about-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.about-text-center {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 900px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.skill-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 20px 18px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.skill-chip:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.skill-index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-blue);
  flex-shrink: 0;
}
.skill-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

/* ---------- CERTIFICATIONS ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.cert-badge {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 20px;
  position: relative;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.cert-badge:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.cert-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}
.cert-vendor {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.cert-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  margin-bottom: 6px;
}
.cert-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- DEVICE BRANDS ---------- */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 60px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.brand-tag img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-tag:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.brand-tag img {
  transition: transform 0.2s ease;
}
.brand-tag:hover img {
  transform: scale(1.04);
}

/* ---------- PROJECTS ---------- */
#projects {
  padding-top: 24px;
}
.project-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.project-kicker {
  margin-bottom: 9px;
  color: var(--text-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}
.project-intro {
  max-width: 380px;
  color: var(--text-muted);
  font-size: 14px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(123, 158, 190, 0.16);
  border-radius: 16px;
  background: rgba(14, 29, 45, 0.88);
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 0.25s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}
.project-card:hover,
.project-card:active {
  transform: scale(1.035);
  border-color: rgba(82, 217, 196, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.preview-editing .project-card:hover,
.preview-editing .project-card:active {
  transform: none;
  box-shadow: none;
}
.project-image-placeholder {
  display: grid;
  min-height: 160px;
  place-items: center;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(35, 112, 101, 0.26),
      transparent 64%
    ),
    linear-gradient(rgba(153, 168, 183, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 168, 183, 0.055) 1px, transparent 1px),
    #101923;
  background-size:
    auto,
    26px 26px,
    26px 26px,
    auto;
  color: #93a7b4;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-photo-grid {
  display: grid;
  height: 164px;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: #101923;
}
.project-photo-grid img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center 45%;
}
.project-photo-grid img.project-zoom-image {
  object-fit: cover;
  object-position: center;
}
.project-photo-grid img.project-datacenter-photo {
  object-position: left center;
}
.project-content {
  padding: 17px 18px 18px;
}
.project-category {
  margin-bottom: 9px;
  color: var(--text-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-title {
  margin-bottom: 8px;
  color: #f3f4f6;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.project-description {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.project-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(57, 145, 178, 0.2);
  color: #d4edf4;
  font-size: 11px;
  line-height: 1.3;
}
@media (max-width: 860px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #projects {
    position: relative;
    left: auto;
    width: calc(100vw - 40px);
    margin-left: calc(20px - 96px);
  }
  .project-heading {
    display: block;
  }
  .project-intro {
    margin-top: 12px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project-image-placeholder {
    min-height: 185px;
  }
  .project-photo-grid {
    height: 220px;
  }
}

/* ---------- JOURNEY ---------- */
#journey {
  position: relative;
  left: 50%;
  width: min(1080px, 60vw);
  margin-left: 0;
  transform: translateX(-50%);
}
#journey .sec-head {
  margin-bottom: 26px;
}
#journey .sec-head h2 {
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.journey-card {
  border: 1px solid rgba(123, 158, 190, 0.14);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(14, 29, 45, 0.95),
    rgba(10, 22, 37, 0.96)
  );
}
.journey-job {
  min-height: 310px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.journey-job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.journey-eyebrow {
  color: #687e9a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.journey-present {
  padding: 7px 14px;
  border: 1px solid rgba(82, 217, 196, 0.16);
  border-radius: 999px;
  color: var(--text-blue);
  background: rgba(82, 217, 196, 0.08);
  font-size: 12px;
  font-weight: 600;
}
.journey-job-details {
  margin-top: auto;
  padding: 22px 0;
}
.journey-date {
  margin-bottom: 10px;
  color: #39d5ea;
  font-size: 14px;
  font-weight: 600;
}
.journey-role {
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
}
.journey-org {
  color: #91a4bc;
  font-size: 15px;
}
.journey-suborg {
  margin-top: 3px;
  color: #58718f;
  font-size: 13px;
}
.journey-job-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(123, 158, 190, 0.1);
  color: #647b96;
  font-size: 13px;
}
.journey-job-footer svg {
  width: 20px;
  height: 20px;
  color: #55e5f4;
}
.journey-education-list {
  display: grid;
  gap: 14px;
}
.journey-education {
  min-height: 145px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.journey-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(123, 158, 190, 0.12);
  border-radius: 15px;
  color: var(--text-blue);
  background: rgba(57, 213, 234, 0.1);
  font-size: 13px;
  font-weight: 700;
}
.journey-education .journey-logo {
  width: 68px;
  flex-basis: 68px;
  padding: 5px;
  background: #fff;
}
.journey-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.journey-education .journey-logo img {
  width: 80%;
  height: 80%;
}
.journey-education .journey-date {
  margin: 0 0 8px;
}
.journey-education .journey-role {
  margin-bottom: 5px;
  font-size: 17px;
}
.journey-education .journey-org {
  font-size: 14px;
}
@media (max-width: 760px) {
  #journey {
    left: auto;
    width: calc(100vw - 40px);
    margin-left: calc(50% - 50vw + 20px);
    transform: none;
  }
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .journey-education-list {
    gap: 14px;
  }
  .journey-job {
    min-height: 340px;
  }
  .journey-education {
    min-height: 160px;
    padding: 22px;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .journey-job {
    min-height: 320px;
    padding: 24px;
  }
  .journey-education {
    padding: 20px;
    gap: 14px;
  }
  .journey-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 12px;
  }
  .journey-education .journey-logo {
    width: 60px;
    height: 48px;
    flex-basis: 60px;
    padding: 4px;
    border-radius: 12px;
  }
  .journey-education .journey-role {
    font-size: 16px;
  }
  .journey-education .journey-org {
    font-size: 13px;
  }
}

/* ---------- CONTACT ---------- */
.contact-panel {
  border: 1px solid var(--border);
  background: var(--bg-panel-2);
  padding: 44px;
}
@media (max-width: 600px) {
  .contact-panel {
    padding: 28px 22px;
  }
}
.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
  max-width: 20ch;
  margin-bottom: 8px;
}
.contact-intro {
  max-width: 52ch;
  margin-bottom: 28px;
  color: #fff;
  font-size: 15px;
  line-height: 1.65;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 20px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.social-link:hover {
  border-color: var(--accent-2);
  color: var(--text-blue);
  transform: translateY(-1px);
}
.social-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn,
.skill-chip,
.cert-badge,
.brand-tag,
.social-link {
  background-image: none;
  transition:
    background-color 0.25s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
@keyframes green-sweep {
  from {
    background-position: 100% center;
  }
  to {
    background-position: 0% center;
  }
}
.btn {
  border-radius: 24px;
  background-size: auto;
}
.btn-primary:hover,
.btn-ghost:hover {
  border-color: var(--accent-2);
  background-color: var(--accent-2);
  color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(82, 217, 196, 0.22);
}
.skill-chip:hover,
.cert-badge:hover {
  background-color: var(--accent-2-soft);
}
.brand-tag:hover {
  background-color: #fff;
}
.social-link:hover {
  border-color: var(--accent-2);
  background-color: var(--accent-2);
  color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(82, 217, 196, 0.18);
}
.social-circle {
  background-color: transparent;
  background-image: none;
  background-size: auto;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.social-instagram,
.social-link-instagram {
  color: #e1306c;
}
.social-whatsapp,
.social-link-whatsapp {
  color: #25d366;
}
.social-linkedin,
.social-link-linkedin {
  color: #0a66c2;
}
.social-link-email {
  color: #f2a93b;
}
.social-circle:hover {
  background-color: var(--accent-2);
  border-color: currentColor;
  box-shadow: 0 0 22px rgba(82, 217, 196, 0.42);
}
.btn-primary:active,
.btn-ghost:active,
.social-circle:active,
.cert-badge:active,
.social-link:active {
  transform: scale(0.97);
  background-color: #38bda9;
  box-shadow: 0 2px 8px rgba(82, 217, 196, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  nav.links a,
  .btn,
  .social-circle,
  .social-circle svg,
  .skill-chip,
  .cert-badge,
  .brand-tag,
  .brand-tag img,
  .project-card,
  .social-link,
  .social-circle,
  .contact-panel {
    transition: none;
  }
  .sec-head h2:hover::after,
  .sec-head h2:active::after,
  #projects .project-heading h2:hover::after,
  #projects .project-heading h2:active::after,
  .contact-panel:hover {
    animation: none;
  }
  .sec-head h2::after,
  #projects .project-heading h2::after {
    transition: none;
  }
  .btn-primary:hover,
  .btn-ghost:hover,
  .social-circle:hover,
  .skill-chip:hover,
  .cert-badge:hover,
  .brand-tag:hover,
  .contact-panel:hover {
    box-shadow: none;
  }
  .social-circle:hover svg,
  .brand-tag:hover img {
    transform: none;
  }
  .project-card:hover,
  .project-card:active {
    transform: none;
  }
  .btn:hover,
  .skill-chip:hover,
  .cert-badge:hover,
  .brand-tag:hover,
  .social-link:hover,
  .social-circle:hover {
    animation: none;
  }
}

footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

#preview-editor-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  font-family: var(--font-body);
  color: var(--text);
}
#preview-editor-toolbar button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(123, 158, 190, 0.35);
  border-radius: 10px;
  background: #101a29;
  color: var(--text);
  font: 600 12px var(--font-body);
  cursor: pointer;
}
#preview-editor-toolbar button:hover {
  border-color: var(--text-blue);
}
#preview-editor-launch {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}
#preview-editor-panel {
  display: grid;
  width: min(330px, calc(100vw - 36px));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(123, 158, 190, 0.28);
  border-radius: 14px;
  background: rgba(11, 21, 38, 0.97);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
#preview-editor-panel[hidden],
#preview-editor-launch[hidden] {
  display: none;
}
.preview-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#preview-editor-status {
  color: #aab8c6;
  font-size: 11px;
  line-height: 1.45;
}
#preview-editor-toolbar .preview-editor-save {
  border-color: #39d5ea;
  background: #123044;
}
.preview-editing main [contenteditable="true"],
.preview-editing footer [contenteditable="true"] {
  outline: 1px dashed rgba(57, 213, 234, 0.68);
  outline-offset: 3px;
  cursor: text;
}
.preview-editing #projects .project-photo-grid img {
  cursor: grab;
  touch-action: none;
}
.preview-editing #projects .project-photo-grid img:active {
  cursor: grabbing;
}
@media (max-width: 480px) {
  #preview-editor-toolbar {
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- SECTION BACKGROUNDS ---------- */
#Home,
#journey,
#projects,
#contact {
  --text: #092b50;
  --text-muted: #244a70;
  --text-dim: #41698f;
  --text-blue: #087cc1;
  --border: rgba(71, 125, 177, 0.3);
  --border-soft: rgba(71, 125, 177, 0.2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#Home {
  background-color: #eaf5ff;
  background-image: url("images/background-home.png");
}

#journey,
#projects,
#contact {
  background-color: #eaf5ff;
  background-image: url("images/background-abstract-blue.png");
}

#about,
#skills,
#certs,
#brands {
  --text-muted: #c2d5ed;
  --text-dim: #a9c1df;
  --text-blue: #63c5ff;
  --border: rgba(108, 164, 221, 0.28);
  --border-soft: rgba(108, 164, 221, 0.18);
  background-color: #06102d;
  background-image: url("images/background-elegant-dark.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#about .about-text-center {
  color: var(--text-muted);
}

#journey > .sec-head h2,
#projects .project-heading h2,
#contact > .sec-head h2 {
  color: var(--text);
}

#journey .journey-card,
#projects .project-card {
  --text: #eaecef;
  --text-muted: #c2d5ed;
  --text-dim: #a9c1df;
  --text-blue: #63c5ff;
  --border: rgba(108, 164, 221, 0.28);
}

#journey .journey-eyebrow,
#journey .journey-job-footer {
  color: #a9c1df;
}

#journey .journey-org {
  color: #c2d5ed;
}

#journey .journey-suborg {
  color: #a9c1df;
}

#projects .project-intro {
  color: var(--text-muted);
}

#contact .contact-links .social-link {
  color: #c2d5ed;
}

#contact .contact-links .social-link:hover {
  color: #f3f4f6;
}

@media (max-width: 720px) {
  #Home,
  #about,
  #journey,
  #skills,
  #certs,
  #brands,
  #projects,
  #contact {
    background-attachment: scroll;
  }
}

/* Extend section backgrounds across the viewport, beyond the content wrapper. */
section {
  position: relative;
  isolation: isolate;
  background: none;
}

section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background-color: #06102d;
  background-image: var(--section-background);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

#Home {
  --section-background: url("images/background-home.png");
}

#about,
#skills,
#certs,
#brands {
  --section-background: url("images/background-elegant-dark.jpg");
}

#journey,
#projects,
#contact {
  --section-background: url("images/background-abstract-blue.png");
}

#Home,
#about,
#journey,
#skills,
#certs,
#brands,
#projects,
#contact {
  background: transparent;
}

/* ---------- REQUESTED VISUAL REVISIONS ---------- */
#Home .hero-photo {
  display: none;
}

#Home .hero-grid {
  grid-template-columns: 1fr;
}

#skills,
#certs,
#brands {
  --section-background: url("images/background-abstract-blue.png");
  --text: #092b50;
  --text-muted: #244a70;
  --text-dim: #41698f;
  --text-blue: #087cc1;
  --border: rgba(71, 125, 177, 0.3);
  --border-soft: rgba(71, 125, 177, 0.2);
}

#skills {
  padding-top: 116px;
}

#skills .sec-head h2,
#certs .sec-head h2,
#brands .sec-head h2 {
  color: #092b50;
}

#skills .skill-chip,
#certs .cert-badge {
  --text: #eaecef;
  --text-muted: #c2d5ed;
  --text-dim: #a9c1df;
  --text-blue: #63c5ff;
  --border: rgba(108, 164, 221, 0.28);
}

#projects {
  --section-background: url("images/background-elegant-dark.jpg");
  --text: #eaecef;
  --text-muted: #c2d5ed;
  --text-dim: #a9c1df;
  --text-blue: #63c5ff;
  --border: rgba(108, 164, 221, 0.28);
}

#projects > .project-heading h2 {
  color: var(--text);
}

#projects .project-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

#projects .project-intro {
  max-width: 760px;
}

#projects .project-intro {
  color: var(--text-muted);
}

footer.wrap {
  position: relative;
  isolation: isolate;
  --text-dim: #244a70;
  color: var(--text-dim);
}

footer.wrap::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background-color: #eaf5ff;
  background-image: url("images/background-minimal-blue-white.png");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

/* ---------- ADAPTIVE TOP NAVIGATION ---------- */
header.nav {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

header.nav.nav-tone-light {
  background: rgba(241, 248, 255, 0.9);
  border-bottom-color: rgba(71, 125, 177, 0.2);
}

.nav.nav-tone-light .nav-logo {
  color: #092b50;
}

.nav.nav-tone-light .nav-logo span {
  color: #087cc1;
}

.nav.nav-tone-light nav.links {
  border-color: rgba(71, 125, 177, 0.2);
  background: rgba(255, 255, 255, 0.74);
}

.nav.nav-tone-light nav.links a {
  color: #58728d;
}

.nav.nav-tone-light nav.links a:hover,
.nav.nav-tone-light nav.links a:focus-visible {
  color: #075a9c;
  background: rgba(213, 234, 252, 0.8);
}

.nav.nav-tone-light nav.links a.active {
  color: #fff;
  background: #1688ed;
}

.nav.nav-tone-light nav.links a:focus-visible {
  outline-color: #087cc1;
}

nav.links a.active:focus-visible {
  outline: none;
}

/* Keep consecutive Abstract Blue sections visually continuous. */
#journey,
#skills,
#certs {
  border-bottom: 0;
}

section::before {
  background-attachment: fixed;
}

/* ---------- CURRENT SECTION BACKGROUND MAP ---------- */
#Home,
#journey,
#skills,
#certs,
#brands,
#contact {
  --section-background: url("images/background-minimal-blue-white.png");
}

#about,
#projects {
  --section-background: url("images/background-navy-blue.png");
}

#Home::before,
#about::before,
#journey::before,
#skills::before,
#projects::before,
#contact::before {
  top: calc(-1 * var(--nav-height) - env(safe-area-inset-top, 0px));
}

#Home,
#about,
#journey,
#skills,
#projects {
  min-height: calc(100vh + var(--nav-height));
}

@supports (height: 100svh) {
  #Home,
  #about,
  #journey,
  #skills,
  #projects {
    min-height: calc(100svh + var(--nav-height));
  }
}

/* Keep the menu capsule while removing the full-width header rectangle. */
header.nav,
header.nav.nav-tone-light {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Share one continuous background across Certifications and Brand. */
.certs-brands-group {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  min-height: calc(100vh + var(--nav-height));
  padding: 0;
  --section-background: url("images/background-minimal-blue-white.png");
  border-bottom: 1px solid rgba(71, 125, 177, 0.2);
}

@supports (height: 100svh) {
  .certs-brands-group {
    min-height: calc(100svh + var(--nav-height));
  }
}

.certs-brands-group::before {
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--nav-height) - env(safe-area-inset-top, 0px));
  bottom: 0;
  left: 50%;
  width: 100vw;
  background-color: #eaf5ff;
  background-image: var(--section-background);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.certs-brands-group > section {
  flex: 0 0 auto;
  width: 100%;
  background: transparent;
  border-bottom: 0;
}

.certs-brands-group > section::before {
  display: none;
}

.certs-brands-group > #certs {
  margin: 0;
  padding: 12px 0 0;
}

.certs-brands-group > #brands {
  margin: 0;
  padding: 0 0 12px;
}

.certs-brands-group .sec-head {
  margin-bottom: 24px;
}

@media (min-width: 861px) {
  .certs-brands-group > #certs,
  .certs-brands-group > #brands {
    transform: translateY(-80px);
  }
}

#projects {
  padding-bottom: 160px;
}

#contact {
  min-height: auto;
}

#contact .contact-panel {
  margin-top: 32px;
}

/* ---------- LANGUAGE SWITCH ---------- */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-right: 48px;
  padding: 4px;
  border: 1px solid rgba(71, 125, 177, 0.2);
  border-radius: 999px;
  background: rgba(240, 247, 253, 0.8);
}

.language-switch button {
  min-width: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #52677e;
  font: 700 14px/1 var(--font-body);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.language-switch button[aria-pressed="true"] {
  background: #fff;
  color: #092b50;
  box-shadow: 0 2px 6px rgba(20, 54, 86, 0.14);
}

.language-switch button:focus-visible {
  outline: 2px solid #087cc1;
  outline-offset: 2px;
}

.nav:not(.nav-tone-light) .language-switch {
  border-color: rgba(123, 158, 190, 0.2);
  background: rgba(16, 26, 41, 0.9);
}

.nav:not(.nav-tone-light) .language-switch button {
  color: #a7b6c9;
}

.nav:not(.nav-tone-light) .language-switch button[aria-pressed="true"] {
  background: #273342;
  color: #f4f7fb;
  box-shadow: none;
}

@media (max-width: 900px) {
  .language-switch {
    margin-right: 0;
  }
}

@media (max-width: 720px) {
  .language-switch button {
    min-width: 34px;
    padding: 7px 8px;
    font-size: 13px;
  }
}

/* ---------- JOURNEY TIMELINE AND PHOTO GALLERY ---------- */
#journey {
  left: 50%;
  width: min(1080px, calc(100vw - 48px));
  margin-left: 0;
  padding-top: 80px;
  transform: translateX(-50%);
}

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}

.journey-heading {
  display: block;
  margin-bottom: 28px;
}

.journey-heading .journey-eyebrow {
  margin-bottom: 8px;
  color: #1688ed;
  font-size: 12px;
}

.journey-heading h2 {
  margin-bottom: 12px;
  color: #092b50;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.journey-intro {
  max-width: 620px;
  color: #41698f;
  line-height: 1.65;
}

.journey-timeline {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 28px;
}

.journey-timeline::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 7px;
  width: 2px;
  background: #8bbfff;
  content: "";
}

.journey-timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.journey-timeline-item::before {
  position: absolute;
  top: 50%;
  left: -27px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1688ed;
  box-shadow: 0 0 0 2px #8bbfff;
  content: "";
  transform: translateY(-50%);
}

.journey-timeline-item .journey-logo {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  padding: 6px;
  border: 1px solid rgba(71, 125, 177, 0.16);
  border-radius: 14px;
  background: #fff;
}

.journey-timeline-item .journey-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.journey-timeline-item .journey-date {
  margin: 0 0 5px;
  color: #1688ed;
  font-size: 13px;
}

.journey-timeline-item .journey-role {
  margin: 0 0 4px;
  color: #092b50;
  font-size: 17px;
}

.journey-timeline-item .journey-org {
  color: #58728d;
  font-size: 14px;
}

.journey-gallery {
  width: 100%;
  max-width: 320px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(71, 125, 177, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(9, 43, 80, 0.12);
}

.journey-gallery-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: linear-gradient(145deg, #d9edff, #f7fbff 55%, #b7dcff);
}

.journey-gallery-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.journey-gallery-image-wrap img.journey-photo-two {
  object-position: 47% center;
}

.journey-gallery-image-wrap.is-missing img {
  visibility: hidden;
}

.journey-gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 43, 80, 0.66);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.journey-gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  min-height: 86px;
  padding: 14px 16px;
  border-top: 1px solid rgba(71, 125, 177, 0.14);
}

.journey-gallery-caption p {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 210px;
  color: #092b50;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.journey-gallery-controls {
  display: flex;
  gap: 8px;
}

.journey-gallery-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #1688ed;
  cursor: pointer;
  font: inherit;
  font-size: 21px;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.journey-gallery-controls button:hover {
  background: #0872d1;
  transform: translateY(-2px);
}

.journey-gallery-controls button:focus-visible {
  outline: 3px solid rgba(22, 136, 237, 0.35);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  #journey {
    left: 50%;
    width: calc(100vw - 40px);
    margin-left: 0;
    transform: translateX(-50%);
  }

  .journey-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .journey-gallery {
    max-width: 320px;
    justify-self: center;
  }
}

@media (max-width: 480px) {
  #journey {
    left: 50%;
    width: calc(100vw - 32px);
    margin-left: 0;
    transform: translateX(-50%);
  }

  .journey-timeline {
    gap: 18px;
  }

  .journey-timeline-item {
    align-items: flex-start;
    gap: 12px;
  }

  .journey-timeline-item .journey-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .journey-timeline-item .journey-role {
    font-size: 15px;
  }

  .journey-gallery-caption {
    padding: 14px;
  }
}

/* Home hero specialties carousel and the newly supplied blue wave background. */
#Home {
  --section-background: url("images/Minimalist Icy Blue Wave.png");
  --text: #092b50;
  --text-muted: #244a70;
  --text-blue: #087cc1;
}

#Home .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 5vw, 76px);
}

#Home .hero-copy {
  min-width: 0;
}

#Home .hero-service-wheel {
  position: relative;
  justify-self: end;
  width: min(100%, 370px);
  height: 340px;
  color: #092b50;
}

#Home .hero-service-track {
  position: absolute;
  inset: 48px 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

#Home .hero-service-item {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 16px 48px 16px 24px;
  border: 1px solid rgba(74, 132, 190, 0.22);
  border-radius: 999px;
  color: #244a70;
  background: rgba(255, 255, 255, 0.48);
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.84);
  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    background-color 0.45s ease,
    border-color 0.45s ease,
    color 0.45s ease;
}

#Home .hero-service-item.is-active {
  z-index: 2;
  border-color: rgba(92, 132, 173, 0.52);
  color: #fff;
  background: rgba(13, 46, 82, 0.78);
  box-shadow: 0 14px 34px rgba(12, 55, 105, 0.16);
  font-size: 19px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#Home .hero-service-item.is-active::after {
  position: absolute;
  right: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  content: "";
}

#Home .hero-service-item.is-before,
#Home .hero-service-item.is-after {
  opacity: 0.52;
  transform: translate(-50%, -50%) scale(0.84);
}

#Home .hero-service-item.is-before {
  transform: translate(-50%, calc(-50% - 92px)) scale(0.84);
}

#Home .hero-service-item.is-after {
  transform: translate(-50%, calc(-50% + 92px)) scale(0.84);
}

#Home .hero-service-item.is-hidden {
  opacity: 0;
}

#Home .hero-service-arrow {
  position: absolute;
  z-index: 3;
  left: 50%;
  display: grid;
  width: 42px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #315a82;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0;
  transform: translateX(-50%);
}

#Home .hero-service-arrow::before {
  color: currentColor;
  font-size: 25px;
  line-height: 1;
}

#Home .hero-service-arrow:hover,
#Home .hero-service-arrow:focus-visible {
  color: #087cc1;
}

#Home .hero-service-arrow:focus-visible {
  outline: 2px solid #087cc1;
  outline-offset: 2px;
}

#Home .hero-service-up {
  top: 0;
}

#Home .hero-service-up::before {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: translateY(3px) rotate(45deg);
}

#Home .hero-service-down {
  bottom: 0;
}

#Home .hero-service-down::before {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-3px) rotate(45deg);
}

@media (max-width: 860px) {
  #Home .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  #Home .hero-service-wheel {
    justify-self: center;
    width: min(370px, 100%);
    height: 270px;
  }

  #Home .hero-service-track {
    inset: 38px 0;
  }

  #Home .hero-service-item.is-before {
    transform: translate(-50%, calc(-50% - 72px)) scale(0.82);
  }

  #Home .hero-service-item.is-after {
    transform: translate(-50%, calc(-50% + 72px)) scale(0.82);
  }
}

@media (max-width: 480px) {
  #Home .hero-service-wheel {
    height: 250px;
  }

  #Home .hero-service-item {
    min-height: 66px;
    font-size: 14px;
  }

  #Home .hero-service-item.is-active {
    font-size: 17px;
  }
}

/* Use a clean white canvas for Journey and Skills. */
#journey,
#skills {
  --section-background: none;
  background-color: #fff;
}

#journey::before,
#skills::before {
  background-color: #fff;
  background-image: none;
}

#skills {
  background-color: #f4f8fc;
}

#skills::before {
  background-color: #f4f8fc;
}

.certs-brands-group {
  --section-background: none;
  background-color: #fff;
}

.certs-brands-group::before {
  background-color: #fff;
  background-image: none;
}

/* Brand logo marquee: the repeated sets make the rightward loop seamless. */
#brands .brand-strip {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 6px 0 12px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

#brands .brand-track {
  display: flex;
  width: max-content;
  animation: brand-marquee-right 26s linear infinite;
  will-change: transform;
}

#brands .brand-set {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding-right: 12px;
}

#brands .brand-strip:hover .brand-track,
#brands .brand-strip:focus-within .brand-track {
  animation-play-state: paused;
}

#brands .brand-tag {
  width: 150px;
  height: 72px;
  flex: 0 0 150px;
  border-radius: 10px;
}

@keyframes brand-marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  #brands .brand-tag {
    width: 138px;
    height: 68px;
    flex-basis: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #brands .brand-track {
    animation: none;
  }
}

/* Match the navigation capsule's hover and pressed states on requested items. */
#Home .hero-actions .btn,
#Home .social-row .social-circle,
#about .about-centered > .btn,
#skills .skill-chip,
#certs .cert-badge,
#contact .contact-links .social-link {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

#Home .hero-actions .btn:hover,
#Home .hero-actions .btn:focus-visible,
#Home .social-row .social-circle:hover,
#Home .social-row .social-circle:focus-visible,
#about .about-centered > .btn:hover,
#about .about-centered > .btn:focus-visible,
#skills .skill-chip:hover,
#skills .skill-chip:focus-visible,
#certs .cert-badge:hover,
#certs .cert-badge:focus-visible,
#contact .contact-links .social-link:hover,
#contact .contact-links .social-link:focus-visible {
  border-color: rgba(71, 125, 177, 0.28);
  color: #075a9c;
  background-color: rgba(213, 234, 252, 0.88);
  box-shadow: none;
  transform: none;
}

#skills .skill-chip:hover .skill-label,
#skills .skill-chip:focus-visible .skill-label,
#certs .cert-badge:hover .cert-name,
#certs .cert-badge:hover .cert-year,
#certs .cert-badge:focus-visible .cert-name,
#certs .cert-badge:focus-visible .cert-year {
  color: #075a9c;
}

#Home .hero-actions .btn:active,
#Home .social-row .social-circle:active,
#about .about-centered > .btn:active,
#skills .skill-chip:active,
#certs .cert-badge:active,
#contact .contact-links .social-link:active {
  border-color: #1688ed;
  color: #fff;
  background-color: #1688ed;
  box-shadow: 0 4px 12px rgba(22, 136, 237, 0.2);
  transform: none;
}

#skills .skill-chip:active .skill-label,
#certs .cert-badge:active .cert-name,
#certs .cert-badge:active .cert-year {
  color: #fff;
}

/* Apply only the navy-to-blue background from the supplied reference. */
#about,
#projects {
  --section-background: none;
}

#about::before,
#projects::before {
  background-color: #0c2748;
  background-image: linear-gradient(
    110deg,
    #0c2748 0%,
    #12477a 55%,
    #1678c8 100%
  );
}

/* Use neutral icon colors instead of platform brand colors. */
#Home .social-row .social-circle {
  color: #092b50;
}

#contact .contact-links .social-link-email svg,
#contact .contact-links .social-link-linkedin svg,
#contact .contact-links .social-link-instagram svg,
#contact .contact-links .social-link-whatsapp svg {
  color: #c2d5ed;
}

/* Frosted glass CTA and a blue filled My Work button, inspired by the refs. */
#Home .hero-actions .btn:first-child {
  border-color: rgba(104, 148, 190, 0.48);
  color: #092b50;
  background-color: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#Home .hero-actions .btn:first-child:hover,
#Home .hero-actions .btn:first-child:focus-visible {
  border-color: rgba(71, 125, 177, 0.6);
  color: #075a9c;
  background-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 8px 24px rgba(28, 74, 120, 0.14);
}

#Home .hero-actions .btn:last-child {
  border-color: #3b5d7d;
  color: #fff;
  background-color: #3b5d7d;
  box-shadow: 0 8px 20px rgba(35, 75, 113, 0.18);
}

#Home .hero-actions .btn:last-child:hover,
#Home .hero-actions .btn:last-child:focus-visible {
  border-color: #4b7194;
  color: #fff;
  background-color: #4b7194;
  box-shadow: 0 10px 24px rgba(35, 75, 113, 0.24);
}

#Home .hero-actions .btn:active {
  transform: scale(0.98);
}

/* Frosted glass frame around the Skills heading and its nine items. */
#skills .skills-glass-panel {
  width: min(calc(100% + 120px), 1080px);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 54px);
  border: 1px solid rgba(102, 144, 184, 0.3);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 48px rgba(30, 77, 122, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#skills .skills-glass-panel > .sec-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

#skills .skills-glass-panel > .sec-head p,
#certs .sec-head p,
#brands .sec-head p {
  max-width: 760px;
  color: #41698f;
  line-height: 1.65;
}

#certs .sec-head,
#brands .sec-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

#skills .skills-glass-panel .skills-grid {
  margin-top: 0;
}

#journey .journey-glass-panel {
  width: 100%;
  min-width: 0;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(102, 144, 184, 0.3);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 48px rgba(30, 77, 122, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#journey .journey-grid {
  transform: translateY(-36px);
}

@media (max-width: 600px) {
  #skills .skills-glass-panel {
    width: 100%;
    padding: 24px 18px;
    border-radius: 24px;
  }
}

@media (min-width: 601px) and (max-width: 860px) {
  #skills .skills-glass-panel {
    width: 100%;
  }
}

@media (max-width: 860px) {
  #journey .journey-glass-panel {
    width: 100%;
    padding: 28px 22px;
    border-radius: 26px;
  }
}
