/* =====================================================
   UHCF – Animations & Extra Styles
   ===================================================== */

/* ── Floating Elements ── */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes float-x {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(8px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(232,82,26,0.3); }
  50%       { box-shadow: 0 0 40px rgba(232,82,26,0.6); }
}

.float-anim     { animation: float-y 4s ease-in-out infinite; }
.float-anim-2   { animation: float-y 5s ease-in-out infinite 1s; }
.spin-slow      { animation: spin-slow 20s linear infinite; }
.glow-btn       { animation: glow-pulse 2s ease-in-out infinite; }

/* ── Animated gradient text ── */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--primary));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
}
@keyframes gradient-shift {
  from { background-position: 0% center; }
  to   { background-position: 300% center; }
}

/* ── Card hover lift ── */
.lift-card {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease;
}
.lift-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
}

/* ── Glassmorphism ── */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
}
.glass-dark {
  background: rgba(26,26,46,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Pulsing CTA button ── */
.pulse-btn {
  animation: pulse-btn 2s ease-in-out infinite;
}
@keyframes pulse-btn {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* ── Number highlight ── */
.highlight-num {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ── Dividers ── */
.divider-wave {
  position: relative;
  height: 60px;
  overflow: hidden;
}
.divider-wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* ── Sticky donate floating bar (mobile) ── */
.sticky-donate {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 14px 20px;
  z-index: 998;
  text-align: center;
}
.sticky-donate a {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media(max-width: 768px) {
  .sticky-donate { display: block; }
  #back-to-top   { bottom: 80px; }
}

/* ── Smooth image zoom on hover ── */
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform 0.6s ease; }
.zoom-img:hover img { transform: scale(1.08); }

/* ── Tab active underline ── */
.tab-btn { position: relative; }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: left 0.3s, right 0.3s;
}

/* ── Notification dot pulse ── */
.notif-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  animation: notif-pulse 1.5s ease-in-out infinite;
}
@keyframes notif-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 560px;
  background: var(--darker);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9990;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.6; margin: 0; flex:1; }
#cookie-banner button {
  padding: 9px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── WhatsApp float button ── */
#whatsapp-float {
  position: fixed;
  bottom: 100px; right: 30px;
  width: 50px; height: 50px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 997;
  transition: var(--transition);
  text-decoration:none;
}
#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
@media(max-width:768px){ #whatsapp-float { bottom: 130px; } }

/* ── Responsive two-col utils ── */
@media(max-width:768px) {
  .two-col { grid-template-columns: 1fr !important; }
  .three-col { grid-template-columns: 1fr !important; }
  .four-col { grid-template-columns: 1fr 1fr !important; }
  .hide-mobile { display: none !important; }
}
@media(max-width:480px) {
  .four-col { grid-template-columns: 1fr !important; }
}

/* ── Active nav marker ── */
.nav-link.active {
  color: white !important;
  background: rgba(232,82,26,0.18) !important;
}

/* ── Section bg pattern ── */
.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e8521a' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Print ── */
@media print {
  #navbar, .footer, #back-to-top, #whatsapp-float, #cookie-banner, .sticky-donate { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .page-hero { background: #f5f5f5; color: #000; min-height: auto; padding: 20px; }
}
