/* ==========================================================================
   HAYA FOUNDATION - Custom Styling & Outclass Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&family=Noto+Nastaliq+Urdu:wght@400;600;700&display=swap');

:root {
  --haya-blue: #0284c7;
  --haya-blue-dark: #0369a1;
  --haya-blue-light: #f0f9ff;
  --haya-green: #10b981;
  --haya-green-dark: #059669;
  --haya-green-light: #ecfdf5;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for clean horizontal tabs on mobile */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Prevent iOS Safari from auto-zooming inputs on mobile focus */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

.font-urdu {
  font-family: 'Noto Nastaliq Urdu', 'Amiri', serif;
  line-height: 2.2;
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(241, 245, 249, 0.9);
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.05), 0 5px 15px -8px rgba(0, 0, 0, 0.04);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated Gradient Glows */
.shadow-glow-blue {
  box-shadow: 0 12px 30px -8px rgba(2, 132, 199, 0.45);
}

.shadow-glow-green {
  box-shadow: 0 12px 30px -8px rgba(16, 185, 129, 0.35);
}

.shadow-soft {
  box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.06);
}

/* Keyframe Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(12px) rotate(-1deg);
  }
}

@keyframes pulse-soft {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.08);
  }
}

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

@keyframes ripple {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(2, 132, 199, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

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

.animate-float-delayed {
  animation: float 7s ease-in-out 2s infinite;
}

.animate-float-reverse {
  animation: float-reverse 8s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulse-soft 4s ease-in-out infinite;
}

.animate-ripple {
  animation: ripple 2.5s infinite;
}

.shimmer-effect {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

/* Card Hover Micro-interactions */
.hover-card-lift {
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 35px -12px rgba(15, 23, 42, 0.12), 0 0 20px -5px rgba(2, 132, 199, 0.2);
}

/* Custom Gradients */
.bg-haya-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 75%, #10b981 100%);
}

.bg-haya-gradient-subtle {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.text-gradient-haya {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection Highlight */
::selection {
  background: #bae6fd;
  color: #0c4a6e;
}

/* ==========================================================================
   EARTHQUAKE & FLOOD DISASTER RELIEF ANIMATIONS
   ========================================================================== */

/* Realistic Multi-Directional Seismic Earthquake Shake */
@keyframes earthquake-tremor {
  0% { transform: translate(0, 0) rotate(0deg); }
  5% { transform: translate(-6px, -10px) rotate(-1.5deg); }
  10% { transform: translate(8px, 6px) rotate(1.2deg); }
  15% { transform: translate(-10px, -6px) rotate(-1deg); }
  20% { transform: translate(9px, 8px) rotate(1.8deg); }
  25% { transform: translate(-8px, -8px) rotate(-1.5deg); }
  30% { transform: translate(7px, 6px) rotate(1deg); }
  35% { transform: translate(-6px, -5px) rotate(-0.8deg); }
  40% { transform: translate(6px, 6px) rotate(0.8deg); }
  45% { transform: translate(-5px, -4px) rotate(-0.5deg); }
  50% { transform: translate(4px, 4px) rotate(0.6deg); }
  55% { transform: translate(-4px, -3px) rotate(-0.4deg); }
  60% { transform: translate(3px, 3px) rotate(0.4deg); }
  65% { transform: translate(-3px, -2px) rotate(-0.2deg); }
  70% { transform: translate(2px, 2px) rotate(0.2deg); }
  75% { transform: translate(-2px, -1px) rotate(-0.1deg); }
  80% { transform: translate(1px, 1px) rotate(0.1deg); }
  85% { transform: translate(-1px, 0px) rotate(0deg); }
  90% { transform: translate(1px, 0px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.animate-earthquake {
  animation: earthquake-tremor 2.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  will-change: transform;
}

/* Earthquake Dust Particles Rumble */
@keyframes earthquake-dust {
  0% { opacity: 0; transform: scale(0.95); }
  20% { opacity: 0.65; transform: scale(1); }
  70% { opacity: 0.4; }
  100% { opacity: 0; transform: scale(1.05); }
}

.animate-dust {
  animation: earthquake-dust 2.8s ease-out forwards;
}

/* Flood Surge & Water Rise */
@keyframes flood-rise {
  0% {
    transform: translateY(100%);
    opacity: 0.9;
  }
  40% {
    transform: translateY(0%);
    opacity: 0.95;
  }
  75% {
    transform: translateY(0%);
    opacity: 0.95;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.animate-flood-surge {
  animation: flood-rise 3.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Water Wave Undulation */
@keyframes wave-motion {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.85); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

.animate-wave-1 {
  animation: wave-motion 6s ease-in-out infinite;
}

.animate-wave-2 {
  animation: wave-motion 9s ease-in-out -2s infinite;
}

