:root {
  --main-bg: #0a0a0f;
  --box-bg: #1a1a24;
  --accent: #00ffff;
  --accent-2: #ff0080;
  --accent-3: #00ff80;
  --text: #ffffff;
  --gray: #bcbcbc;
  --card-radius: 20px;
  --shadow: 0 8px 32px rgba(0, 255, 255, 0.15);
  --neon-glow: 0 0 20px var(--accent), 0 0 40px var(--accent), 0 0 60px var(--accent);
  --cyber-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 50%, #0a0a0f 100%);
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--main-bg);
  color: var(--text);
  font-family: 'Hestia', 'Segoe UI', 'Arial', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

/* Cyberpunk scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--main-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 
    inset 0 0 6px rgba(0, 255, 255, 0.3),
    0 0 10px var(--accent);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

/* Gaming-style navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  background: rgba(10, 10, 15, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar.scrolled .nav-link {
  color: var(--accent);
}

.nav-link:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
  box-shadow: 0 0 5px var(--accent);
}

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

.nav-logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

/* Header Styles */
header {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a24 0%, #0a0a0f 100%);
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  will-change: transform;
  z-index: 3;
}

.bg-image {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  opacity: 0.3;
  filter: hue-rotate(180deg) saturate(1.5);
}

.parallax-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1) 0%,
    rgba(10, 10, 15, 0.8) 50%,
    rgba(255, 0, 128, 0.1) 100%
  );
  z-index: 4;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 15px;
}

.main-logo {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Mascot SVG base styles - this will be overridden by enhanced version below */

.subtitle {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 5px;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
  font-weight: 600;
  line-height: 1.4;
  font-family: 'Hestia', sans-serif;
  letter-spacing: 1px;
}

main {
  background: var(--main-bg);
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}
.intro-section {
  text-align: center;
  padding: 45px 8px 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.intro-section h2 {
  font-family: 'Hestia', 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.intro-section p {
  color: var(--gray);
  margin-bottom: 24px;
}
.features {
  display: flex;
  justify-content: center;
  gap: 55px;
  flex-wrap: wrap;
  opacity: 1;
  visibility: visible;
}
.feature {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(10, 10, 15, 0.9));
  padding: 22px 24px;
  border-radius: var(--card-radius);
  width: 230px;
  min-width: 180px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.feature:hover { 
  transform: translateY(-8px) scale(1.05);
  border-color: var(--accent);
  box-shadow: var(--neon-glow);
}
.feature i {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}
.feature h4 {
  margin: 8px 0 6px;
  font-size: 1.12rem;
  font-weight: 600;
  font-family: 'Hestia', sans-serif;
}
.feature p {
  color: #bbb;
  font-size: 0.97rem;
}

.countdown-section {
  display: flex;
  justify-content: center;
  gap: 38px;
  background: transparent;
  margin: 18px 0 32px;
  opacity: 1;
  visibility: visible;
}
.countdown-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 24px;
  width: 120px;
  height: 90px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.countdown-box:hover {
  transform: rotateY(10deg) scale(1.1);
}
.countdown-label {
  font-size: 0.96rem;
  color: #eaf6fb;
  font-weight: 400;
  margin-top: 5px;
}

.squad-section {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 12px 8px 36px;
  opacity: 1;
  visibility: visible;
}
.squad-section h3 {
  text-align: center;
  margin-bottom: 10px;
  font-family: 'Hestia', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.squad-section p {
  color: var(--gray);
  text-align: center;
  margin-bottom: 34px;
  font-size: 1.04rem;
}
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 34px;
  opacity: 1;
  visibility: visible;
  max-width: 1400px;
  margin: 0 auto 34px auto;
  padding: 0 20px;
}
.squad-card {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(10, 10, 15, 0.9));
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 19px 17px 12px;
  width: 100%;
  max-width: 280px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  margin: 0 auto;
}

.squad-card:hover { 
  transform: translateY(-10px) scale(1.05);
  border-color: var(--accent);
  box-shadow: var(--neon-glow);
}
.squad-card img {
  width: 80px; height: 80px;
  border-radius: 15px;
  margin-bottom: 9px;
}
.squad-name {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--accent);
  text-align: center;
}
.squad-role {
  color: #ddd;
  font-size: 0.97rem;
  margin-bottom: 3px;
}
.squad-desc {
  color: #bbb;
  font-size: 0.97rem;
  text-align: center;
}

.matches-section {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 0 8px;
  text-align: center;
  opacity: 1;
  visibility: visible;
}
.matches-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}
.match-bubbles {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 1;
  visibility: visible;
}
.bubble {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(10, 10, 15, 0.9));
  border-radius: 50%;
  width: 100px;
  height: 100px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.bubble:hover { 
  transform: scale(1.15) rotateY(15deg);
  border-color: var(--accent);
  box-shadow: var(--neon-glow);
}
.bubble img {
  width: 46px; height: 46px; border-radius: 50%;
  margin-bottom: 5px;
}
.bubble-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}
.bubble-desc {
  font-size: 0.87rem;
  color: #ccc;
}

