/* Intro Screen — Vibrant Football Theme */
.intro-screen {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse at 20% 15%, rgba(196, 22, 28, 0.35) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 85%, rgba(0, 200, 83, 0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 5%, rgba(255, 165, 0, 0.2) 0%, transparent 35%),
    radial-gradient(ellipse at 10% 70%, rgba(0, 35, 149, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 90% 30%, rgba(255, 214, 0, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, #1b5e20 0%, #0d2818 40%, #0a120a 100%);
  overflow: hidden;
  transition: opacity 1s ease-in-out;
}

.intro-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ==== PITCH FIELD LINES ==== */
.intro-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 140px, rgba(255,255,255,0.06) 140px, rgba(255,255,255,0.06) 143px, transparent 143px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,0.05) calc(50% - 1px), rgba(255,255,255,0.05) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 5px, transparent 5px),
    linear-gradient(0deg, transparent calc(12% - 1px), rgba(255,255,255,0.04) calc(12% - 1px), rgba(255,255,255,0.04) calc(12% + 1px), transparent calc(12% + 1px)),
    linear-gradient(0deg, transparent calc(88% - 1px), rgba(255,255,255,0.04) calc(88% - 1px), rgba(255,255,255,0.04) calc(88% + 1px), transparent calc(88% + 1px));
}

/* ==== PARTICLES CANVAS ==== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ==== FLOATING FOOTBALLS ==== */
.football-el-1, .football-el-2, .football-el-3, .football-el-4 {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.football-el-1 { width: 70px; height: 70px; top: 6%; left: 8%; opacity: 0.15; animation: footballDrift1 16s ease-in-out infinite; }
.football-el-2 { width: 90px; height: 90px; bottom: 10%; right: 6%; opacity: 0.12; animation: footballDrift2 20s ease-in-out infinite; }
.football-el-3 { width: 50px; height: 50px; top: 60%; left: 4%; opacity: 0.1; animation: footballDrift3 14s ease-in-out infinite; }
.football-el-4 { width: 55px; height: 55px; top: 12%; right: 10%; opacity: 0.11; animation: footballDrift4 18s ease-in-out infinite; }

/* ==== FLAG ELEMENTS ==== */
.flag-el {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
}
.flag-el-1 {
  top: 20%;
  right: 4%;
  width: 40px;
  height: 60px;
  border-left: 3px solid rgba(255,255,255,0.5);
  animation: flagWave 3s ease-in-out infinite;
}
.flag-el-1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 20px;
  background: linear-gradient(180deg, #c4161c 33%, #fff 33%, #fff 66%, #009739 66%);
  clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
  animation: flagFlutter 2s ease-in-out infinite;
}
.flag-el-2 {
  bottom: 20%;
  left: 4%;
  width: 40px;
  height: 60px;
  border-left: 3px solid rgba(255,255,255,0.5);
  animation: flagWave 3.5s ease-in-out infinite 0.5s;
}
.flag-el-2::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 20px;
  background: linear-gradient(180deg, #002395 33%, #fff 33%, #fff 66%, #ed2939 66%);
  clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
  animation: flagFlutter 2.2s ease-in-out infinite;
}
.flag-el-3 {
  top: 75%;
  right: 12%;
  width: 40px;
  height: 55px;
  border-left: 3px solid rgba(255,255,255,0.5);
  animation: flagWave 3.2s ease-in-out infinite 1s;
}
.flag-el-3::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 20px;
  background: linear-gradient(90deg, #009739 33%, #fedd00 33%, #fedd00 66%, #002395 66%);
  clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
  animation: flagFlutter 1.8s ease-in-out infinite;
}

/* ==== GOAL POSTS ==== */
.goal-post-left, .goal-post-right {
  position: absolute;
  top: 28%;
  width: 35px;
  height: 140px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.1;
}
.goal-post-left { left: 2%; }
.goal-post-right { right: 2%; }
.goal-post-left::before, .goal-post-right::before {
  content: '';
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: white;
  border-radius: 2px;
}
.goal-post-left::after, .goal-post-right::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 4px;
  background: white;
  border-radius: 2px;
}
.goal-post-left::before { left: 0; }
.goal-post-left::after { left: 0; }
.goal-post-right::before { right: 0; }
.goal-post-right::after { right: 0; }

/* ==== ELECTRICAL COMPONENT SVGs ==== */
.elec-el {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
  color: rgba(255,214,0,0.8);
}
.elec-el-1 { top: 35%; right: 6%; width: 50px; height: 50px; animation: floatSlow 12s ease-in-out infinite; }
.elec-el-2 { bottom: 30%; left: 8%; width: 45px; height: 45px; animation: floatSlow 15s ease-in-out infinite 3s; }
.elec-el-3 { top: 18%; left: 18%; width: 40px; height: 40px; animation: floatSlow 13s ease-in-out infinite 6s; }

/* ==== NET PATTERN ==== */
.net-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: 
    linear-gradient(0deg, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 35px 35px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 60%);
}

