html {
  scroll-behavior: smooth;
}

/* Homepage */
#home-name {
  height: 2500px;
}

/* Animation */
#home-name * {
  animation: fadeIn linear 5s;
  -webkit-animation: fadeIn linear 5s;
  -moz-animation: fadeIn linear 5s;
  -o-animation: fadeIn linear 5s;
  -ms-animation: fadeIn linear 5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-ms-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Hide navbar */
.navbar {
  background-color: #000000d2 !important;
  position: fixed;
  top: -60px;
  transition: top 0.3s;
  z-index: 1030;
}

/* Modern hamburger: three bars + animated to X when open */
.navbar-toggler {
  border: 0;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: none !important;
  width: 30px;
  height: 20px;
  position: relative;
  display: inline-block;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: transform 220ms ease, top 220ms ease, opacity 220ms ease;
}

.navbar-toggler .navbar-toggler-icon {
  background-color: #ffffff;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 7px;
}

/* When navbar is expanded, Bootstrap removes .collapsed from button */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  opacity: 1;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Another Section */
#home-feature-section {
  padding-top: 60px;
  height: 1000px;
}

body {
  background: #000000;
  color: #ffffff;
  margin-top: 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
}

ul {
  margin: 0;
}

.bg {
  background-color: #000000;
}

a,
a:link,
a:hover,
a:active {
  color: #ffffff;
}

.site-header .navbar-brand {
  color: #ffffff;
}

.site-header .navbar-brand:hover {
  color: #f0f0f0;
  transition: 120ms;
}

.site-header .navbar-nav .nav-link {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link:hover {
  color: #f0f0f0;
  transition: 120ms;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

@media (min-width: 768px) {
  #register {
    color: #000000;
    background: #ffffff;
    border-radius: 50px;
    transition: 300ms;
    width: 150px;
    text-align: center;
    margin-left: 20px;
  }

  #register:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.06) !important;
  }
}


/* About Page */
#about-card {
  padding: 50px;
}

#about-card-text {
  margin: 0 5% 5% 5%;
}

#state:active,
#state:focus,
#category:active,
#category:focus {
  border: 0px;
  box-shadow: 0 0 0 0.2rem rgba(17, 163, 216, 0.25) !important;
}

.btn-primary,
.btn-primary:active {
  background-color: #ffffff;
  color: #000000 !important;
  border: 1px solid #dcdcdc;
  border-radius: 34px;
  width: 150px;
  text-align: center;
}

.btn-primary:hover,
.btn-primary:active:hover,
.btn-primary:focus,
.btn-primary:active:focus {
  background-color: #f0f0f0 !important;
  border-color: #cfcfcf !important;
  box-shadow: 0 0 0 0.08rem rgba(255, 255, 255, 0.06) !important;
}

/* Modern Explore button */
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(90deg, #00d4ff 0%, #5b00ff 100%);
  color: #ffffff !important;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(91, 0, 255, 0.18), 0 4px 10px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  border: none;
  font-weight: 600;
  transition: transform 200ms cubic-bezier(.2, .9, .2, 1), box-shadow 200ms ease, opacity 180ms ease;
}

.btn-explore:hover,
.btn-explore:focus {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 50px rgba(91, 0, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.5);
  outline: none;
}

.btn-explore .btn-explore-text {
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.explore-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  transition: transform 300ms cubic-bezier(.2, .9, .2, 1), background 180ms ease;
}

.btn-explore:hover .explore-icon {
  transform: translateY(4px);
  background: transparent;
}

.explore-icon svg {
  stroke: #ffffff;
  width: 18px;
  height: 18px;
  display: block;
}

/* subtle bounce for the chevron to hint scroll */
.explore-icon svg {
  animation: chevron-bob 1.8s infinite ease-in-out;
}

@keyframes chevron-bob {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Hero interactive CTA (orb + text) */
.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.hero-cta-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* dark outer shell to give contrast to the white inner orb */
  /* background: linear-gradient(180deg, #050505, #0b0b0b); */
  /* box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.02); */
  cursor: pointer;
  transition: transform 260ms cubic-bezier(.2, .9, .2, 1), box-shadow 260ms ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.hero-cta-orb:focus,
.hero-cta-orb:hover {
  transform: translateY(-6px) scale(1.02);
  /* box-shadow: 0 28px 60px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.03); */
  outline: none;
}

.hero-cta-orb .orb-inner {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* the visible orb should be bright white on-theme */
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  /* small inner scale pulse to give life while ripple expands outward */
  animation: orb-inner-pulse 1s infinite ease-in-out;
}

.hero-cta-orb svg {
  width: 28px;
  height: 28px;
  stroke: #000000;
}

.hero-cta-text .hero-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-cta-text .hero-cta-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
}

