/* ======================
   ENTRANCE ANIMATIONS 
   ====================== */
@keyframes fadeIn {
  from { 
    opacity: 0;
    filter: blur(5px);
    transform: scale(0.95);
  }
  to { 
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(40px) perspective(500px) rotateX(15deg);
  }
  to { 
    opacity: 1;
    transform: translateY(0) perspective(500px) rotateX(0);
  }
}

@keyframes slideRight {
  from { 
    opacity: 0;
    transform: translateX(-40px) skewX(-10deg);
  }
  to { 
    opacity: 1;
    transform: translateX(0) skewX(0);
  }
}

@keyframes slideLeft {
  from { 
    opacity: 0;
    transform: translateX(40px) skewX(10deg);
  }
  to { 
    opacity: 1;
    transform: translateX(0) skewX(0);
  }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* ======================
   SECTION ANIMATIONS 
   ====================== */
.hero-content {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.vision-section {
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.4s;
}

.value-card {
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.value-card:nth-child(1) { animation-delay: 0.3s; }
.value-card:nth-child(2) { animation-delay: 0.45s; }
.value-card:nth-child(3) { animation-delay: 0.6s; }
.value-card:nth-child(4) { animation-delay: 0.75s; }

.scope-section {
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.5s;
}

.contact-section {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

/* ======================
   INTERACTIVE ELEMENTS 
   ====================== */
.glass-card {
  transition: 
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
  will-change: transform;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(12px);
}

.btn {
  transition: 
    all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* ======================
   SPECIAL EFFECTS 
   ====================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulse {
  0% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% { 
    transform: scale(1);
    opacity: 1;
  }
}

.loading {
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* ======================
   SCROLL ANIMATIONS 
   ====================== */
[data-animate-on-scroll] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate-on-scroll="fadeIn"] {
  transform: translateY(30px);
}

[data-animate-on-scroll="slideRight"] {
  transform: translateX(-40px);
}

[data-animate-on-scroll="slideLeft"] {
  transform: translateX(40px);
}

[data-animate-on-scroll].animated {
  opacity: 1;
  transform: translate(0);
}

/* ======================
   PERFORMANCE OPTIMIZATIONS 
   ====================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}