/* =============================================================
   ARES ENERGY — CENTRALISED ANIMATIONS SYSTEM
   All scroll-reveal, entry, and motion animations
   Loaded on every page via <link rel="stylesheet" href="/css/animations.css">
   ============================================================= */

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

/* ── Base Reveal (Fade Up) ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Directional Variants ─────────────────────────────── */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.reveal-fade.visible { opacity: 1; }

/* ── Stagger Delays ──────────────────────────────────── */
.reveal-delay-1, .stagger-child:nth-child(1) { transition-delay: 0.10s; }
.reveal-delay-2, .stagger-child:nth-child(2) { transition-delay: 0.20s; }
.reveal-delay-3, .stagger-child:nth-child(3) { transition-delay: 0.30s; }
.reveal-delay-4, .stagger-child:nth-child(4) { transition-delay: 0.40s; }
.reveal-delay-5, .stagger-child:nth-child(5) { transition-delay: 0.50s; }
.reveal-delay-6, .stagger-child:nth-child(6) { transition-delay: 0.60s; }

/* ── Stagger Container ───────────────────────────────── */
/* Add class="stagger-group" to a container — its direct children get stagger delays */
.stagger-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-group.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger-group.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.stagger-group.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.stagger-group.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.35s; }
.stagger-group.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.45s; }
.stagger-group.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.55s; }
.stagger-group.visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.65s; }
.stagger-group.visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.75s; }
.stagger-group.visible > *:nth-child(n+9) { opacity: 1; transform: none; transition-delay: 0.80s; }

/* ── Counter Animation ───────────────────────────────── */
[data-counter] {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* ── Scroll Progress Bar ─────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f38b2a, #fbbf24);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Hero Parallax Container ─────────────────────────── */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Image Aspect Ratio Enforcement (Google Discover) ──── */
/* 16:9 images for Google Discover eligibility */
.img-16-9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Card Hover Lift ─────────────────────────────────── */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11, 28, 46, 0.14);
}

/* ── Shimmer Loading Placeholder ────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ── Float Animation ─────────────────────────────────── */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float-gentle {
  animation: float-gentle 4s ease-in-out infinite;
}

/* ── Pulse Glow (for badges/icons) ──────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 139, 42, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(243, 139, 42, 0); }
}
.pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ── Section Divider Wave ────────────────────────────── */
.section-wave {
  position: relative;
  overflow: hidden;
}
.section-wave::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,30 C300,60 900,0 1200,30 L1200,60 L0,60 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: cover;
  pointer-events: none;
}

.hero-section .reveal,
.hero-section .reveal-left,
.hero-section .reveal-right,
.hero-section .reveal-scale,
.hero-section .reveal-fade,
.hero-section .stagger-group>*{
  opacity:1!important;
  transform:none!important;
  transition:none!important;
}