/* ============================================================
   ANIMATIONS.CSS — Keyframes, Hover Effects, Transitions
   ============================================================ */

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulseLogo {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.95); }
}
@keyframes bounceScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,180,216,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,180,216,0.6); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
@keyframes floatYSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(5deg); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--color-primary); }
  50%       { border-color: var(--color-accent); }
}
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}
@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes expandRing {
  0%   { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 0;   transform: scale(1.1); }
}

/* ── Animated Geometric Shapes (Hero) ───────────────────── */
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #00B4D8, transparent 70%);
  top: -200px; right: -100px;
  animation: floatY 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #F5A623, transparent 70%);
  bottom: -100px; left: -80px;
  animation: floatY 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #ffffff, transparent 70%);
  top: 30%; left: 20%;
  opacity: 0.04;
  animation: floatYSlow 12s ease-in-out infinite;
}

/* Floating hex decoration */
.hex-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hex-item {
  position: absolute;
  width: 60px; height: 60px;
  background: rgba(0,180,216,0.07);
  clip-path: polygon(50% 0%,93.3% 25%,93.3% 75%,50% 100%,6.7% 75%,6.7% 25%);
  animation: floatYSlow var(--dur,8s) ease-in-out infinite;
}

/* ── Hero Entrance Animations ────────────────────────────── */
.hero-content .animate-badge   { animation: fadeInUp   0.6s ease both; animation-delay: 0.3s; opacity: 0; }
.hero-content .animate-title   { animation: fadeInUp   0.6s ease both; animation-delay: 0.5s; opacity: 0; }
.hero-content .animate-sub     { animation: fadeInUp   0.6s ease both; animation-delay: 0.7s; opacity: 0; }
.hero-content .animate-buttons { animation: fadeInUp   0.6s ease both; animation-delay: 0.9s; opacity: 0; }

/* ── Utility Animation Classes ───────────────────────────── */
.anim-fade-up    { animation: fadeInUp   0.6s ease both; }
.anim-fade-left  { animation: fadeInLeft 0.6s ease both; }
.anim-fade-right { animation: fadeInRight 0.6s ease both; }
.anim-scale-in   { animation: scaleIn   0.5s ease both; }
.anim-float      { animation: floatY    6s ease-in-out infinite; }
.anim-glow       { animation: glowPulse 3s ease-in-out infinite; }

/* ── Gradient Text ───────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, var(--color-gold), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Shimmer Loading Placeholder ─────────────────────────── */
.shimmer {
  background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-card-hover) 50%, var(--border-color) 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: 8px;
}

/* ── Ripple Button Effect ────────────────────────────────── */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0);
  opacity: 1;
}
.ripple-btn:active::after { animation: ripple 0.4s ease-out; }

/* ── Glow Border Card ────────────────────────────────────── */
.glow-card {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--color-primary), var(--color-accent)) border-box;
}
.glow-card:hover {
  box-shadow: 0 0 30px rgba(0,180,216,0.2);
}

/* ── Number Counter Animation ────────────────────────────── */
.counter-number {
  animation: countUp 0.8s ease both;
}

/* ── Progress Bar ────────────────────────────────────────── */
.progress-custom {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-custom {
  height: 100%;
  background: var(--gradient-card);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Animated Underline Link ─────────────────────────────── */
.link-animated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
  position: relative;
}
.link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-animated:hover { color: var(--color-accent); }
.link-animated:hover::after { transform: scaleX(1); }
.link-animated i { transition: transform 0.3s; }
.link-animated:hover i { transform: translateX(4px); }

/* ── Reveal on Scroll (AOS supplement) ───────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Morphing Background ─────────────────────────────────── */
.morph-bg {
  background: linear-gradient(-45deg, #013D8C, #0056C8, #00B4D8, #013D8C);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}
