html {
  scroll-behavior: smooth;
}

:root {
  --bs-body-bg: #fff;
  /* Light mode background color */
  --bs-link-color: #002147;
  --bs-link-hover-color: #75B2DD;
  --bs-buttons-bg: #002147;
  --bs-body-font-family: 'Inter', sans-serif;
}


/* Apply the background color and font */
body {
  background-color: var(--bs-body-bg);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Desktop Navbar ===== */

header {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(117, 178, 221, 0.10);
  transition: box-shadow 0.35s ease, background-color 0.35s ease, padding 0.35s ease;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Gradient accent line at top of navbar */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #75B2DD, #002147, #D0A627);
  z-index: 1;
}

header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 33, 71, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Compact header on scroll */
header.header-compact {
  padding-top: 0;
  padding-bottom: 0;
}

header.header-compact .navbar-brand img {
  width: 120px;
}

.navbar-brand * {
  transition: filter 0.25s ease;
}

.navbar-brand:hover * {
  filter: drop-shadow(0 0 6px rgba(117, 178, 221, 0.35));
}

.input-group-text {
  background-color: var(--bs-body-bg) !important;
  /* Match the body's background color */
}



.form-check-input {
  margin-right: 10px;
  margin-bottom: 2px;
}

.form-check-input:checked {
  background-color: #75b2dd;
  border-color: #75b2dd;
}

/* ===== Nav Links (Desktop) ===== */

.nav-pills {
  --bs-nav-pills-link-active-bg: transparent;
  gap: 0.25rem;
}

.nav-pills .nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-pills .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2.5px;
  border-radius: 2px;
  background: #002147;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pills .nav-link:hover {
  color: #002147;
  background-color: rgba(117, 178, 221, 0.08);
}

.nav-pills .nav-link.active {
  color: #002147;
  background-color: transparent;
  font-weight: 700;
}

.nav-pills .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== CTA Button (Navbar) ===== */

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #002147 0%, #003366 50%, #002147 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 33, 71, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.4s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 33, 71, 0.3);
  background-position: 100% 100%;
  color: #fff;
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 33, 71, 0.2);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.nav-cta:hover svg {
  transform: translateX(2px);
}

.btn {
  --bs-btn-bg: #D0A627;
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-bg);
  --bs-btn-hover-bg: var(--bs-buttons-bg);
  --bs-btn-hover-border-color: var(--bs-buttons-bg);
}

/* ===== Hero Section Polish ===== */

@media (max-width: 991.98px) {
  .main-hero {
    padding-top: 70px;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #75B2DD 0%, #002147 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#emailSubmitButton {
  border-radius: 50px;
  padding: 0.5rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(208, 166, 39, 0.35);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
}

/* Loading state: show spinner inside button, hide "Join" text */
#emailSubmitButton .btn-loading-spinner {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: email-btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}

#emailSubmitButton.htmx-request .btn-join-text {
  visibility: hidden;
}

#emailSubmitButton.htmx-request .btn-loading-spinner {
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -0.5625rem;
  margin-top: -0.5625rem;
}

#emailSubmitButton.htmx-request {
  pointer-events: none;
}

@keyframes email-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

#emailSubmitButton:hover {
  box-shadow: 0 6px 20px rgba(208, 166, 39, 0.45);
}

#emailSubmitButton:active {
  box-shadow: 0 2px 8px rgba(208, 166, 39, 0.3);
}

#hero-p {
  color: #4a5568;
  font-size: 1.05rem;
}

#homeLayout {
  filter:
    drop-shadow(0 8px 16px rgba(0, 33, 71, 0.15)) drop-shadow(0 24px 48px rgba(0, 33, 71, 0.12)) drop-shadow(0 48px 80px rgba(0, 33, 71, 0.08));
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease, filter 0.4s ease;
}

