/* =========================================================
   base.css – Clean, minimal, no background images
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  font-size: 18px;

  --color-bg: #020617;            /* page background */
  --color-surface-dark: #0b1120;  /* dark panels */
  --color-surface-soft: #111827;  /* inner panels */
  --color-border-soft: #1f2937;

  --color-text: #e5e7eb;
  --color-muted: #9ca3af;

  --color-accent1: #38bdf8; /* blue */
  --color-accent2: #facc15; /* yellow */
  --color-accent3: #a855f7; /* purple */
  --color-accent4: #f43f5e; /* red */
}

/* Base -------------------------------------------------- */

body {
  margin: 0;
  padding-top: 72px; /* space for fixed navbar */
  color: var(--color-text);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg);
  overflow-x: hidden;
}

.main {
  --color-info: var(--color-accent1);
}

/* Typography -------------------------------------------- */

section h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
}

.section-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-accent2);
  margin-bottom: 0.75rem;
}

h3,
h4,
h5 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.text-accent1 {
  color: var(--color-accent1);
}

/* NAVBAR ------------------------------------------------ */

.navbar-glass {
  background-color: #020617 !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--color-accent2);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.9);
}

.navbar-nav .nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding-inline: 0.75rem;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-accent1);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* HERO / THREE.JS -------------------------------------- */

.hero-section {
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

#app {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Floating overlay */

.hero-overlay {
	opacity: 0.8;
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding: 1.9rem 2.4rem 2.2rem;
  border-radius: 1.4rem;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.95),
    0 0 40px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  animation: heroIn 1.1s ease-out 0.2s both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 0.8;
    transform: translateY(0) scale(1);
  }
}

.logo-wrapper img {
  display: block;
  margin-inline: auto;
}

/* Hero text */

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
}

.hero-title {
  font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-subtitle {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.9);
}

.hero-meta {
  color: rgba(226, 232, 240, 0.8);
}

.tracking-wider {
  letter-spacing: 0.2em;
}

/* Countdown -------------------------------------------- */

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.time-box {
  min-width: 72px;
  padding: 0.45rem 0.7rem;
  border-radius: 0.9rem;
  background-color: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.time-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.time-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.countdown-finished {
  font-weight: 600;
}

/* Hero CTAs */

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn {
  border-radius: 999px;
  padding-inline: 1.4rem;
  padding-block: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn-accent {
  background-color: var(--color-accent1);
  border: none;
  color: #020617;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: #0ea5e9;
  color: #020617;
}

/* Sections --------------------------------------------- */

section {
  scroll-margin-top: 80px; /* offset for fixed navbar */
  position: relative;
}

/* dark sections */

.section-dark,
.agenda-section,
.contact-section,
#venue {
  background-color: transparent;
}


/* glass-like inner container for dark sections */

.section-dark > .container,
.agenda-section > .container,
.contact-section > .container,
#venue > .container {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  border-radius: 1.4rem;
  background-color: rgba(17, 24, 39, 0.82); /* was solid, now ~82% opacity */
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

/* Sponsors – simple light section ---------------------- */

.bg-light {
  background-color: #f9fafb !important;
}

#sponsors {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

#sponsors h2 {
  color: #020617;
}

.sponsor-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: var(--color-accent1);
}

.sponsor-logo {
  max-height: 80px;
  object-fit: contain;
}

/* Agenda tables ---------------------------------------- */

.agenda-section {
  color: #f9fafb;
}

.agenda-table {
  --bs-table-bg: rgba(15, 23, 42, 0.96);
  --bs-table-striped-bg: rgba(15, 23, 42, 0.9);
  --bs-table-striped-color: #f9fafb;
  --bs-table-color: #f9fafb;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.agenda-table thead th {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom-width: 1px;
  border-color: rgba(148, 163, 184, 0.7);
  background-color: #020617;
}

.agenda-table tbody tr td:first-child {
  white-space: nowrap;
  font-weight: 500;
  color: var(--color-accent2);
}

.agenda-meta {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  color: var(--color-accent4);
}

/* Venue ------------------------------------------------- */

#venue p,
#venue li {
  color: rgba(226, 232, 240, 0.9);
}

#map {
  width: 100%;
  height: 400px;
  margin-top: 2rem;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Contact ---------------------------------------------- */

#contact a.link-light {
  text-decoration: none;
  color: var(--color-accent1);
}

#contact a.link-light:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Footer ----------------------------------------------- */

.footer-dark {
  background-color: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.9);
}

.link-accent2 {
  color: var(--color-accent2);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.link-accent2:hover {
  color: var(--color-accent1);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Stacking Wrapper -------------------------------------------- */
.section-stack {
  position: relative;
}

/* Three.js background behind About/Agenda/Venue/Contact */
#bottom-app {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Make sure these sections sit above the background */
.section-stack section {
  position: relative;
  z-index: 1;
}

/* Media queries ---------------------------------------- */

@media (max-width: 991.98px) {
  body {
    padding-top: 64px;
  }

  .hero-overlay {
    padding: 1.6rem 1.4rem 1.8rem;
    margin-inline: 1rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .section-dark > .container,
  .agenda-section > .container,
  .contact-section > .container,
  #venue > .container {
    padding: 2rem 1.4rem;
    border-radius: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    letter-spacing: 0.14em;
  }

  section h2 {
    letter-spacing: 0.12em;
  }

  .time-box {
    min-width: 64px;
  }

  .sponsor-card {
    padding: 0.9rem 1.2rem;
  }
}