footer {
  background: linear-gradient(135deg, #0a0a0f, #1a1a24);
  color: #666;
  font-size: 0.96rem;
  text-align: center;
  padding: 30px 0 20px;
  margin-top: 60px;
  border-top: 2px solid rgba(0, 255, 255, 0.2);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a:hover { 
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Ensure all content sections are visible by default */
main {
  background: var(--main-bg);
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.intro-section,
.countdown-section,
.squad-section,
.matches-section {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Fallback styles if AOS fails to load */
[data-aos] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Ensure feature cards are visible */
.features {
  opacity: 1;
  visibility: visible;
}

.feature {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ensure squad cards are visible */
.squad-grid {
  opacity: 1;
  visibility: visible;
}

.squad-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ensure countdown is visible */
.countdown-container {
  opacity: 1;
  visibility: visible;
}

.countdown-box {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Ensure match bubbles are visible */
.match-bubbles {
  opacity: 1;
  visibility: visible;
}

.bubble {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Ultra-Modern Gaming Effects */

/* Particle background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Matrix background canvas */
#matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.1;
}

/* Cyberpunk text effects */
.cyber-title {
  background: linear-gradient(45deg, var(--accent), var(--accent-2), var(--accent-3));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cyber-text {
  color: var(--gray);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.subtitle-small {
  color: var(--accent-3);
  text-shadow: 0 0 15px rgba(0, 255, 128, 0.5);
}

/* Cyber cards with neon effects */
.cyber-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.8), rgba(10, 10, 15, 0.9));
  border: 1px solid rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 400% 400%;
  z-index: -1;
  border-radius: inherit;
  animation: gradient-border 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cyber-card:hover::before {
  opacity: 1;
}

/* Neon countdown boxes */
.cyber-neon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  border: 2px solid var(--accent);
  box-shadow: 
    inset 0 0 20px rgba(0, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 255, 0.4),
    0 0 40px rgba(0, 255, 255, 0.2);
  animation: pulse-neon 2s ease-in-out infinite alternate;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 38px;
  perspective: 1000px;
}

/* Cyber icons */
.cyber-icon {
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
  animation: icon-glow 2s ease-in-out infinite alternate;
}

/* Card glow effect */
.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cyber-card:hover .card-glow {
  opacity: 1;
}

/* Glowing logo effect */
.glow-effect {
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
  animation: logo-pulse 3s ease-in-out infinite;
}

/* Advanced animations */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse-neon {
  0% { 
    box-shadow: 
      inset 0 0 20px rgba(0, 255, 255, 0.3),
      0 0 20px rgba(0, 255, 255, 0.4),
      0 0 40px rgba(0, 255, 255, 0.2);
  }
  100% { 
    box-shadow: 
      inset 0 0 20px rgba(0, 255, 255, 0.5),
      0 0 30px rgba(0, 255, 255, 0.6),
      0 0 60px rgba(0, 255, 255, 0.4);
  }
}

@keyframes icon-glow {
  0% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)); }
  100% { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)); }
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6)); }
  50% { filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.9)); }
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(0, 255, 255, 0.03) 0%, 
    rgba(255, 0, 128, 0.03) 25%, 
    rgba(0, 255, 128, 0.03) 50%, 
    rgba(0, 255, 255, 0.03) 75%, 
    rgba(255, 0, 128, 0.03) 100%);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* EPIC CYBER GAMING EFFECTS */