/* tiny indicator line that glides downwards when in-view */
.hero-cta-orb::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 24px;
  border-radius: 6px;
  background: transparent;
  transform: translateY(54px);
  opacity: 0.8;
}

/* Ripple - expanding ring effect */
.hero-cta-orb::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: transparent;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06) inset;
  pointer-events: none;
  /* expand outwards and fade */
  animation: orb-ripple 1.6s infinite ease-out;
}

/* reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  .explore-icon svg,
  .hero-cta-orb svg,
  .hero-cta-orb .orb-inner,
  .hero-cta-orb::before {
    animation: none !important;
    transition: none !important;
  }
}

/* Orb pulse keyframes (1s period) */
@keyframes orb-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.01);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 28px 60px rgba(255, 255, 255, 0.04);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.01);
  }
}

@keyframes orb-inner-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes orb-ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  }

  70% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0.08;
    box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.06);
  }

  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
    box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.02);
  }
}

/* Next buttons: match visual language, subtle motion */
.btn-next {
  /* make the next control a compact orb like the hero */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2, .9, .2, 1), box-shadow 220ms ease;
}

/* Remove mobile tap highlight and suppress the blue focus ring on mouse/touch
   interactions while keeping keyboard focus visible via :focus-visible. */
.btn-next {
  -webkit-tap-highlight-color: transparent;
}

.btn-next:active,
.btn-next:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.btn-next:focus-visible {
  outline: none;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.04);
}

.btn-next:focus,
.btn-next:hover {
  transform: translateY(-6px);
  /* box-shadow: 0 28px 60px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.02); */
  outline: none;
}

.btn-next .orb-inner {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: orb-inner-pulse 1s infinite ease-in-out;
}

.btn-next svg {
  width: 20px;
  height: 20px;
  stroke: #000000;
}

.btn-next::before {
  /* outer ripple removed for Next buttons to keep them subtle */
  content: none;
}

@media (prefers-reduced-motion: reduce) {

  .btn-next .orb-inner,
  .btn-next::before {
    animation: none !important;
    transition: none !important;
  }
}

#featuredOrgs {
  margin-top: 100px;
}

.content-section {
  background: #000000;
  padding: 10px 20px;
  border: 1px solid #111111;
  border-radius: 3px;
  margin-bottom: 20px;
}

.card,
.card-deck .card {
  background-color: #000000;
  border: 1px solid #111111;
  color: #ffffff;
}

.card .card-body {
  background: transparent;
  color: inherit;
}

.card .card-header,
.card .card-footer {
  background: transparent;
  color: #ffffff;
  border-color: #111111;
}

.card-img-top {
  border-bottom: 1px solid #111111;
}

.form-control {
  background-color: #0b0b0b;
  color: #ffffff;
  border: 1px solid #222222;
}

.form-control::placeholder {
  color: #9a9a9a;
}

.alert {
  background-color: #0b0b0b;
  color: #ffffff;
  border: 1px solid #222222;
}

.table {
  background-color: transparent;
  color: inherit;
}

.table thead th {
  background-color: transparent;
  color: #ffffff;
  border-bottom: 1px solid #222222;
}

.bg-white,
.bg-light {
  background-color: #000000 !important;
}

.account-img {
  height: 125px;
  width: 125px;
  margin-right: 20px;
  margin-bottom: 16px;
}

.account-heading {
  font-size: 2.5rem;
}

.form-control:focus {
  border-color: #555555;
  box-shadow: 0 0 0 0.08rem rgba(255, 255, 255, 0.04) !important;
}

.favorites {
  text-align: center;
  margin-top: 50px;
}

.return-to-top {
  padding-bottom: 100px;
}

.footer {
  background-color: transparent !important;
}

/* Full-page Features sections */
.fp-container {
  /* use normal page scrolling to avoid nested scrollbars */
  scroll-snap-type: y mandatory;
  overflow: visible;
  height: auto;
}

/* .fp-container {
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  height: calc(100vh - 5rem);
  scroll-behavior: smooth;
} */


.fp-section {
  scroll-snap-align: start;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.fp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 70%);
  pointer-events: none;
}

.fp-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 600ms cubic-bezier(.2, .9, .2, 1), opacity 600ms ease;
}

.fp-section.in-view .fp-content {
  transform: translateY(0);
  opacity: 1;
}

/* Feature media + copy layout (Tesla-like) */
.feature-media {
  width: 100%;
  height: min(60vh, 560px);
  background-position: center;
  background-size: cover;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  margin: 0 auto 28px auto;
}

.feature-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 600ms cubic-bezier(.2, .9, .2, 1), opacity 600ms ease;
}

.fp-section.in-view .feature-copy {
  transform: translateY(0);
  opacity: 1;
}

