/* ============================================================
   National Energy — Professional Photo Hero Slider
   Real photography, smooth cross-fade + slow Ken-Burns zoom,
   readable gradient overlay, elegant captions, custom dots.
   Drop your own photos into imgs/hero/ (slide1..slideN.jpg)
   ============================================================ */

.hero-slider {
  position: relative;
  height: 92vh;
  min-height: 600px;
  max-height: 920px;
  overflow: hidden;
  background: #0e1726;
}

/* ---- slides ---- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
/* slow cinematic zoom on the active slide (Ken Burns) */
.hero-slide.is-active .hero-slide__img {
  animation: kenburns 8s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.16); }
}

/* readable gradient — dark on the side the RTL text sits (right) */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,23,38,.92) 0%, rgba(14,23,38,.55) 42%, rgba(14,23,38,.05) 75%),
    linear-gradient(0deg, rgba(14,23,38,.75), transparent 45%);
  z-index: 3;
}

/* ---- caption ---- */
.hero-caption {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  max-width: 620px;
  color: #fff;
}
@media (min-width: 1400px){ .hero-caption{ right: 12%; } }

.hero-caption .badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #ffe6a8;
  background: rgba(247,169,0,.14);
  border: 1px solid rgba(247,169,0,.4);
  backdrop-filter: blur(8px);
}
.hero-caption .badge-glass i { color: var(--primary-color); }

.hero-caption h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 1.1rem;
  text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.hero-caption h1 .accent {
  background: linear-gradient(135deg, #fff1c4, #ffd24d 45%, #ff9d2e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-caption p {
  font-size: 1.2rem;
  color: #e7ecf5;
  max-width: 520px;
  margin-bottom: 1.9rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* caption text animates in when slide becomes active */
.hero-slide .hero-caption > * {
  opacity: 0;
  transform: translateY(24px);
}
.hero-slide.is-active .hero-caption > * {
  animation: caption-in .8s cubic-bezier(.2,.8,.25,1) forwards;
}
.hero-slide.is-active .hero-caption > *:nth-child(1){ animation-delay:.25s }
.hero-slide.is-active .hero-caption > *:nth-child(2){ animation-delay:.40s }
.hero-slide.is-active .hero-caption > *:nth-child(3){ animation-delay:.55s }
.hero-slide.is-active .hero-caption > *:nth-child(4){ animation-delay:.70s }
@keyframes caption-in { to { opacity:1; transform: translateY(0); } }

/* ---- buttons ---- */
.hero-caption .btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, #ffd24d, #ff9d2e);
  color: #21130a;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(255,157,46,.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-caption .btn-hero:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(255,157,46,.65); }

.hero-caption .btn-hero-outline {
  display: inline-block;
  border: 1.6px solid rgba(255,255,255,.6);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all .25s ease;
}
.hero-caption .btn-hero-outline:hover { background: #fff; color: #21130a; transform: translateY(-3px); }

/* ---- dots ---- */
.hero-dots {
  position: absolute;
  bottom: 34px;
  right: 8%;
  display: flex;
  gap: 12px;
  z-index: 6;
}
@media (min-width: 1400px){ .hero-dots{ right: 12%; } }
.hero-dot {
  width: 38px;
  height: 5px;
  border-radius: 5px;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: background .3s ease;
  overflow: hidden;
  position: relative;
}
.hero-dot.is-active { background: rgba(255,255,255,.35); }
.hero-dot.is-active::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ffd24d, #ff9d2e);
  transform-origin: right;            /* RTL: fill from right */
  animation: dot-progress 6s linear forwards;
}
@keyframes dot-progress { from { transform: scaleX(0);} to { transform: scaleX(1);} }

/* ---- arrows ---- */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(14,23,38,.35);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .25s ease, transform .25s ease;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--grad-solar); transform: translateY(-50%) scale(1.06); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }

/* scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: 1.3rem;
  z-index: 6;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0)} 50%{ transform: translate(-50%,8px)} }

/* ---- responsive ---- */
@media (max-width: 991px) {
  .hero-slider { height: 88vh; min-height: 540px; }
  .hero-caption { right: 6%; left: 6%; text-align: center; max-width: none; }
  .hero-caption p { margin-left: auto; margin-right: auto; }
  .hero-caption::after { content:''; }
  .hero-slide::after {
    background: linear-gradient(0deg, rgba(14,23,38,.85), rgba(14,23,38,.35) 60%, rgba(14,23,38,.55));
  }
  .hero-dots { left: 0; right: 0; justify-content: center; }
  .hero-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-slide__img { animation: none; transform: scale(1.05); }
  .hero-dot.is-active::after { animation: none; transform: scaleX(1); }
  .hero-slide.is-active .hero-caption > * { animation: none; opacity:1; transform:none; }
  .hero-scroll { animation: none; }
}