/* Screen glitch animation */
@keyframes glitch-screen {
  0%, 100% { transform: translate(0); }
  2% { transform: translate(2px, -1px); }
  4% { transform: translate(-1px, 2px); }
  6% { transform: translate(-2px, 1px); }
  8% { transform: translate(1px, -2px); }
  10% { transform: translate(0); }
}

/* Epic cyber pulse */
@keyframes cyber-pulse {
  0%, 100% { 
    box-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent), 0 0 15px var(--accent);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent), 0 0 60px var(--accent);
    transform: scale(1.02);
  }
}

/* Matrix rain enhanced */
@keyframes matrix-rain {
  0% { opacity: 1; transform: translateY(-100vh); }
  100% { opacity: 0; transform: translateY(100vh); }
}

/* Hologram effect */
@keyframes hologram {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Epic scan lines */
@keyframes scan-lines {
  0% { transform: translateY(-100vh); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Data stream effect */
@keyframes data-stream {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100vw); }
}

/* Epic cursor trail */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  animation: cursor-fade 0.5s ease-out;
}

@keyframes cursor-fade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5); }
}

/* Enhanced mascot with epic effects - improved glow around SVG shape */
.mascot-svg {
  height: 220px;
  width: auto;
  transition: all 0.3s ease;
  /* Multiple drop-shadows to create a soft glow around the SVG shape */
  filter: 
    drop-shadow(0 4px 8px rgba(0,0,0,0.3))
    drop-shadow(0 0 10px rgba(0, 255, 255, 0.4))
    drop-shadow(0 0 20px rgba(0, 255, 255, 0.3))
    drop-shadow(0 0 40px rgba(0, 255, 255, 0.2));
  animation: hologram 3s ease-in-out infinite;
}

.mascot-svg:hover {
  /* Enhanced glow on hover with multiple layers */
  filter: 
    drop-shadow(0 8px 16px rgba(0,0,0,0.5))
    drop-shadow(0 0 15px rgba(0, 255, 255, 0.6))
    drop-shadow(0 0 30px rgba(0, 255, 255, 0.5))
    drop-shadow(0 0 60px rgba(0, 255, 255, 0.4))
    drop-shadow(0 0 100px rgba(0, 255, 255, 0.2));
  animation: glitch-screen 0.1s ease-in-out infinite;
}

/* Epic gaming cards with enhanced effects */
.cyber-card {
  position: relative;
  overflow: hidden;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #ff0000, #ff7700, #ffff00, #00ff00, 
    #0000ff, #8b00ff, #ff0080, #ff0000);
  background-size: 800% 800%;
  z-index: -1;
  border-radius: inherit;
  animation: rgb-border 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cyber-card:hover::before {
  opacity: 0.8;
}

@keyframes rgb-border {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Epic feature card enhancements */
.feature {
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(0, 255, 255, 0.3),
    0 0 60px rgba(0, 255, 255, 0.2),
    inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.feature .cyber-icon {
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--accent));
}

/* Epic squad card enhancements */
.squad-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.squad-card:hover {
  transform: translateY(-20px) rotateX(10deg) scale(1.08);
  box-shadow: 
    0 25px 50px rgba(0, 255, 255, 0.4),
    0 0 80px rgba(255, 0, 128, 0.3),
    inset 0 0 40px rgba(0, 255, 255, 0.1);
}

.squad-card img {
  filter: grayscale(20%) contrast(1.2);
  transition: filter 0.3s ease;
}

.squad-card:hover img {
  filter: grayscale(0%) contrast(1.4) saturate(1.3);
}

/* Epic countdown enhancements */
.countdown-box {
  background: linear-gradient(135deg, 
    rgba(0, 255, 255, 0.9), 
    rgba(255, 0, 128, 0.9), 
    rgba(0, 255, 128, 0.9));
  border: 3px solid transparent;
  background-clip: padding-box;
  transform-style: preserve-3d;
  position: relative;
}

.countdown-box::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, 
    var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  animation: gradient-border 2s ease infinite;
}

