/* ============================================================
   hero.css – Hero section with slideshow, content,
              slide dots, and scroll indicator.
   ============================================================ */

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* --- Slideshow --- */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active { opacity: 1; }

/* Slide backgrounds – JPG images located in images/ */
.slide-1 {
  background-image: url('../images/PowerLine.jpg');
}

.slide-2 {
  background-image: url('../images/Transformer.jpg');
}

.slide-3 {
  background-image: url('../images/Renewable.jpg');
}

/* Overlay – dims the image and lifts the hero text */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(30, 10, 10, 0.82) 0%,
    rgba(30, 10, 10, 0.52) 55%,
    rgba(30, 10, 10, 0.22) 100%
  );
}

/* --- Hero content --- */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-left: 8%;
  padding-top: var(--nav-h-small);
}

.hero-eyebrow {
  font-size: 9pt;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s 0.3s forwards;
}

.hero-title {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(24pt, 4.5vw, 40pt);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-title span { color: var(--accent1); }

.hero-desc {
  font-size: 12pt;
  color: var(--accent4);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.7s forwards;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.9s forwards;
}

/* --- Slide dots --- */
.slide-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(222, 222, 222, 0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--accent1);
  transform: scale(1.3);
}

/* --- Scroll indicator --- */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  right: 8%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 8pt;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(222, 222, 222, 0.5);
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 1.5px solid rgba(222, 222, 222, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-arrow::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--accent1);
  border-radius: 2px;
  animation: scrollBounce 1.6s infinite;
}
