/* =====================================================================
   Home-page-only styles: cinematic hero video/slider section + video modal.
   Loaded ONLY on index.php, on top of style.css, so the homepage design
   stays pixel-identical to the original build.
   ===================================================================== */

/* ===== HERO VIDEO ===== */
.hero-video-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ===== BANNER IMAGE SLIDER (behind video) ===== */
.hero-img-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-img-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: none;
}

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

.hero-img-slide:nth-child(1).active {
  animation: kbZoomIn 7s ease-out both;
}

.hero-img-slide:nth-child(2).active {
  animation: kbZoomOut 7s ease-out both;
}

.hero-img-slide:nth-child(3).active {
  animation: kbPanLeft 7s ease-out both;
}

@keyframes kbZoomIn {
  from {
    transform: scale(1.08) translate(0, 0)
  }

  to {
    transform: scale(1) translate(0, 0)
  }
}

@keyframes kbZoomOut {
  from {
    transform: scale(1) translate(1%, 0)
  }

  to {
    transform: scale(1.06) translate(-1%, 0)
  }
}

@keyframes kbPanLeft {
  from {
    transform: scale(1.06) translate(2%, 0)
  }

  to {
    transform: scale(1.02) translate(-2%, 0)
  }
}

.hero-slide-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.hero-fallback-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #1a0408 0%, #3a0d14 35%, #8b1a23 65%, #d7222f 100%);
  display: none;
}

.hero-fallback-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245, 166, 35, 0.18) 0%, transparent 60%);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(10, 2, 4, 0.72) 0%, rgba(20, 6, 10, 0.52) 55%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-video-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  padding: 90px 48px 100px;
  max-width: 780px;
  animation: heroFadeIn 1s ease both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(215, 34, 47, 0.15);
  border: 1px solid rgba(215, 34, 47, 0.5);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: #d7222f;
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(215, 34, 47, 0.6)
  }

  50% {
    box-shadow: 0 0 0 6px rgba(215, 34, 47, 0)
  }
}

.hero-main-title {
  font-size: clamp(28px, 5.2vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.16;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-main-title .accent-word {
  color: #f5a623;
}

.hero-main-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px 11px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.28s;
  backdrop-filter: blur(10px);
  font-family: 'Inter', sans-serif;
}

.hero-play-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.04);
}

.play-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #d7222f, #f5a623);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(215, 34, 47, 0.5);
  transition: transform 0.28s, box-shadow 0.28s;
}

.hero-play-btn:hover .play-circle {
  transform: scale(1.12);
  box-shadow: 0 6px 26px rgba(215, 34, 47, 0.65);
}

.play-circle svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  margin-left: 3px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0)
  }

  50% {
    transform: rotate(45deg) translateY(5px)
  }
}

.hero-badges {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  backdrop-filter: blur(14px);
  min-width: 100px;
  animation: heroFadeIn 1s ease both;
}

.hero-badge:nth-child(2) {
  animation-delay: .15s;
}

.hero-badge:nth-child(3) {
  animation-delay: .3s;
}

.hero-badge-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-badge-label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== VIDEO MODAL ===== */
#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

#video-modal.open {
  display: flex;
}

.modal-inner {
  position: relative;
  width: 90%;
  max-width: 960px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.88)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.modal-inner video {
  width: 100%;
  display: block;
  max-height: 80vh;
  background: #000;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: sans-serif;
  line-height: 1;
  z-index: 2;
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-mute-btn {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.hero-mute-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-mute-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

@media(max-width:900px) {
  .hero-badges {
    display: none;
  }
}

@media(max-width:768px) {
  .hero-video-section {
    min-height: 520px;
  }

  .hero-video-content {
    padding: 50px 24px 70px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