.countdown-box:hover {
  transform: scale(1.1) rotateY(5deg);
  animation: cyber-pulse 0.5s ease-in-out infinite;
}

/* Epic match bubbles */
.bubble {
  background: radial-gradient(circle at center, 
    rgba(0, 255, 255, 0.2), 
    rgba(255, 0, 128, 0.1), 
    transparent);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.bubble::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, 
    var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  border-radius: inherit;
  z-index: -1;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bubble:hover {
  transform: scale(1.15) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.4);
}

/* FIXED WEATHER EFFECTS SYSTEM */
#weather-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
  display: none; /* Hidden by default */
}

#weather-canvas.active {
  display: block;
}

/* Weather Controls - Fixed positioning */
.weather-controls {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid var(--accent);
  border-radius: var(--card-radius);
  backdrop-filter: blur(10px);
  padding: 15px;
}

.weather-controls h4 {
  color: var(--accent);
  margin: 0 0 10px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.weather-btn {
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
  padding: 8px 15px;
  margin: 3px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
  min-width: 60px;
}

.weather-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent);
}

.weather-btn.active {
  background: linear-gradient(45deg, var(--accent-3), var(--accent));
  box-shadow: 0 0 20px var(--accent-3);
}

/* Theme Toggle Button - Fixed */
.theme-toggle {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  font-size: 18px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: var(--neon-glow);
}

/* 3D Models Toggle Button */
.models-toggle {
  position: fixed;
  top: 140px;
  right: 20px;
  background: linear-gradient(45deg, var(--accent-3), var(--accent));
  border: none;
  color: white;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  font-size: 18px;
  width: 50px;
  height: 50px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 128, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  visibility: visible !important;
  pointer-events: auto !important;
}

.models-toggle:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 0 20px var(--accent-3), 0 0 40px var(--accent-3), 0 0 60px var(--accent-3);
}

.models-toggle.disabled {
  background: linear-gradient(45deg, #666, #888);
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 0.6;
}

.models-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.models-toggle:active::before {
  width: 100px;
  height: 100px;
}

/* 3D Models visibility control */
.models-disabled #hologram-canvas,
.models-disabled .mascot-svg,
.models-disabled #particles-js,
.models-disabled #matrix-bg {
  display: none !important;
}