#homeLayout:hover {
  filter:
    drop-shadow(0 12px 24px rgba(0, 33, 71, 0.2)) drop-shadow(0 32px 60px rgba(0, 33, 71, 0.15)) drop-shadow(0 56px 90px rgba(0, 33, 71, 0.1));
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg) translateY(-6px);
}

/* ===== Mobile Navbar ===== */

.navbar.bg-body-tertiary {
  background-color: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(117, 178, 221, 0.10);
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Gradient accent line for mobile too */
.navbar.bg-body-tertiary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #75B2DD, #002147, #D0A627);
  z-index: 1;
}

.navbar.bg-body-tertiary.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 33, 71, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Custom toggler styling */
.navbar-toggler {
  border: 2px solid rgba(0, 33, 71, 0.12) !important;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(117, 178, 221, 0.25);
  border-color: #75B2DD !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23002147' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Smooth collapse animation */
.navbar-collapse {
  transition: all 0.3s ease;
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 16px 16px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  box-shadow: 0 12px 32px rgba(0, 33, 71, 0.08);
}

/* Mobile nav links */
.navbar-nav .nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #002147;
  background-color: rgba(117, 178, 221, 0.08);
}

.navbar-nav .nav-link.active {
  color: #002147;
  font-weight: 700;
  background-color: rgba(117, 178, 221, 0.10);
}

.navbar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 2px;
  background: linear-gradient(180deg, #75B2DD, #002147);
}

/* Mobile CTA */
.mobile-nav-cta {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #002147, #003366);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 33, 71, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mobile-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.25);
  color: #fff;
}

@media (max-width: 575.98px) {
  #emailSubmitButton {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ===== Unified Email Input Combo ===== */

.email-input-combo {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  gap: 0.5rem;
  position: relative;
}

.email-input-combo:focus-within {
  border-color: #75B2DD;
  box-shadow: 0 0 0 4px rgba(117, 178, 221, 0.15);
}

.email-input-icon {
  display: flex;
  flex-shrink: 0;
}

.email-input-combo .form-control {
  border: none;
  box-shadow: none;
  padding: 0.5rem 0.25rem;
  background: transparent;
  font-size: 0.95rem;
}

.email-input-combo .form-control:focus {
  box-shadow: none;
}

.email-input-combo #emailSubmitButton {
  border-radius: 50px;
  padding: 0.5rem 1.6rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 5rem;
}

.email-input-combo .form-control.is-valid,
.email-input-combo .form-control.is-invalid {
  background-image: none;
  padding-right: 0.25rem;
}

@media (max-width: 575.98px) {
  .email-input-combo {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 0.5rem;
  }

  .email-input-icon {
    display: none;
  }

  .email-input-combo .form-control {
    width: 100%;
    padding: 0.5rem;
  }

  .email-input-combo #emailSubmitButton {
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* ===== Section Headers ===== */

.section-header {
  margin-bottom: 0.5rem;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #75b2dd30, rgba(0, 33, 71, 0.08));
  color: #002147;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-weight: 800;
  font-size: 2rem;
  color: #002147;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ===== Features — Bento Grid ===== */

.features-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.features-bento .feature-highlight {
  grid-column: span 2;
}

/* ===== Feature Cards ===== */

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid rgba(117, 178, 221, 0.15);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 252, 0.6));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.35s ease, transform 0.3s ease, border-color 0.35s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #75B2DD, #002147);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 36px rgba(0, 33, 71, 0.10), 0 2px 8px rgba(117, 178, 221, 0.12);
  transform: translateY(-4px);
  border-color: rgba(117, 178, 221, 0.35);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Highlight cards use horizontal layout on desktop */
.feature-highlight .feature-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

/* ===== Feature Icon Wrap ===== */

.feature-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  min-width: 3.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #002147, #75B2DD);
  background-size: 200% 200%;
  animation: feature-icon-gradient 6s ease infinite;
  box-shadow: 0 4px 14px rgba(0, 33, 71, 0.18);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 33, 71, 0.24);
}

