/* ============================================================
   ZingChak — New Hero Section  (hero.css)
   Place in:  assets/css/hero.css
   Include in header.php after styles.css:
     <link href="./assets/css/hero.css" rel="stylesheet">
   ============================================================ */

/* ── HERO WRAPPER ─────────────────────────────────────────── */
.zc-hero-v2 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f2c63 100%);
  padding: 2rem 0 2.5rem;
  min-height: auto;
  display: flex;
  align-items: center;
}

/* ── ANIMATED MESH BACKGROUND ─────────────────────────────── */
.zc-hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(124,58,237,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(59,130,246,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(251,146,60,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── FLOATING ICON ORBS CANVAS ────────────────────────────── */
.zc-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.zc-orb {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  animation: zcFloat linear infinite;
  will-change: transform;
}

/* Different sizes */
.zc-orb--lg { width: 64px; height: 64px; font-size: 26px; }
.zc-orb--md { width: 50px; height: 50px; font-size: 20px; }
.zc-orb--sm { width: 38px; height: 38px; font-size: 15px; }

/* Purple orbs */
.zc-orb--purple {
  background: rgba(124,58,237,0.22);
  border: 1px solid rgba(167,139,250,0.3);
  color: #c4b5fd;
  box-shadow: 0 8px 24px rgba(124,58,237,0.15);
}
/* Blue orbs */
.zc-orb--blue {
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(147,197,253,0.3);
  color: #93c5fd;
  box-shadow: 0 8px 24px rgba(59,130,246,0.15);
}
/* Orange orbs */
.zc-orb--orange {
  background: rgba(251,146,60,0.18);
  border: 1px solid rgba(253,186,116,0.3);
  color: #fdba74;
  box-shadow: 0 8px 24px rgba(251,146,60,0.15);
}
/* Teal orbs */
.zc-orb--teal {
  background: rgba(20,184,166,0.2);
  border: 1px solid rgba(94,234,212,0.3);
  color: #5eead4;
  box-shadow: 0 8px 24px rgba(20,184,166,0.15);
}

/* Individual orb positions & animation timings */
.zc-orb:nth-child(1)  { top: 12%; left: 4%;   animation-duration: 14s; animation-delay: 0s;    }
.zc-orb:nth-child(2)  { top: 70%; left: 6%;   animation-duration: 18s; animation-delay: -3s;   }
.zc-orb:nth-child(3)  { top: 20%; left: 88%;  animation-duration: 16s; animation-delay: -6s;   }
.zc-orb:nth-child(4)  { top: 75%; left: 85%;  animation-duration: 12s; animation-delay: -2s;   }
.zc-orb:nth-child(5)  { top: 45%; left: 2%;   animation-duration: 20s; animation-delay: -8s;   }
.zc-orb:nth-child(6)  { top: 8%;  left: 55%;  animation-duration: 15s; animation-delay: -4s;   }
.zc-orb:nth-child(7)  { top: 85%; left: 42%;  animation-duration: 17s; animation-delay: -7s;   }
.zc-orb:nth-child(8)  { top: 55%; left: 92%;  animation-duration: 13s; animation-delay: -1s;   }
.zc-orb:nth-child(9)  { top: 30%; left: 75%;  animation-duration: 19s; animation-delay: -5s;   }
.zc-orb:nth-child(10) { top: 90%; left: 18%;  animation-duration: 11s; animation-delay: -9s;   }
.zc-orb:nth-child(11) { top: 60%; left: 60%;  animation-duration: 22s; animation-delay: -11s;  }
.zc-orb:nth-child(12) { top: 5%;  left: 30%;  animation-duration: 16s; animation-delay: -13s;  }

@keyframes zcFloat {
  0%   { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.7; }
  25%  { transform: translateY(-18px) rotate(5deg) scale(1.05); opacity: 1; }
  50%  { transform: translateY(-8px) rotate(-3deg) scale(0.97); opacity: 0.85; }
  75%  { transform: translateY(-22px) rotate(6deg) scale(1.03); opacity: 1; }
  100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.7; }
}

/* ── HERO CONTENT ─────────────────────────────────────────── */
.zc-hero-v2 .zc-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Animated word swap in headline */
.zc-hero-v2 h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.zc-hero-word-swap {
  display: inline-block;
  position: relative;
  color: var(--zc-orange);
  background: rgba(251,146,60,0.12);
  border-radius: 10px;
  padding: 0 12px;
  min-width: 160px;
  text-align: center;
}

/* Typewriter cursor */
.zc-hero-word-swap::after {
  content: '|';
  position: absolute;
  right: 4px;
  animation: zcBlink 1s step-end infinite;
  color: var(--zc-orange);
  font-weight: 300;
}

@keyframes zcBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.zc-hero-v2 .zc-hero-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 1.2rem;
  line-height: 1.5;
}

/* ── SEARCH BAR ───────────────────────────────────────────── */
.zc-hero-v2 .zc-search {
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.zc-hero-v2 .zc-search-input {
  height: 48px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.96);
  border: 2px solid transparent;
  border-radius: 999px 0 0 999px !important;
  padding-left: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.zc-hero-v2 .zc-search-input:focus {
  border-color: var(--zc-orange);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), 0 0 0 3px rgba(251,146,60,0.2);
}

.zc-hero-v2 .zc-search-btn {
  height: 48px;
  padding: 0 1.4rem;
  background: var(--zc-orange);
  border-radius: 0 999px 999px 0 !important;
  font-size: 1rem;
  border: none;
}

.zc-hero-v2 .zc-search-btn:hover {
  background: #f97316;
  transform: none;
}

.zc-hero-v2 .zc-search-results {
  border-radius: 16px;
  margin-top: 8px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}

/* ── CATEGORY CARDS ROW ───────────────────────────────────── */
.zc-hero-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.zc-hero-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 13px 12px 11px;
  border-radius: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.zc-hero-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(255,255,255,0.08);
}

