/* ============================================================
   HERO SECTION — Blood Donation Network
   hero bg .png fills the whole section (replaces bg-color +
   right-column illustration). Left column stays identical.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --hero-primary:  #E53935;
  --hero-dark-red: #C62828;
  --hero-gray:     #6B7280;
  --hero-dark:     #111827;
}

.hero-v2 * { box-sizing: border-box; }

/* ── Section: bg image covers the entire area ── */
.hero-v2 {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* reduced top padding so content sits closer to the navbar */
  padding: 2rem 0 3rem;
  background-color: #111;
}

/* ── Background image layer ── */
.hero-v2__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroBgScale 1.4s ease forwards;
}

/* ── Dark-left gradient overlay so left-column text is readable ── */
.hero-v2__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(8, 2, 2, 0.78)  0%,    /* strong dark on left  */
    rgba(15, 4, 4, 0.60) 38%,
    rgba(30, 5, 5, 0.30) 62%,
    rgba(0,  0, 0, 0.05) 100%   /* almost transparent on right */
  );
}

/* ── Container sits above bg + overlay ── */
.hero-v2__container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ── Content block: left-aligned, max ~600px ── */
.hero-v2__content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

/* ── Badge ── */
.hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  width: fit-content;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.6s ease 0.15s forwards;
}
.hero-v2__badge-dot {
  width: 7px; height: 7px;
  background: #36a54b;
  border-radius: 50%;
  animation: heroPulse 2s ease-in-out infinite;
}

/* ── Headline ── */
.hero-v2__headline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.65s ease 0.25s forwards;
}
.hero-v2__headline mark {
  background: linear-gradient(135deg, #FF8A80 0%, #E53935 60%, #C62828 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* ── Description ── */
.hero-v2__desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.65s ease 0.4s forwards;
}

/* ── CTA Buttons ── */
.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.65s ease 0.55s forwards;
}

.hero-v2__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.875rem;
  padding: 0.8rem 1.75rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}
.hero-v2__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.10);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hero-v2__btn:hover::after { opacity: 1; }

/* Primary — solid red */
.hero-v2__btn--primary {
  background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(229,57,53,0.50), 0 1px 4px rgba(0,0,0,0.25);
}
.hero-v2__btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(229,57,53,0.60), 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  text-decoration: none;
}
.hero-v2__btn--primary:active { transform: translateY(-1px); }

/* Secondary — glass outline */
.hero-v2__btn--secondary {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.hero-v2__btn--secondary:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: #fff;
  text-decoration: none;
}

/* Pulsing heart on primary CTA */
.hero-v2__btn--primary .hero-heart { animation: heroPulse 1.6s ease-in-out infinite; }

/* ── Trust Badges ── */
.hero-v2__trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.65s ease 0.70s forwards;
}
.hero-v2__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-v2__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}
.hero-v2__trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #E53935, #C62828);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-v2__trust-check svg { width: 10px; height: 10px; }

/* ══════════════════════════════════════════════
   FLOATING CARDS — new rich design
   ══════════════════════════════════════════════ */
.hero-v2__card {
  position: absolute;
  z-index: 4;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.98);
  border-radius: 1.1rem;
  padding: 1rem 1.2rem;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.16),
    0  3px 10px rgba(0,0,0,0.08);
  min-width: 210px;
  max-width: 250px;
}

/* Positions */
.hero-v2__card--top {
  top: 18%;
  right: 5%;
  animation: heroCardFloat1 5s ease-in-out infinite;
}
.hero-v2__card--bottom {
  bottom: 18%;
  right: 5%;
  animation: heroCardFloat2 5.5s ease-in-out infinite;
}

/* ── Icon row: icon + title + pill badge ── */
.hero-v2__card-icon-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.hero-v2__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Reusable Colors for Icons & Pills */
.hero-v2__card-icon--red,
.hero-v2__card-pill--red {
  background: #FEF2F2;
  color: #E53935;
}
.hero-v2__card-icon--green,
.hero-v2__card-pill--green {
  background: #F0FDF4;
  color: #16a34a;
}

.hero-v2__card-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  flex: 1;
}

.hero-v2__card-pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

/* ── Meta row: large blood-type + detail lines ── */
.hero-v2__card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.hero-v2__card-type {
  font-family: 'Manrope', sans-serif;
  font-size: 1.875rem;
  font-weight: 900;
  color: #E53935;
  line-height: 1;
  flex-shrink: 0;
}
.hero-v2__card-type sup {
  font-size: 0.85em;
  vertical-align: super;
}
.hero-v2__card-type--green { color: #16a34a; }

.hero-v2__card-info { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-v2__card-line {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
}
.hero-v2__card-line--muted {
  font-weight: 400;
  color: #6B7280;
  font-size: 0.75rem;
}

/* ── Status row: pulsing dot + text ── */
.hero-v2__card-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.hero-v2__card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-v2__card-dot--red {
  background: #E53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.2);
  animation: heroPulse 1.8s ease-in-out infinite;
}
.hero-v2__card-dot--green {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: heroPulse 2.2s ease-in-out infinite;
}
.hero-v2__card-status-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #6B7280;
}

/* ── Keyframes ── */
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroBgScale {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
@keyframes heroCardFloat1 {
  0%,100% { transform: translateY(0)   rotate(-1deg); }
  50%     { transform: translateY(-9px) rotate(0deg); }
}
@keyframes heroCardFloat2 {
  0%,100% { transform: translateY(0)  rotate(1deg); }
  50%     { transform: translateY(9px) rotate(0deg); }
}
@keyframes heroPulse {
  0%,100% { transform: scale(1);    opacity: 1;   }
  50%     { transform: scale(1.18); opacity: 0.8; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-v2 { min-height: auto; padding: 3.5rem 0 5rem; }
  .hero-v2__content { max-width: 100%; }
  .hero-v2__headline { font-size: clamp(2rem, 7vw, 2.75rem); }
  .hero-v2__desc { font-size: 1rem; }
  
  /* Hide cards on mobile */
  .hero-v2__card { display: none; }
}

@media (max-width: 480px) {
  .hero-v2 { padding: 3rem 0 6rem; }
  .hero-v2__btn  { font-size: 0.875rem; padding: 0.7rem 1.25rem; }
  .hero-v2__trust-row { gap: 0.6rem; }
  .hero-v2__trust-item { font-size: 0.75rem; }
}