.feature-highlight .feature-icon-wrap {
  width: 3.75rem;
  height: 3.75rem;
  min-width: 3.75rem;
  margin-bottom: 0;
}

@keyframes feature-icon-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Feature Body ===== */

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #002147;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.55;
  margin-bottom: 0;
}

.feature-highlight .feature-title {
  font-size: 1.2rem;
}

.feature-highlight .feature-desc {
  font-size: 0.92rem;
}

/* ===== Features Responsive ===== */

@media (max-width: 991.98px) {
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-bento .feature-highlight {
    grid-column: span 1;
  }
  .feature-highlight .feature-card {
    flex-direction: column;
  }
  .feature-highlight .feature-icon-wrap {
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .features-bento {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 1.35rem;
    border-radius: 14px;
  }
}/* ===== Interactive Parking Lots Map ===== */

#lots-map {
  height: 500px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 33, 71, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(117, 178, 221, 0.15);
}

/* Sensor highlight banner */
.sensor-highlight-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, rgba(240, 247, 252, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(117, 178, 221, 0.25);
  border-left: 4px solid #75B2DD;
  border-radius: 12px;
  padding: 0.75rem 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #002147;
  box-shadow: 0 4px 16px rgba(0, 33, 71, 0.06);
}

.sensor-star {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Filter toggle buttons */
.lots-filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.lots-filter-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #002147;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lots-filter-btn:hover {
  border-color: #75B2DD;
  background: #f0f7fc;
}

.lots-filter-btn.active {
  background: #002147;
  color: #fff;
  border-color: #002147;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.18);
}

.lots-filter-students.active {
  background: #e74c3c;
  border-color: #e74c3c;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.lots-filter-faculty.active {
  background: #D0A627;
  border-color: #D0A627;
  box-shadow: 0 4px 12px rgba(208, 166, 39, 0.3);
}

/* Legend */
.lots-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding: 0.5rem 0;
}

.lots-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #4a5568;
  font-weight: 500;
}

.lots-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Popup styling */
.lot-popup {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #002147;
}

.lot-popup strong {
  font-size: 0.95rem;
}

.lot-popup-type {
  color: #4a5568;
  font-size: 0.82rem;
}

.lot-popup-sensor {
  color: #27ae60;
  font-size: 0.8rem;
  font-weight: 600;
}

.popup-star {
  font-size: 0.85rem;
}

/* Sensor star marker on map */
.sensor-star-marker {
  background: transparent !important;
  border: none !important;
}

.sensor-star-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: sensor-star-pulse 2.5s ease-in-out infinite;
}

@keyframes sensor-star-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@media (max-width: 575.98px) {
  #lots-map {
    height: 350px;
    border-radius: 12px;
  }

  .sensor-highlight-banner {
    font-size: 0.82rem;
    padding: 0.65rem 0.9rem;
  }

  .lots-filter-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .lots-legend {
    gap: 0.75rem;
  }
}

/* ===== About Page ===== */

.about-hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  background: linear-gradient(180deg, rgba(240, 247, 252, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
}

.about-hero-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Founders */
.about-founders {
  padding: 3rem 0 2rem;
}

.founder-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border: 1px solid rgba(117, 178, 221, 0.15);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 252, 0.6));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.35s ease, transform 0.3s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #75B2DD, #002147);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.founder-card:hover {
  box-shadow: 0 16px 48px rgba(0, 33, 71, 0.10), 0 4px 12px rgba(117, 178, 221, 0.12);
  transform: translateY(-6px);
  border-color: rgba(117, 178, 221, 0.35);
}

.founder-card:hover::before {
  opacity: 1;
}

.founder-img-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(117, 178, 221, 0.25);
  box-shadow: 0 8px 24px rgba(0, 33, 71, 0.10);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover .founder-img-wrap {
  border-color: #75B2DD;
  box-shadow: 0 12px 32px rgba(0, 33, 71, 0.15);
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.founder-card:hover .founder-img {
  transform: scale(1.06);
}

.founder-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #002147;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.founder-role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #75B2DD;
}

