/* =============================================
   Hero Slider Styles - Professional Full Screen
   ============================================= */

:root {
  /* Council Brand Colors */
  --hs-navy: #263370;
  --hs-cyan: #0c7fae;
  --hs-green: #42b07a;
  
  --hs-primary: #0c7fae;
  --hs-primary-glow: #42b07a;
  --hs-secondary: #263370;
  --hs-dark: #0f1a2e;
  --hs-dark-overlay: rgba(38, 51, 112, 0.6);
  --hs-text: #ffffff;
  --hs-text-muted: rgba(255, 255, 255, 0.8);
}

/* Reset & Base */
.hero-slider-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero-slider-page {
  font-family: 'Tajawal', 'Segoe UI', sans-serif;
  direction: rtl;
  overflow-x: hidden;
}

/* =============================================
   Hero Slider Container
   ============================================= */
.hs-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--hs-dark);
}

/* Slides Container */
.hs-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slide */
.hs-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  z-index: 1;
}

.hs-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide Background (Image/Video) */
.hs-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hs-slide.active .hs-slide-bg {
  transform: scale(1);
}

/* Video Background */
.hs-slide-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.05);
  transition: transform 8s ease-out;
}

.hs-slide.active .hs-slide-video {
  transform: translate(-50%, -50%) scale(1);
}

/* Dark Overlay */
.hs-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(38, 51, 112, 0.85) 0%,
    rgba(15, 26, 46, 0.5) 50%,
    rgba(38, 51, 112, 0.7) 100%
  );
  z-index: 1;
}

/* =============================================
   Slide Content
   ============================================= */
.hs-slide-content {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 800px;
  padding: 40px 0;
}

/* Subtitle */
.hs-subtitle {
  font-size: 1.3rem;
  color: var(--hs-text);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hs-slide.active .hs-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* Main Title */
.hs-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--hs-primary);
  line-height: 1.2;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  text-shadow: 0 4px 30px rgba(12, 127, 174, 0.3);
}

.hs-slide.active .hs-title {
  opacity: 1;
  transform: translateY(0);
}

/* Secondary Title */
.hs-title-secondary {
  font-size: 5rem;
  font-weight: 900;
  color: var(--hs-primary-glow);
  line-height: 1.1;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
  font-family: 'Noto Kufi Arabic', 'Tajawal', sans-serif;
}

.hs-slide.active .hs-title-secondary {
  opacity: 1;
  transform: translateY(0);
}

/* Description */
.hs-description {
  font-size: 1.1rem;
  color: var(--hs-text-muted);
  line-height: 1.9;
  margin-bottom: 30px;
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.hs-slide.active .hs-description {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Link */
.hs-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hs-primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
  position: relative;
}

.hs-slide.active .hs-cta {
  opacity: 1;
  transform: translateY(0);
}

.hs-cta::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--hs-primary);
  transition: width 0.3s ease;
}

.hs-cta:hover::after {
  width: 100%;
}

.hs-cta i {
  transition: transform 0.3s ease;
}

.hs-cta:hover i {
  transform: translateX(-5px);
}

/* =============================================
   Navigation Arrows
   ============================================= */
.hs-nav-arrows {
  position: absolute;
  left: 40px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}

.hs-nav-arrow {
  width: 60px;
  height: 60px;
  background: var(--hs-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hs-nav-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hs-primary-glow);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.hs-nav-arrow:hover::before {
  transform: translateX(0);
}

.hs-nav-arrow i {
  position: relative;
  z-index: 1;
}

.hs-nav-arrow:hover {
  transform: scale(1.05);
}

/* =============================================
   Dots Navigation (Side)
   ============================================= */
.hs-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 20;
}

.hs-dot {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.hs-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: var(--hs-primary);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hs-dot:hover {
  border-color: var(--hs-primary);
}

.hs-dot.active {
  border-color: var(--hs-primary);
  transform: scale(1.3);
}

.hs-dot.active::after {
  width: 6px;
  height: 6px;
}

/* =============================================
   Slide Counter
   ============================================= */
.hs-counter {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hs-counter-current {
  font-size: 3rem;
  font-weight: 700;
  color: var(--hs-primary);
  line-height: 1;
}

.hs-counter-separator {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(-45deg);
}

.hs-counter-total {
  font-size: 1.2rem;
  color: var(--hs-text-muted);
}

/* =============================================
   Progress Bar
   ============================================= */
.hs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.hs-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--hs-primary), var(--hs-primary-glow));
  transition: width 0.1s linear;
}

/* =============================================
   Navbar (Hero Page)
   ============================================= */
.hs-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: transparent;
  transition: all 0.3s ease;
}

.hs-navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 50px;
}

