/*
 * HERO PARALLAX EFFECTS
 * Zoom, fade & parallax scroll effects
 */

/* ===== HERO CONTAINER ===== */
.hero-parallax {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ===== FIXED BACKGROUND WITH ZOOM ===== */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  will-change: transform, opacity;
  transform: scale(1);
  transition: transform 0.1s linear, opacity 0.3s ease;
  opacity: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== DARKENING OVERLAY ===== */
.hero-shade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  z-index: -1;
  will-change: opacity;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.hero-text-wrapper {
  width: 100%;
  text-align: center;
  padding: 2rem;
  will-change: transform;
}

/* Optional: Add subtle background to text for readability */
.hero-text-bg {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== SCROLL INDICATOR ARROW ===== */
.hero-scroll-arrow {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  z-index: 10;
  opacity: 1;
  will-change: opacity;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.hero-scroll-arrow svg {
  width: 100%;
  height: 100%;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Bouncing animation */
.hero-scroll-arrow.bounce {
  animation: arrowBounce 3s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes arrowBounce {
  0% {
    transform: translate(-50%, 0px);
    animation-timing-function: cubic-bezier(.19, .28, .27, 1);
  }
  11% {
    transform: translate(-50%, -25px) scaleX(.8);
    animation-timing-function: cubic-bezier(.57, .01, .84, .5);
  }
  20% {
    transform: translate(-50%, 0px) scaleY(.8);
    animation-timing-function: cubic-bezier(.19, .28, .27, 1);
  }
  28% {
    transform: translate(-50%, -10px);
    animation-timing-function: cubic-bezier(.57, .01, .84, .5);
  }
  36% {
    transform: translate(-50%, 0px);
    animation-timing-function: cubic-bezier(.19, .28, .27, 1);
  }
  100% {
    transform: translate(-50%, 0px);
    animation-timing-function: cubic-bezier(.19, .28, .27, 1);
  }
}

/* Hide arrow when scrolled */
.hero-scroll-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-shade,
  .hero-content,
  .hero-scroll-arrow {
    transition: none;
    animation: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-text-bg {
    padding: 2rem 1.5rem;
  }

  .hero-scroll-arrow {
    bottom: 1.5rem;
    width: 32px;
    height: 32px;
  }
}