.founder-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  color: #0a66c2;
  transition: color 0.2s ease, transform 0.2s ease;
}

.founder-linkedin:hover {
  color: #004182;
  transform: scale(1.15);
}

.founder-bio {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* FAQ */
.about-faq {
  padding: 3rem 0 2rem;
}

.about-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid rgba(0, 33, 71, 0.08);
  border-radius: 0 !important;
  margin-bottom: 0;
  overflow: hidden;
  background: transparent;
  transition: border-color 0.3s ease;
}

.about-accordion .accordion-item:last-child {
  border-bottom: none;
}

.about-accordion .accordion-item:hover {
  border-color: rgba(117, 178, 221, 0.25);
}

.about-accordion .accordion-button {
  font-weight: 600;
  color: #002147;
  font-size: 1rem;
  background: transparent;
  border-radius: 0 !important;
  padding: 1.25rem 0.25rem;
  gap: 0.5rem;
}

.about-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: #002147;
  box-shadow: none;
}

.about-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.about-accordion .accordion-button::after {
  filter: hue-rotate(190deg) brightness(0.4);
  flex-shrink: 0;
}

.about-accordion .accordion-body {
  font-size: 0.92rem;
  color: #4a5568;
  line-height: 1.7;
  padding: 0.25rem 0.25rem 1.25rem;
}

/* FAQ signup link */
.faq-signup-link {
  color: #75B2DD;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.faq-signup-link:hover {
  color: #002147;
}

/* Contact card */
.about-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #002147 0%, #003366 100%);
  color: #fff;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 33, 71, 0.20);
}

.about-contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(117, 178, 221, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-contact-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(208, 166, 39, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-contact-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(117, 178, 221, 0.2);
  margin-bottom: 1.25rem;
}

.about-contact-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-contact-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.about-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #002147;
  background: #D0A627;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(208, 166, 39, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.about-contact-btn:hover {
  box-shadow: 0 6px 22px rgba(208, 166, 39, 0.5);
  color: #002147;
}

.about-contact-btn:active {
  box-shadow: 0 2px 8px rgba(208, 166, 39, 0.3);
}

.about-contact-btn-email {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.about-contact-btn-email:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.about-contact-btn-email:active {
  background: rgba(255, 255, 255, 0.18);
}

/* ===== FAQ Question Modal ===== */

.faq-modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 33, 71, 0.20), 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.faq-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 33, 71, 0.06);
  border: none;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.faq-modal-close:hover {
  background: rgba(0, 33, 71, 0.12);
  color: #002147;
}

.faq-modal-header {
  text-align: center;
  padding: 2.25rem 2rem 0.5rem;
}

.faq-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #75B2DD, #002147);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1rem;
}

.faq-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #002147;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.faq-modal-subtitle {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.faq-modal-body {
  padding: 1.5rem 2rem 0.5rem;
}

.faq-form-group {
  margin-bottom: 1.15rem;
}

.faq-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #002147;
  margin-bottom: 0.4rem;
}

.faq-form-optional {
  font-weight: 400;
  color: #94a3b8;
}

.faq-form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: #002147;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.faq-form-input::placeholder {
  color: #94a3b8;
}

.faq-form-input:focus {
  border-color: #75B2DD;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(117, 178, 221, 0.15);
}

.faq-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.faq-modal-footer {
  padding: 0.5rem 2rem 2rem;
}

.faq-modal-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #002147;
  background: #D0A627;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(208, 166, 39, 0.30);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.faq-modal-submit:hover {
  box-shadow: 0 6px 22px rgba(208, 166, 39, 0.45);
}

.faq-modal-submit:active {
  box-shadow: 0 2px 8px rgba(208, 166, 39, 0.25);
}

#faqFeedbackMessage:not(:empty) {
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(39, 174, 96, 0.08);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.15);
}

