/* ==========================================================================
   SKYOCEANENTERPRISES — GLOBAL ANIMATIONS & INTERACTION SYSTEM
   File: assets/css/animations.css
   Applies smooth, premium scroll reveals and micro-interactions across
   Home, About Us, and Products pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base Scroll-Reveal Animation States
   -------------------------------------------------------------------------- */
.reveal,
.reveal-fade,
.reveal-left,
.reveal-right,
.reveal-zoom,
.reveal-card {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  transform: translateY(32px);
}

.reveal-fade {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-zoom {
  transform: scale(0.94) translateY(20px);
}

.reveal-card {
  transform: translateY(28px);
}

/* Activated State */
.reveal.is-visible,
.reveal-fade.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible,
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* --------------------------------------------------------------------------
   2. Stagger Delays for Sequential Elements (Cards, Highlights, Stats)
   -------------------------------------------------------------------------- */
.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }
.stagger-6 { transition-delay: 0.36s; }
.stagger-7 { transition-delay: 0.42s; }
.stagger-8 { transition-delay: 0.48s; }

/* --------------------------------------------------------------------------
   3. Hero Page-Load Entrance Keyframes (Immediate Polish on Load)
   -------------------------------------------------------------------------- */
@keyframes heroEntranceFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEntranceScale {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroBadgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
}

.animate-hero-badge {
  animation: heroEntranceFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.animate-hero-title {
  animation: heroEntranceFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.animate-hero-subtitle {
  animation: heroEntranceFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

.animate-hero-desc {
  animation: heroEntranceFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}

.animate-hero-cta {
  animation: heroEntranceFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}

.animate-hero-media {
  animation: heroEntranceScale 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* --------------------------------------------------------------------------
   4. Interactive Micro-Animations & Hover Enhancements
   -------------------------------------------------------------------------- */
/* Buttons */
.btn-nav-cta,
.btn-hero-explore,
.btn-products-hero,
.btn-products-cta,
.btn-services-cta,
.btn-about-contact,
.btn-products-contact,
.btn-cta-contact,
.btn-form-submit {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              box-shadow 0.25s ease !important;
}

.btn-nav-cta:hover,
.btn-hero-explore:hover,
.btn-products-hero:hover,
.btn-products-cta:hover,
.btn-services-cta:hover,
.btn-about-contact:hover,
.btn-products-contact:hover,
.btn-cta-contact:hover,
.btn-form-submit:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-nav-cta:active,
.btn-hero-explore:active,
.btn-products-hero:active,
.btn-products-cta:active,
.btn-services-cta:active,
.btn-about-contact:active,
.btn-products-contact:active,
.btn-cta-contact:active,
.btn-form-submit:active {
  transform: translateY(-1px) scale(0.99);
}

/* Card Zoom & Lift */
.product-card,
.service-card,
.catalog-card,
.why-work-card,
.contact-item-card,
.mv-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease !important;
}

.product-card:hover,
.catalog-card:hover,
.why-work-card:hover {
  transform: translateY(-6px);
}

/* Highlight Icons Pulse on Hover */
.why-highlight-item:hover .why-highlight-icon,
.why-work-card:hover .why-work-card-icon,
.contact-item-card:hover .contact-icon-box {
  transform: scale(1.1) rotate(4deg);
}

.why-highlight-icon,
.why-work-card-icon,
.contact-icon-box {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              color 0.3s ease;
}

/* --------------------------------------------------------------------------
   5. Accessibility: Respect prefers-reduced-motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-fade,
  .reveal-left,
  .reveal-right,
  .reveal-zoom,
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}