.hs-logo {
  height: 50px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.hs-nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.hs-nav-links a {
  color: var(--hs-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.hs-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--hs-primary);
  transition: width 0.3s ease;
}

.hs-nav-links a:hover {
  color: var(--hs-primary);
}

.hs-nav-links a:hover::after {
  width: 100%;
}

.hs-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hs-lang-btn {
  color: var(--hs-text);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hs-lang-btn:hover {
  color: var(--hs-primary);
}

.hs-search-btn {
  color: var(--hs-text);
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hs-search-btn:hover {
  color: var(--hs-primary);
}

/* =============================================
   Decorative Elements
   ============================================= */
.hs-floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.hs-shape {
  position: absolute;
  border: 1px solid rgba(12, 127, 174, 0.2);
  border-radius: 50%;
  animation: hs-float 20s ease-in-out infinite;
}

.hs-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hs-shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 15%;
  animation-delay: -5s;
}

.hs-shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes hs-float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, 30px) rotate(90deg);
  }
  50% {
    transform: translate(0, 50px) rotate(180deg);
  }
  75% {
    transform: translate(-30px, 20px) rotate(270deg);
  }
}

/* Particles Effect */
.hs-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.hs-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--hs-primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: hs-particle-float 15s linear infinite;
}

@keyframes hs-particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* =============================================
   Video Play Button (Overlay)
   ============================================= */
.hs-video-play {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
}

.hs-slide.active .hs-video-play {
  opacity: 1;
}

.hs-play-btn {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  position: relative;
}

.hs-play-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--hs-primary);
  border-radius: 50%;
  animation: hs-pulse 2s ease-out infinite;
}

.hs-play-btn i {
  color: white;
  font-size: 1.5rem;
  margin-right: -3px;
}

.hs-play-btn:hover {
  background: var(--hs-primary);
  border-color: var(--hs-primary);
  transform: scale(1.1);
}

.hs-play-text {
  color: var(--hs-text);
  font-size: 0.9rem;
  font-weight: 500;
}

@keyframes hs-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1200px) {
  .hs-slide-content {
    max-width: 600px;
    right: 5%;
  }

  .hs-title {
    font-size: 3rem;
  }

  .hs-title-secondary {
    font-size: 4rem;
  }
}

@media (max-width: 992px) {
  .hs-navbar {
    padding: 15px 30px;
  }

  .hs-nav-links {
    display: none;
  }

  .hs-slide-content {
    max-width: 90%;
    right: 5%;
    left: 5%;
  }

  .hs-title {
    font-size: 2.5rem;
  }

  .hs-title-secondary {
    font-size: 3rem;
  }

  .hs-dots {
    right: 20px;
  }

  .hs-counter {
    left: 20px;
  }

  .hs-nav-arrows {
    left: 20px;
    bottom: 40px;
  }

  .hs-nav-arrow {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .hs-hero {
    min-height: 100vh;
  }

  .hs-slide-content {
    top: 55%;
    text-align: center;
  }

  .hs-subtitle {
    font-size: 1rem;
  }

  .hs-title {
    font-size: 2rem;
  }

  .hs-title-secondary {
    font-size: 2.5rem;
  }

  .hs-description {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .hs-cta {
    justify-content: center;
  }

  .hs-dots {
    top: auto;
    bottom: 120px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
  }

  .hs-counter {
    left: 50%;
    top: auto;
    bottom: 170px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
  }

  .hs-counter-current {
    font-size: 2rem;
  }

  .hs-counter-separator {
    transform: rotate(0);
    width: 20px;
  }

  .hs-nav-arrows {
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    bottom: 20px;
  }

  .hs-video-play {
    bottom: 25%;
  }

  .hs-play-btn {
    width: 60px;
    height: 60px;
  }

  .hs-floating-shapes {
    display: none;
  }
}

@media (max-width: 480px) {
  .hs-navbar {
    padding: 15px 20px;
  }

  .hs-logo {
    height: 40px;
  }

  .hs-title {
    font-size: 1.6rem;
  }

  .hs-title-secondary {
    font-size: 2rem;
  }

  .hs-description {
    font-size: 0.85rem;
  }

  .hs-nav-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* =============================================
   Mobile Menu Toggle
   ============================================= */
.hs-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hs-menu-toggle span {
  width: 25px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .hs-menu-toggle {
    display: flex;
  }
}

/* =============================================
   Scroll Indicator
   ============================================= */
.hs-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: hs-bounce 2s infinite;
}

.hs-scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  position: relative;
}

.hs-scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--hs-primary);
  border-radius: 2px;
  animation: hs-scroll-wheel 2s infinite;
}

.hs-scroll-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes hs-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes hs-scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

@media (max-width: 768px) {
  .hs-scroll-indicator {
    display: none;
  }
}