@media (max-width: 575.98px) {
  .faq-modal-content {
    border-radius: 16px;
  }

  .faq-modal-header {
    padding: 2rem 1.5rem 0.5rem;
  }

  .faq-modal-body {
    padding: 1.25rem 1.5rem 0.5rem;
  }

  .faq-modal-footer {
    padding: 0.5rem 1.5rem 1.75rem;
  }
}

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

  .about-hero-subtitle {
    font-size: 0.95rem;
  }

  .founder-img-wrap {
    width: 110px;
    height: 110px;
  }

  .founder-card {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .about-contact-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
}

/* ===== Dark Footer ===== */

#footer {
  margin-top: auto;
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, #001333 0%, #002147 100%);
  color: rgba(255, 255, 255, 0.85);
}

#footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
  color: #fff;
  font-weight: 600;
}

.footer-link {
  color: rgba(255, 255, 255, 0.65) !important;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #75B2DD !important;
}

.footer-vr {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ===== Global Section Spacing ===== */

#howItWorks-section,
#features-section,
#lots-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* ===== Scroll Reveal Animations ===== */

.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.icon-square {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
}

.gradient-background {
  background: linear-gradient(100deg, #75b2dd50, #75B2DD80);
  background-size: 150% 150%;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.top-1 {
  animation: rotate 35s linear infinite;
  transform-origin: 13px 25px;
}

.top-2 {
  animation: rotate 30s linear infinite;
  transform-origin: 13px 25px;
}

.top-3 {
  animation: rotate 35s linear infinite;
  transform-origin: 13px 25px;
}

.bottom-1 {
  animation: rotate 30s linear infinite;
  transform-origin: 84px 93px;
}

.bottom-2 {
  animation: rotate 35s linear infinite;
  transform-origin: 84px 93px;
}

.bottom-3 {
  animation: rotate 35s linear infinite;
  transform-origin: 84px 93px;
}

.invalid-feedback,
.valid-feedback {
  display: block;
}

#emailMessage {
  margin-top: 5px;
  height: 25px;
  overflow: hidden;
}

body,
html {
  overflow-x: hidden;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@keyframes spinner {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.spinner div {
  position: absolute;
  width: 18.83335px;
  height: 18.83335px;
  border: 4px solid #75b2dd;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner 1s linear infinite;
  top: 18.83335px;
  left: 18.83335px;
  box-sizing: content-box;
  background-color: #fff;
}

.loadingio-spinner {
  width: 37.6667px;
  height: 37.6667px;
  overflow: hidden;
  background: none;
  position: absolute;
  right: 0px;
  border-radius: 25%;
  display: none;
}

.spinner {
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0;
}

.feature {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.list-group-item-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

.list-group-item-check:checked+.list-group-item {
  color: #fff;
  background-color: var(--bs-buttons-bg);
  border-color: var(--bs-buttons-bg);
  box-shadow: 0px 4px 12px rgba(82, 80, 80, 0.404);
}

.list-group-checkable .list-group-item {
  --bs-list-group-action-hover-bg: #75B2DD20;
  cursor: pointer;
}

input:not(:checked)+label:hover {
  background-color: var(--bs-list-group-action-hover-bg);
}

/* ===== How It Works — Step Cards (Desktop) ===== */

.hiw-step-card {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-left: 4px solid transparent;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.25s ease, background-color 0.25s ease;
}

.hiw-step-card:hover {
  box-shadow: 0 4px 16px rgba(0, 33, 71, 0.07);
  border-left-color: #75b2dd60;
  background-color: #f8fbfe;
}

.hiw-step-card.active {
  border-left-color: #75B2DD;
  box-shadow: 0 8px 28px rgba(0, 33, 71, 0.10);
  transform: translateX(4px);
  background: linear-gradient(135deg, #f0f7fc 0%, #fff 100%);
}

.hiw-step-card .step-icon {
  flex-shrink: 0;
}

.hiw-step-card .step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #002147;
  margin-bottom: 0.15rem;
  transition: color 0.2s ease;
}

.hiw-step-card.active .step-title {
  color: #002147;
}

.hiw-step-card .step-desc {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.45;
  margin-bottom: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.hiw-step-card.active .step-desc {
  opacity: 1;
}

.list-group-item {
  border: none;
}

/* ===== How It Works — Consistent Image Sizing ===== */

#howItWorksImg {
  width: 380px;
  max-width: 100%;
  height: 700px;
  object-fit: contain;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
  display: block;
}

#howItWorksImg.fade-out {
  opacity: 0;
}

.text-bg-primary {
  color: #fff !important;
  background-color: var(--bs-buttons-bg) !important;
}

.highlight-text {
  color: #002147;
}



/* Carousel styles */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: .6s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* ===== How It Works — Glassmorphic Mobile Captions ===== */

#howItWorksCarousel .carousel-item .carousel-caption {
  position: relative;
  right: auto;
  left: auto;
  color: #fff;
  text-align: left;
  padding: 0;
}

#howItWorksCarousel .carousel-caption .d-flex {
  background: rgba(0, 33, 71, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(117, 178, 221, 0.18);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 32px rgba(0, 33, 71, 0.18);
}



/* Custom carousel arrow colors */
#howItWorksCarousel .carousel-control-prev-icon,
#howItWorksCarousel .carousel-control-next-icon {
  filter: invert(50%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  /* Increase arrow size for larger screens */
  width: 2rem;
  height: 2rem;
}

/* Add spacing for carousel controls */
#howItWorksCarousel .carousel-control-prev,
#howItWorksCarousel .carousel-control-next {
  width: 10%;
  /* Slightly narrower than Bootstrap default */
  padding: 0 15px;
  /* Add horizontal padding */
}

#howItWorksCarousel .carousel-control-prev {
  justify-content: flex-start;
  /* Align to the left edge with padding */
}

#howItWorksCarousel .carousel-control-next {
  justify-content: flex-end;
  /* Align to the right edge with padding */
}

