/* ===== 1. SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child groups */
.stagger-children .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children .reveal:nth-child(6) { transition-delay: 500ms; }

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===== 2. COUNTING NUMBERS ===== */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ===== 3. HERO PARALLAX ===== */
.hero-bg {
  will-change: transform;
}

/* ===== 4. NAV SHRINK ===== */
/* Handled via JS class toggling — see layout.css for .solid / .transparent states */

/* ===== 5. GOLD LINE UNDERLINE ===== */
.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease 0.2s;
}

.section-heading h2.animated::after {
  transform: scaleX(1);
}

/* ===== 6. CARD HOVER LIFT ===== */
/* Defined in components.css under .card:hover, .card-service:hover etc. */

/* ===== 7. BUTTON SHIMMER ===== */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: none;
  pointer-events: none;
}

.btn-primary:hover::before {
  animation: shimmer 0.6s ease forwards;
}

/* ===== 8. MOBILE MENU SLIDE ===== */
/* Handled in layout.css under .mobile-nav */

/* Hamburger to X */
.hamburger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== 9. ACCORDION SMOOTH ===== */
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

/* ===== 10. SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-accent);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== ADDITIONAL ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

.pulse-gold {
  animation: pulseGold 2s infinite;
}

/* Hero content entrance */
.hero-content h1 {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.2s;
}

.hero-content p {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.4s;
}

.hero-btns {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.6s;
}

.hero-stats {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.8s;
}

/* Notification bar entrance */
.notification-bar {
  animation: slideInLeft 0.5s ease;
}

/* Dropdown animation */
.dropdown-menu {
  animation: none;
}

/* Timeline connectors */
.timeline::before {
  background: var(--gradient-accent);
}

/* Active nav underline */
@keyframes drawUnderline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Skeleton loader (for lazy images) */
.img-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s infinite;
}

@keyframes skeletonLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Gold accent line on service page hero */
.service-gold-strip {
  height: 4px;
  background: var(--gradient-accent);
  width: 100%;
}

/* Counter animation */
.count-up {
  display: inline-block;
}

/* Smooth underline for headings on dark bg */
.heading-underline-light {
  position: relative;
  display: inline-block;
}

.heading-underline-light::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease 0.2s;
}

.heading-underline-light.animated::after {
  transform: scaleX(1);
}

/* Page transitions */
.page-transition {
  animation: fadeIn 0.4s ease;
}

/* Trust badge hover */
.trust-badge .badge-icon {
  transition: background var(--transition), transform var(--transition);
}

.trust-badge:hover .badge-icon {
  background: rgba(201,168,76,0.15);
  transform: translateY(-4px);
}

/* Floating stat pills animation */
.hero-stat-pill {
  animation: fadeInUp 0.6s ease both;
}

.hero-stat-pill:nth-child(1) { animation-delay: 1.0s; }
.hero-stat-pill:nth-child(2) { animation-delay: 1.15s; }
.hero-stat-pill:nth-child(3) { animation-delay: 1.3s; }

/* Step number bounce on viewport entry */
.progress-step.revealed .step-num {
  animation: scaleIn 0.5s ease both;
}
