/* =============================================
   LEVERAGE STRATEGIES - PREMIUM ANIMATIONS
   Global Animation System für alle Seiten
   ============================================= */

/* =============================================
   PAGE LOAD ANIMATIONS
   Cinematische Blur-to-Sharp Reveals
   ============================================= */

/* Hero Elements - Blur to Sharp */
.hero-animate,
.animate-blur {
  opacity: 0;
  transform: translateY(30px) translateZ(0);
  filter: blur(10px);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
}

.hero-animate.visible,
.animate-blur.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  filter: blur(0);
}

/* Staggered Delays */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* Fade Up Animation */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scale In Animation */
.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Slide In from Left */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide In from Right */
.animate-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   SCROLL ANIMATIONS
   For elements that animate on scroll
   ============================================= */

.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   HOVER ENHANCEMENTS
   Premium hover states
   ============================================= */

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 200, 150, 0.3);
}

/* =============================================
   TEXT ANIMATIONS
   For headlines and important text
   ============================================= */

.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.visible span {
  transform: translateY(0);
}

/* =============================================
   BADGE ANIMATIONS
   For labels and badges
   ============================================= */

.badge-animate {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  filter: blur(5px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* =============================================
   CARD ANIMATIONS
   For service cards, project cards, etc.
   ============================================= */

.card-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card animations */
.card-animate:nth-child(1) { transition-delay: 0s; }
.card-animate:nth-child(2) { transition-delay: 0.1s; }
.card-animate:nth-child(3) { transition-delay: 0.2s; }
.card-animate:nth-child(4) { transition-delay: 0.3s; }
.card-animate:nth-child(5) { transition-delay: 0.4s; }
.card-animate:nth-child(6) { transition-delay: 0.5s; }

/* =============================================
   BACKGROUND ENHANCEMENTS
   For atmospheric depth
   ============================================= */

/* Vignette effect for pages */
.page-vignette::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* =============================================
   REDUCED MOTION
   Accessibility support
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-animate,
  .animate-blur,
  .animate-fade-up,
  .animate-scale-in,
  .animate-slide-left,
  .animate-slide-right,
  .scroll-animate,
  .card-animate,
  .badge-animate,
  .text-reveal span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =============================================
   PERFORMANCE HINTS
   GPU acceleration for smooth animations
   ============================================= */

.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* =============================================
   1. CTA BUTTON SHIMMER EFFECT
   Premium light-sweep animation
   ============================================= */

.nav-cta,
.cta-shimmer {
  position: relative;
  overflow: hidden;
}

.nav-cta::after,
.cta-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-cta:hover::after,
.cta-shimmer:hover::after {
  left: 100%;
}

/* =============================================
   2. FOOTER ENHANCEMENT
   Premium glow and atmosphere
   ============================================= */

.footer-masterpiece,
footer {
  position: relative;
}

.footer-glow-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 200, 150, 0.3) 20%,
    rgba(0, 200, 150, 0.6) 50%,
    rgba(0, 200, 150, 0.3) 80%,
    transparent 100%
  );
}

.footer-glow-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 80px;
  background: radial-gradient(
    ellipse at top,
    rgba(0, 200, 150, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* =============================================
   3. CARD HOVER-LIFT ENHANCEMENT
   Consistent premium hover feedback
   ============================================= */

.service-card,
.project-card,
.testimonial-card,
.pricing-card,
.feature-card,
.demo-card,
.article-card,
.insight-card,
.team-card,
.partner-card,
[class*="-card"] {
  transition: 
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease !important;
}

.service-card:hover,
.project-card:hover,
.testimonial-card:hover,
.pricing-card:hover,
.feature-card:hover,
.demo-card:hover,
.article-card:hover,
.insight-card:hover,
.team-card:hover,
.partner-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 200, 150, 0.1) !important;
}

/* Featured cards get extra glow */
.pricing-card.featured:hover,
.demo-card.featured:hover {
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 200, 150, 0.15) !important;
}

/* =============================================
   4. LOADING SKELETON
   Elegant placeholder animations
   ============================================= */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite ease-in-out;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton Card */
.skeleton-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
}

.skeleton-title {
  height: 24px;
  width: 80%;
}

.skeleton-text {
  height: 14px;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.skeleton-tag {
  height: 12px;
  width: 80px;
}

/* Loading Spinner Enhancement */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 200, 150, 0.1);
  border-top-color: rgba(0, 200, 150, 0.8);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* =============================================
   BUTTON ENHANCEMENTS
   Global button improvements
   ============================================= */

button,
.btn,
[type="submit"] {
  position: relative;
  overflow: hidden;
}

/* Ripple effect on click */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =============================================
   LINK HOVER UNDERLINE
   Premium animated underline
   ============================================= */

.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-underline:hover::after {
  width: 100%;
}

