/* ==========================================
   1. SETUP FONT LOKAL (PALMORE)
   ========================================== */
@font-face {
  font-family: 'Palmore';
  src: url('assets/palmore/Palmore Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   2. CUSTOM UTILITIES & BACKGROUNDS
   ========================================== */
.star-bg {
  background-color: #0d0d0d;
  background-image: radial-gradient(#ffffff 0.8px, transparent 0.8px);
  background-size: 20px 20px;
}

.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition-property: transform, opacity, filter;
  transition-duration: 1.1s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  transform: translate3d(-70px, 0, 0) scale(0.96);
  filter: blur(4px);
}

.reveal-right {
  transform: translate3d(70px, 0, 0) scale(0.96);
  filter: blur(4px);
}

.reveal-up {
  transform: translate3d(0, 50px, 0) scale(0.96);
  filter: blur(4px);
}

.reveal-active {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0px) !important;
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================
   3. FAN CARD DECK
   ========================================== */
.fan-deck {
  position: relative;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fan-item {
  position: absolute;
  width: 145px;
  height: 225px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #18181b;
  transform-origin: center 110%;
  border: 1.5px solid rgba(230, 43, 30, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s ease;
}

@media (min-width: 768px) {
  .fan-deck { height: 400px; }
  .fan-item {
    width: 165px;
    height: 255px;
    border-radius: 20px;
  }
}

.fan-item-1 { transform: translateX(-120px) translateY(18px) rotate(-20deg); z-index: 10; opacity: 0.85; }
.fan-item-2 { transform: translateX(-60px) translateY(6px) rotate(-10deg); z-index: 20; opacity: 0.95; }
.fan-item-3 {
  transform: translateX(0px) translateY(-12px) rotate(0deg) scale(1.05);
  z-index: 30;
  opacity: 1;
  border: 2px solid #E62B1E;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95), 0 0 20px rgba(230, 43, 30, 0.5);
}
.fan-item-4 { transform: translateX(60px) translateY(6px) rotate(10deg); z-index: 20; opacity: 0.95; }
.fan-item-5 { transform: translateX(120px) translateY(18px) rotate(20deg); z-index: 10; opacity: 0.85; }

/* ==========================================
   4. 10-CARD FAN CAROUSEL
   ========================================== */
.fan-deck-container {
  position: relative;
  width: 100%;
  min-height: 480px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  margin: 0 auto;
}

.fan-deck-container:active { cursor: grabbing; }

.fan-cards-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.fan-card-item {
  position: absolute;
  width: 135px;
  height: 215px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #18181b;
  transform-origin: center 120%;
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s, box-shadow 0.4s, border 0.4s, z-index 0.5s step-end;
  border: 1px solid rgba(230, 43, 30, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  left: calc(50% - 67.5px);
}

@media (min-width: 768px) {
  .fan-deck-container { min-height: 520px; }
  .fan-cards-wrapper { height: 300px; }
  .fan-card-item {
    width: 160px;
    height: 245px;
    border-radius: 20px;
    left: calc(50% - 80px);
  }
}

.pos-center {
  transform: translateX(0px) translateY(-10px) rotate(0deg) scale(1.08);
  z-index: 50;
  opacity: 1;
  border: 2px solid #E62B1E;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(230, 43, 30, 0.6);
}

.pos-left-1 { transform: translateX(-65px) translateY(8px) rotate(-8deg); z-index: 40; opacity: 0.95; }
.pos-left-2 { transform: translateX(-120px) translateY(20px) rotate(-16deg); z-index: 30; opacity: 0.85; }
.pos-left-3 { transform: translateX(-160px) translateY(35px) rotate(-24deg); z-index: 20; opacity: 0.6; }
.pos-left-4 { transform: translateX(-190px) translateY(50px) rotate(-32deg); z-index: 10; opacity: 0.3; }

.pos-right-1 { transform: translateX(65px) translateY(8px) rotate(8deg); z-index: 40; opacity: 0.95; }
.pos-right-2 { transform: translateX(120px) translateY(20px) rotate(16deg); z-index: 30; opacity: 0.85; }
.pos-right-3 { transform: translateX(160px) translateY(35px) rotate(24deg); z-index: 20; opacity: 0.6; }
.pos-right-4 { transform: translateX(190px) translateY(50px) rotate(32deg); z-index: 10; opacity: 0.3; }

.pos-hidden-left { transform: translateX(-210px) translateY(60px) rotate(-40deg); z-index: 0; opacity: 0; pointer-events: none; }
.pos-hidden-right { transform: translateX(210px) translateY(60px) rotate(40deg); z-index: 0; opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .pos-center { transform: translateX(0px) translateY(-5px) rotate(0deg) scale(1.05); }
  .pos-left-1 { transform: translateX(-40px) translateY(5px) rotate(-8deg); }
  .pos-left-2 { transform: translateX(-75px) translateY(12px) rotate(-16deg); }
  .pos-left-3 { transform: translateX(-100px) translateY(22px) rotate(-24deg); }
  .pos-left-4 { transform: translateX(-120px) translateY(35px) rotate(-32deg); opacity: 0; }
  
  .pos-right-1 { transform: translateX(40px) translateY(5px) rotate(8deg); }
  .pos-right-2 { transform: translateX(75px) translateY(12px) rotate(16deg); }
  .pos-right-3 { transform: translateX(100px) translateY(22px) rotate(24deg); }
  .pos-right-4 { transform: translateX(120px) translateY(35px) rotate(32deg); opacity: 0; }
}

@keyframes peekBounce {
  0%, 100% { transform: translateX(12px) translateY(0) rotate(-6deg); }
  50% { transform: translateX(4px) translateY(-8px) rotate(-3deg); }
}

.animate-peek-bounce { animation: peekBounce 3.5s ease-in-out infinite; }

/* ==========================================
   5. SPONSORS, TICKETING & PARTNERS SECTION
   ========================================== */
.sponsors-section {
  background-color: #000000;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.sponsors-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sponsors-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #eb0028; /* Merah TEDx */
  letter-spacing: 2px;
  margin-bottom: 35px;
}

.medpart-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #cccccc;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.logo-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

/* Semua Gambar/Logo Langsung Berwarna & Terang */
.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(0%) opacity(1) !important;
  transition: transform 0.3s ease;
}

/* Hover effect di Desktop */
.logo-card:hover {
  border-color: #eb0028;
  background: rgba(235, 0, 40, 0.08);
  transform: translateY(-3px);
}

.logo-card:hover img {
  transform: scale(1.05);
}

/* Ukuran Main Sponsor (KBA) */
.main-sponsor-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  width: 350px;
  height: auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.main-sponsor-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.main-sponsor-card:hover {
  border-color: #eb0028;
  background: rgba(235, 0, 40, 0.08);
  transform: translateY(-3px);
}

/* Ukuran Sponsor Biasa */
.sponsor-grid .logo-card {
  width: 150px;
  height: 90px;
}

/* Cakap (Bisa dihapus jika Cakap sudah tidak pakai class featured) */
.sponsor-grid .logo-card.featured {
  width: 210px;
  height: 110px;
  border-color: rgba(235, 0, 40, 0.6);
  background: rgba(235, 0, 40, 0.08);
}

/* Ukuran Medpart, Ticketing, dan Community Partner */
.medpart-grid .logo-card {
  width: 130px;
  height: 80px;
}

.sponsors-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(235, 0, 40, 0.4), transparent);
  margin: 45px auto;
  width: 60%;
}

/* Penyesuaian Responsif Layar Mobile / HP */
@media (max-width: 768px) {
  .logo-card {
    border-color: rgba(235, 0, 40, 0.3);
    background: rgba(255, 255, 255, 0.08);
  }

  .main-sponsor-card {
    width: 260px; /* Ukuran KBA mengecil proporsional di HP */
  }

  .sponsor-grid .logo-card.featured {
    width: 170px;
    height: 95px;
  }

  .sponsor-grid .logo-card {
    width: 120px;
    height: 75px;
  }

  .medpart-grid .logo-card {
    width: 110px;
    height: 70px;
  }
}

/* ==========================================
   6. HERO SECTION & UFO MASCOT FIX
   ========================================== */
.hero-section {
  position: relative;
  width: 100%;
}

.ufo-mascot {
  position: absolute;
  top: 30%; /* Sesuaikan angka persentase atau pixel ini (misal top: 250px;) */
  right: 0;
  z-index: 10;
}