/* ============================
   DESIGN 1 — ANIMATIONS LAYER
   Appended to style.css
   ============================ */

/* ===== PAGE LOAD TRANSITION ===== */
.page-transition-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform-origin: bottom;
  animation: pageReveal 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes pageReveal {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.reveal-up    { transform: translateY(50px); }
.reveal.reveal-left  { transform: translateX(-50px); }
.reveal.reveal-right { transform: translateX(50px); }
.reveal.reveal-zoom  { transform: scale(0.9); }
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== HERO ENTRANCE ===== */
.hero-badge    { animation: heroFadeUp 0.7s 0.2s ease both; }
.hero-title    { animation: heroFadeUp 0.7s 0.4s ease both; }
.hero-sub      { animation: heroFadeUp 0.7s 0.55s ease both; }
.hero-cta      { animation: heroFadeUp 0.7s 0.7s ease both; }
.hero-stats    { animation: heroFadeUp 0.7s 0.85s ease both; }
.hero-visual   { animation: heroFadeLeft 0.9s 0.3s cubic-bezier(0.4,0,0.2,1) both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== TRUST BAR MARQUEE ===== */
.trust-bar { overflow: hidden; padding: 0; }
.trust-marquee-track {
  display: flex; align-items: center;
  animation: marquee 28s linear infinite;
  width: max-content; gap: 0;
  padding: 20px 0;
}
.trust-marquee-track:hover { animation-play-state: paused; }
.trust-item { flex-shrink: 0; padding: 0 40px; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== PRODUCT SLIDER ===== */
.products-section { overflow: hidden; }
.slider-wrapper {
  position: relative;
  margin-bottom: 48px;
}
.products-track-outer {
  overflow: hidden;
  border-radius: 0;
}
.products-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.product-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 0;
}
.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 32px;
}
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border);
  background: #fff; color: var(--primary); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
  box-shadow: var(--shadow);
}
.slider-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.05); }
.slider-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: var(--transition);
}
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-section { overflow: hidden; }
.testimonials-track-outer { overflow: hidden; }
.testimonials-track {
  display: flex; gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
}
.testimonials-controls {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px;
}

/* ===== WHY FEATURES STAGGER ===== */
.why-feature {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ===== STAT COUNTER ===== */
.stat-num { transition: none; }

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

/* ===== SECTION PROGRESS INDICATOR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999;
  background: rgba(139,92,246,0.1);
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--primary), var(--cta));
  transition: width 0.1s linear;
}

/* ===== ANIMATED SECTION DIVIDER ===== */
.section-divider {
  height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0; opacity: 0;
  transition: opacity 0.6s ease;
}
.section-divider.visible { opacity: 1; }

/* ===== FLOATING PARTICLES ===== */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.3), transparent);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-120vh) translateX(60px) rotate(360deg); opacity: 0; }
}

/* ===== FEATURE ICON PULSE ===== */
.feature-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-feature:hover .feature-icon {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(139,92,246,0.2);
}

/* ===== CTA BANNER SHIMMER ===== */
.cta-banner::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: ctaShimmer 4s ease infinite;
}
@keyframes ctaShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ===== PRODUCT CARD MAGNETIC LIFT ===== */
.product-card {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.product-card:hover { transform: translateY(-10px) scale(1.01); }

/* ===== MOBILE SLIDER (touch) ===== */
@media (max-width: 1024px) {
  .product-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 640px) {
  .product-card { flex: 0 0 85%; }
  .testimonial-card { flex: 0 0 85%; }
}

/* ===== NAVBAR ENTRANCE ===== */
.navbar {
  animation: navDrop 0.6s 0.1s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes navDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ===== MOBILE MENU SLIDE ===== */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  z-index: 998; align-items: center; justify-content: center; gap: 24px;
  animation: mobileMenuIn 0.3s ease;
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.nav-links.mobile-open .nav-link { font-size: 1.6rem; font-family: 'Lora', serif; }

/* keep reduced-motion last */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-badge, .hero-title, .hero-sub, .hero-cta, .hero-stats, .hero-visual,
  .navbar, .trust-marquee-track, .cta-banner::after { animation: none !important; }
  .products-track, .testimonials-track { transition: none !important; }
}
