/* ════════════════════════════════════════════
   HERO SECTION — PROFESSIONAL RESPONSIVE GRID
   hero.css
════════════════════════════════════════════ */

.hero-professional {
  position: relative;
  width: 100%;
  height: 100vh; /* Fit perfectly within the viewport height without forcing a scrollbar */
  min-height: 680px; /* Safe minimum height for layout content integrity */
  background: var(--bg);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 0; /* Reduced top padding (fixed navbar offset) */
  box-sizing: border-box;
}

/* Remove excessive padding from the container in the hero section */
.hero-professional .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* Ambient lighting */
.hero-glow-ambient {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.06) 0%, rgba(255, 107, 53, 0.02) 50%, transparent 100%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

/* Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Split spacing equally to allow maximum avatar size */
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* LEFT COLUMN: Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 24px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 24px;
}

.gold-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  background: linear-gradient(135deg, var(--gold), #ffbe3b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 8px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted2);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-subtitle strong {
  color: var(--cream);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Stats Row */
.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border2);
  padding-top: 32px;
  width: 100%;
  max-width: 500px;
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats .stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
}

.hero-stats .stat-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* RIGHT COLUMN: 3D Visual */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  width: 100%;
}

/* ── 3D Video Background ── */
.hero-video-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35; /* Increased for a much richer, high-end visual presence */
  filter: brightness(0.4) saturate(0.8) contrast(1.15);
}

.hero-video-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, transparent 35%, var(--bg) 90%),
    linear-gradient(to bottom, transparent 65%, var(--bg) 100%);
  z-index: 2;
}

.model-frame {
  position: relative;
  width: 100%;
  height: 700px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  transform: scale(1.6);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.avatar-3d-model {
  width: 100%;
  height: 100%;
  z-index: 5;
  --poster-color: transparent;
  outline: none;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.model-pedestal {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  z-index: 10;
  opacity: 0.6;
}

.scroll-mouse {
  width: 20px;
  height: 30px;
  border: 1px solid var(--muted);
  border-radius: 10px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 5px;
  background: var(--gold);
  border-radius: 1px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* Responsive design */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }
  .hero-visual {
    justify-content: center;
  }
  .model-frame {
    height: 450px;
    max-width: 400px;
    transform: scale(1.1);
    transform-origin: center center;
  }
}

@media (max-width: 768px) {
  .hero-professional {
    height: auto; /* Reset to auto to allow natural scrolling on stacked mobile layout */
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    justify-content: center;
  }
  .model-frame {
    height: 380px;
    max-width: 350px;
    transform: scale(1.0);
    transform-origin: center center;
    margin: 0 auto;
  }
}

/* Scale down avatar on shorter viewports to prevent overflow and eliminate scrollbar */
@media (max-height: 850px) and (min-width: 1025px) {
  .model-frame {
    height: 580px;
    max-width: 480px;
    transform: scale(1.4);
  }
}
@media (max-height: 720px) and (min-width: 1025px) {
  .model-frame {
    height: 480px;
    max-width: 400px;
    transform: scale(1.25);
  }
}
