/* ==========================================================================
   MUJEEB UL HAQ QADRI (v2) - Hero Section & Ambient Video Shell
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background-color: var(--bg-base);
}

/* Background Dual Responsive Looping Video */
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-video {
  position: absolute;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Desktop: 9:16 vertical video positioned on the right with seamless edge feathering */
.hero-video-desktop {
  display: block;
  right: clamp(1rem, 4vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 38vw);
  height: min(88vh, 820px);
  object-fit: cover;
  object-position: center top;
  opacity: 0.85;
  filter: contrast(1.08) saturate(1.1);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, #000 40%, transparent 95%),
                      linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, #000 12%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Dedicated Mobile 9:16 Video Showcase Card (Hidden on Desktop) */
.hero-showcase-card {
  display: none;
}

/* On mobile viewports, hide desktop backdrop and activate responsive floating showcase card */
@media (max-width: 768px) {
  .hero-video-wrapper {
    display: none !important;
  }
  .hero-content {
    max-width: 100% !important;
  }
  .hero-lead {
    max-width: 100% !important;
  }
  .hero-showcase-card {
    display: block;
    float: right;
    width: clamp(120px, 36vw, 150px);
    aspect-ratio: 9 / 16;
    margin: 0.2rem 0 0.85rem 0.85rem;
    shape-outside: inset(0 round 18px);
    position: relative;
    z-index: 3;
  }
  .showcase-card-inner {
    position: relative;
    aspect-ratio: 9 / 16;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(237, 94, 77, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    background: #0d080c;
    box-shadow: 
      0 14px 36px -8px rgba(0, 0, 0, 0.95),
      0 0 20px rgba(237, 94, 77, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: emberCardGlow 4s ease-in-out infinite alternate;
  }
  .showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: contrast(1.06) saturate(1.08);
  }
  @keyframes emberCardGlow {
    0% {
      box-shadow: 
        0 14px 36px -8px rgba(0, 0, 0, 0.95),
        0 0 16px rgba(237, 94, 77, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
      box-shadow: 
        0 18px 42px -6px rgba(0, 0, 0, 0.95),
        0 0 28px rgba(237, 94, 77, 0.45),
        0 0 50px rgba(237, 94, 77, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .showcase-card-inner {
      animation: none;
    }
  }
}

/* Layered Dark Overlay with seamless video edge blending */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 75% 45%, rgba(237, 94, 77, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 20% 75%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    linear-gradient(90deg, var(--bg-base) 0%, rgba(6, 4, 6, 0.90) 45%, rgba(6, 4, 6, 0.25) 75%, var(--bg-base) 100%),
    linear-gradient(180deg, rgba(6, 4, 6, 0.82) 0%, transparent 25%, transparent 70%, var(--bg-base) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(1080px, 62vw);
}

/* Eyebrow with Pulse Indicator */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(18, 12, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(237, 94, 77, 0.4);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 100%;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGlow 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.14;
  font-size: clamp(1.85rem, 5.2vw, 3.4rem);
}

.hero-title-highlight {
  background: linear-gradient(135deg, #ffffff 10%, #a5b4fc 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  max-width: min(880px, 56vw);
}

.hero-lead strong {
  color: #fff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Verified Entity Badges Strip */
.hero-badges-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.badge-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.badge-chip.clickable:hover {
  border-color: var(--accent-cyan);
  color: #fff;
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-1px);
}

/* Stat Grid Cards */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-top: 1rem;
}

.stat-card {
  background: linear-gradient(145deg, rgba(22, 15, 20, 0.88) 0%, rgba(11, 7, 10, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(237, 94, 77, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 16px 36px -8px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(237, 94, 77, 0.5);
  border-top-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(237, 94, 77, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-value.cyan { color: var(--accent-cyan); }
.stat-value.emerald { color: var(--accent-emerald); }
.stat-value.indigo { color: #a5b4fc; }
.stat-value.amber { color: var(--accent-amber); }

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 992px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 0.85rem);
    padding-bottom: 2rem;
  }
  .hero-content {
    max-width: 100% !important;
    text-align: left;
  }
  .hero-title {
    font-size: clamp(1.15rem, 4.4vw, 1.4rem);
    margin-bottom: 0.65rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-align: left;
  }
  .hero-lead {
    max-width: 100% !important;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.15rem;
    margin-inline: 0;
    text-align: left;
    color: #cbd5e1;
  }
  .hero-btn-journey {
    display: none !important;
  }
  .hero-actions {
    clear: both;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1;
    min-height: 40px;
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
    justify-content: center;
    white-space: nowrap;
  }
  .hero-badges-strip {
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    justify-content: flex-start;
  }
  .hero-badges-strip .badge-chip {
    padding: 0.22rem 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem;
    margin-top: 0.75rem;
    text-align: left;
  }
  .stat-card {
    padding: 0.75rem 0.65rem;
    border-radius: var(--radius-md);
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .stat-value {
    font-size: clamp(1.2rem, 3.8vw, 1.45rem);
    line-height: 1.1;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .stat-label {
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--text-muted);
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    white-space: normal;
  }
}
