/* ============================================================
   animations.css — Scroll-triggered entrance animations
   Cards pop in from left/right, content fades up.
   Zero layout/structure changes — pure visual layer.
   ============================================================ */

/* ══════════════════════════════════════
   BASE HIDDEN STATE
   Elements start invisible + offset.
   JS adds .anim-in when they enter viewport.
   ══════════════════════════════════════ */

/* Fade up — default for most content */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity  0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pop from left */
.anim-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity  0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pop from right */
.anim-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity  0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scale pop — for cards */
.anim-pop {
  opacity: 0;
  transform: scale(0.92) translateY(24px);
  transition:
    opacity  0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── VISIBLE STATE ── */
.anim-fade-up.anim-in,
.anim-left.anim-in,
.anim-right.anim-in,
.anim-pop.anim-in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   STAGGER DELAYS
   Children animate one after another
   ══════════════════════════════════════ */
.anim-d1 { transition-delay: 0.05s; }
.anim-d2 { transition-delay: 0.12s; }
.anim-d3 { transition-delay: 0.19s; }
.anim-d4 { transition-delay: 0.26s; }
.anim-d5 { transition-delay: 0.33s; }
.anim-d6 { transition-delay: 0.40s; }

/* ══════════════════════════════════════
   PRODUCT CARDS — stagger pop
   ══════════════════════════════════════ */
.products-grid .product-card {
  opacity: 0;
  transform: scale(0.93) translateY(28px);
  transition:
    opacity   0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    /* keep existing hover transitions */
    border-color 0.32s,
    box-shadow   0.32s;
}
.products-grid .product-card.anim-in {
  opacity: 1;
  transform: none;
}
/* Stagger each card */
.products-grid .product-card:nth-child(1) { transition-delay: 0.04s; }
.products-grid .product-card:nth-child(2) { transition-delay: 0.10s; }
.products-grid .product-card:nth-child(3) { transition-delay: 0.16s; }
.products-grid .product-card:nth-child(4) { transition-delay: 0.22s; }
.products-grid .product-card:nth-child(5) { transition-delay: 0.28s; }
.products-grid .product-card:nth-child(6) { transition-delay: 0.34s; }

/* ══════════════════════════════════════
   PI CARDS (product detail) — stagger pop
   ══════════════════════════════════════ */
.pi-grid .pi-card {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.32s,
    box-shadow   0.32s;
}
.pi-grid .pi-card.anim-in {
  opacity: 1;
  transform: none;
}
.pi-grid .pi-card:nth-child(1)  { transition-delay: 0.04s; }
.pi-grid .pi-card:nth-child(2)  { transition-delay: 0.09s; }
.pi-grid .pi-card:nth-child(3)  { transition-delay: 0.14s; }
.pi-grid .pi-card:nth-child(4)  { transition-delay: 0.19s; }
.pi-grid .pi-card:nth-child(5)  { transition-delay: 0.24s; }
.pi-grid .pi-card:nth-child(6)  { transition-delay: 0.29s; }
.pi-grid .pi-card:nth-child(7)  { transition-delay: 0.34s; }
.pi-grid .pi-card:nth-child(8)  { transition-delay: 0.39s; }
.pi-grid .pi-card:nth-child(n+9){ transition-delay: 0.44s; }
/* ============================================================
   About Section Scroll Animations
   Add these rules to your animations.css
   ============================================================ */

/* ── ABOUT IMAGE — slides in from LEFT ── */
.about-img-wrap {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity   0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-img-wrap.anim-in {
  opacity: 1;
  transform: translateX(0);
}

/* ── ABOUT CONTENT — slides in from RIGHT ── */
.about-content {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity   0.75s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.75s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-content.anim-in {
  opacity: 1;
  transform: translateX(0);
}

/* ── ABOUT ITEMS — stagger up from bottom ── */
.about-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    /* keep existing hover transitions */
    border-color 0.25s,
    background   0.25s;
}
.about-item.anim-in {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger each item */
.about-item:nth-child(1) { transition-delay: 0.25s; }
.about-item:nth-child(2) { transition-delay: 0.35s; }
.about-item:nth-child(3) { transition-delay: 0.45s; }
.about-item:nth-child(4) { transition-delay: 0.55s; }

/* ── GMP BADGE — pops in with bounce ── */
.about-img-badge {
  opacity: 0;
  transform: scale(0.6) rotate(-8deg);
  transition:
    opacity   0.5s  0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.5s  0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.about-img-wrap.anim-in .about-img-badge {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ── REDUCE MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .about-img-wrap,
  .about-content,
  .about-item,
  .about-img-badge {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════
   CONTACT CARDS — alternate left/right
   ══════════════════════════════════════ */
.contact-cards .contact-card,
.contact-cards .c-card {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity   0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.25s,
    box-shadow   0.25s;
}
.contact-cards .contact-card.anim-in,
.contact-cards .c-card.anim-in {
  opacity: 1;
  transform: none;
}
.contact-cards .contact-card:nth-child(1),
.contact-cards .c-card:nth-child(1) { transition-delay: 0.05s; }
.contact-cards .contact-card:nth-child(2),
.contact-cards .c-card:nth-child(2) { transition-delay: 0.12s; }
.contact-cards .contact-card:nth-child(3),
.contact-cards .c-card:nth-child(3) { transition-delay: 0.19s; }
.contact-cards .contact-card:nth-child(4),
.contact-cards .c-card:nth-child(4) { transition-delay: 0.26s; }

/* ══════════════════════════════════════
   ABOUT FEATURE PILLS — left pop
   ══════════════════════════════════════ */
.about-features .feature-pill,
.about-features-grid .feature-pill {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity   0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.28s,
    background   0.28s;
}
.about-features .feature-pill.anim-in,
.about-features-grid .feature-pill.anim-in {
  opacity: 1;
  transform: none;
}
.feature-pill:nth-child(1) { transition-delay: 0.05s; }
.feature-pill:nth-child(2) { transition-delay: 0.12s; }
.feature-pill:nth-child(3) { transition-delay: 0.19s; }
.feature-pill:nth-child(4) { transition-delay: 0.26s; }

/* ══════════════════════════════════════
   VM CARDS — one from left, one from right
   ══════════════════════════════════════ */
.vm-grid .vm-card:nth-child(odd) {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity   0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vm-grid .vm-card:nth-child(even) {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity   0.65s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vm-grid .vm-card.anim-in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   SECTION HEADERS — fade up
   ══════════════════════════════════════ */
.section-chip,
.section-chip-dark {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section-chip.anim-in,
.section-chip-dark.anim-in {
  opacity: 1;
  transform: none;
}

.section-title,
h2.display {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.6s 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section-title.anim-in,
h2.display.anim-in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   ABOUT CONTENT BLOCKS
   Left side slides from left, right from right
   ══════════════════════════════════════ */
.about-intro-grid > *:first-child,
.about-card-grid > *:first-child {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity   0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-intro-grid > *:last-child,
.about-card-grid > *:last-child {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity   0.7s 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-intro-grid > *.anim-in,
.about-card-grid > *.anim-in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   CAREERS PERKS — fade up stagger
   ══════════════════════════════════════ */
.careers-perks .perk {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity   0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.careers-perks .perk.anim-in {
  opacity: 1;
  transform: none;
}
.careers-perks .perk:nth-child(1) { transition-delay: 0.05s; }
.careers-perks .perk:nth-child(2) { transition-delay: 0.11s; }
.careers-perks .perk:nth-child(3) { transition-delay: 0.17s; }
.careers-perks .perk:nth-child(4) { transition-delay: 0.23s; }
.careers-perks .perk:nth-child(5) { transition-delay: 0.29s; }
.careers-perks .perk:nth-child(6) { transition-delay: 0.35s; }

/* ══════════════════════════════════════
   FOOTER COLUMNS — fade up stagger
   ══════════════════════════════════════ */
.footer-top > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer-top > *.anim-in {
  opacity: 1;
  transform: none;
}
.footer-top > *:nth-child(1) { transition-delay: 0.05s; }
.footer-top > *:nth-child(2) { transition-delay: 0.12s; }
.footer-top > *:nth-child(3) { transition-delay: 0.19s; }
.footer-top > *:nth-child(4) { transition-delay: 0.26s; }

/* ══════════════════════════════════════
   REDUCE MOTION — respect user preference
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-left, .anim-right, .anim-pop,
  .products-grid .product-card,
  .pi-grid .pi-card,
  .contact-cards .contact-card,
  .contact-cards .c-card,
  .about-features .feature-pill,
  .about-features-grid .feature-pill,
  .vm-grid .vm-card,
  .section-chip, .section-chip-dark,
  .section-title, h2.display,
  .about-intro-grid > *,
  .about-card-grid > *,
  .careers-perks .perk,
  .footer-top > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}