:root {
  --navy: #062233;
  --navy-2: #0b3144;
  --teal: #0e8f8f;
  --teal-dark: #096f72;
  --green: #54b478;
  --gold: #d9a441;
  --ink: #102a36;
  --muted: #5f7079;
  --line: #dfe9ed;
  --soft: #f4f8f9;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(6, 34, 51, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  background: var(--white);
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

.navbar {
  padding: 0.95rem 0;
  background: rgba(6, 34, 51, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  color: var(--white);
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--white);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.94rem;
  padding-inline: 0.7rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--white);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.18);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:focus-visible,
.nav-link:focus-visible,
.navbar-brand:focus-visible,
.filter-btn:focus-visible,
.platform-item:focus-visible,
.contact-list a:focus-visible,
.footer-links a:focus-visible,
.back-to-top:focus-visible,
.form-control:focus-visible {
  outline: 3px solid rgba(84, 180, 120, 0.72);
  outline-offset: 3px;
}

.btn-accent {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.btn-accent:hover,
.btn-accent:focus {
  color: var(--white);
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-top: 76px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 20%, rgba(14, 143, 143, 0.2), transparent 34%),
    radial-gradient(circle at 16% 78%, rgba(84, 180, 120, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(6, 34, 51, 0.99) 0%, rgba(6, 34, 51, 0.96) 54%, rgba(7, 48, 65, 0.94) 100%);
}

.hero-section .min-vh-100 {
  min-height: calc(100vh - 76px) !important;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  background: #062233;
  mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 100%);
  pointer-events: none;
}

.hero-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 34, 51, 0.96) 0%, rgba(6, 34, 51, 0.74) 45%, rgba(6, 34, 51, 0.5) 100%),
    radial-gradient(circle at 80% 22%, rgba(14, 143, 143, 0.28), transparent 34%),
    radial-gradient(circle at 18% 76%, rgba(84, 180, 120, 0.16), transparent 32%);
}

.hero-map .leaflet-control-container {
  display: none;
}

.hero-map .leaflet-tile {
  filter: saturate(0.72) contrast(1.08) brightness(0.72);
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-section h1 {
  max-width: 880px;
  font-size: clamp(2.7rem, 5.4vw, 5.05rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: #d7f2ef;
  font-weight: 700;
  max-width: 900px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  max-width: 820px;
  font-size: 1.08rem;
  margin-top: 1.25rem;
}

.hero-founder {
  color: #bfeee3;
  font-weight: 800;
  margin: 0.85rem 0 0;
}

.hero-founder a {
  color: #bfeee3;
  text-decoration: underline;
  text-decoration-color: rgba(191, 238, 227, 0.45);
  text-underline-offset: 4px;
}

.hero-founder a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics div {
  padding: 1.2rem;
  background: rgba(6, 34, 51, 0.38);
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1;
  color: var(--white);
}

.hero-metrics span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.profile-stage {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.profile-photo {
  width: min(82vw, 390px);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.32));
}

.map-console {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(90%, 370px);
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.console-top span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--teal);
}

.console-top span:nth-child(2) {
  background: var(--green);
}

.console-top span:nth-child(3) {
  background: var(--gold);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.console-card {
  padding: 0.85rem;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.console-card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.console-grid small {
  color: var(--muted);
  display: block;
  font-weight: 700;
}

.console-grid strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.section-pad {
  padding: 6.5rem 0;
}

.bg-soft {
  background: var(--soft);
}

.bg-navy {
  background: var(--navy);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.section-heading h2,
.about-section h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 850;
  margin: 0;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.section-heading-light p {
  color: rgba(255, 255, 255, 0.74);
}

.lead-text {
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 650;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.about-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(14, 143, 143, 0.18);
  color: var(--teal-dark);
  background: rgba(14, 143, 143, 0.08);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 750;
}

.platform-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.platform-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 96px;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 34, 51, 0.06);
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.platform-item:hover {
  color: var(--ink);
  border-color: rgba(14, 143, 143, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(6, 34, 51, 0.09);
}

.platform-item i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
}

.platform-item strong,
.platform-item small {
  display: block;
}

.platform-item strong {
  font-weight: 850;
}

.platform-item small {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.gisittools-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(14, 143, 143, 0.22), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(84, 180, 120, 0.14), transparent 32%),
    linear-gradient(135deg, #062233 0%, #0a3142 58%, #041823 100%);
}

.gisittools-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}

.gisittools-section .container {
  position: relative;
  z-index: 1;
}

.gisittools-section .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.gisit-card,
.tool-card {
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  color: var(--ink);
}

.gisit-card {
  display: block;
  padding: 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gisit-card:hover {
  color: var(--ink);
  border-color: rgba(84, 180, 120, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.gisit-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.gisit-badge,
.tool-card-top span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(14, 143, 143, 0.1);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gisit-card h3,
.tool-card h3 {
  font-size: 1.12rem;
  font-weight: 850;
  margin: 0.85rem 0 0.7rem;
}

.gisit-card p,
.tool-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.gisit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal-dark);
  font-weight: 850;
}

.featured-tools-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3.4rem 0 1.5rem;
}

.featured-tools-header h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.12;
  font-weight: 850;
  margin: 0;
}