/* Mobile positioning for models toggle */
@media (max-width: 768px) {
  .models-toggle {
    top: 130px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 16px !important;
  }
  
  .theme-toggle {
    top: 70px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  .weather-controls {
    top: 180px !important;
    right: 15px !important;
  }
}

@media (max-width: 480px) {
  .models-toggle {
    top: 120px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
  
  .theme-toggle {
    top: 60px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  
  .weather-controls {
    top: 170px !important;
    right: 10px !important;
  }
}

/* Fixed Mobile Responsive Design */
@media (max-width: 768px) {
  .advanced-features-section {
    padding: 40px 10px;
  }
  
  .advanced-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }
  
  .feature-container {
    padding: 15px;
    margin: 0 5px;
  }
  
  .ai-chat-container,
  .mini-game-container {
    height: 350px !important;
  }
  
  .game-area {
    min-height: 200px !important;
  }
  
  .chat-messages {
    max-height: 180px !important;
  }
  
  #hologram-canvas {
    height: 200px;
  }
  
  #visualizer-canvas {
    height: 120px;
  }
  
  .perf-monitor {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .server-item {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  
  .weather-controls {
    top: 70px !important;
    right: 10px !important;
    padding: 10px !important;
    font-size: 12px;
  }
  
  .weather-btn {
    padding: 6px 10px;
    font-size: 10px;
    margin: 2px;
  }
  
  .theme-toggle {
    top: 70px !important;
    right: 10px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  .ai-chat-container {
    height: 300px;
  }
  
  .chat-messages {
    max-height: 180px;
  }
  
  .mini-game-container {
    height: 300px;
  }
  
  .server-item {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: center;
  }
  
  .perf-monitor {
    grid-template-columns: 1fr;
  }
  
  #hologram-canvas {
    height: 200px;
  }
  
  #visualizer-canvas {
    height: 120px;
    max-width: 250px;
  }
  
  /* Prevent overflow issues */
  #weather-canvas {
    max-width: 100vw;
    max-height: 100vh;
  }
  
  /* Fix gaming overlay on mobile */
  .gaming-overlay {
    padding: 10px;
  }
  
  .hud-element {
    font-size: 12px;
    padding: 8px;
  }
  
  /* Ensure proper z-index stacking */
  .weather-controls,
  .theme-toggle {
    z-index: 10000 !important;
  }
  
  /* Fix navigation on mobile */
  .nav-menu {
    gap: 15px;
  }
  
  .nav-link {
    font-size: 12px;
  }
  
  /* Fix mascot and logo sizing */
  .mascot-svg {
    max-width: 200px;
  }
  
  .main-logo {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .advanced-features-section {
    padding: 30px 5px;
  }
  
  .feature-container {
    padding: 12px;
    margin: 0 2px;
  }
  
  .weather-controls {
    top: 60px !important;
    right: 5px !important;
    padding: 8px !important;
  }
  
  .theme-toggle {
    top: 110px !important;
    right: 5px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  
  .ai-chat-container,
  .mini-game-container {
    height: 320px !important;
  }
  
  .feature-container {
    padding: 15px !important;
  }
}

/* YOUTUBE SECTION */
.youtube-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, 
    rgba(10, 10, 15, 0.95) 0%, 
    rgba(26, 26, 36, 0.95) 30%, 
    rgba(255, 0, 128, 0.05) 50%, 
    rgba(26, 26, 36, 0.95) 70%, 
    rgba(10, 10, 15, 0.95) 100%);
  position: relative;
  overflow: hidden;
  margin: 60px 0;
  border-top: 2px solid rgba(0, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 0, 128, 0.3);
}

.youtube-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.youtube-section .cyber-title {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.youtube-section .cyber-text {
  text-align: center;
  margin-bottom: 50px;
  color: var(--gray);
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.youtube-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.featured-video {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(10, 10, 15, 0.9));
  border-radius: var(--card-radius);
  padding: 30px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-video::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  border-radius: var(--card-radius);
  z-index: -1;
}

.video-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-video:hover .video-glow {
  opacity: 1;
}

.featured-video:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 255, 255, 0.3),
    0 0 60px rgba(0, 255, 255, 0.2),
    inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.video-wrapper:hover iframe {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.video-info {
  color: var(--text);
}

.video-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.video-desc {
  color: var(--gray);
  line-height: 1.6;
  font-size: 1rem;
}

.channel-cta {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(10, 10, 15, 0.9));
  border-radius: var(--card-radius);
  padding: 40px 30px;
  text-align: center;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.channel-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-2), var(--accent-3), var(--accent), var(--accent-2));
  background-size: 400% 400%;
  animation: gradientShift 4s ease infinite reverse;
  border-radius: var(--card-radius);
  z-index: -1;
}

.channel-cta:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(255, 0, 128, 0.3),
    0 0 60px rgba(255, 0, 128, 0.2),
    inset 0 0 30px rgba(255, 0, 128, 0.1);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.youtube-icon {
  font-size: 4rem !important;
  color: #ff0000;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
}

