/* ═══════════════════════════════════════════════════════════
   HANAPBUHAY — Global World-Class CSS
   ═══════════════════════════════════════════════════════════ */

/* ── Custom scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #818cf8; }

/* ── Page-load top progress bar ──────────────────────────── */
#page-loader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  background-size: 200% 100%;
  animation: loaderSlide 0.6s ease forwards, loaderShimmer 1s linear infinite;
  transform-origin: left;
}
@keyframes loaderSlide {
  from { transform: scaleX(0); opacity: 1; }
  to   { transform: scaleX(1); opacity: 0; }
}
@keyframes loaderShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Smooth page transitions ─────────────────────────────── */
body { animation: pageFadeIn 0.25s ease; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll-reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
              transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ── Glassmorphism ───────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
}
.glass-dark {
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Gradient text ───────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero particles / floating shapes ───────────────────── */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  animation: floatShape 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-shape:nth-child(2) { animation-delay: -2s; animation-duration: 10s; }
.hero-shape:nth-child(3) { animation-delay: -5s; animation-duration: 12s; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(5deg); }
  66%       { transform: translateY(-10px) rotate(-3deg); }
}

/* ── Floating job card in hero ───────────────────────────── */
.hero-card {
  animation: heroCardFloat 6s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.hero-card-2 { animation-delay: -3s; }
@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ── Count-up animation ──────────────────────────────────── */
.count-up { display: inline-block; }

/* ── Announcement bar ────────────────────────────────────── */
#announcement-bar {
  background: linear-gradient(90deg, #312e81, #4f46e5, #7c3aed, #4f46e5, #312e81);
  background-size: 300% 100%;
  animation: announcementGlow 6s linear infinite;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  position: relative;
  z-index: 50;
}
@keyframes announcementGlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}
#announcement-bar a { color: #fde68a; text-decoration: underline; }
#announcement-bar a:hover { color: #fff; }

/* ── Category card gradient icons ───────────────────────── */
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: transform 0.2s;
}
.cat-card:hover .cat-icon { transform: scale(1.12) rotate(-3deg); }

/* ── How it works step connector ────────────────────────── */
.step-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #c7d2fe, #a5b4fc);
  margin: 0 -1px;
  margin-top: -24px;
}

/* ── Testimonial card ────────────────────────────────────── */
.testimonial-card {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(79,70,229,0.1);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -12px; left: 20px;
  font-size: 72px;
  line-height: 1;
  color: #c7d2fe;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ── Marquee / logo ticker ───────────────────────────────── */
.marquee-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Pulse dot ───────────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.4);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ── Badge pill ──────────────────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Card glow on hover ──────────────────────────────────── */
.card-glow {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(79,70,229,0.15);
}

/* ── Stats number ────────────────────────────────────────── */
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SDG banner ──────────────────────────────────────────── */
.sdg-badge {
  background: linear-gradient(135deg, #065f46, #047857);
  color: #fff;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Input focus ring ────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.18);
}

/* ── Dark mode global overrides for global.css elements ─── */
html.a11y-dark .glass          { background: rgba(30,41,59,0.8); border-color: rgba(255,255,255,0.06); }
html.a11y-dark .stat-number    { background: linear-gradient(135deg, #818cf8, #a78bfa); -webkit-background-clip: text; background-clip: text; }
html.a11y-dark .gradient-text  { background: linear-gradient(135deg, #818cf8, #a78bfa, #f472b6); -webkit-background-clip: text; background-clip: text; }
html.a11y-dark #announcement-bar { background: linear-gradient(90deg, #1e1b4b, #312e81, #1e1b4b); }
