/* ========================================
   HOUSE MONEY FILMS - ANIMATIONS
   Scroll effects, transitions, keyframes
   ======================================== */

/* ========================================
   FADE IN ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animations */
.fade-in-stagger {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in-stagger.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-stagger:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in-stagger:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-stagger:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in-stagger:nth-child(4) {
  animation-delay: 0.4s;
}

.fade-in-stagger:nth-child(5) {
  animation-delay: 0.5s;
}

.fade-in-stagger:nth-child(6) {
  animation-delay: 0.6s;
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========================================
   LOADING ANIMATION
   ======================================== */

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   PARALLAX EFFECT
   ======================================== */

.parallax {
  transition: transform 0.3s ease-out;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: var(--shadow-gold);
}

.hover-scale {
  transition: transform var(--transition-base);
}

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

/* ========================================
   PAGE LOAD ANIMATION
   ======================================== */

.page-enter {
  animation: fadeIn 0.5s ease;
}

/* ========================================
   GOLD LINE ANIMATION
   ======================================== */

.gold-line {
  position: relative;
  overflow: hidden;
}

.gold-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent-gold),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* ========================================
   SECTION REVEAL
   ======================================== */

.section-reveal {
  opacity: 0;
  transform: translateY(50px);
}

.section-reveal.visible {
  animation: fadeInUp 1s ease forwards;
}

/* ========================================
   TEXT REVEAL ANIMATIONS
   ======================================== */

.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-content > * {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-tagline {
  animation-delay: 0.2s;
}

.hero-title {
  animation-delay: 0.4s;
}

.hero-description {
  animation-delay: 0.6s;
}

.hero-actions {
  animation-delay: 0.8s;
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--color-accent-gold);
  border-radius: 20px;
  opacity: 0.7;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background-color: var(--color-accent-gold);
  border-radius: 3px;
  animation: scroll-down 2s infinite;
}

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

@media (max-width: 900px) {
  .scroll-indicator {
    display: none !important;
  }
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent-gold),
    var(--color-accent-alt)
  );
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.1s ease;
}

/* ========================================
   REDUCE MOTION PREFERENCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .fade-in-stagger {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   UTILITY ANIMATION CLASSES
   ======================================== */

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

.no-animation {
  animation: none !important;
  transition: none !important;
}

