/* ================================ */
/* Home Hero Slider - Modern Design */
/* AlCaptin Moving Services        */
/* ================================ */

/* Color Variables */
:root {
  --hero-primary: #FF6B35;      /* Vibrant Orange */
  --hero-secondary: #004E89;    /* Deep Blue */
  --hero-accent: #F7931E;       /* Golden Orange */
  --hero-dark: #1a1a1a;         /* Rich Black */
  --hero-light: #f5f5f5;        /* Clean White */
  --hero-text: #ffffff;
}


/* Main Hero Container */
.homeHero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.homeHero__slider {
  position: relative;
  width: 100%;
}

/* Individual Slide */
.homeHero__slide {
  position: relative;
  min-height: clamp(500px, 100vh, 900px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  margin-top: 0;
}

/* Background Media Container */
.homeHero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #004E89 0%, #003d6b 100%);
}

/* Fallback Gradient (when no image) */
.homeHero__fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.15) 0%,
    rgba(0, 78, 137, 0.3) 50%,
    rgba(26, 26, 26, 0.6) 100%
  );
  z-index: 1;
}

/* Hero Image with Zoom Effect */
.homeHero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  z-index: 0;
}

.swiper-slide-active .homeHero__img {
  transform: scale(1);
}

/* Overlay Gradient - Orange to Blue */
.homeHero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.25) 0%,
    rgba(0, 78, 137, 0.4) 50%,
    rgba(26, 26, 26, 0.7) 100%
  );
  z-index: 1;
}

/* Content Wrapper */
.homeHero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 50px) clamp(20px, 5vw, 60px);
  color: var(--hero-text);
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

/* Title Styling */
.homeHero__title {
  font-family: var(--font-heading-ar);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  font-feature-settings: 'liga' 1, 'dlig' 1;
  color: #ffffff;
  text-align: right;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.1);
}

/* Subtitle/Description */
.homeHero__sub {
  font-family: var(--font-body-ar);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  max-width: 60ch;
  margin: 0 0 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 750ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 0 2px 12px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.95);
  text-align: right;
  letter-spacing: 0.5px;
}

/* Call-to-Action Buttons Container */
.homeHero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

/* Button Styles (Independent) */
.homeHero__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading-en);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  gap: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.homeHero__actions .btn--primary {
  background: var(--hero-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.homeHero__actions .btn--primary:hover {
  background: var(--hero-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5);
}

.homeHero__actions .btn--ghost {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: inset 0 0 0 0 var(--hero-primary);
}

.homeHero__actions .btn--ghost:hover {
  background: white;
  color: var(--hero-primary);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Trust Badges */
.homeHero__trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 850ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.homeHero__trust li {
  font-family: var(--font-body-ar);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 50px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.2) 0%,
    rgba(247, 147, 30, 0.15) 100%
  );
  border: 1.5px solid rgba(255, 107, 53, 0.4);
  color: white;
  backdrop-filter: blur(12px);
  transition: all 300ms ease;
}

.homeHero__trust li:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.35) 0%,
    rgba(247, 147, 30, 0.25) 100%
  );
  border-color: var(--hero-accent);
  transform: translateY(-2px);
}

/* Active Slide Content Animation */
.swiper-slide-active .homeHero__title,
.swiper-slide-active .homeHero__sub,
.swiper-slide-active .homeHero__actions,
.swiper-slide-active .homeHero__trust {
  opacity: 1;
  transform: translateY(0);
}

/* ================= */
/* Navigation & UI   */
/* ================= */

/* Navigation Buttons Container */
.homeHero__nav {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 clamp(10px, 3vw, 40px);
  gap: 20px;
}

/* Navigation Buttons */
.homeHero__prev,
.homeHero__next {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255, 107, 53, 0.15);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.homeHero__prev:hover,
.homeHero__next:hover {
  background: rgba(255, 107, 53, 0.35);
  border-color: var(--hero-primary);
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

/* Arrow Icons */
.homeHero__prev::before,
.homeHero__next::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border: 2.5px solid white;
  border-top: 0;
  border-left: 0;
  transition: border-color 300ms ease;
}

