/**
 * Premium Animations & Polish
 * Speedy ICT - Sophisticated Motion Design
 * 
 * Subtle, professional animations that enhance the premium business feel
 */

/* ============================================
   PREMIUM ANIMATIONS - Business Polish
   ============================================ */

/* Smooth fade-in animation for page load */
@keyframes zp-premium-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle scale animation for cards */
@keyframes zp-premium-scale-up {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subtle glow pulse for accent elements */
@keyframes zp-premium-glow-pulse {
  0%, 100% {
    box-shadow: 
      0 0 0 1px rgba(247, 165, 69, 0.15),
      0 18px 50px rgba(68, 34, 21, 0.35);
  }
  50% {
    box-shadow: 
      0 0 0 1px rgba(242, 92, 60, 0.35),
      0 24px 70px rgba(68, 34, 21, 0.45);
  }
}

/* Gradient shimmer effect */
@keyframes zp-premium-shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Slide-in from left */
@keyframes zp-premium-slide-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide-in from right */
@keyframes zp-premium-slide-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade up animation */
@keyframes zp-premium-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   COMPONENT ANIMATIONS
   ============================================ */

/* Hero Section Animations */
body[data-theme="premium_business"] .zp-hero {
  animation: zp-premium-fade-in 0.9s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

body[data-theme="premium_business"] .zp-hero__copy {
  animation: zp-premium-slide-left 1s cubic-bezier(0.16, 0.84, 0.44, 1) 0.15s forwards;
  opacity: 0;
}

body[data-theme="premium_business"] .zp-hero__poster {
  animation: zp-premium-slide-right 1s cubic-bezier(0.16, 0.84, 0.44, 1) 0.25s forwards;
  opacity: 0;
}

body[data-theme="premium_business"] .zp-kicker,
body[data-theme="premium_business"] .zp-h1,
body[data-theme="premium_business"] .zp-hero__p,
body[data-theme="premium_business"] .zp-hero__cta,
body[data-theme="premium_business"] .zp-hero__tags {
  animation: zp-premium-fade-up 0.75s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
  opacity: 0;
}

body[data-theme="premium_business"] .zp-kicker {
  animation-delay: 0.1s;
}

body[data-theme="premium_business"] .zp-h1 {
  animation-delay: 0.2s;
}

body[data-theme="premium_business"] .zp-hero__p {
  animation-delay: 0.3s;
}

body[data-theme="premium_business"] .zp-hero__cta {
  animation-delay: 0.4s;
}

body[data-theme="premium_business"] .zp-hero__tags {
  animation-delay: 0.5s;
}

/* Card Animations */
body[data-theme="premium_business"] .zp-card {
  animation: zp-premium-scale-up 0.65s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
  opacity: 0;
}

body[data-theme="premium_business"] .zp-card:nth-child(1) {
  animation-delay: 0.1s;
}

body[data-theme="premium_business"] .zp-card:nth-child(2) {
  animation-delay: 0.2s;
}

body[data-theme="premium_business"] .zp-card:nth-child(3) {
  animation-delay: 0.3s;
}

body[data-theme="premium_business"] .zp-card:nth-child(4) {
  animation-delay: 0.4s;
}

body[data-theme="premium_business"] .zp-card:nth-child(5) {
  animation-delay: 0.5s;
}

body[data-theme="premium_business"] .zp-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Stats Row Animations */
body[data-theme="premium_business"] .zp-stats__item {
  animation: zp-premium-fade-up 0.75s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
  opacity: 0;
}

body[data-theme="premium_business"] .zp-stats__item:nth-child(1) {
  animation-delay: 0.1s;
}

body[data-theme="premium_business"] .zp-stats__item:nth-child(2) {
  animation-delay: 0.2s;
}

body[data-theme="premium_business"] .zp-stats__item:nth-child(3) {
  animation-delay: 0.3s;
}

body[data-theme="premium_business"] .zp-stats__item:nth-child(4) {
  animation-delay: 0.4s;
}

/* Accordion Animations */
body[data-theme="premium_business"] .zp-acc__item {
  animation: zp-premium-fade-up 0.65s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
  opacity: 0;
}

body[data-theme="premium_business"] .zp-acc__item:nth-child(1) {
  animation-delay: 0.1s;
}

body[data-theme="premium_business"] .zp-acc__item:nth-child(2) {
  animation-delay: 0.2s;
}

body[data-theme="premium_business"] .zp-acc__item:nth-child(3) {
  animation-delay: 0.3s;
}

body[data-theme="premium_business"] .zp-acc__item:nth-child(4) {
  animation-delay: 0.4s;
}

/* Section Header Animations */
body[data-theme="premium_business"] .zp-sectionHeader {
  animation: zp-premium-fade-up 0.85s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
  opacity: 0;
}

body[data-theme="premium_business"] .zp-kicker {
  animation: zp-premium-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}


/* ============================================
   HOVER EFFECTS - Premium Feel
   ============================================ */

/* Button Hover Glow */
body[data-theme="premium_business"] .zp-btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body[data-theme="premium_business"] .zp-btn--primary:hover::after {
  opacity: 1;
}

/* Card Hover Lift */
body[data-theme="premium_business"] .zp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

body[data-theme="premium_business"] .zp-card:hover::before {
  opacity: 1;
}

/* Link Underline Animation */
body[data-theme="premium_business"] .zp-footer__a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 10px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--zp-crimson), var(--zp-accent-2));
  transition: width 0.3s ease;
}

