/* Professional typography overrides for navbar brand and hero title */
html, body {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.navbar-brand {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
}

.section-dropdown {
  margin-left: 0;
}

.nav-actions {
  gap: 0.7rem;
}

.section-dropdown .section-dropdown-toggle {
  white-space: nowrap;
  min-width: 10.75rem;
  padding: 0.8rem 1.25rem;
  border-width: 2px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.18);
  opacity: 1;
}

.section-dropdown .section-dropdown-toggle:hover,
.section-dropdown .section-dropdown-toggle:focus {
  background-color: #ffffff;
  color: #0b1220 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.section-dropdown .section-dropdown-toggle:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.section-dropdown .dropdown-menu {
  min-width: 14rem;
  margin-top: 0.55rem;
}

.theme-toggle-button {
  white-space: nowrap;
  min-width: 10.25rem;
  padding: 0.8rem 1.15rem;
  border-width: 2px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.18);
}

.theme-toggle-button:hover,
.theme-toggle-button:focus {
  background-color: #ffffff;
  color: #0b1220 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.theme-toggle-button:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .section-dropdown {
    margin-top: 0.5rem;
  }

  .section-dropdown .section-dropdown-toggle {
    width: 100%;
  }

  .theme-toggle-button {
    width: 100%;
  }
}

header.masthead .intro-heading,
header.masthead .intro-heading p,
header.masthead .intro-lead-in,
header.masthead .intro-lead-in p {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

header.masthead .intro-heading p,
header.masthead .intro-lead-in p {
  margin-bottom: 0;
}

header.masthead .intro-heading,
header.masthead .intro-heading p {
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: none;
}

section.page-section[id],
header.masthead {
  scroll-margin-top: 90px;
}

header.masthead {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

header.masthead.masthead--video {
  background-image: none !important;
  background-color: #0b1120;
}

header.masthead .container {
  position: relative;
  z-index: 2;
}

header.masthead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.28) 55%, rgba(15, 23, 42, 0.36) 100%);
  pointer-events: none;
  z-index: 1;
}

header.masthead video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

header.masthead .intro-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.18) 0%, rgba(15, 23, 42, 0.24) 100%);
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(56, 189, 248, 0.04);
  backdrop-filter: blur(4px);
}

header.masthead .intro-lead-in {
  margin-bottom: 0.55rem;
  color: rgba(219, 234, 254, 0.82);
  font-size: 1rem;
  line-height: 1.3;
}

header.masthead .intro-heading {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.45rem, 3.4vw, 2.65rem);
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(30, 64, 175, 0.16), 0 2px 10px rgba(0, 0, 0, 0.18);
}

header.masthead .btn {
  margin-top: 1.1rem;
}

.about-profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid #38bdf8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
