:root{
  --bg1:#0b1220;
  --bg2:#121a2d;
  --soft:#f4f6fb;
  --text:#e8eeff;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ================= PRELOADER ================= */
.preloader{
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(59,130,246,0.25), transparent 60%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  z-index: 99999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.preloader-box{
  text-align:center;
  color:#fff;
  padding: 20px 26px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.preloader-text{
  font-weight:900;
  letter-spacing: 0.3px;
}

.preloader-subtext{
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.preloader.hide{
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}

/* ================= NAVBAR ================= */
.glass-nav{
  background: rgba(12, 18, 33, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar .nav-link{
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

.navbar .nav-link.active{
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.logo-circle{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  overflow:hidden;
}

.logo-img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-fallback{
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  position:absolute;
}

/* ================= HERO ================= */
.hero-section{
  padding-top: 120px;
  padding-bottom: 70px;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(59,130,246,0.25), transparent 60%),
              radial-gradient(1200px 600px at 80% 30%, rgba(168,85,247,0.18), transparent 60%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--text);
}

.hero-title{
  letter-spacing: 0.4px;
}

.hero-subtitle{
  color: rgba(255,255,255,0.78);
}

.badge-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.soft-badge{
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
}

/* Countdown */
.countdown-wrap{
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 560px;
}

.count-item{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px 16px;
  width: 120px;
}

.count-num{
  font-size: 30px;
  font-weight: 900;
}

.count-label{
  font-size: 13px;
  opacity: 0.8;
}

.stat-card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 12px;
  text-align:center;
  font-weight: 800;
}

.poster-box{
  max-width: 780px;
  margin-left:auto;
  margin-right:auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.poster-img{
  width: 100%;
  display: block;
  object-fit: cover;
}


/* ================= SECTIONS ================= */
.section{
  padding: 70px 0;
}

.bg-soft{
  background: var(--soft);
}

.section-title h2{
  letter-spacing: 0.3px;
}

/* Highlights */
.highlight-card{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  height: 100%;
  transition: 0.22s ease;
}
.highlight-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(2,6,23,0.08);
}

/* Event cards */
.event-card{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 18px;
  height: 100%;
  transition: 0.22s ease;
}
.event-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(2,6,23,0.08);
}

.pill{
  font-size: 12px;
  font-weight: 900;
  background: rgba(59,130,246,0.10);
  color: #1d4ed8;
  padding: 6px 10px;
  border-radius: 999px;
}

/* About info cards */
.info-card{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 16px;
  height: 100%;
}
.info-title{
  font-weight: 900;
  font-size: 13px;
  opacity: 0.75;
}
.info-value{
  font-weight: 900;
  margin-top: 6px;
}

/* Contact */
.contact-item{
  padding: 12px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
}
.contact-label{
  font-size: 12px;
  font-weight: 900;
  opacity: 0.75;
}
.contact-value{ font-weight: 750; }

.social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  margin: 0 6px;
  text-decoration:none;
  font-size: 22px;
  color: #111827;
  transition: 0.22s ease;
}
.social-btn:hover{
  transform: translateY(-3px);
}

.contact-link{
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover{
  text-decoration: underline;
}


/* Footer */
.footer{
  padding: 26px 0;
  background: #0b1220;
  color: #fff;
}

/* Modal */
.modal-dark{
  background: linear-gradient(180deg, #0b1220, #121a2d);
  color: #fff;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}
.detail-box{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px 14px;
}
.detail-label{
  font-size: 12px;
  font-weight: 900;
  opacity: 0.75;
}
.detail-value{
  margin-top: 6px;
  font-weight: 700;
}

/* Tournament pricing box */
.ticket-box{
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
}

/* Back to top */
.back-to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12, 18, 33, 0.82);
  backdrop-filter: blur(10px);
  color: #fff;
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 1000;
  transition: 0.25s ease;
}
.back-to-top:hover{
  transform: translateY(-4px);
}

/* ================= ANIMATIONS ================= */
/* reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(18px);
}
.reveal.show{
  opacity: 1;
  transform: translateY(0px);
  transition: 0.65s ease;
}


.footer{
  padding: 32px 12px;
  text-align: center;
  line-height: 1.4;
}
.footer p{
  margin-bottom: 6px;
}

.back-to-top{
  right: 14px;
  bottom: 90px; /* ✅ move up so it never covers footer */
}

@media (max-width: 360px){
  .back-to-top{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    bottom: 100px;
  }
}

@media (max-width: 480px){
  .navbar-brand{
    font-size: 16px;
  }

  .logo-circle{
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .logo-img{
    width: 24px;
    height: 24px;
  }

  .navbar .btn{
    width: 100%;
  }

  .navbar .navbar-collapse{
    padding: 10px 0;
  }
}

.contact-value,
.contact-link{
  word-break: break-word;
  overflow-wrap: anywhere;
}

.btn-primary{
  transition: 0.25s ease;
}
.btn-primary:hover{
  box-shadow: 0 12px 30px rgba(59,130,246,0.35);
  transform: translateY(-2px);
}
