/* =========================================================
   HERO VIDEO – Zero Crop (Mobile + Laptop) + Clean Controls
   - Foreground video: contain (NO CROP)
   - Background layer: same video blurred to fill any empty space
   ========================================================= */

/* =========================
   HERO LAYOUT
   ========================= */
.home-hero.home-hero--video{
  position: relative;
  overflow: hidden;
  height: 92vh;
  min-height: 560px;
  background: #000;
}

@media (max-width: 768px){
  .home-hero.home-hero--video{
    height: 72vh;
    min-height: 520px;
  }
}
@media (max-width: 480px){
  .home-hero.home-hero--video{
    height: 68vh;
    min-height: 500px;
  }
}

/* =========================
   VIDEO LAYERS
   ========================= */
.home-hero-media{
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* خلفية ثابتة */
.home-hero-media::before{
  content: "";
  position: absolute;
  inset: -20px;
  background: #000;
  z-index: 1;
}

/* الفيديو الخلفي (Blur) */
.home-hero-video-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: .55;
  z-index: 2;
}

/* الفيديو الأساسي (NO CROP) */
.home-hero-video{
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  object-fit: contain;
  object-position: center;
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   OVERLAY (خفيف)
   ========================= */
.home-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.22) 0%,
    rgba(0,0,0,.12) 45%,
    rgba(0,0,0,.42) 100%
  );
  pointer-events: none;
}

/* =========================
   TEXT CONTAINER
   ========================= */
.home-hero-inner{
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
}

.home-hero-col--left{
  max-width: 720px;
  padding-top: 14vh;
}

@media (max-width: 768px){
  .home-hero-col--left{
    max-width: 92%;
    padding-top: 10vh;
  }
}

/* =========================
   TEXT STYLE (No box)
   ========================= */
.home-hero-kicker{
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .92;
  margin-bottom: 19px;
  font-size: 17px;
}

.home-hero-title{
  margin: 0 0 20px;
  font-weight: 800;
  line-height:1;
  text-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.home-hero-title .hero-line{ display: block; }

.home-hero-sub{
  margin: 0 0 10px;
  font-size: 16px;
  opacity: .96;
  text-shadow: 0 10px 22px rgba(0,0,0,.30);
}

.home-hero-desc{
  margin: 0;
  font-size: 15px;
  opacity: .92;
  text-shadow: 0 10px 22px rgba(0,0,0,.28);
}

@media (max-width: 768px){
  .home-hero-kicker{ font-size: 12px; margin-bottom: 15px; }
  .home-hero-title{ font-size: 24px; }
  .home-hero-sub{ font-size: 14px; }
  .home-hero-desc{ font-size: 13px; }
}
@media (min-width: 769px){
  .home-hero-title{ font-size: 30px; }
}

/* =========================
   SEQUENTIAL ANIMATION
   ========================= */
.hero-line{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(1px);
  animation: heroIn .75s ease forwards;
}

.hero-line--1{ animation-delay: .10s; }
.hero-line--2{ animation-delay: .28s; }
.hero-line--3{ animation-delay: .46s; }
.hero-line--4{ animation-delay: .64s; }
.hero-line--5{ animation-delay: .82s; }

@keyframes heroIn{
  to{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .hero-line{
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

/* =========================================================
   CONTROLS – Play/Pause + Mute (Responsive + Clear)
   ========================================================= */
.hero-video-controls--center{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 6;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-video-controls--center .hvc-btn{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.40);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.hero-video-controls--center .hvc-btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.22), 0 10px 24px rgba(0,0,0,.28);
}

/* -------- Play/Pause icon (CSS) -------- */
/* Pause bars (default: playing) */
#hvcToggle::before,
#hvcToggle::after{
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255,255,255,.95);
}
#hvcToggle::before{ left: 20px; }
#hvcToggle::after { right: 20px; }

/* Play icon when paused */
#heroVideoSection.is-paused #hvcToggle::before{
  width: 0;
  height: 0;
  left: 20px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent rgba(255,255,255,.95);
  background: none;
}
#heroVideoSection.is-paused #hvcToggle::after{ opacity: 0; }

/* -------- Mute icon (CSS) -------- */
/* Speaker body */
#hvcMute::before{
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  background: rgba(255,255,255,.95);
  clip-path: polygon(0 35%, 35% 35%, 70% 10%, 70% 90%, 35% 65%, 0 65%);
  border-radius: 2px;
  opacity: .95;
}

/* Sound waves (when unmuted) */
#hvcMute::after{
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid rgba(255,255,255,.85);
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: .95;
}

/* When muted: show X slash */
#heroVideoSection.is-muted #hvcMute::after{
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.95);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: none;
  border-radius: 2px;
  opacity: .95;
}

/* Mobile sizing */
@media (max-width: 768px){
  .hero-video-controls--center{ bottom: 10px; padding: 8px; gap: 10px; }
  .hero-video-controls--center .hvc-btn{ width: 46px; height: 46px; }
}