.tool-card {
  padding: 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(84, 180, 120, 0.48);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.tool-card-top i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-size: 1.15rem;
}

.skill-card,
.service-card,
.education-card,
.certificate-card,
.project-card,
.featured-card {
  height: 100%;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(6, 34, 51, 0.055);
}

.skill-card,
.service-card,
.education-card {
  padding: 1.45rem;
}

.skill-card i,
.service-card i,
.education-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  margin-bottom: 1.1rem;
  font-size: 1.25rem;
}

.skill-card h3,
.service-card h3,
.education-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-list span {
  padding: 0.28rem 0.58rem;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.timeline {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 4.2rem;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 0.6rem;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--teal);
  border: 5px solid var(--white);
  box-shadow: 0 0 0 1px var(--teal);
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.duration {
  color: var(--teal-dark);
  font-size: 0.83rem;
  font-weight: 800;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 850;
  margin: 0.35rem 0 0;
}

.timeline-content h4 {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0.2rem 0 0.85rem;
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.experience-landscape {
  max-width: none;
  padding: 1.2rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(6, 34, 51, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(6, 34, 51, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f3fbfb 100%);
  background-size: 64px 64px, 64px 64px, auto;
  box-shadow: 0 18px 44px rgba(6, 34, 51, 0.08);
}

.experience-landscape.timeline::before {
  display: none;
}

.experience-landscape::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: 42%;
  opacity: 0.18;
  background: linear-gradient(90deg, #0e8f8f, #54b478);
  clip-path: polygon(0 72%, 9% 52%, 18% 64%, 31% 38%, 45% 55%, 59% 30%, 75% 46%, 90% 22%, 100% 34%, 100% 100%, 0 100%);
}

.experience-landscape::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: 31%;
  opacity: 0.16;
  background: linear-gradient(90deg, #d6b25c, #0e8f8f);
  clip-path: polygon(0 82%, 14% 58%, 27% 75%, 40% 50%, 55% 66%, 69% 36%, 83% 54%, 100% 28%, 100% 100%, 0 100%);
}

.experience-scale {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 0.2rem 0.65rem;
  border-bottom: 1px solid rgba(14, 143, 143, 0.16);
}

.experience-guide {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0.9rem 0 1rem;
  padding: 0.35rem 0.62rem;
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(14, 143, 143, 0.09);
  font-size: 0.82rem;
  font-weight: 850;
}

.experience-guide i {
  margin-right: 0.32rem;
}

.experience-stage-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 0.78rem;
  min-height: 430px;
}

.experience-stage {
  flex: var(--span) 1 0;
  min-width: 0;
  padding: 0;
}

.stage-hct {
  min-width: 185px;
}

.stage-urban {
  min-width: 430px;
}

.stage-dha {
  min-width: 250px;
}

.stage-wedo {
  min-width: 240px;
}

.experience-stage::before {
  content: "";
  display: block;
  height: var(--peak);
  margin: 0 0.35rem -0.1rem;
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 12px 22px rgba(6, 34, 51, 0.12);
  clip-path: polygon(0 100%, 0 42%, 18% 30%, 36% 54%, 53% 16%, 72% 38%, 100% 6%, 100% 100%);
}

.stage-hct::before {
  background: linear-gradient(135deg, #d6b25c, #f0d98d);
}

.stage-urban::before {
  background: linear-gradient(135deg, #54b478, #0e8f8f);
}

.stage-dha::before {
  background: linear-gradient(135deg, #0e8f8f, #55c5bf);
}

.stage-wedo::before {
  background: linear-gradient(135deg, #0b6f96, #54b478);
}

.experience-stage .timeline-dot {
  display: none;
}

.experience-stage .timeline-content {
  min-height: 255px;
  padding: 1.05rem;
  border-color: rgba(14, 143, 143, 0.16);
  border-top: 5px solid var(--teal);
  background: rgba(255, 255, 255, 0.95);
}

.stage-hct .timeline-content {
  border-top-color: var(--gold);
}

.stage-urban .timeline-content {
  border-top-color: var(--green);
}

.stage-dha .timeline-content {
  border-top-color: var(--teal);
}

.stage-wedo .timeline-content {
  border-top-color: #0b6f96;
}

.experience-stage .duration {
  display: block;
  font-size: 0.73rem;
  line-height: 1.35;
}

.experience-tenure {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0.58rem 0 0.45rem;
  padding: 0.25rem 0.52rem;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(14, 143, 143, 0.1);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.stage-hct .experience-tenure {
  color: #8a6724;
  background: rgba(214, 178, 92, 0.16);
}

.stage-urban .experience-tenure {
  color: #2b7d52;
  background: rgba(84, 180, 120, 0.14);
}

.experience-stage .timeline-content h3 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.2;
}

.experience-stage .timeline-content h4 {
  font-size: 0.92rem;
}

.experience-stage .timeline-content p {
  font-size: 0.92rem;
  line-height: 1.62;
}

.stage-hct .timeline-content p {
  font-size: 0.85rem;
}

.featured-card {
  overflow: hidden;
  color: var(--white);
  background: #0b3144;
  border-color: rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: rgba(84, 180, 120, 0.52);
}

.featured-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.featured-card-body {
  padding: 1.2rem;
}

.featured-card h3 {
  font-size: 1.07rem;
  font-weight: 850;
}

.featured-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  font-size: 0.88rem;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.project-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 800;
}

.project-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(6, 34, 51, 0.12);
}

.project-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-number {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  color: var(--white);
  background: rgba(6, 34, 51, 0.86);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-weight: 850;
  font-size: 0.8rem;
}

.project-card-body {
  padding: 1.2rem;
}

.project-card h3 {
  font-size: 1.08rem;
  font-weight: 850;
  margin-bottom: 0.55rem;
}

.project-category {
  display: block;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 850;
  margin-bottom: 0.55rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.project-tags span {
  padding: 0.25rem 0.5rem;
  color: var(--muted);
  background: var(--soft);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 750;
}

.project-modal .modal-content,
.project-modal {
  border: 0;
  border-radius: 8px;
}

.modal-category {
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 850;
}

.modal-project-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.modal-body h4 {
  font-size: 1rem;
  font-weight: 850;
  margin-top: 1.25rem;
}

.modal-body ul {
  padding-left: 1.1rem;
}

.certificate-carousel {
  background: var(--navy);
  border-radius: 8px;
  padding: 1rem;
}

.certificate-carousel .carousel-item {
  text-align: center;
}

.certificate-carousel img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  margin: 0 auto;
}

.certificate-caption {
  color: var(--white);
  margin-top: 0.9rem;
  font-weight: 800;
}

.certificate-card {
  overflow: hidden;
  background: #f8fafc;
}

.certificate-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.certificate-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.certificate-card-body {
  padding: 1rem;
}

.certificate-card h3 {
  font-size: 0.98rem;
  font-weight: 850;
}

.certificate-card .btn {
  margin-top: 0.6rem;
}

.certificate-modal-img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.education-card p,
.service-card p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.education-card span {
  color: var(--teal-dark);
  font-weight: 850;
}

.education-milestone {
  position: relative;
  min-height: 420px;
  padding: 4rem 1.45rem 2.2rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(6, 34, 51, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(6, 34, 51, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f5fbfb 100%);
  background-size: 54px 54px, 54px 54px, auto;
  box-shadow: 0 16px 34px rgba(6, 34, 51, 0.07);
}

.education-milestone::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 58%;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(14, 143, 143, 0.96), rgba(84, 180, 120, 0.9)),
    #cad8de;
  box-shadow: 0 8px 18px rgba(6, 34, 51, 0.12);
  transform: rotate(-7deg);
  transform-origin: center;
}

.education-milestone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 64%, rgba(84, 180, 120, 0.14), transparent 16%),
    radial-gradient(circle at 84% 34%, rgba(14, 143, 143, 0.12), transparent 18%);
}

.education-milestone-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  min-height: 310px;
  align-items: end;
}