/* Hide arrows on smaller screens (below MD breakpoint) */
@media (max-width: 767.98px) {

  #howItWorksCarousel .carousel-control-prev,
  #howItWorksCarousel .carousel-control-next {
    display: none;
  }
}



/* Override Bootstrap's carousel fade transition */
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  opacity: 0;
  transition: opacity .6s ease-in-out;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

#howItWorksCarousel .carousel-indicators {
  margin-bottom: 0;
  position: relative;
  margin-top: 12px;
}

#howItWorksCarousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(117, 178, 221, 0.35);
  margin: 0 5px;
  border: none;
  transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

#howItWorksCarousel .carousel-indicators button.active {
  background-color: #75b2dd;
  width: 28px;
  border-radius: 50px;
}

/* Fixed height for carousel captions to prevent layout shifts */
#howItWorksCarousel .carousel-caption {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 576px) {
  #howItWorksCarousel .carousel-caption {
    min-height: 140px;
  }
}



@media (max-width: 991.98px) {
  #howItWorksCarousel {
    max-width: 100%;
    margin: 0 auto;
  }

  #howItWorksCarousel img {
    border-radius: 8px;
    max-width: 80%;
    margin: 0 auto;
  }
}

/* Add more spacing for the mobile version */
@media (max-width: 767.98px) {
  #howItWorksCarousel .carousel-caption {
    margin-bottom: 1rem !important;
  }
}

#htmx-request-spinner {
  width: 1.2rem !important;
  height: 1.2rem !important;
  border: 3px solid #75b2dd !important;
  border-top-color: transparent !important;
  border-radius: 50% !important;
  position: absolute !important;
  right: 0.5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
  display: none !important;
}

/* Legacy spinner (kept for any other HTMX forms that might use it) */
#htmx-request-spinner.show {
  display: block !important;
  animation: spinner-rotate 1s linear infinite !important;
}

@keyframes spinner-rotate {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}