/* Homepage-specific styles */

/* Hero animations and transitions */
.hero-video {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease forwards 0.5s;
}

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

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

/* Hero scene transitions */
.hero-media {
  transition: opacity var(--transition-slow);
}

.hero-media.fade-out {
  opacity: 0;
}

.hero-media.fade-in {
  opacity: 1;
}

/* Trust strip animations */
.trust-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.trust-item:nth-child(1) {
  animation-delay: 0.2s;
}

.trust-item:nth-child(2) {
  animation-delay: 0.4s;
}

.trust-item:nth-child(3) {
  animation-delay: 0.6s;
}

.trust-item:nth-child(4) {
  animation-delay: 0.8s;
}

/* Residence card animations */
.residence-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.residence-card:nth-child(1) {
  animation-delay: 0.2s;
}

.residence-card:nth-child(2) {
  animation-delay: 0.4s;
}

.residence-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* Owner service animations */
.owner-service-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.3s;
}

.owner-service-features .feature {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.6s ease forwards;
}

.owner-service-features .feature:nth-child(1) {
  animation-delay: 0.2s;
}

.owner-service-features .feature:nth-child(2) {
  animation-delay: 0.4s;
}

.owner-service-features .feature:nth-child(3) {
  animation-delay: 0.6s;
}

/* Investor platform animations */
.investor-platform-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.investor-platform-content > *:nth-child(1) {
  animation-delay: 0.2s;
}

.investor-platform-content > *:nth-child(2) {
  animation-delay: 0.4s;
}

/* Future destinations animations */
.destination-preview {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.6s ease forwards;
}

.destination-preview:nth-child(1) {
  animation-delay: 0.2s;
}

.destination-preview:nth-child(2) {
  animation-delay: 0.4s;
}

.destination-preview:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Final CTA animations */
.final-cta-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.3s;
}

.final-cta-buttons .cta-primary,
.final-cta-buttons .cta-secondary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.final-cta-buttons .cta-primary {
  animation-delay: 0.2s;
}

.final-cta-buttons .cta-secondary {
  animation-delay: 0.4s;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}