/* Global brand variables */
:root {
  --brand-primary: #4A46E3;
  --brand-secondary: #D25FA3;
}

/* Base layout helpers */
html, body { height: 100%; }
body { font-feature-settings: "rlig" 1, "calt" 1; }

/* Floating navbar shimmer hover effect (brand gradient) */
.header {
  position: relative;
  overflow: hidden; /* confine the shimmer within rounded pill */
}
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(74,70,227, 0.28) 45%, rgba(210,95,163, 0.28) 55%, transparent 80%);
  transform: skewX(-12deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.header:hover::before { left: 100%; }

/* Mobile navbar refinements */
@media (max-width: 639px) {
  .header {
    padding: 12px 16px !important;
  }

  .mobile-nav-logo {
    gap: 12px;
    min-height: 40px;
  }

  .mobile-nav-logo img:first-child {
    height: 26px;
  }

  .mobile-nav-logo span {
    font-size: 18px;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-panel {
    padding: 12px 12px !important;
  }

  .mobile-nav-link {
    padding: 12px 16px;
    background-color: #f3f4f6;
  }

  .mobile-nav-link + .mobile-nav-link {
    margin-top: 6px;
  }
}

.timeline-label--complete,
.timeline-label--progress {
  font-weight: 600;
}

/* =============================
   Hero decorative system
   ============================= */
/* Gradient wash behind hero */
.hero-gradient {
  background: url('assets/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Soft grid overlay */
.hero-grid {
  background-image: linear-gradient(rgba(17, 24, 39, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(17, 24, 39, 0.06) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 75%);
}

/* Subtle film grain */
.hero-noise {
  background-image: url('data:image/svg+xml;utf8,\
  <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">\
    <filter id="n">\
      <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/>\
      <feColorMatrix type="saturate" values="0"/>\
    </filter>\
    <rect width="100%" height="100%" filter="url(%23n)" opacity="0.6"/>\
  </svg>');
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

/* Bottom white fade to blend hero into page */
.hero-fade {
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 60%, rgba(255,255,255,1) 100%);
}

/* Glow blobs */
.hero-glow {
  background: radial-gradient(circle at 30% 30%, rgba(74,70,227, 0.55), rgba(74,70,227, 0) 60%),
              radial-gradient(circle at 70% 70%, rgba(0, 179, 138, 0.45), rgba(0, 179, 138, 0) 65%);
  filter: blur(40px);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}
.hero-glow--secondary {
  background: radial-gradient(circle at 30% 30%, rgba(210,95,163, 0.55), rgba(210,95,163, 0) 60%),
              radial-gradient(circle at 70% 70%, rgba(74,70,227, 0.35), rgba(74,70,227, 0) 65%);
  animation-duration: 12s;
}

/* Orbs */
.orb {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0) 70%),
              radial-gradient(circle at 60% 60%, rgba(74,70,227, 0.25) 0%, rgba(74,70,227, 0) 60%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), inset 0 1px 4px rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  animation: float 8s ease-in-out infinite, pulse 6s ease-in-out infinite;
}
.orb--sm { width: 44px; height: 44px; }
.orb--md { width: 72px; height: 72px; }

/* Motion keyframes */
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.9; filter: saturate(1); }
  50% { opacity: 1; filter: saturate(1.15); }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .orb { animation: none !important; }
}

/* =============================
   Glass buttons (hero CTAs)
   ============================= */
.btn-glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.6));
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 20px rgba(17,24,39,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 160ms ease;
}
.btn-glass:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 22px rgba(17,24,39,0.08);
}

/* =============================
   Stats cards
   ============================= */
.stat-card {
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(74,70,227, 0.22) 45%, rgba(210,95,163, 0.22) 55%, transparent 80%);
  transform: skewX(-12deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.10);
  border-color: rgba(0,0,0,0.12);
}
.stat-card:hover::before { left: 100%; }

.stat-value {
  font-family: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  color: #111827;
}
.stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: #6B7280; /* gray-500 */
}

@media (min-width: 640px) {
  .stat-card { padding: 22px 24px; }
  .stat-value { font-size: 40px; }
  .stat-label { font-size: 14px; }
}

/* =============================
   Logo gradient shadow (hero) - removed
   ============================= */
.logo-wrap {
  position: relative;
  display: inline-block;
}
/* .logo-wrap::after removed to eliminate green aura */

/* =============================
   Prize section background
   ============================= */
.prize-bg {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(74,70,227,0.18), rgba(74,70,227,0) 50%),
    radial-gradient(120% 80% at 100% 0%, rgba(210,95,163,0.18), rgba(210,95,163,0) 50%),
    linear-gradient(180deg, #ffffff, #f9fafb);
}
.prize-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(17,24,39,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(17,24,39,0.06) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}
.prize-card {
  position: relative;
}
.prize-title { font-size: 1.375rem; font-weight: 700; }
@media (min-width: 640px) { .prize-title { font-size: 1.625rem; } }

/* =============================
   Venue container background
   ============================= */
.venue-container {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 20%, rgba(74,70,227,0.12), rgba(74,70,227,0) 60%),
    radial-gradient(100% 60% at 80% 80%, rgba(210,95,163,0.10), rgba(210,95,163,0) 50%),
    linear-gradient(180deg, #f9fafb, #ffffff);
}
.venue-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(17,24,39,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(17,24,39,0.05) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
  pointer-events: none;
}


/* =============================
   Mobile menu animation
   ============================= */
@keyframes menuIn {
  0% { opacity: 0; transform: translateY(-6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.menu-animate-in { animation: menuIn 180ms ease-out; }

/* =============================
   Date highlight badge
   ============================= */
.date-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 700;
  color: #0f0461;
}

/* =============================
   Timeline line (gray) responsive
   ============================= */
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 36px; /* aligns with dot center (mobile) */
  top: 0;
  bottom: 0;
  width: 3px;
  background: #D1D5DB; /* gray-300 for stronger line */
  border-radius: 9999px;
}
.timeline-item {
  position: relative;
  padding-left: 46px; /* accommodate dot on mobile */
}
.timeline-item .timeline-dot {
  position: absolute;
  left: 5.5px;
  top: 2px; /* aligns dot with line */
}
@media (min-width: 768px) {
  /* Desktop: stabilize container height and align line with dot center */
  .timeline {
    --tl-dot: 32px;  /* matches md:h-8 md:w-8 */
    --tl-pt: 2px;   /* top padding for breathing space */
    --tl-line: 4px;  /* desktop line thickness */
    padding-top: var(--tl-pt);
    padding-bottom: 16px;
  }
  .timeline::before {
    left: 8px;
    right: 8px;
    top: 15px; /* center line on dot */
    height: var(--tl-line);
    bottom: auto;
    width: auto;
    border-radius: 9999px;
  }
  .timeline-item { padding-left: 0; }
  .timeline-item .timeline-dot {
    position: static; /* use normal flow for horizontal layout */
  }
}

/* Remove all border-radius */
* {
  border-radius: 0 !important;
}

/* Keep border-radius for timeline */
.timeline-container {
  border-radius: 1rem !important;
}
.timeline::before {
  border-radius: 9999px !important;
}
.timeline-dot {
  border-radius: 9999px !important;
}