.cta-desc {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 1rem;
}

.youtube-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(45deg, #ff0000, #ff4444);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.youtube-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.youtube-btn:hover::before {
  left: 100%;
}

.youtube-btn:hover {
  transform: scale(1.05);
  box-shadow: 
    0 10px 30px rgba(255, 0, 0, 0.4),
    0 0 30px rgba(255, 0, 0, 0.3);
  background: linear-gradient(45deg, #ff4444, #ff0000);
}

.youtube-btn i {
  font-size: 1.2rem;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  }
  50% { 
    transform: scale(1.1); 
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive YouTube Section */
@media (max-width: 768px) {
  .youtube-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .youtube-section {
    padding: 60px 15px;
  }
  
  .youtube-section .cyber-title {
    font-size: 2rem;
  }
  
  .featured-video,
  .channel-cta {
    padding: 25px 20px;
  }
  
  .channel-cta {
    min-height: 300px;
  }
  
  .youtube-icon {
    font-size: 3rem !important;
  }
  
  .cta-title {
    font-size: 1.4rem;
  }
  
  .youtube-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* EPIC GAMING FEATURES SECTION */
.advanced-features-section {
  padding: 80px 20px;
  background: var(--cyber-gradient);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  margin-bottom: 40px;
}

.advanced-features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: gradientMove 15s ease infinite;
}

.advanced-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0;
  max-width: 100%;
  box-sizing: border-box;
}

.feature-container {
  background: var(--box-bg);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--card-radius);
  padding: 25px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.feature-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-container:hover::before {
  left: 100%;
}

.feature-container:hover {
  border-color: var(--accent);
  box-shadow: 
    var(--shadow),
    0 0 30px rgba(0, 255, 255, 0.3),
    inset 0 0 20px rgba(0, 255, 255, 0.05);
  transform: translateY(-5px);
}

/* Epic Gaming Features Section Title */
.advanced-features-section .cyber-title {
  font-size: 3rem;
  text-align: center;
  color: transparent;
  background: linear-gradient(45deg, var(--accent), var(--accent-2), var(--accent-3));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 40px;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  position: relative;
}

.advanced-features-section .cyber-title::before {
  content: '>>> ';
  color: var(--accent);
  animation: blink 1.5s infinite;
}

.advanced-features-section .cyber-title::after {
  content: ' <<<';
  color: var(--accent);
  animation: blink 1.5s infinite 0.75s;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Enhanced feature container animations */
.feature-container {
  animation: float 6s ease-in-out infinite;
}

.feature-container:nth-child(even) {
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Glowing border effect for active features */
.feature-container.active {
  border-color: var(--accent-3);
  box-shadow: 
    var(--shadow),
    0 0 40px rgba(0, 255, 128, 0.4),
    inset 0 0 30px rgba(0, 255, 128, 0.1);
}

/* Enhanced loading animations */
@keyframes dataStream {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.feature-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: dataStream 4s linear infinite;
  opacity: 0.7;
}

/* Pulse effect for interactive elements */
.chat-send,
.game-start,
.weather-btn,
.theme-toggle {
  position: relative;
  overflow: hidden;
}

.chat-send::before,
.game-start::before,
.weather-btn::before,
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.chat-send:active::before,
.game-start:active::before,
.weather-btn:active::before,
.theme-toggle:active::before {
  width: 100px;
  height: 100px;
}

/* Ensure proper spacing between sections */
.advanced-features-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

/* Make sure the grid doesn't overflow */
.advanced-features-grid {
  max-width: 100%;
  box-sizing: border-box;
}

/* Fix any potential z-index issues */
.weather-controls,
.theme-toggle {
  z-index: 10001 !important;
}

/* Ensure footer stays at bottom */
footer {
  margin-top: 80px;
  clear: both;
}

/* EPIC GAMING FEATURES SECTION LOADING ANIMATION */
.advanced-features-section {
  animation: slideInFromBottom 1s ease-out;
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interactive hover effects for the whole section */
.advanced-features-section:hover .advanced-features-grid {
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.5s ease;
}

/* Add epic grid hover effect */
.advanced-features-grid:hover .feature-container:not(:hover) {
  opacity: 0.7;
  transform: scale(0.95);
}

/* Responsive grid improvements */
@media (max-width: 1200px) {
  .advanced-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 900px) {
  .advanced-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .advanced-features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .advanced-features-section .cyber-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }
}

/* Squad Grid Responsive Design */
@media (max-width: 1200px) {
  .squad-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .squad-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  
  .squad-card {
    max-width: 100%;
    min-height: 230px;
    padding: 15px 12px 10px;
  }
  
  .squad-desc {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .squad-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 5px;
  }
  
  .squad-card {
    min-height: 200px;
    padding: 12px 10px 8px;
  }
  
  .squad-name {
    font-size: 1.0rem;
  }
  
  .squad-role {
    font-size: 0.9rem;
  }
  
  .squad-desc {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}

/* AI Chat Container - Cyberpunk Style */
.ai-chat-container {
  height: 400px;
  background: var(--box-bg);
  border: 2px solid var(--accent);
  border-radius: var(--card-radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 
    var(--shadow),
    0 0 30px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.ai-chat-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  background-size: 200% 100%;
  animation: gradientShift 2s linear infinite;
}

.chat-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--main-bg);
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 255, 255, 0.3);
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  max-height: 250px;
}

.chat-message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 3px;
}

.chat-message.ai {
  background: var(--box-bg);
  color: var(--text);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-bottom-left-radius: 3px;
}

.chat-input-container {
  display: flex;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 25px;
  padding: 10px 15px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.9);
}

