/**
 * Hero Section Styles
 *
 * @package Yusuf_Theme
 */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */

.hero-section__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-section__video,
.hero-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section__video[poster] {
  background-size: cover;
  background-position: center;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* ========================================
   CONTENT
   ======================================== */

.hero-section__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--announcement-bar-height) + var(--header-height-mobile));
  padding-bottom: var(--spacing-20);
}

@media (min-width: 1024px) {
  .hero-section__content {
    padding-top: calc(var(--announcement-bar-height) + var(--header-height-desktop));
  }
}

.hero-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-6);
}

/* ========================================
   LOGO
   ======================================== */

.hero-section__logo {
  max-width: 300px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.4));
  opacity: 0;
  transform: translateY(30px);
  animation: heroTitleIn 1s ease forwards;
  animation-delay: 0.2s;
}

@media (min-width: 768px) {
  .hero-section__logo {
    max-width: 450px;
  }
}

@media (min-width: 1024px) {
  .hero-section__logo {
    max-width: 550px;
  }
}

/* ========================================
   TITLE
   ======================================== */

.hero-section__title {
  font-size: clamp(48px, 15vw, 140px);
  font-weight: var(--font-weight-bold);
  font-style: normal;
  line-height: 0.95;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: heroTitleIn 1s ease forwards;
  animation-delay: 0.2s;
}

@keyframes heroTitleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SUBTITLE
   ======================================== */

.hero-section__subtitle {
  font-size: clamp(12px, 2vw, 18px);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  opacity: 0;
  transform: translateY(20px);
  animation: heroSubtitleIn 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes heroSubtitleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   CTA BUTTON
   ======================================== */

.hero-section__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-3);
  margin-top: var(--spacing-4);
  opacity: 0;
  transform: translateY(20px);
  animation: heroCTAIn 1s ease forwards;
  animation-delay: 0.8s;
}

@keyframes heroCTAIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section__cta-icon {
  width: 20px;
  height: 20px;
}

.hero-section__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 210, 212, 0.4);
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.hero-section__scroll-indicator {
  position: absolute;
  bottom: var(--spacing-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-light);
  opacity: 0.7;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-2);
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-section__scroll-indicator svg {
  width: 32px;
  height: 32px;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.hero-section.has-scrolled .hero-section__scroll-indicator {
  opacity: 0;
  transition: opacity var(--transition-normal);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 767px) {
  .hero-section {
    min-height: calc(100vh - var(--announcement-bar-height));
  }

  .hero-section__inner {
    padding: 0 var(--spacing-4);
  }

  .hero-section__cta {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-section__logo,
  .hero-section__title,
  .hero-section__subtitle,
  .hero-section__cta {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-section__scroll-indicator {
    animation: none;
  }

  .hero-section__video {
    display: none;
  }

  .hero-section__background {
    background-size: cover;
    background-position: center;
  }
}
