/* ========================================
   RESET & BASE
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
}

body {
  font-family: 'Rajdhani', Arial, sans-serif;
  color: white;
  cursor: auto;
  background:
    radial-gradient(ellipse at 10% 15%, rgba(26,255,140,0.09), transparent 40%),
    radial-gradient(ellipse at 90% 85%, rgba(26,255,140,0.07), transparent 45%),
    radial-gradient(ellipse at 50% 40%, rgba(100,40,180,0.12), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(140,50,220,0.08), transparent 50%),
    radial-gradient(ellipse at 20% 75%, rgba(80,30,160,0.1), transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(60,20,140,0.06), transparent 40%),
    #08040f;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background-image: url("https://www.transparenttextures.com/patterns/noise.png");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(26,255,140,0.05), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(140,50,220,0.06), transparent 50%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(26,255,140,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,255,140,0.35); }

/* ========================================
   FULLSCREEN INTRO
   ======================================== */
.intro {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(26,255,140,0.06), transparent 50%),
    black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* No CSS auto-fade — JS controls dismissal */
}

.intro-logo {
  width: clamp(90px, 20vw, 180px);
  opacity: 0;
  transform: scale(0.8);
  animation: logoPop 2.5s ease forwards;
}

@keyframes logoPop {
  0%   { opacity: 0; transform: scale(0.7) rotate(-5deg); filter: blur(10px) drop-shadow(0 0 0 transparent); }
  40%  { opacity: 1; transform: scale(1); filter: blur(0px) drop-shadow(0 0 30px rgba(26,255,140,0.3)); }
  100% { opacity: 1; transform: scale(1); filter: blur(0px) drop-shadow(0 0 20px rgba(26,255,140,0.2)); }
}


/* ========================================
   AMBIENT OVERLAYS
   ======================================== */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}

.fog-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: url("https://www.transparenttextures.com/patterns/clouds.png");
  opacity: 0.05;
  animation: fogMove 40s linear infinite;
}

@keyframes fogMove {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-5%, 2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.cinematic-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(26,255,140,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(26,255,140,0.06), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(26,255,140,0.03), transparent 60%);
  animation: lightPulse 12s ease-in-out infinite alternate;
}

@keyframes lightPulse {
  0%   { opacity: 0.6; filter: blur(0px); }
  100% { opacity: 1; filter: blur(1px); }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  z-index: 9999;
  background: rgba(5,5,5,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,255,140,0.1);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;
}

nav.show {
  opacity: 1;
  pointer-events: auto;
}

nav.scrolled {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(26,255,140,0.25);
  box-shadow: 0 2px 30px rgba(26,255,140,0.04);
}

.nav-logo { height: 80px; }

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: 0.3s;
  position: relative;
}

.nav-links a:hover { color: #1aff8c; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #1aff8c;
  transition: 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero video {
  position: absolute;
  width: 100%;
  height: 110%;
  top: -5%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.08);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.75) 100%),
    linear-gradient(90deg, rgba(26,255,140,0.06), transparent 50%),
    linear-gradient(270deg, rgba(26,255,140,0.03), transparent 40%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(3,3,3,1));
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 80px;
  margin-top: 60px;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: 4px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(26,255,140,0.12), 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  margin-top: 24px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  letter-spacing: 0.5px;
}

/* ========================================
   SECTIONS (GENERAL)
   ======================================== */
section { padding: 120px 80px; }

section + section {
  border-top: 1px solid rgba(26,255,140,0.06);
}

.section-title {
  font-size: 2.5em;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1aff8c, rgba(26,255,140,0.1));
  border-radius: 2px;
}

/* ========================================
   FADE ANIMATION
   ======================================== */
.fade {
  opacity: 0;
  transform: translateY(60px);
  transition: 1s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ROSTER
   ======================================== */
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.player {
  position: relative;
  height: 420px;
  overflow: hidden;
  border: 1px solid rgba(26,255,140,0.06);
  transition: 0.4s ease;
}

.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.player:hover img {
  transform: scale(1.15);
}

.player:hover {
  border-color: rgba(26,255,140,0.3);
  box-shadow: 0 0 30px rgba(26,255,140,0.08);
}

.player-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
}

.player h3 {
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 1px;
}

.player p {
  color: #1aff8c;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85em;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 6px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
  border: 1px solid rgba(26,255,140,0.06);
  filter: brightness(1.05) contrast(1.05);
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
  filter: brightness(1.15) contrast(1.1);
  box-shadow: 0 0 30px rgba(26,255,140,0.15), 0 0 0 1px rgba(26,255,140,0.3);
  z-index: 2;
  position: relative;
}