.chat-input::placeholder {
  color: var(--gray);
}

.chat-send {
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Mini Game Container - Reflex Trainer */
.mini-game-container {
  height: 400px;
  background: var(--box-bg);
  border: 2px solid var(--accent-3);
  border-radius: var(--card-radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 
    var(--shadow),
    0 0 30px rgba(0, 255, 128, 0.2),
    inset 0 0 20px rgba(0, 255, 128, 0.05);
}

.mini-game-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  background-size: 200% 100%;
  animation: gradientShift 2s linear infinite reverse;
}

.game-header {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: var(--main-bg);
  padding: 15px 20px;
  text-align: center;
}

.game-header h3 {
  margin: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 255, 128, 0.2);
}

.game-start {
  background: linear-gradient(45deg, var(--accent-3), var(--accent));
  border: none;
  border-radius: 25px;
  padding: 8px 20px;
  color: var(--main-bg);
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.game-start:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.5);
}

.game-score {
  color: var(--accent-3);
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
}

.game-area {
  flex: 1;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  background: radial-gradient(circle at center, rgba(0, 255, 128, 0.1), transparent);
  overflow: hidden;
  cursor: crosshair;
}

.game-target {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, var(--accent-2), var(--accent));
  border-radius: 50%;
  cursor: pointer;
  animation: targetPulse 1s ease-in-out infinite;
  box-shadow: 
    0 0 20px rgba(255, 0, 128, 0.7),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  z-index: 2 !important;
  pointer-events: auto !important;
}

@keyframes targetPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.game-target::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Sound Visualizer */
.sound-visualizer {
  text-align: center;
  padding: 20px;
}

.sound-visualizer h4 {
  margin-bottom: 20px;
  color: var(--accent);
}

#visualizer-canvas {
  width: 100%;
  height: 150px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
}

/* Server Status */
.server-status {
  background: var(--box-bg);
  border-radius: var(--card-radius);
  padding: 20px;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.server-header {
  color: var(--accent);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 1px;
}

.server-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border-left: 3px solid var(--accent-3);
}

.server-name {
  color: var(--text);
  font-weight: 500;
}

.server-ping {
  color: var(--accent-3);
  font-size: 0.9rem;
}

.server-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 10px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}

