:root {
  --navy: #10233f;
  --navy-deep: #0a172b;
  --blue: #2c7be5;
  --blue-soft: #e8f1ff;
  --ink: #1b2a41;
  --muted: #62748f;
  --line: #dce4ef;
  --surface: #ffffff;
  --soft: #f5f7fb;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background: var(--surface);
}

a {
  color: var(--blue);
}

.navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 239, 0.8);
  backdrop-filter: blur(14px);
}

.navbar-brand {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.brand-mark {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.navbar-toggler {
  border-color: var(--line);
}

.nav-link {
  color: var(--ink);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--blue);
}

.section-anchor {
  scroll-margin-top: 86px;
}

.hero-section {
  background:
    linear-gradient(135deg, rgba(10, 23, 43, 0.95), rgba(16, 35, 63, 0.9)),
    radial-gradient(circle at 80% 15%, rgba(44, 123, 229, 0.32), transparent 34%);
  color: #fff;
  min-height: 86vh;
  padding: 10rem 0 5rem;
}

.hero-section h1 {
  font-weight: 760;
  letter-spacing: 0;
  max-width: 820px;
}

.hero-copy {
  color: #dce9f8;
  font-size: 1.2rem;
  margin: 1.4rem 0 1rem;
  max-width: 680px;
}

.hero-note {
  border-left: 3px solid #8cc2ff;
  color: #f3f8ff;
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
  max-width: 720px;
  padding-left: 1rem;
}

.hero-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  margin: 0 0 0 auto;
  max-width: 390px;
  overflow: hidden;
}

.hero-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.78rem 1.2rem;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1f67c4;
  border-color: #1f67c4;
}

.content-section {
  padding: 5.5rem 0;
}

.subtle-section {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section-heading.full-width {
  max-width: none;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 760;
  line-height: 1.15;
}

.lead {
  color: var(--ink);
  font-size: 1.16rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}

.cert-carousel {
  padding: 0 3.25rem 3rem;
}

.cert-slide-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

.featured-card {
  border-color: rgba(44, 123, 229, 0.45);
  box-shadow: 0 20px 45px rgba(16, 35, 63, 0.08);
}

.cert-badge {
  align-self: flex-start;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.75rem;
}

.cert-badge.muted {
  background: var(--blue-soft);
  color: var(--blue);
}

.cert-provider,
.cert-link {
  margin-top: auto;
}

.cert-provider {
  color: var(--blue);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  padding-top: 1.2rem;
  text-decoration: none;
}

.cert-provider:hover,
.cert-provider:focus {
  color: var(--blue);
  text-decoration: underline;
}

.cert-link {
  align-self: flex-start;
  color: var(--blue);
  font-weight: 800;
  padding-top: 1.2rem;
  text-decoration: none;
}

.cert-link:hover,
.cert-link:focus {
  color: #1f67c4;
  text-decoration: underline;
}

.cert-carousel .carousel-control-prev,
.cert-carousel .carousel-control-next {
  background: var(--navy);
  border-radius: 8px;
  height: 2.75rem;
  opacity: 1;
  top: calc(50% - 1.5rem);
  width: 2.75rem;
}

.cert-carousel .carousel-control-prev {
  left: 0;
}

.cert-carousel .carousel-control-next {
  right: 0;
}

.cert-carousel .carousel-control-prev-icon,
.cert-carousel .carousel-control-next-icon {
  height: 1.25rem;
  width: 1.25rem;
}

.cert-carousel .carousel-indicators {
  bottom: 0;
  margin-bottom: 0;
}

.cert-carousel .carousel-indicators [data-bs-target] {
  background-color: #b8d5fb;
  border: 0;
  border-radius: 2px;
  height: 0.5rem;
  opacity: 1;
  width: 0.5rem;
}

.cert-carousel .carousel-indicators .active {
  background-color: var(--blue);
  opacity: 1;
  width: 0.5rem;
}

.info-card h3,
.experience-card h3,
.cv-grid h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 760;
}

.info-card p,
.experience-card p,
.cv-grid p,
.cv-intro p,
.section-heading p,
.contact-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-heading p {
  font-size: 1.08rem;
  margin-top: 1rem;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.domain-tags span {
  background: var(--blue-soft);
  border: 1px solid rgba(44, 123, 229, 0.22);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0.45rem 0.8rem;
}

.experience-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
}

.experience-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 1.5rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.experience-card:hover {
  border-color: rgba(44, 123, 229, 0.45);
  box-shadow: 0 18px 40px rgba(16, 35, 63, 0.08);
  transform: translateY(-2px);
}

.experience-subtitle {
  color: var(--blue) !important;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0.45rem 0 1rem !important;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.experience-tags span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
}

.cv-section {
  background: var(--navy);
  color: #fff;
}

.cv-section h2,
.cv-section h3 {
  color: #fff;
}

.cv-intro {
  height: 100%;
  padding-right: 1rem;
}

.cv-intro p {
  color: #dce9f8;
  margin: 1rem 0 1.5rem;
}

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

.cv-grid div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1.25rem;
}

.cv-grid p {
  color: #dce9f8;
}

.contact-panel {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr minmax(260px, 380px);
}

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

.contact-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  display: block;
  font-weight: 700;
  padding: 1rem 1.1rem;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
  border-color: var(--blue);
  color: var(--blue);
}

.site-footer {
  background: var(--navy-deep);
  color: #cbd8e8;
  padding: 1.5rem 0;
}

.site-footer .container {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-policy-link {
  background: transparent;
  border: 0;
  color: #cbd8e8;
  font: inherit;
  font-weight: 400;
  padding: 0;
  text-decoration: none;
}

.footer-policy-link:hover,
.footer-policy-link:focus {
  color: #fff;
  text-decoration: none;
}

.privacy-modal {
  border: 0;
  border-radius: 8px;
}

.privacy-modal .modal-title {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 760;
}

.privacy-modal .modal-body {
  color: var(--muted);
  line-height: 1.7;
}

.privacy-modal .modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-photo {
    margin: 0;
    max-width: 340px;
  }

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

  .cert-card {
    min-height: 0;
  }

  .experience-card {
    min-height: 0;
  }

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

@media (max-width: 767.98px) {
  .content-section {
    padding: 4rem 0;
  }

  .cert-carousel {
    padding: 0 0 3rem;
  }

  .cert-carousel .carousel-control-prev,
  .cert-carousel .carousel-control-next {
    top: auto;
    bottom: 0;
  }

  .cert-carousel .carousel-control-prev {
    left: 0;
  }

  .cert-carousel .carousel-control-next {
    right: 0;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .cv-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    flex-direction: column;
  }

}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2.45rem;
  }
}
