/* ============================================================
   BACKGROUND BLOBS
   ============================================================ */

.blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  filter: blur(80px);
}

.blob-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(62, 131, 141, 0.22) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: blob-drift-1 20s ease-in-out infinite;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(62, 131, 141, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: blob-drift-2 28s ease-in-out infinite;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10, 45, 107, 0.6) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blob-drift-3 24s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(80px, 60px) scale(1.05); }
  66%       { transform: translate(-40px, 100px) scale(0.95); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-90px, -70px) scale(1.08); }
  70%       { transform: translate(50px, -40px) scale(0.92); }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.15); }
}

.blob-4 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(239, 178, 93, 0.18) 0%, transparent 70%);
  top: 40%;
  right: -150px;
  animation: blob-drift-4 22s ease-in-out infinite;
}

@keyframes blob-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35%       { transform: translate(-70px, -50px) scale(1.06); }
  65%       { transform: translate(-30px, 80px) scale(0.94); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.from-left {
  transform: translateX(-28px);
}

.animate-on-scroll.from-right {
  transform: translateX(28px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   HERO FLOAT
   ============================================================ */

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

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

/* ============================================================
   PULSE GLOW (CTA button)
   ============================================================ */

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(62, 131, 141, 0); }
  50%       { box-shadow: 0 0 40px rgba(62, 131, 141, 0.5); }
}

.btn--pulse {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================================
   GRADIENT SHIFT (hero headline accent)
   ============================================================ */

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.gradient-text-animated {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7ed4dd 40%, #b8ecf1 60%, var(--color-primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(6px); opacity: 1; }
}

.scroll-indicator {
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* ============================================================
   FADE IN UP (for page load)
   ============================================================ */

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

.fade-in-up {
  animation: fade-in-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-in-up--delay-1 { animation-delay: 0.1s; }
.fade-in-up--delay-2 { animation-delay: 0.2s; }
.fade-in-up--delay-3 { animation-delay: 0.35s; }
.fade-in-up--delay-4 { animation-delay: 0.5s; }

@media (max-width: 768px) {
  .blob {
    display: none;
  }

  .animate-on-scroll.from-left,
  .animate-on-scroll.from-right {
    transform: translateY(24px);
  }
}

/* ============================================================
   SHIMMER (loading/skeleton states)
   ============================================================ */

@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
