/* ═══════════════════════════════════════════
   BBO Event 2026 — Custom styles
   Palette: ink #07071C · magenta #F0328C · violet #7C3AED
   ═══════════════════════════════════════════ */

::selection {
  background: #f0328c;
  color: #fff;
}

html {
  scrollbar-color: #f0328c #0c0c2a;
}

/* ── Custom cursor ── */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 8px;
  height: 8px;
  background: #f0328c;
}
#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(240, 50, 140, 0.5);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
#cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  border-color: rgba(240, 50, 140, 0.9);
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}

/* ── Navbar glass pill ── */
.glass-nav {
  background: rgba(10, 10, 35, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.is-scrolled .glass-nav {
  background: rgba(7, 7, 28, 0.85);
  box-shadow: 0 12px 40px rgba(240, 50, 140, 0.08);
}
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
  cursor: pointer;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f0328c, #7c3aed);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* ── Primary button ── */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #f0328c, #a12df0);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 24px rgba(240, 50, 140, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(240, 50, 140, 0.55);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff5aa9, #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary > * {
  position: relative;
  z-index: 1;
}

/* Keep both hero CTAs visually balanced before and after web fonts load. */
.hero-cta .hero-cta-btn {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 21rem;
  width: 21rem;
  min-height: 3.5rem;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 720px) {
  .hero-cta {
    align-items: stretch;
  }

  .hero-cta .hero-cta-btn {
    flex-basis: 100%;
    width: 100%;
    white-space: normal;
  }
}

/* ── Ambient blobs ── */
.blob {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}
.blob-magenta {
  background: #f0328c;
  top: -15%;
  right: -10%;
}
.blob-violet {
  background: #7c3aed;
  bottom: -20%;
  left: -12%;
}

/* ── Hero ── */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
}
/* Không dùng overflow:hidden cho .hero-line — dấu tiếng Việt
   (Ớ, Ữ, Ặ…) vượt ra ngoài hộp chữ sẽ bị cắt mất. */

.scroll-hint-line {
  animation: scroll-hint 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-hint {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

@media (max-width: 1023px) {
  #hero-canvas {
    opacity: 0.45;
  }
}

/* ── Countdown ── */
.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cd-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #b9b9de);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cd-label {
  margin-top: 6px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9b9bc0;
}

/* ── Marquee ── */
.marquee {
  animation: marquee 24s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section tag ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(240, 50, 140, 0.4);
  color: #f0328c;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  width: fit-content;
}
.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0328c;
}
.section-tag--light {
  border-color: rgba(240, 50, 140, 0.5);
}

/* ── Bento ── */
.bento {
  border-radius: 24px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Event cards (section sáng) ── */
.event-card {
  cursor: pointer;
  will-change: transform;
  transform-style: preserve-3d;
}
.event-thumb {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 40px rgba(7, 7, 28, 0.12);
}
.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.event-card:hover .event-thumb img {
  transform: scale(1.07);
}
.event-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #f0328c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.event-badge--violet {
  background: #7c3aed;
}
.event-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #f0328c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Speaker cards ── */
.speaker-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  will-change: transform;
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.speaker-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.speaker-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}
.speaker-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(7, 7, 28, 0.95), transparent);
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.speaker-card:hover .speaker-info {
  transform: translateY(0);
}

/* ── Agenda ── */
.day-tab {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  color: #9b9bc0;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}
.day-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.day-tab.active {
  background: linear-gradient(135deg, #f0328c, #a12df0);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(240, 50, 140, 0.35);
}
.agenda-item {
  display: flex;
  gap: 28px;
  padding: 24px 28px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.agenda-item:hover {
  background: rgba(240, 50, 140, 0.07);
  border-color: rgba(240, 50, 140, 0.3);
  transform: translateX(6px);
}
.agenda-time {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  color: #f0328c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.agenda-item h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.agenda-item p {
  color: #9b9bc0;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ── Tickets ── */
.ticket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: transform;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease;
}
.ticket-card:hover {
  border-color: rgba(240, 50, 140, 0.4);
}
.ticket-card--featured {
  background: linear-gradient(160deg, rgba(240, 50, 140, 0.9), rgba(124, 58, 237, 0.9));
  border: none;
  box-shadow: 0 20px 60px rgba(240, 50, 140, 0.35);
  transform: scale(1.03);
}
.ticket-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 999px;
  background: #fff;
  color: #07071c;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.ticket-list {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.ticket-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: #c9c9e2;
}
.ticket-list--light li {
  color: rgba(255, 255, 255, 0.9);
}
.ticket-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(240, 50, 140, 0.18)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23F0328C" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>')
    center / 10px no-repeat;
}
.ticket-list--light li::before {
  background-color: rgba(255, 255, 255, 0.25);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>');
}
.ticket-btn {
  display: inline-flex;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ticket-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.ticket-btn--ghost:hover {
  background: rgba(240, 50, 140, 0.15);
  border-color: #f0328c;
}
.ticket-btn--solid {
  background: #fff;
  color: #07071c;
}
.ticket-btn--solid:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ── Sponsors ── */
.sponsor-logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease, color 0.3s ease;
  cursor: default;
}
.sponsor-logo:hover {
  color: #f0328c;
}

/* ── Footer ── */
.footer-head {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}
.footer-links a {
  color: #9b9bc0;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a:hover {
  color: #f0328c;
  padding-left: 6px;
}
.social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9b9bc0;
  transition: all 0.3s ease;
}
.social-btn:hover {
  background: linear-gradient(135deg, #f0328c, #7c3aed);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

#back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}
.mobile-link:hover {
  color: #f0328c;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee {
    animation: none;
  }
}
