/* ==========================================================================
   Hero Section Design System (Top Unified Header + Scroll Tour Map)
   Brand: Gema Solusindo Utama
   Primary Navy: #0A3165 | Accent Orange: #F86A07
   Aesthetic: Ultra-clean, Minimalist White, Sleek Grey Landmass, Elegant Typography
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-navy: #0A3165;
  --accent-orange: #F86A07;
  --accent-orange-hover: #E05A00;
  --accent-orange-subtle: #FFF2EB;

  /* Neutrals */
  --bg-page: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --map-landmass: #D8DFE8;

  --text-headline: #0F172A;
  --text-body: #475569;
  --text-muted: #94A3B8;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 20px;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-headline);
  font-family: var(--font-family);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Lighting */
.ambient-bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 90% 45%, rgba(241, 245, 249, 0.95) 0%, transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(255, 242, 235, 0.35) 0%, transparent 50%);
}

/* Scroll Tour Driver (Invisible vertical height to drive horizontal scroll tour)
   Fixed px distance (independent of viewport height) so each province's dwell
   zone consistently takes ~7-10 wheel steps (~110px/step) to cross — 2/3 of the
   original ~13 steps: 11 waypoints x 8.67 steps x 110px = 10487px main tour,
   plus a shorter proportional intro. */
.scroll-tour-driver {
  position: relative;
  width: 100%;
  height: calc(100vh + 11156px);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   Hero Viewport Layout (Fixed / Pinned Layer)
   ========================================================================== */
.hero-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 5rem 2.5rem 5rem;
  max-width: 1600px;
  z-index: 10;
  pointer-events: none;
}

/* Top Unified Header */
.hero-top-unified-header {
  display: flex;
  align-items: flex-start;
  gap: 2.25rem;
  max-width: 1100px;
  position: relative;
  z-index: 20;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.hero-header-logo-wrap {
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.brand-anchor {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 114px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-header-text-content {
  flex: 1;
}

.hero-main-title {
  font-size: clamp(2.1rem, 3.2vw, 3.15rem);
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-description-paragraph {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
  letter-spacing: -0.01em;
  font-weight: 500;
  max-width: 820px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

/* ==========================================================================
   Bottom Center Scroll Down Button
   ========================================================================== */
.hero-bottom-scroll-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 20;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-scroll-down-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0;
  padding: 0.6rem 2.35rem 0.5rem 2.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--primary-navy);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-scroll-down-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(248, 106, 7, 0.22);
  border-color: rgba(248, 106, 7, 0.4);
}

.scroll-btn-text {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-headline);
}

.scroll-mouse-pill {
  width: 16px;
  height: 24px;
  border: 2px solid var(--accent-orange);
  border-radius: 999px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel-dot {
  width: 3px;
  height: 6px;
  background-color: var(--accent-orange);
  border-radius: 2px;
  margin-top: 3px;
  animation: scrollPillWheel 1.8s infinite ease-in-out;
}

@keyframes scrollPillWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  60% {
    transform: translateY(8px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.scroll-chevron-icon {
  color: var(--accent-orange);
  animation: chevronBounce 1.8s infinite ease-in-out;
}

@keyframes chevronBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

/* ==========================================================================
   Expansive Indonesia Map Backdrop (Pinned Viewport Layer)
   ========================================================================== */
.hero-map-backdrop-container {
  position: fixed;
  right: 0;
  bottom: 3vh;
  width: 88vw;
  min-width: 1050px;
  height: 72vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  z-index: 1;
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease, bottom 0.3s ease;
  will-change: width, height, bottom;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-wrapper {
    padding: 2.5rem 3rem 2rem 3rem;
  }

  .hero-map-backdrop-container {
    width: 95vw;
    height: 65vh;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 1.5rem;
  }

  .hero-top-unified-header {
    flex-direction: column;
    gap: 1.25rem;
  }

  .brand-logo-img {
    height: 64px;
  }

  .hero-main-title {
    font-size: 2.1rem;
  }

  .hero-map-backdrop-container {
    width: 110vw;
    height: 55vh;
    bottom: 2vh;
    opacity: 0.55;
  }
}