/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: #D4A017; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #F5C842; }

.hidden { display: none !important; }

/* ===== PHASE 1: INTRO ===== */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  background-color: #ffffff;
  transition: opacity 0.8s ease-in-out;
}

#three-container { width: 100%; height: 100%; }
#three-container canvas { display: block; }

#intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding-top: 60px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  animation: fadeInTitle 1.5s ease-in-out 0.5s forwards;
}

@keyframes fadeInTitle { to { opacity: 1; } }

#intro-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #D4A017 0%, #F5C842 40%, #D4A017 70%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(212, 160, 23, 0.3));
  margin-bottom: 12px;
}

#intro-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

#enter-wrap {
  position: absolute;
  bottom: 9%;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeInTitle 1.5s ease-in-out 0.8s forwards;
}

#enter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #22873e, #1a6b30);
  border: none;
  border-radius: 10px;
  padding: 16px 44px;
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 40px rgba(34, 135, 62, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
#enter-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 60px rgba(34, 135, 62, 0.65);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(34, 135, 62, 0.4); }
  50% { box-shadow: 0 0 58px rgba(34, 135, 62, 0.65); }
}

/* ===== PHASE 2: HUB / CAROUSEL ===== */
#hub-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 160, 23, 0.08), transparent 60%),
    #0a0a0f;
  animation: fadeInHub 1s ease-in-out forwards;
}

@keyframes fadeInHub { from { opacity: 0; } to { opacity: 1; } }

.brand-top {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 30;
  pointer-events: none;
  padding: 0 20px;
}
.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  background: linear-gradient(135deg, #D4A017 0%, #F5C842 45%, #D4A017 75%, #B8860B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(212, 160, 23, 0.28));
}
.brand-sub {
  margin-top: 6px;
  font-weight: 300;
  font-size: clamp(0.62rem, 1.2vw, 0.8rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.55);
}

.main-container {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.carousel-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-container {
  width: 100%;
  max-width: 480px;
  height: 70vh;
  position: relative;
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-track {
  width: 440px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
}

.card {
  position: absolute;
  width: 420px;
  max-width: 86vw;
  height: 236px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid rgba(212, 160, 23, 0.18);
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.15) 0%, rgba(10,10,15,0.5) 55%, rgba(10,10,15,0.92) 100%);
  z-index: 1;
}

.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-number {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #F5C842;
}
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}
.card-tag {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.85);
  background: rgba(212, 160, 23, 0.22);
  border: 1px solid rgba(212, 160, 23, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
}
.lock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, #F5C842, #D4A017);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Positional states */
.card.center {
  z-index: 10;
  transform: scale(1.06) translateZ(0);
  border-color: rgba(212, 160, 23, 0.65);
  box-shadow: 0 26px 60px rgba(0,0,0,0.7), 0 0 34px rgba(212, 160, 23, 0.28);
}
.card.center .card-image { filter: none; }

.card.up-1 {
  z-index: 5;
  transform: translateY(-160px) scale(0.86) translateZ(-120px);
  opacity: 0.55;
}
.card.up-1 .card-image { filter: grayscale(70%) brightness(0.7); }

.card.up-2 {
  z-index: 1;
  transform: translateY(-300px) scale(0.74) translateZ(-320px);
  opacity: 0.28;
}
.card.up-2 .card-image { filter: grayscale(90%) brightness(0.55); }

.card.down-1 {
  z-index: 5;
  transform: translateY(160px) scale(0.86) translateZ(-120px);
  opacity: 0.55;
}
.card.down-1 .card-image { filter: grayscale(70%) brightness(0.7); }

.card.down-2 {
  z-index: 1;
  transform: translateY(300px) scale(0.74) translateZ(-320px);
  opacity: 0.28;
}
.card.down-2 .card-image { filter: grayscale(90%) brightness(0.55); }

.card.hidden-card {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6) translateZ(-500px);
}

/* Controls */
.controls-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding-left: 20px;
  max-width: 460px;
}

.nav-controls {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
  justify-content: center;
}

.nav-arrow {
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: #D4A017;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.nav-arrow:hover {
  background: rgba(212, 160, 23, 0.22);
  border-color: #D4A017;
  transform: scale(1.1);
  box-shadow: 0 0 22px rgba(212, 160, 23, 0.35);
}
.nav-arrow svg { width: 24px; height: 24px; }

.member-info {
  text-align: center;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: opacity 0.4s ease;
}
.info-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #F5C842;
  margin-bottom: 12px;
}
.info-title {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.12;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.info-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4A017, transparent);
}
.info-desc {
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 380px;
}

.cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, #F5C842, #D4A017);
  border: none;
  border-radius: 10px;
  padding: 13px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.4);
}

.cta-disabled {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 13px 30px;
  cursor: not-allowed;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.dot.active {
  background: #D4A017;
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.6);
}

.hint {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
  pointer-events: none;
}

@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
    height: 100%;
    gap: 8px;
    padding: 90px 18px 70px;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .carousel-section { width: 100%; flex: none; }
  .controls-section { width: 100%; flex: none; padding-left: 0; gap: 22px; }
  .carousel-container { height: 52vh; max-width: 360px; }
  .carousel-track { width: 340px; }
  .card { width: 330px; height: 186px; }
  .card-title { font-size: 1.2rem; }
  .card.up-1 { transform: translateY(-118px) scale(0.86) translateZ(-120px); }
  .card.up-2 { transform: translateY(-215px) scale(0.74) translateZ(-320px); }
  .card.down-1 { transform: translateY(118px) scale(0.86) translateZ(-120px); }
  .card.down-2 { transform: translateY(215px) scale(0.74) translateZ(-320px); }
  .member-info { min-height: 0; }
  .info-desc { font-size: 0.88rem; }
  .hint { display: none; }
}
