/* ============================================
   HERO — MOBILE-FIRST
   Layout:  carousel (top)  →  text (below)
   Mobile:  single column, full-width carousel
   Desktop: side-by-side (carousel L, text R)
            OR still stacked — user can choose
   ============================================ */

/* ── Section wrapper ── */
.hero-section {
  background: var(--bg-base);
  overflow: hidden;
  position: relative;
  /* flex column so carousel stacks above text */
  display: flex;
  flex-direction: column;
  min-height: 100svh; /* safe-area aware */
  padding-top: 64px;  /* nav height */
}

/* Atmospheric glow layers */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 25% 30%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 20%, rgba(190,24,93,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(34,211,238,0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Grid texture */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167,139,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   CAROUSEL WRAP — TOP BLOCK
   ============================================ */
.hero-carousel-wrap {
  position: relative;
  z-index: 10;
  /* Fill as much vertical space as possible */
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
  /* Give it a concrete min so cards are never tiny */
  min-height: clamp(340px, 58vh, 640px);
}

/* 3D perspective container */
.carousel-3d-scene {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  perspective-origin: 50% 46%;
  overflow: visible;
}

/* Stage — sized in JS via CSS vars set on this element */
.carousel-3d-stage {
  position: relative;
  /* card width + room for side cards */
  width: min(320px, 80vw);
  height: min(460px, 56vh);
  transform-style: preserve-3d;
  flex-shrink: 0;
}

/* ── Individual cards ── */
.hero-card {
  position: absolute;
  /* fill the stage */
  width: 100%;
  height: 100%;
  /* centre inside stage */
  left: 0;
  top: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform  0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity    0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter     0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  transition: transform 8s ease;
}

.hero-card.is-active img {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

/* Subtle bottom gradient on every card */
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,8,16,0.7)  0%,
    rgba(10,8,16,0.1) 45%,
    transparent       100%
  );
  pointer-events: none;
}

/* Pink glow ring on the active card */
.hero-card.is-active {
  box-shadow:
    0 0 0 1.5px rgba(244,114,182,0.55),
    0 28px 70px rgba(0,0,0,0.6),
    0 0 90px rgba(124,58,237,0.16);
}

/* Sport tag inside card */
.hero-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem;
  z-index: 2;
  pointer-events: none;
}

.hero-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--pink);
  background: rgba(244,114,182,0.12);
  border: 1px solid rgba(244,114,182,0.3);
}

/* ── Card position states ──
   Offsets are expressed as % of stage width so they
   scale correctly on every screen size             */
.hero-card.pos-center {
  transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 20;
  filter: none;
}
.hero-card.pos-right1 {
  transform: translateX(68%) translateZ(-160px) rotateY(-26deg) scale(0.72);
  opacity: 0.72;
  z-index: 15;
  filter: brightness(0.5);
}
.hero-card.pos-left1 {
  transform: translateX(-68%) translateZ(-160px) rotateY(26deg) scale(0.72);
  opacity: 0.72;
  z-index: 15;
  filter: brightness(0.5);
}
.hero-card.pos-right2 {
  transform: translateX(120%) translateZ(-320px) rotateY(-44deg) scale(0.46);
  opacity: 0.2;
  z-index: 8;
  filter: brightness(0.28);
}
.hero-card.pos-left2 {
  transform: translateX(-120%) translateZ(-320px) rotateY(44deg) scale(0.46);
  opacity: 0.2;
  z-index: 8;
  filter: brightness(0.28);
}
.hero-card.pos-hidden {
  transform: translateX(0) translateZ(-700px) scale(0.2);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Controls row (dots + arrows) ── */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.75rem 0 0.25rem;
  z-index: 30;
  position: relative;
}

