/**
 * Digivayu Theme - Hero Section Stylesheet
 *
 * Apple-inspired editorial hero section with high-impact typography,
 * dual CTAs, ambient blurred backdrop shapes, and floating glass metric cards.
 *
 * @package Digivayu
 * @version 1.0.0
 */

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */
.hero-section {
  background-color: var(--color-ivory);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

/* Background ambient light effects */
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(128, 174, 232, 0.18) 0%, rgba(247, 242, 224, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ==========================================================================
   Hero Content (Left Column)
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background-color: rgba(91, 0, 21, 0.08);
  border: 1px solid rgba(91, 0, 21, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-bordeaux);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-blue);
  box-shadow: 0 0 8px var(--color-blue);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.85rem);
  font-weight: 700;
  color: var(--color-bordeaux);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-headline .text-highlight {
  color: var(--color-blue);
  position: relative;
  display: inline-block;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}

.hero-trust-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-gray-600);
}

.hero-avatars {
  display: flex;
  align-items: center;
}

.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-ivory);
  margin-left: -8px;
  object-fit: cover;
  background-color: var(--color-gray-300);
}

.hero-avatar:first-child {
  margin-left: 0;
}

/* ==========================================================================
   Hero Visual Composition (Right Column)
   ========================================================================== */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-composition {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative Ambient Shapes */
.hero-shape-1 {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--color-blue);
  opacity: 0.18;
  top: -40px;
  right: -30px;
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.hero-shape-2 {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 35%;
  background: var(--color-bordeaux);
  opacity: 0.12;
  bottom: 10%;
  left: 5%;
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
}

/* Central Editorial Card */
.hero-main-card {
  width: 85%;
  height: 85%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.hero-main-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hero-card-dots {
  display: flex;
  gap: 6px;
}

.hero-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-gray-300);
}

.hero-card-dots span:nth-child(1) { background-color: #FF5F56; }
.hero-card-dots span:nth-child(2) { background-color: #FFBD2E; }
.hero-card-dots span:nth-child(3) { background-color: #27C93F; }

.hero-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  background: rgba(128, 174, 232, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero-main-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-main-card-stat {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-bordeaux);
  margin-bottom: 4px;
}

.hero-main-card-caption {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  margin-bottom: 20px;
}

.hero-chart-preview {
  height: 100px;
  width: 100%;
  background: linear-gradient(180deg, rgba(128, 174, 232, 0.25) 0%, rgba(128, 174, 232, 0) 100%);
  border-bottom: 2px solid var(--color-blue);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.hero-chart-preview svg {
  width: 100%;
  height: 100%;
}

/* Floating Glass Metric Cards */
.hero-metric-card {
  position: absolute;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatCard 6s ease-in-out infinite;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-metric-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Card 1: 100+ Brands */
.hero-metric-card-1 {
  top: 12%;
  right: -5%;
  background: rgba(91, 0, 21, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  animation-delay: 0s;
}

/* Card 2: 7x ROAS */
.hero-metric-card-2 {
  bottom: 18%;
  right: -8%;
  background: rgba(128, 174, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-black);
  animation-delay: 2s;
}

/* Card 3: AI Videos */
.hero-metric-card-3 {
  top: 48%;
  left: -10%;
  background: rgba(33, 37, 41, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  animation-delay: 4s;
}

.metric-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
}

.hero-metric-card-2 .metric-icon-wrap {
  background: rgba(0, 0, 0, 0.1);
}

.metric-icon-wrap svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.metric-text {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gentle floating keyframe */
@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