.education-milestone-item {
  position: relative;
  min-height: 188px;
  padding: 1.15rem 1.15rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(14, 143, 143, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(6, 34, 51, 0.075);
}

.education-step-1 {
  margin-bottom: 0;
}

.education-step-2 {
  margin-bottom: 3.25rem;
}

.education-step-3 {
  margin-bottom: 6.5rem;
}

.education-pin {
  position: absolute;
  left: 1.1rem;
  bottom: calc(100% + 0.55rem);
  width: 3px;
  height: 54px;
  border-radius: 999px;
  background: var(--teal);
}

.education-pin i {
  position: absolute;
  top: -0.18rem;
  left: -0.07rem;
  color: var(--teal);
  font-size: 1.6rem;
  line-height: 1;
}

.education-step-2 .education-pin,
.education-step-2 .education-pin i {
  background: var(--gold);
  color: var(--gold);
}

.education-step-3 .education-pin,
.education-step-3 .education-pin i {
  background: var(--green);
  color: var(--green);
}

.education-step-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.58rem;
  margin-bottom: 0.78rem;
  border-radius: 6px;
  background: rgba(14, 143, 143, 0.1);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.education-step-2 .education-step-label {
  background: rgba(214, 178, 92, 0.16);
  color: #8a6724;
}

.education-step-3 .education-step-label {
  background: rgba(84, 180, 120, 0.14);
  color: #2b7d52;
}

.education-milestone-item h3 {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.education-milestone-item p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.education-milestone-item strong {
  color: var(--teal-dark);
  font-size: 0.94rem;
  font-weight: 900;
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 143, 143, 0.2), transparent 30%),
    radial-gradient(circle at 88% 74%, rgba(84, 180, 120, 0.12), transparent 30%),
    linear-gradient(135deg, #062233 0%, #0a3244 58%, #05202f 100%);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-section .row {
  align-items: center;
}

.contact-section h2 {
  max-width: 520px;
  font-size: clamp(2.15rem, 3.2vw, 3rem);
  line-height: 1.05;
}

.contact-section p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.contact-list a {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--white);
  font-weight: 700;
}

