/* ---------------------------------------------
   DiPStrategy -- Hero Section
   style/hero.css
   --------------------------------------------- */

/* --- HERO BG --- */
.hero-bg {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--navy);
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/pattern-01.png');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.55;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.15) 75%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
}

/* --- INSTAGRAM FEATURED CARD STACK --- */
.hero-ig-card {
  position: absolute;
  top: calc(55% - 50px);
  right: 13%;
  width: 340px;
  min-height: 400px;
  border-radius: 16px;
  transform-origin: center center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  transition: transform 0.4s ease;
}

/* Card 1: depan, paling besar, miring +5deg */
.hero-ig-card--1 {
  z-index: 99;
  transform: translateY(-50%) rotate(5deg);
  zoom: 0.6;
}

.hero-ig-card--1:hover {
  transform: translateY(-50%) rotate(2deg);
}

/* Card 2: belakang kiri-atas, lebih kecil, miring -5deg */
.hero-ig-card--2 {
  z-index: 98;
  top: 40%;
  right: 20%;
  transform: translateY(-50%) rotate(-5deg);
  zoom: 0.5;
}

/* Card 3: belakang kanan-atas, lebih kecil lagi */
.hero-ig-card--3 {
  z-index: 97;
  top: 35%;
  right: 5%;
  transform: translateY(-50%) rotate(8deg);
  zoom: 0.42;
}

.hero-ig-card .instagram-media {
  border-radius: 16px !important;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-ig-card.loaded .instagram-media {
  opacity: 1;
  transform: scale(1);
}

/* Preloader */
.hero-ig-preloader {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  transition: opacity 0.4s ease;
}

.hero-ig-preloader.hide {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hero-ig-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(9,53,100,0.12);
  border-top-color: #093564;
  border-radius: 50%;
  animation: igSpin 0.8s linear infinite;
}

@keyframes igSpin {
  to { transform: rotate(360deg); }
}


.hero-content {
  position: relative;
  z-index: 10;
  padding: 180px 56px 60px;
  max-width: 1400px;
}

.accent-line {
  width: 160px;
  height: 4px;
  background: var(--lime);
  margin-bottom: 28px;
  opacity: 0;
  animation: slideInLeft 0.7s 0.2s forwards;
}

.headline {
  font-family: var(--font-headline);
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 32px;
}

.hl-1 {
  display: block;
  font-weight: 200;
  font-size: clamp(1.8rem, 5.86vw, 5rem);
  letter-spacing: -0.05em;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.hl-2 {
  display: block;
  font-weight: 500;
  font-size: clamp(2rem, 7.32vw, 6rem);
  letter-spacing: 0em;
  opacity: 0;
  animation: fadeUp 0.7s 0.55s forwards;
}

.hl-3-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.7s 0.7s forwards;
}

.hl-3 {
  display: block;
  font-weight: 900;
  font-size: clamp(2.6rem, 8.78vw, 8rem); 
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.starburst-wrap {
  flex-shrink: 0;
  transform: translate(-20px, -40px);
}

.starburst {
  width: clamp(40px, 4vw, 68px);
  height: clamp(40px, 4vw, 68px);
  opacity: 0.9;
  animation: spin 12s linear infinite;
}

.subline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.3;
  color: rgba(255,255,255,0.72);
  max-width: 860px;
  margin-top: -20px;
  margin-bottom:60px;
  opacity: 0;
  animation: fadeUp 0.7s 0.9s forwards;
}

/* --- EKG DIVIDER --- */
.ekg-divider {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 56px;
  margin-top: -30px;
  opacity: 0;
  animation: fadeUp 0.7s 1.0s forwards;
}

.ekg-divider svg {
  width: 100%;
  height: 32px;
  opacity: 0.35;
}

/* --- STATS + CTA ROW --- */
.bottom-row {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 56px 48px;
  max-width: 1400px;
  margin-top: -120px;
  opacity: 0;
  animation: fadeUp 0.7s 1.1s forwards;
}

.stats { display: flex; gap: 64px; }

.stat-number {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.cta-group { display: flex; gap: 16px; align-items: center; }

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.6);
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-filled {
  background: var(--lime);
  border: 1.5px solid var(--lime);
  color: #000;
}

.btn-filled:hover {
  background: #f0ff50;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(222,255,45,0.35);
}

.btn-star { width: 18px; height: 18px; }

/* --- CLIENT STRIP --- */
.client-strip {
  position: relative;
  z-index: 10;
  background: var(--lime);
  padding: 39px 0;
  overflow: hidden;
}

.client-strip-label {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 17px);
  letter-spacing: 0.03em;
  color: rgba(0,0,0,0.6);
  margin-bottom: 22px;
  padding: 0 56px;
}

.client-track-wrap { overflow: hidden; width: 100%; }

.client-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.client-track:hover { animation-play-state: paused; }

.client-logo {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 17px);
  letter-spacing: 0.05em;
  color: rgba(0,0,0,0.55);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: color 0.2s;
}

.client-logo:hover { color: rgba(0,0,0,0.85); }

.client-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .hero-ig-card { display: none; }
}

@media (max-width: 900px) {
  .hero-content { padding: 140px 24px 48px; }
  .ekg-divider  { padding: 0 24px; }
  .bottom-row   { flex-direction: column; align-items: flex-start; gap: 32px; padding: 24px 24px 40px; }
  .stats        { gap: 36px; }
}
