/* Animation Styles */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Slide In Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Animate on Scroll Classes */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
  animation: scaleIn 0.6s ease forwards;
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }

/* Card Hover Effects */
.card-hover-effect {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255,145,175,0.3);
}

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::before {
  width: 300px;
  height: 300px;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Page Load Animation */
body {
  animation: fadeIn 0.6s ease-in;
}

/* Hero Section Animation */
.hero-inner {
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .hero-lead {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.breadcrumb {
  animation: fadeIn 0.8s ease-out;
}

/* Section Title Animation */
.section-header {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.section-header .tag {
  animation: fadeIn 0.6s ease forwards;
}

.section-header .section-title {
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.section-header .section-subtitle {
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* Card Grid Animations */
.product-grid > *,
.brand-grid > *,
.service-grid > *,
.services-grid > *,
.program-grid > *,
.inquiries-grid > *,
.target-grid > *,
.reasons-grid > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.product-grid > *:nth-child(1),
.brand-grid > *:nth-child(1),
.service-grid > *:nth-child(1),
.services-grid > *:nth-child(1),
.program-grid > *:nth-child(1),
.inquiries-grid > *:nth-child(1),
.target-grid > *:nth-child(1),
.reasons-grid > *:nth-child(1) { animation-delay: 0.1s; }

.product-grid > *:nth-child(2),
.brand-grid > *:nth-child(2),
.service-grid > *:nth-child(2),
.services-grid > *:nth-child(2),
.program-grid > *:nth-child(2),
.inquiries-grid > *:nth-child(2),
.target-grid > *:nth-child(2),
.reasons-grid > *:nth-child(2) { animation-delay: 0.2s; }

.product-grid > *:nth-child(3),
.brand-grid > *:nth-child(3),
.service-grid > *:nth-child(3),
.services-grid > *:nth-child(3),
.program-grid > *:nth-child(3),
.inquiries-grid > *:nth-child(3),
.target-grid > *:nth-child(3),
.reasons-grid > *:nth-child(3) { animation-delay: 0.3s; }

.product-grid > *:nth-child(4),
.brand-grid > *:nth-child(4),
.service-grid > *:nth-child(4),
.services-grid > *:nth-child(4),
.program-grid > *:nth-child(4),
.inquiries-grid > *:nth-child(4),
.target-grid > *:nth-child(4),
.reasons-grid > *:nth-child(4) { animation-delay: 0.4s; }

.product-grid > *:nth-child(5),
.brand-grid > *:nth-child(5),
.service-grid > *:nth-child(5),
.services-grid > *:nth-child(5),
.program-grid > *:nth-child(5),
.inquiries-grid > *:nth-child(5),
.target-grid > *:nth-child(5),
.reasons-grid > *:nth-child(5) { animation-delay: 0.5s; }

.product-grid > *:nth-child(6),
.brand-grid > *:nth-child(6),
.service-grid > *:nth-child(6),
.services-grid > *:nth-child(6),
.program-grid > *:nth-child(6),
.inquiries-grid > *:nth-child(6),
.target-grid > *:nth-child(6),
.reasons-grid > *:nth-child(6) { animation-delay: 0.6s; }

/* Split Section Animations */
.split .card-image {
  opacity: 0;
  animation: fadeInLeft 1s ease 0.3s forwards;
}

.split.reverse .card-image {
  animation: fadeInRight 1s ease 0.3s forwards;
}

.split .text-block {
  opacity: 0;
  animation: fadeInRight 1s ease 0.3s forwards;
}

.split.reverse .text-block {
  animation: fadeInLeft 1s ease 0.3s forwards;
}

/* Timeline Animation */
.process-step {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }

/* Contact Form Animation */
.form-group {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.form-row:nth-child(1) .form-group { animation-delay: 0.1s; }
.form-row:nth-child(2) .form-group { animation-delay: 0.2s; }
.form-row:nth-child(3) .form-group { animation-delay: 0.3s; }
.form-row:nth-child(4) .form-group { animation-delay: 0.4s; }
.form-row:nth-child(5) .form-group { animation-delay: 0.5s; }
.form-row:nth-child(6) .form-group { animation-delay: 0.6s; }

.form-actions {
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

/* Logo Animation */
.logo {
  animation: fadeIn 0.8s ease;
}

.logo:hover .logo-image {
  animation: pulse 1s ease infinite;
}

/* Navigation Animation */
nav a {
  position: relative;
}

nav a::after {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA Section Animation */
.cta-content {
  opacity: 0;
  animation: scaleIn 0.8s ease forwards;
}

/* Footer Animation */
footer .footer-layout > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

footer .footer-layout > *:nth-child(1) { animation-delay: 0.1s; }
footer .footer-layout > *:nth-child(2) { animation-delay: 0.2s; }

/* Reduce Motion for Accessibility */
@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;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .card-hover-effect:hover {
    transform: translateY(-4px);
  }
  
  /* Reduce animation delays on mobile */
  .stagger-1,
  .stagger-2,
  .stagger-3,
  .stagger-4,
  .stagger-5,
  .stagger-6,
  .stagger-7,
  .stagger-8 {
    animation-delay: 0s;
  }
  
  .product-grid > *,
  .brand-grid > *,
  .service-grid > *,
  .services-grid > *,
  .program-grid > *,
  .inquiries-grid > *,
  .target-grid > *,
  .reasons-grid > * {
    animation-delay: 0s !important;
  }
}