/* ==== STADIUM LIGHT SPOTS ==== */
.stadium-spot-1, .stadium-spot-2, .stadium-spot-3, .stadium-spot-4 {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.stadium-spot-1 {
  top: -8%; left: 12%; width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,214,0,0.2) 0%, transparent 70%);
  animation: spotPulse 4s ease-in-out infinite;
}
.stadium-spot-2 {
  top: -8%; right: 12%; width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(0,200,83,0.15) 0%, transparent 70%);
  animation: spotPulse 4s ease-in-out infinite 1s;
}
.stadium-spot-3 {
  bottom: -8%; left: 50%; transform: translateX(-50%); width: 350px; height: 180px;
  background: radial-gradient(ellipse, rgba(196,22,28,0.15) 0%, transparent 70%);
  animation: spotPulse 5s ease-in-out infinite 0.5s;
}
.stadium-spot-4 {
  top: 40%; left: -5%; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,35,149,0.1) 0%, transparent 70%);
  animation: spotPulse 6s ease-in-out infinite 2s;
}

/* ==== FLOODLIGHT BEAMS ==== */
.floodlight-beam {
  position: absolute;
  width: 12vw;
  height: 160vh;
  z-index: 2;
  transform-origin: top center;
  top: -25vh;
  animation: beamRotate 35s linear infinite;
  pointer-events: none;
}
.intro-screen > .floodlight-beam:nth-of-type(1) {
  background: linear-gradient(90deg, transparent, rgba(0,200,83,0.06), transparent);
  transform: rotate(15deg);
}
.intro-screen > .floodlight-beam:nth-of-type(2) {
  background: linear-gradient(90deg, transparent, rgba(196,22,28,0.05), transparent);
  transform: rotate(-25deg);
  animation-delay: -12s;
}
.intro-screen > .floodlight-beam:nth-of-type(3) {
  background: linear-gradient(90deg, transparent, rgba(255,165,0,0.04), transparent);
  transform: rotate(45deg);
  animation-delay: -24s;
}

.haze-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.04), transparent 70%);
  animation: hazePulse 4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

/* ==== FOOTBALL KEYFRAMES ==== */
@keyframes footballDrift1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(35px, 25px) rotate(90deg); }
  50% { transform: translate(-15px, 50px) rotate(180deg); }
  75% { transform: translate(25px, -15px) rotate(270deg); }
}
@keyframes footballDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-30px, -20px) rotate(-90deg); }
  50% { transform: translate(20px, -35px) rotate(-180deg); }
  75% { transform: translate(-25px, 15px) rotate(-270deg); }
}
@keyframes footballDrift3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(45px, -25px) rotate(120deg); }
  66% { transform: translate(-20px, 30px) rotate(240deg); }
}
@keyframes footballDrift4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-35px, 35px) rotate(180deg); }
}
@keyframes flagWave {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes flagFlutter {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.85); }
}
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.06; }
  50% { transform: translate(15px, -20px) rotate(15deg); opacity: 0.09; }
}
@keyframes spotPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ==== LOGOS ==== */
.intro-logos {
  display: flex;
  flex-direction: row;
  gap: 50px;
  margin-bottom: 30px;
  z-index: 10;
  align-items: center;
}

.logo-panel {
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-panel:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.logo-panel--dark,
.logo-panel--light {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(255,214,0,0.25));
}

/* ==== CONTENT ==== */
.intro-content {
  text-align: center;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.intro-college {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--gold-glow);
}

.intro-dept {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* TITLE — Same gradient style as hero title, fully visible */
.intro-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  display: block;
  color: #ffd600;
  text-shadow: 
    0 0 40px rgba(255,214,0,0.5),
    0 0 80px rgba(255,214,0,0.2),
    0 0 10px rgba(196,22,28,0.3);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { 
    text-shadow: 0 0 40px rgba(255,214,0,0.5), 0 0 80px rgba(255,214,0,0.2), 0 0 10px rgba(196,22,28,0.3);
    color: #ffd600;
  }
  50% {
    text-shadow: 0 0 50px rgba(196,22,28,0.5), 0 0 80px rgba(196,22,28,0.2), 0 0 10px rgba(0,200,83,0.3);
    color: #ff6b6b;
  }
  100% { 
    text-shadow: 0 0 40px rgba(0,200,83,0.5), 0 0 80px rgba(0,200,83,0.2), 0 0 10px rgba(255,214,0,0.3);
    color: #66ff99;
  }
}

.intro-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-shadow: 0 0 15px var(--gold-glow);
}

/* ==== ENTER BUTTON ==== */
.enter-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 48px;
  border-radius: 50px;
  border: 2px solid transparent;
  background: 
    linear-gradient(rgba(10,18,10,0.8), rgba(10,18,10,0.8)) padding-box, 
    linear-gradient(135deg, #00c853, #c4161c, #ff6b00, #ffd600) border-box;
  color: var(--gold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 10;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px var(--emerald-glow), 0 0 35px rgba(196,22,28,0.15);
  animation: pulseGlow 3s infinite alternate;
}

.enter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px var(--emerald-glow), 0 0 35px rgba(196,22,28,0.25), 0 0 35px rgba(255,107,0,0.2);
  color: #fff;
}

.enter-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple 0.6s linear forwards;
  pointer-events: none;
}

/* ==== INTRO VIDEO OVERLAY ==== */
.intro-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2000;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.intro-video-overlay.active {
  display: flex;
  opacity: 1;
}

.intro-video-overlay.fade-out {
  opacity: 0;
}

.intro-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Skip button for intro video */
.skip-intro-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2001;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.skip-intro-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

/* ==== INTRO SUBTITLE ==== */
.intro-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.8rem, 2.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 8px;
}

