:root {
  --white: #ffffff;
  --transition-speed: 600ms;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.35);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: #000;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity var(--transition-speed) ease-in-out,
    transform var(--transition-speed) ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.carousel-slide.prev {
  transform: translateX(-100%);
}

.hero-content {
  text-align: center;
  color: var(--white);
  animation: fadeInUp 0.8s ease-out;
  max-width: 800px;
  padding: 2.5rem 3rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No background box behind the text anymore — readability against any
   photo instead comes from a dark outline (a stroke on browsers that
   support it, plus layered directional shadows everywhere else, since
   -webkit-text-stroke isn't supported in every browser) and a soft white
   glow around that outline. */
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  /* Outline uses the site's own navy brand color (--navy: #1e3a5f) instead
     of plain black, fixed rather than theme-linked since this text always
     sits on a photo, not on the page background the theme toggle affects. */
  -webkit-text-stroke: 1.5px rgba(30, 58, 95, 0.85);
  text-shadow:
    -1.5px -1.5px 0 rgba(30, 58, 95, 0.85),
    1.5px -1.5px 0 rgba(30, 58, 95, 0.85),
    -1.5px 1.5px 0 rgba(30, 58, 95, 0.85),
    1.5px 1.5px 0 rgba(30, 58, 95, 0.85),
    0 2px 8px rgba(30, 58, 95, 0.7),
    0 0 24px rgba(255, 255, 255, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.6;
  -webkit-text-stroke: 0.75px rgba(30, 58, 95, 0.8);
  text-shadow:
    -1px -1px 0 rgba(30, 58, 95, 0.8),
    1px -1px 0 rgba(30, 58, 95, 0.8),
    -1px 1px 0 rgba(30, 58, 95, 0.8),
    1px 1px 0 rgba(30, 58, 95, 0.8),
    0 1px 6px rgba(30, 58, 95, 0.6),
    0 0 16px rgba(255, 255, 255, 0.4);
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  opacity: 0.3;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.indicator.active {
  background: var(--white);
  width: 40px;
  border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-carousel {
    height: 60vh;
    min-height: 450px;
  }

  .hero-content {
    padding: 1.5rem 1.5rem;
    border-radius: 14px;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-indicators {
    bottom: 20px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .indicator.active {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}