.zc-hero-cat-card:hover {
  transform: translateY(-4px) scale(1.03);
}

.zc-hero-cat-card:hover::before {
  opacity: 1;
}

/* Color themes per category — unchanged */
.zc-cat--finance   { background: linear-gradient(135deg, #312e81, #4338ca); box-shadow: 0 8px 20px rgba(67,56,202,0.35); }
.zc-cat--business  { background: linear-gradient(135deg, #7c2d12, #ea580c); box-shadow: 0 8px 20px rgba(234,88,12,0.35); }
.zc-cat--health    { background: linear-gradient(135deg, #064e3b, #059669); box-shadow: 0 8px 20px rgba(5,150,105,0.35); }
.zc-cat--cars      { background: linear-gradient(135deg, #1e3a5f, #2563eb); box-shadow: 0 8px 20px rgba(37,99,235,0.35); }
.zc-cat--images    { background: linear-gradient(135deg, #4a044e, #9333ea); box-shadow: 0 8px 20px rgba(147,51,234,0.35); }
.zc-cat--pdf       { background: linear-gradient(135deg, #7f1d1d, #dc2626); box-shadow: 0 8px 20px rgba(220,38,38,0.35); }
.zc-cat--games     { background: linear-gradient(135deg, #134e4a, #0d9488); box-shadow: 0 8px 20px rgba(13,148,136,0.35); }
.zc-cat--utilities { background: linear-gradient(135deg, #1c1917, #78716c); box-shadow: 0 8px 20px rgba(120,113,108,0.35); }
.zc-cat--seo       { background: linear-gradient(135deg, #0c4a6e, #0284c7); box-shadow: 0 8px 20px rgba(2,132,199,0.35); }
.zc-cat--developer { background: linear-gradient(135deg, #14532d, #16a34a); box-shadow: 0 8px 20px rgba(22,163,74,0.35); }

/* Card icon circle */
.zc-hero-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #ffffff;
  flex-shrink: 0;
}

/* Card text */
.zc-hero-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  display: block;
}

.zc-hero-cat-count {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  display: block;
  margin-top: 1px;
}

/* Arrow icon on hover */
.zc-hero-cat-arrow {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.2s ease, color 0.2s ease;
}

.zc-hero-cat-card:hover .zc-hero-cat-arrow {
  transform: translate(2px, -2px);
  color: rgba(255,255,255,0.9);
}

/* ── STATS BAR ────────────────────────────────────────────── */
.zc-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.zc-hero-stat {
  text-align: center;
}

.zc-hero-stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.zc-hero-stat span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* dividers between stats */
.zc-hero-stat + .zc-hero-stat {
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,0.12);
}

/* ── ENTRANCE ANIMATIONS ──────────────────────────────────── */
.zc-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: zcFadeUp 0.7s ease forwards;
}

.zc-fade-up:nth-child(1) { animation-delay: 0.1s; }
.zc-fade-up:nth-child(2) { animation-delay: 0.22s; }
.zc-fade-up:nth-child(3) { animation-delay: 0.34s; }
.zc-fade-up:nth-child(4) { animation-delay: 0.46s; }
.zc-fade-up:nth-child(5) { animation-delay: 0.58s; }

@keyframes zcFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Category cards staggered entrance */
.zc-hero-cat-card {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  animation: zcCardIn 0.45s ease forwards;
}

.zc-hero-cat-card:nth-child(1)  { animation-delay: 0.45s; }
.zc-hero-cat-card:nth-child(2)  { animation-delay: 0.52s; }
.zc-hero-cat-card:nth-child(3)  { animation-delay: 0.59s; }
.zc-hero-cat-card:nth-child(4)  { animation-delay: 0.66s; }
.zc-hero-cat-card:nth-child(5)  { animation-delay: 0.73s; }
.zc-hero-cat-card:nth-child(6)  { animation-delay: 0.80s; }
.zc-hero-cat-card:nth-child(7)  { animation-delay: 0.87s; }
.zc-hero-cat-card:nth-child(8)  { animation-delay: 0.94s; }
.zc-hero-cat-card:nth-child(9)  { animation-delay: 1.01s; }
.zc-hero-cat-card:nth-child(10) { animation-delay: 1.08s; }

@keyframes zcCardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .zc-hero-v2 {
    padding: 2rem 0 2.5rem;
  }

  .zc-hero-cats {
    grid-template-columns: repeat(5, 1fr);
    max-width: 600px;
    gap: 8px;
  }

  .zc-hero-cat-card {
    padding: 11px 10px 10px;
  }

  .zc-hero-cat-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
    border-radius: 9px;
  }
}

@media (max-width: 767px) {
  .zc-hero-v2 {
    padding: 1.5rem 0 2rem;
  }

  .zc-hero-v2 h1 {
    font-size: 1.5rem;
  }

  .zc-hero-word-swap {
    min-width: 120px;
  }

  .zc-hero-v2 .zc-hero-sub {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  /* 5 columns on mobile too — just smaller */
  .zc-hero-cats {
    grid-template-columns: repeat(5, 1fr);
    max-width: 100%;
    gap: 6px;
    padding: 0 4px;
  }

  .zc-hero-cat-card {
    padding: 10px 8px 8px;
    border-radius: 12px;
    gap: 5px;
  }

  .zc-hero-cat-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 8px;
  }

  .zc-hero-cat-name { font-size: 10px; }
  .zc-hero-cat-count { font-size: 9px; }
  .zc-hero-cat-arrow { display: none; }

  .zc-hero-stats {
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .zc-hero-stat strong { font-size: 1.1rem; }
  .zc-hero-stat span { font-size: 0.62rem; }
  .zc-hero-stat + .zc-hero-stat { padding-left: 1rem; }

  /* Reduce floating orbs on mobile */
  .zc-orb:nth-child(n+7) { display: none; }
}

@media (max-width: 400px) {
  .zc-hero-cats {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .zc-hero-cat-name { font-size: 9px; }
  .zc-hero-cat-count { display: none; }
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .zc-orb,
  .zc-fade-up,
  .zc-hero-cat-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}