body[data-theme="premium_business"] .zp-footer__a:hover::after {
  width: calc(100% - 20px);
}

/* Navigation Indicator Smooth Transition */
body[data-theme="premium_business"] .zp-nav__indicator {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================
   GRADIENT BACKGROUNDS - Dynamic Surfaces
   ============================================ */

/* Animated gradient for hero */
body[data-theme="premium_business"] .zp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.06) 0%,
    transparent 50%,
    rgba(217, 119, 6, 0.04) 100%
  );
  animation: zp-premium-shimmer 15s ease-in-out infinite;
  background-size: 200% 200%;
  pointer-events: none;
  z-index: 0;
}

/* Subtle animated background for cards */
body[data-theme="premium_business"] .zp-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(220, 38, 38, 0.04),
    transparent 70%
  );
  animation: zp-premium-shimmer 20s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

body[data-theme="premium_business"] .zp-card:hover::after {
  opacity: 1;
}


/* ============================================
   BORDER GLOW EFFECTS
   ============================================ */

/* Accent border glow on hover */
body[data-theme="premium_business"] .zp-card,
body[data-theme="premium_business"] .zp-hero__frame {
  position: relative;
}

body[data-theme="premium_business"] .zp-card::before,
body[data-theme="premium_business"] .zp-hero__frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.3),
    rgba(217, 119, 6, 0.15),
    rgba(220, 38, 38, 0.3)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

body[data-theme="premium_business"] .zp-card:hover::before,
body[data-theme="premium_business"] .zp-hero__frame:hover::before {
  opacity: 0.7;
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Reveal on scroll using data attributes */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
[data-reveal-stagger] > *:nth-child(1) { transition-delay: 0.1s; }
[data-reveal-stagger] > *:nth-child(2) { transition-delay: 0.2s; }
[data-reveal-stagger] > *:nth-child(3) { transition-delay: 0.3s; }
[data-reveal-stagger] > *:nth-child(4) { transition-delay: 0.4s; }
[data-reveal-stagger] > *:nth-child(5) { transition-delay: 0.5s; }
[data-reveal-stagger] > *:nth-child(6) { transition-delay: 0.6s; }


/* ============================================
   LOADING STATES - Premium Skeleton
   ============================================ */

@keyframes zp-premium-skeleton {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.zp-premium-skeleton {
  background: linear-gradient(
    90deg,
    rgba(31, 36, 48, 0.8) 0%,
    rgba(31, 36, 48, 0.95) 50%,
    rgba(31, 36, 48, 0.8) 100%
  );
  background-size: 200% 100%;
  animation: zp-premium-skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}


/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  body[data-theme="premium_business"] *,
  body[data-theme="premium_business"] *::before,
  body[data-theme="premium_business"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Keep essential fade-ins but make them instant */
  body[data-theme="premium_business"] .zp-hero,
  body[data-theme="premium_business"] .zp-hero__copy,
  body[data-theme="premium_business"] .zp-hero__poster,
  body[data-theme="premium_business"] .zp-card,
  body[data-theme="premium_business"] .zp-stats__item,
  body[data-theme="premium_business"] .zp-acc__item,
  body[data-theme="premium_business"] .zp-sectionHeader {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* ============================================
   PRINT STYLES - Business Professional
   ============================================ */

@media print {
  body[data-theme="premium_business"] {
    background: white !important;
    color: black !important;
  }
  
  body[data-theme="premium_business"] .zp-nav,
  body[data-theme="premium_business"] .zp-footer,
  body[data-theme="premium_business"] .zp-btn,
  body[data-theme="premium_business"] [data-component="ParticleBackground"] {
    display: none !important;
  }
  
  body[data-theme="premium_business"] a {
    text-decoration: underline;
    color: black !important;
  }
}