.carousel-btn-3d {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(167,139,250,0.3);
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s var(--ease-spring);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.carousel-btn-3d:hover {
  background: rgba(244,114,182,0.18);
  border-color: rgba(244,114,182,0.55);
  transform: scale(1.1);
}

.carousel-dots-3d {
  display: flex;
  gap: 7px;
  align-items: center;
}

.carousel-dot-3d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--ease-spring);
}

.carousel-dot-3d.active {
  background: var(--pink);
  width: 20px;
  border-radius: 3px;
}

/* Slide counter */
.slide-counter {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  z-index: 30;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.slide-counter span {
  color: var(--pink);
  font-weight: 700;
}

/* ============================================
   TEXT BLOCK — BELOW CAROUSEL
   ============================================ */
.hero-text-block {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  text-align: center;
  padding: 1.25rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* gentle top separator */
  background: linear-gradient(to bottom, transparent, rgba(10,8,16,0.6) 30%);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 0.92;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.35s forwards;
}

.hero-title .name-accent {
  display: block;
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.5s forwards;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.62s forwards;
}

.hero-tag {
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
}

.hero-tag.pink   { color: var(--pink);   border-color: rgba(244,114,182,0.4); background: rgba(244,114,182,0.08); }
.hero-tag.violet { color: var(--violet); border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.08); }
.hero-tag.cyan   { color: var(--cyan);   border-color: rgba(34,211,238,0.4);  background: rgba(34,211,238,0.08);  }
.hero-tag.amber  { color: var(--amber);  border-color: rgba(251,191,36,0.4);  background: rgba(251,191,36,0.08);  }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--pink-dark), var(--violet-dark));
  color: white;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.75s forwards;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(244,114,182,0.35);
}

/* ── Placeholder card (no images yet) ── */
.hero-placeholder-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #1c1829 0%, #2d1f45 50%, #1a0d2e 100%);
  border: 1px solid rgba(167,139,250,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 20;
  animation: shimmerRing 3s ease infinite alternate;
}

.hero-placeholder-card .placeholder-initial {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244,114,182,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(244,114,182,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(244,114,182,0.55);
}

.hero-placeholder-card .placeholder-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(167,139,250,0.4);
  text-align: center;
  padding: 0 2rem;
  line-height: 2;
}

@keyframes shimmerRing {
  from { box-shadow: 0 0 0 1px rgba(244,114,182,0.15), 0 0 40px rgba(124,58,237,0.08); }
  to   { box-shadow: 0 0 0 1px rgba(167,139,250,0.35), 0 0 60px rgba(124,58,237,0.18); }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   DESKTOP LAYOUT — side by side
   min-width: 900px
   Carousel LEFT  |  Text RIGHT
   ============================================ */
@media (min-width: 900px) {
  .hero-section {
    flex-direction: row;
    align-items: stretch;
    padding-top: 0;
    height: 100vh;
    min-height: 680px;
  }

  /* Carousel takes 58% of width */
  .hero-carousel-wrap {
    flex: 0 0 58%;
    width: 58%;
    min-height: unset;
    padding: 100px 0 3rem;  /* 100px = nav height + breathing room */
  }

  .carousel-3d-stage {
    width: min(400px, 55%);
    height: min(560px, 72vh);
  }

  /* Text takes remaining 42% */
  .hero-text-block {
    flex: 1 1 auto;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 5% 3rem 2rem;
    background: none;
  }

  .hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--cyan);
    flex-shrink: 0;
  }

  .hero-tags { justify-content: flex-start; }

  .hero-title { font-size: clamp(3rem, 4.5vw, 5.5rem); }
}

/* ============================================
   LARGE DESKTOP — more generous sizing
   ============================================ */
@media (min-width: 1200px) {
  .carousel-3d-stage {
    width: 440px;
    height: 600px;
  }

  .hero-card.pos-right1 {
    transform: translateX(72%) translateZ(-180px) rotateY(-26deg) scale(0.72);
  }
  .hero-card.pos-left1 {
    transform: translateX(-72%) translateZ(-180px) rotateY(26deg) scale(0.72);
  }
}