/* Features page header */
.features-header {
  padding: 3.5rem 0 1.5rem;
  /* Offset anchor targets so fixed navbar doesn't overlap content */
  scroll-margin-top: 80px;
}

.features-header .page-title {
  font-size: 2.75rem;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.features-header .page-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin: 0;
}

@media (max-width: 768px) {
  .features-header {
    padding-top: 2rem;
  }

  .features-header .page-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .feature-media {
    height: 44vh;
    border-radius: 10px;
  }

  .feature-copy {
    padding: 0 1rem;
    text-align: center;
  }
}

.fp-title {
  font-size: 2.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  /* Offset anchor targets so fixed navbar doesn't overlap content */
  scroll-margin-top: 80px;
}

.fp-sub {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.fp-actions .btn {
  min-width: 140px;
}

.fp-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.fp-scroll-indicator span {
  display: block;
  width: 28px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
  position: relative;
}

.fp-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: fp-scroll 1.6s infinite;
}

@keyframes fp-scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 0.0
  }

  40% {
    transform: translate(-50%, 12px);
    opacity: 1
  }

  80% {
    transform: translate(-50%, 20px);
    opacity: 0
  }

  100% {
    transform: translate(-50%, 0);
    opacity: 0
  }
}

/* Feature grid (Tesla-like) */
.fp-features .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 220ms ease, box-shadow 220ms ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  margin-bottom: 12px;
}

.feature-card h5 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}


.footer-links {
  margin-bottom: 100px;
  text-align: center;

}

@media screen and (max-width: 1000px) {

  /* Hide Table Columns on Mobile */
  th:nth-child(2),
  th:nth-child(3),
  th:nth-child(4),
  th:nth-child(5),
  th:nth-child(6) {
    display: none;
  }

  td:nth-child(2),
  td:nth-child(3),
  td:nth-child(4),
  td:nth-child(5),
  td:nth-child(6) {
    display: none;
  }


  #category,
  #city {
    width: 60%;
  }

  .footer {
    /* margin-top: 25px; */
    margin-top: 1000px;
  }
}

/* Specs section styles (Tesla-like layout) */
.specs-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.specs-title h2 {
  font-size: 2.0rem;
  margin: 0;
  font-weight: 600;
}

.specs-title small {
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.spec-sub {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}

.spec-hr {
  border-top: 1px solid #222;
  margin: 28px 0;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.spec-col {
  flex: 1 1 0;
  min-width: 180px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.spec-item {
  color: rgba(255, 255, 255, 0.9);
}

.spec-item .label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.spec-item .value {
  font-weight: 600;
  margin-top: 6px;
}

.spec-image {
  position: relative;
  padding: 18px;
}

.spec-image .card {
  background: #0b0b0b;
  border: 1px solid #111;
  border-radius: 8px;
  padding: 18px;
}

.spec-image img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.spec-dim-overlay {
  position: absolute;
  right: 36px;
  top: 36px;
  color: #cfcfcf;
  text-align: right;
  font-size: 0.9rem;
}

/* Error page ultra-modern styles and animation */
.error-page-container {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0 32px 0;
}

.error-anim {
  position: relative;
  margin-bottom: 24px;
  width: 400px;
  max-width: 90vw;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-svg-text {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: 5.5rem;
  font-weight: 700;
  fill: #fff;
  opacity: 0.92;
  filter: drop-shadow(0 0 18px #1e21d488);
  animation: errorPulse 2.2s infinite alternate;
}

.error-svg-circle,
.error-svg-rect,
.error-svg-ellipse,
.error-svg-polygon {
  stroke: #1e21d488;
  stroke-width: 6;
  fill: none;
  opacity: 0.7;
  filter: drop-shadow(0 0 12px #1e21d488);
  animation: errorGlow 2.2s infinite alternate;
}

.error-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #3c1ed433 0%, #0000 80%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: errorGlowBg 2.2s infinite alternate;
}

.error-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: 0.02em;
}

.error-desc {
  font-size: 1.15rem;
  color: #cfcfcf;
  margin-bottom: 18px;
}

@keyframes errorPulse {
  0% {
    opacity: 0.92;
    filter: drop-shadow(0 0 18px #1e21d488);
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 0 32px #1e21d488);
  }
}

@keyframes errorGlow {
  0% {
    stroke: #1e21d488;
    opacity: 0.7;
  }

  100% {
    stroke: #1e21d488;
    opacity: 1;
  }
}

@keyframes errorGlowBg {
  0% {
    opacity: 0.18;
  }

  100% {
    opacity: 0.32;
  }
}

@media (max-width: 992px) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-image {
    display: none;
  }
}

@media (max-width: 600px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile fallback: ensure feature content is visible when JS intersection
   observer may not trigger on very small viewports or when scrolling is
   non-standard (snap, nested containers, etc.) */
@media (max-width: 600px) {
  .fp-content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}