.contact-list i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #bfeee3;
}

.contact-form {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-label {
  font-weight: 800;
}

.form-control {
  border-radius: 8px;
  border-color: var(--line);
  min-height: 46px;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(14, 143, 143, 0.14);
}

.form-note {
  color: var(--muted);
  margin-left: 0.75rem;
  font-size: 0.9rem;
}

.site-footer {
  padding: 1.4rem 0;
  color: rgba(255, 255, 255, 0.76);
  background: #041823;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--white);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 1030;
}

.back-to-top.show {
  display: grid;
}

@media (max-width: 1199.98px) {
  .experience-stage-row {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .experience-stage {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: stretch;
    min-width: 0;
  }

  .experience-stage::before {
    height: auto;
    min-height: 100%;
    margin: 0;
    border-radius: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 52% 86%, 30% 100%, 0 82%);
  }

  .experience-stage .timeline-content {
    min-height: auto;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 5rem;
  }

  .profile-stage {
    min-height: auto;
    justify-content: start;
    padding-bottom: 2rem;
  }

  .map-console {
    width: min(100%, 420px);
    margin: 1rem 0 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 1rem;
  }

  .project-toolbar {
    display: block;
  }

  .project-count {
    margin-top: 1rem;
  }

  .platform-row {
    grid-template-columns: 1fr;
  }

  .featured-tools-header {
    display: block;
  }

  .featured-tools-header .btn {
    margin-top: 1rem;
  }

  .education-milestone {
    min-height: auto;
    padding: 1.45rem;
  }

  .education-milestone::before {
    left: 2.2rem;
    right: auto;
    top: 2rem;
    bottom: 2rem;
    width: 8px;
    height: auto;
    transform: none;
  }

  .education-milestone-list {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1rem;
    padding-left: 2.5rem;
  }

  .education-step-1,
  .education-step-2,
  .education-step-3 {
    margin-bottom: 0;
  }

  .education-pin {
    left: -2.45rem;
    top: 1.45rem;
    bottom: auto;
    width: 2.2rem;
    height: 3px;
  }

  .education-pin i {
    top: -0.7rem;
    left: -0.24rem;
    transform: rotate(90deg);
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .hero-section h1 {
    font-size: clamp(2.6rem, 4.8vw, 4.55rem);
  }

  .hero-copy {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .hero-actions {
    margin-top: 1.45rem;
  }

  .hero-metrics {
    margin-top: 1.45rem;
  }

  .hero-metrics div {
    padding: 0.95rem;
  }

  .profile-stage {
    min-height: 540px;
  }

  .profile-photo {
    width: 330px;
    height: 350px;
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 2.65rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 100%;
    height: auto;
    max-height: 440px;
  }

  .map-console {
    width: 100%;
    margin: 1rem 0 0;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .platform-item {
    min-height: auto;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 2.8rem;
  }

  .timeline-dot {
    left: 2px;
  }

  .experience-landscape {
    padding: 1rem;
  }

  .experience-scale {
    display: none;
  }

  .experience-guide {
    margin-top: 0;
  }

  .experience-stage {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .experience-stage .timeline-content h3 {
    font-size: 1rem;
  }

  .experience-stage .timeline-content p {
    font-size: 0.88rem;
  }

  .form-note {
    display: block;
    margin: 0.75rem 0 0;
  }

  .education-milestone {
    padding: 1.25rem;
  }

  .education-milestone-list {
    padding-left: 2.15rem;
  }

  .education-milestone-item {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