.homeHero__prev:hover::before,
.homeHero__next:hover::before {
  border-color: var(--hero-primary);
}

.homeHero__prev::before {
  transform: rotate(135deg);
}

.homeHero__next::before {
  transform: rotate(-45deg);
}

/* Pagination Container */
.homeHero__pagination {
  position: absolute;
  bottom: 32px;
  inset-inline: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* Pagination Bullets */
.homeHero__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.4;
  background: white;
  cursor: pointer;
  transition: all 300ms ease;
  border: 2px solid white;
}

.homeHero__pagination .swiper-pagination-bullet:hover {
  opacity: 0.7;
}

.homeHero__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--hero-primary);
  border-color: var(--hero-primary);
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.5);
}

/* ================= */
/* Down Arrow        */
/* ================= */

.homeHero__down {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255, 107, 53, 0.15);
  backdrop-filter: blur(12px);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  animation: bounce 2.5s infinite;
}

.homeHero__down:hover {
  background: rgba(255, 107, 53, 0.35);
  border-color: var(--hero-primary);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

.homeHero__down::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2.5px solid white;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  transition: border-color 300ms ease;
}

.homeHero__down:hover::before {
  border-color: var(--hero-primary);
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ================= */
/* Responsive Design */
/* ================= */

/* Tablet & Medium Screens */
@media (max-width: 1024px) {
  .homeHero__nav {
    padding: 0 clamp(10px, 2vw, 30px);
  }

  .homeHero__prev,
  .homeHero__next {
    width: 48px;
    height: 48px;
  }

  .homeHero__content {
    padding: clamp(30px, 6vh, 60px) clamp(20px, 4vw, 40px);
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  .homeHero__slide {
    min-height: clamp(450px, 80vh, 700px);
  }

  .homeHero__nav {
    display: none;
  }

  .homeHero__title {
    font-size: clamp(28px, 7vw, 42px);
    margin-bottom: 12px;
  }

  .homeHero__sub {
    font-size: clamp(14px, 4vw, 18px);
    max-width: 50ch;
    margin-bottom: 20px;
  }

  .homeHero__actions {
    gap: 12px;
  }

  .homeHero__actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    flex: 1;
    min-width: 140px;
  }

  .homeHero__trust {
    margin-top: 24px;
    gap: 8px;
  }

  .homeHero__trust li {
    font-size: 12px;
    padding: 8px 14px;
  }

  .homeHero__pagination {
    bottom: 24px;
    gap: 8px;
  }

  .homeHero__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .homeHero__down {
    width: 40px;
    height: 40px;
    bottom: 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .homeHero__slide {
    min-height: clamp(400px, 90vh, 600px);
  }

  .homeHero__content {
    padding: clamp(24px, 4vh, 40px) clamp(16px, 3vw, 24px);
  }

  .homeHero__title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .homeHero__sub {
    font-size: clamp(13px, 3.5vw, 16px);
    max-width: 45ch;
  }

  .homeHero__actions {
    flex-direction: column;
  }

  .homeHero__actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
  }

  .homeHero__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }

  .homeHero__pagination {
    gap: 6px;
  }

  .homeHero__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* ================= */
/* Accessibility     */
/* ================= */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .homeHero__img,
  .homeHero__title,
  .homeHero__sub,
  .homeHero__actions,
  .homeHero__trust,
  .homeHero__prev,
  .homeHero__next,
  .homeHero__down {
    transition: none !important;
    animation: none !important;
  }

  .homeHero__img {
    transform: scale(1) !important;
  }

  .homeHero__title,
  .homeHero__sub,
  .homeHero__actions,
  .homeHero__trust {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
  .homeHero__prev,
  .homeHero__next,
  .homeHero__down {
    border-width: 3px;
  }

  .homeHero__actions .btn {
    border-width: 2px;
  }
}