.gallery img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery img:nth-child(4) { grid-row: span 2; }
.gallery img:nth-child(6) { grid-column: span 2; }

/* ========================================
   ACHIEVEMENTS
   ======================================== */
.achievements { text-align: center; }

.achievements-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

.achievements-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1aff8c, rgba(26,255,140,0.1));
  margin: 12px auto 0;
  border-radius: 2px;
}

.achievements-header p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #aaa;
  margin-top: 10px;
  margin-bottom: 60px;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ach-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid rgba(26,255,140,0.08);
  transition: 0.4s ease;
}

.ach-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(1.05);
  transition: 0.6s ease;
}

.ach-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.ach-card:hover {
  border-color: rgba(26,255,140,0.5);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,255,140,0.1), 0 0 0 1px rgba(26,255,140,0.15);
}

.ach-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 70%);
}

.ach-overlay h3 {
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 1px;
}

.ach-overlay span {
  color: #b84cff;
  letter-spacing: 3px;
  font-size: 0.85em;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(184,76,255,0.08);
  border: 1px solid rgba(184,76,255,0.25);
  border-radius: 3px;
}

.ach-overlay .ach-location {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.75em;
  letter-spacing: 1.5px;
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Host team badge variant */
.ach-card:nth-child(3) span,
.ach-card:nth-child(5) span {
  color: #1aff8c;
  background: rgba(26,255,140,0.1);
  border-color: rgba(26,255,140,0.3);
}

/* ========================================
   SPONSORS & AFFILIATES — 6/6 SPLIT
   ======================================== */
.split-section {
  padding: 120px 80px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.split-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.split-col .section-title {
  margin-bottom: 40px;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.logo-grid img {
  height: 80px;
  opacity: 1;
  transition: 0.3s;
  object-fit: contain;
}

.logo-grid img:hover {
  filter: drop-shadow(0 0 8px rgba(26,255,140,0.3));
  transform: scale(1.05);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  text-align: center;
  padding: 80px 40px 50px;
  background: linear-gradient(180deg, #050505, #000);
  color: #fff;
  border-top: 1px solid rgba(26,255,140,0.15);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1aff8c, transparent);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.brand {
  color: #1aff8c;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 8px;
  text-shadow: 0 0 40px rgba(26,255,140,0.2);
}

.footer-tagline {
  color: #fff;
  font-size: 0.95em;
  letter-spacing: 2px;
  margin-top: 8px;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(26,255,140,0.4);
  margin: 28px auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85em;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: 0.3s;
}

.footer-links a:hover { color: #1aff8c; }

.footer-copy {
  font-size: 0.8em;
  color: #fff;
  letter-spacing: 1px;
}

/* ========================================
   UTILITY KEYFRAMES
   ======================================== */
@keyframes greenPulse {
  0%   { box-shadow: 0 0 15px rgba(26,255,140,0.05); }
  50%  { box-shadow: 0 0 30px rgba(26,255,140,0.12); }
  100% { box-shadow: 0 0 15px rgba(26,255,140,0.05); }
}

[data-speed] { will-change: transform; }

/* ========================================
   RESPONSIVE — TABLET (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
  section { padding: 100px 40px; }
  .split-section { padding: 100px 40px; }
  .split-grid { gap: 40px; }
}

@media (max-width: 1000px) {
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   RESPONSIVE — MOBILE (max 900px)
   ======================================== */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    height: 100dvh;
    width: 100%;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    z-index: 9998;
  }

  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.3em; margin: 15px 0; }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
  section { padding: 80px 20px; }
  .split-section { padding: 80px 20px; }
  .split-grid { grid-template-columns: 1fr; gap: 60px; }
  .logo-grid { justify-content: center; }

  nav { padding: 15px 20px; }
  .nav-logo { height: 50px; }

  .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }

  .roster { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .player { height: 350px; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery img:nth-child(1),
  .gallery img:nth-child(4),
  .gallery img:nth-child(6) { grid-column: span 1; grid-row: span 1; }

  .ach-card { height: 220px; }

  .ach-overlay {
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.95) 100%);
  }

  .ach-overlay h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  }

  .ach-overlay span {
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(184,76,255,0.15);
    border: 1px solid rgba(184,76,255,0.6);
    color: #b84cff;
    font-size: 0.85em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  }

  .ach-overlay h3,
  .ach-overlay span { position: relative; z-index: 2; }
}

@media (max-width: 650px) {
  .achievements-grid { grid-template-columns: 1fr; }
}