/* Performance Monitor */
.performance-monitor {
  background: var(--box-bg);
  border-radius: var(--card-radius);
  padding: 20px;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.perf-header {
  color: var(--accent);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 1px;
}

.perf-monitor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.perf-item {
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.perf-label {
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.perf-value {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Hologram Canvas */
#hologram-canvas {
  width: 100%;
  height: 250px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
}

/* Shared animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fix for reflex trainer positioning and interaction */
.game-area {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  background: radial-gradient(circle at center, rgba(0, 255, 128, 0.1), transparent);
  overflow: hidden;
  cursor: crosshair;
}

.game-target {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, var(--accent-2), var(--accent));
  border-radius: 50%;
  cursor: pointer;
  animation: targetPulse 1s ease-in-out infinite;
  box-shadow: 
    0 0 20px rgba(255, 0, 128, 0.7),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  z-index: 2 !important;
  pointer-events: auto !important;
}

/* Ensure proper theme toggle visibility */
.theme-toggle {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Fix mobile responsiveness for advanced features */
@media (max-width: 768px) {
  .ai-chat-container,
  .mini-game-container {
    height: 350px !important;
  }
  
  .game-area {
    min-height: 200px !important;
  }
  
  .chat-messages {
    max-height: 180px !important;
  }
  
  .theme-toggle {
    top: 70px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
  }
}

/* Additional fixes for small screens */
@media (max-width: 480px) {
  .theme-toggle {
    top: 60px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  
  .ai-chat-container,
  .mini-game-container {
    height: 320px !important;
  }
  
  .feature-container {
    padding: 15px !important;
  }
}

/* Steam Profile Links */
.steam-profile-link {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.steam-profile-link:hover {
  filter: drop-shadow(0 0 15px rgba(0, 173, 238, 0.6)) !important;
}

/* Squad card positioning for Steam links */
.squad-card {
  position: relative !important;
}

/* Mascot Easter Egg Animations */
.mascot-shorts-svg {
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center top;
}

.mascot-shorts-svg.pants-down {
  transform: translateY(250px) !important;
  animation: pantsWiggle 0.5s ease-in-out;
}

@keyframes pantsWiggle {
  0%, 100% { transform: translateY(50px) rotate(0deg); }
  25% { transform: translateY(50px) rotate(-2deg); }
  75% { transform: translateY(50px) rotate(2deg); }
}

.mascot-svg.easter-egg-active {
  animation: mascotBlush 2s ease-in-out;
  filter: drop-shadow(0 0 30px rgba(255, 105, 180, 0.8)) !important;
}

@keyframes mascotBlush {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
  }
  50% { 
    filter: drop-shadow(0 0 30px rgba(255, 105, 180, 0.8));
  }
}

/* Easter Egg Confetti Animation */
@keyframes confettiFall {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + 200px), calc(-50% + 400px)) rotate(720deg);
    opacity: 0;
  }
}

/* Easter Egg Message Animation */
@keyframes easterEggMessage {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  30% {
    transform: translate(-50%, -50%) scale(1);
  }
  90% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Accessibility and SEO improvements */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px;
  z-index: 100;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cyber-card {
    border: 2px solid var(--accent-color);
  }
  
  .cyber-text {
    color: #ffffff;
  }
}

/* Font loading optimization and fallbacks to prevent glyph bbox errors */
/* Font Awesome icon fallbacks and optimization */
.fas, .far, .fab {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif !important;
  font-weight: 900;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent font loading errors */
.fa, .fas, .far, .fab {
  display: inline-block;
  min-width: 1em;
  text-align: center;
  /* Improve rendering performance */
  will-change: transform;
  backface-visibility: hidden;
}

/* Font loading states */
.fonts-loading .fas,
.fonts-loading .far,
.fonts-loading .fab {
  visibility: hidden;
}

.fonts-loaded .fas,
.fonts-loaded .far,
.fonts-loaded .fab {
  visibility: visible;
}
