/* Custom overrides — extracted from inline styles in index.html */

/* Sidebar role subtitle under the name */
.profile-role {
  text-align: center;
  font-size: 14px;
}

/* Horizontal inset applied to content sections */
.section-inset {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* About section spacing */
.section-about {
  padding-top: 100px !important;
  padding-bottom: 0 !important;
}

/* Work & Academics extra bottom spacing */
.section-work {
  padding-bottom: 30px !important;
}

/* Pull a container up under its section title */
.container-pull-up {
  margin-top: -40px;
}

/* Muted resume column headings (Work / Academics) */
.resume-title-muted {
  color: #4f4d4d;
}

/* Tighter spacing between resume/list items */
.resume-item-tight {
  padding-bottom: 5px;
}

/* Secondary detail line under an item title */
.resume-detail {
  font-size: 14px;
  margin-top: -10px;
}

/* Justified body text */
.text-justify {
  text-align: justify;
}

/* Pill-style project/link badge */
.link-badge {
  display: inline-block;
  max-width: 100%;
  background-color: #f0f4ff;
  color: #004080;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Inline link that inherits surrounding text color */
.link-plain {
  color: inherit;
  text-decoration: none;
}

/* Let long email addresses wrap inside the narrow contact column */
.contact .info-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Embedded map iframe */
.map-embed {
  border: 0;
}

/* Cap the hero name so it scales down and never overflows */
.hero h2 {
  font-size: clamp(2.5rem, 6vw, 64px);
  letter-spacing: 0.5px;
  overflow-wrap: break-word;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 26px);
}

/* ---------- Dark mode ---------- */
html.dark-mode {
  --background-color: #10141a;
  --default-color: #d6d8dc;
  --heading-color: #ffffff;
  --surface-color: #1a2029;
  --contrast-color: #ffffff;
}

/* Light-toned sections get a dark surface too */
html.dark-mode .light-background {
  --background-color: #161b22;
  --surface-color: #1a2029;
}

/* Soften the pill badge for dark backgrounds */
html.dark-mode .link-badge {
  background-color: #1e3a5f;
  color: #9ec5ff;
}

/* Floating dark-mode toggle */
.theme-toggle {
  position: fixed;
  bottom: 70px;
  right: 15px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.08);
}

.theme-toggle .bi-sun-fill {
  display: none;
}

html.dark-mode .theme-toggle .bi-moon-stars-fill {
  display: none;
}

html.dark-mode .theme-toggle .bi-sun-fill {
  display: inline-block;
}
