/* ============================================================
   MAHIRA PREMIUM | HERO
   ============================================================
   Purpose: Hero section styles
   Editable: Yes
   Dependencies: variables.css, buttons.css
   ============================================================ */

.hero {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.hero-title {
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
}

.hero-features {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.hero-feature {
  text-align: center;
}

.hero-feature-icon {
  font-size: var(--font-size-2xl);
  color: var(--accent-gold);
  margin-bottom: var(--spacing-xs);
}

.hero-feature-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-product-wrapper {
  position: relative;
  display: inline-block;
  transform-origin: top center;
}

.hero-product-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  transform-origin: top center;
  will-change: transform;
}

/* ============================================================
   HERO PRODUCT ANIMATIONS
   ============================================================ */

/* Fade In + Scale + Translate Y on Load */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Subtle Swing Animation */
@keyframes heroSwing {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

/* Luxury Shine Animation */
@keyframes heroShine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.hero-product-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(212, 175, 55, 0.15) 30%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(212, 175, 55, 0.15) 70%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 1;
}

/* Apply animations */
.hero-product-image {
  animation: heroFadeIn 900ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: translateY(0); /* Base for parallax */
}

.hero-product-wrapper {
  animation: heroSwing 3s ease-in-out infinite alternate;
}

.hero-product-wrapper::before {
  animation: heroShine 4s ease-in-out infinite;
  animation-delay: 2s;
}

/* Hover effects */
.hero-product-wrapper:hover {
  animation-play-state: paused;
}

.hero-product-wrapper:hover .hero-product-image {
  transform: translateY(var(--hero-parallax-y, 0px)) scale(1.02) perspective(1000px) rotateY(2deg) rotateX(1deg);
  box-shadow: 0 20px 40px rgba(61, 43, 31, 0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-product-image,
  .hero-product-wrapper,
  .hero-product-wrapper::before {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-product-wrapper:hover .hero-product-image {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Responsive Hero */
@media (max-width: 991.98px) {
  .hero {
    padding: var(--spacing-2xl) 0;
    text-align: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image-wrapper {
    margin-top: var(--spacing-xl);
  }
}
