/* Animations - Smooth, Natural Transitions */
/* Xcemal */

/* ===================================
   Rotating Hero Word
   =================================== */

.rotating-word {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rotating-word.rotate-out {
  opacity: 0;
  transform: translateY(12px);
}

.rotating-word.rotate-in {
  animation: rotateWordIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rotateWordIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Fade Animations
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   Slide Animations
   =================================== */

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

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-down {
  animation: slideDown 0.6s ease-out;
}

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

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* ===================================
   Scale & Zoom Animations
   =================================== */

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-in {
  animation: zoomIn 0.6s ease-out;
}

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

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===================================
   Floating Animation
   =================================== */

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

.float {
  animation: float 3s ease-in-out infinite;
}

/* ===================================
   Spin Animation
   =================================== */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

/* ===================================
   Hover Transitions
   =================================== */

.transition-all {
  transition: all var(--transition-base);
}

.transition-transform {
  transition: transform var(--transition-base);
}

.transition-colors {
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ===================================
   Animation Delays
   =================================== */

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* ===================================
   Section Fade Animations
   =================================== */

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.section-visible {
  opacity: 1;
  transform: translateY(0);
}

section.hero {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

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

@keyframes sectionFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.section-fade-in {
  animation: sectionFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-fade-out {
  animation: sectionFadeOut 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===================================
   Organic Blob Backgrounds
   =================================== */

.blob-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.blob-programs-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: blobDrift 12s ease-in-out infinite alternate;
}

.blob-programs-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(20,184,166,0.14) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
  border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
  animation: blobDrift 15s ease-in-out infinite alternate-reverse;
}

.blob-partners-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  top: -80px;
  left: -80px;
  border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
  animation: blobDrift 18s ease-in-out infinite alternate;
}

@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* Make sure section content sits above blobs */
.blob-bg ~ .container {
  position: relative;
  z-index: 1;
}
