:root {
  --ink: #e6f5ff;
  --muted: #a5bfd4;
  --bg: #030e18;
  --accent: #3bd4ff;
  --accent-deep: #1594bf;
  --glow: rgba(59, 212, 255, 0.35);
  --card: rgba(5, 22, 34, 0.9);
  --outline: rgba(59, 212, 255, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Oxanium", sans-serif;
  background: radial-gradient(circle at 30% 40%, rgba(59, 212, 255, 0.15), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(21, 148, 191, 0.1), transparent 50%),
    linear-gradient(135deg, #020910, #041c2b 45%, #020a12);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

.splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 40%, rgba(59, 212, 255, 0.25), rgba(4, 18, 26, 0.98));
  z-index: 5;
  animation: splashFade 2.6s ease forwards;
}

.splash.hide {
  pointer-events: none;
  opacity: 0;
}

.splash img {
  width: min(60vw, 360px);
  max-width: 300px;
  max-height: 300px;
  filter: brightness(1.2) contrast(1.2) saturate(1.1) drop-shadow(0 0 30px rgba(59, 212, 255, 0.6));
  animation: splashPop 1.6s ease forwards;
  border-radius: 50%;
  padding: 18px;
  background: rgba(3, 15, 24, 0.75);
  border: 2px solid rgba(59, 212, 255, 0.35);
  object-fit: contain;
}

.glow {
  position: fixed;
  inset: -30% 0 0 0;
  background: radial-gradient(circle at 30% 40%, rgba(59, 212, 255, 0.4), transparent 60%),
    radial-gradient(circle at 70% 20%, rgba(21, 148, 191, 0.3), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(59, 212, 255, 0.2), transparent 50%);
  z-index: -2;
  filter: blur(25px);
  animation: glowFloat 20s ease-in-out infinite;
}

.grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(59, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  z-index: -3;
  animation: gridFloat 25s linear infinite;
}

/* Wave Background */
.wave-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#waveCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid #3bd4ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(59, 212, 255, 0.5);
}

.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #3bd4ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(59, 212, 255, 0.8);
}

.custom-cursor.click {
  transform: translate(-50%, -50%) scale(0.8);
}

.hero {
  padding: 32px 6vw 72px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-button {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.link-button:hover {
  color: var(--accent);
}

.nav-links a:hover {
  color: var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Rubik Mono One", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
}

.stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 28, 38, 0.65);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.stats-pill .spark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 2s infinite ease-in-out;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 52px;
  align-items: center;
}

.stats-band {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(6, 28, 38, 0.7);
  border: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

.stat-card .value {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-copy h1 span {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(59, 212, 255, 0.6);
}

.tag {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 12px;
}

.subcopy {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary,
.ghost {
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary {
  background: linear-gradient(120deg, #3bd4ff, #1594bf);
  color: #031018;
  box-shadow: 0 0 24px rgba(59, 212, 255, 0.4);
}

.primary:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost {
  border: 1px solid var(--outline);
  color: var(--ink);
  background: rgba(6, 25, 34, 0.6);
}

.hero-card {
  background: linear-gradient(140deg, rgba(9, 43, 59, 0.85), rgba(6, 25, 34, 0.85));
  border-radius: 22px;
  border: 1px solid rgba(59, 212, 255, 0.2);
  padding: 28px;
  box-shadow: 0 0 30px rgba(59, 212, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 212, 255, 0.35), transparent 60%);
  opacity: 0.6;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 14px 0;
}

.pulse-bar {
  display: flex;
  gap: 6px;
}

.pulse-bar span {
  display: block;
  width: 8px;
  height: 32px;
  background: rgba(59, 212, 255, 0.6);
  border-radius: 999px;
  animation: bar 1.6s infinite ease-in-out;
}

.pulse-bar span:nth-child(2) { animation-delay: 0.2s; }
.pulse-bar span:nth-child(3) { animation-delay: 0.4s; }
.pulse-bar span:nth-child(4) { animation-delay: 0.6s; }

.games {
  padding: 70px 6vw;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

.games-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.game-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) 1fr;
}

.game-card.featured img {
  height: 100%;
}

.game-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(59, 212, 255, 0.2);
  box-shadow: 0 20px 40px rgba(3, 9, 15, 0.35);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(1.1);
}

.game-card .thumb.placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 212, 255, 0.2), rgba(6, 25, 34, 0.9));
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px rgba(3, 9, 15, 0.55);
}

.game-info {
  padding: 18px;
}

.game-info h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.game-info p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.game-stats {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  background: rgba(4, 15, 22, 0.6);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(59, 212, 255, 0.15);
}

.game-stats .value {
  color: var(--accent);
  font-weight: 600;
}

.cta {
  margin: 0 6vw 70px;
  padding: 30px 36px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(10, 54, 75, 0.9), rgba(6, 25, 34, 0.9));
  border: 1px solid rgba(59, 212, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

footer {
  text-align: center;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 6;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.78);
}

.modal-card {
  position: relative;
  max-width: 720px;
  width: min(90vw, 720px);
  background: linear-gradient(140deg, rgba(6, 26, 40, 0.95), rgba(3, 14, 24, 0.95));
  border: 1px solid rgba(59, 212, 255, 0.2);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  animation: modalIn 0.35s ease forwards;
}

.modal.open .modal-card {
  animation: modalIn 0.35s ease forwards;
}

.modal-card h2 {
  margin-bottom: 12px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(59, 212, 255, 0.1);
  border: 1px solid rgba(59, 212, 255, 0.3);
  color: var(--ink);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes splashPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes splashFade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* AI Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 212, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(59, 212, 255, 0.6);
}

.chatbot-toggle.dragging {
  cursor: grabbing;
  transform: scale(1.05);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 580px;
  background: linear-gradient(140deg, rgba(6, 26, 40, 0.98), rgba(3, 14, 24, 0.98));
  border: 1px solid var(--outline);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  padding: 15px 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  height: 250px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: messageSlide 0.3s ease;
}

.bot-message {
  background: rgba(59, 212, 255, 0.1);
  border: 1px solid rgba(59, 212, 255, 0.3);
  color: var(--ink);
  align-self: flex-start;
}

.user-message {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  align-self: flex-end;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-questions {
  padding: 20px;
  border-top: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-btn {
  background: rgba(59, 212, 255, 0.1);
  border: 1px solid rgba(59, 212, 255, 0.3);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-align: left;
  width: 100%;
}

.question-btn:hover {
  background: rgba(59, 212, 255, 0.2);
  border-color: var(--accent);
  transform: translateX(5px);
}

.question-btn:active {
  transform: translateX(2px);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .chatbot-widget {
    bottom: 15px;
    right: 15px;
  }
  
  .chatbot-toggle {
    width: 50px;
    height: 50px;
  }
  
  .chatbot-window {
    width: 300px;
    height: 540px;
    right: -10px;
  }
}

/* Voting System Styles */
.voting-section {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(59, 212, 255, 0.05), rgba(21, 148, 191, 0.05));
  border-radius: 20px;
  border: 1px solid var(--outline);
}

.voting-section h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.voting-section p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.voting-timer {
  font-family: "Oxanium", sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
  background: rgba(59, 212, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  display: inline-block;
  border: 1px solid rgba(59, 212, 255, 0.2);
}

.vote-section {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: rgba(59, 212, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(59, 212, 255, 0.1);
}

.vote-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: "Oxanium", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 212, 255, 0.3);
}

.vote-btn:active {
  transform: translateY(0);
}

.vote-btn.voted {
  background: linear-gradient(135deg, #28a745, #20c997);
  cursor: not-allowed;
}

.vote-btn.voted::after {
  content: '✓';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.vote-count {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  min-width: 20px;
  text-align: center;
}

.vote-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Enhanced Background Animations */
.wave-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.wave-background::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 20%, rgba(59, 212, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(21, 148, 191, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 40% 60%, rgba(59, 212, 255, 0.05) 0%, transparent 50%);
  animation: enhancedFloat 20s ease-in-out infinite;
}

@keyframes enhancedFloat {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.05); }
}

/* Animated Game Cards with Enhanced 3D */
.games-grid {
  perspective: 2000px;
  transform-style: preserve-3d;
}

.game-card {
  position: relative;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(6, 26, 40, 0.9), rgba(3, 14, 24, 0.9));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateZ(0);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(59, 212, 255, 0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 20px;
}

.game-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), transparent, var(--accent-deep));
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-15px) rotateX(10deg) rotateY(5deg) translateZ(50px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(59, 212, 255, 0.3),
    0 0 100px rgba(59, 212, 255, 0.1);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover::after {
  opacity: 0.7;
}

.game-card:hover img {
  transform: scale(1.1) translateZ(30px);
  filter: brightness(1.15) contrast(1.05);
}

.game-card img {
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
}

.game-card .game-info {
  transform: translateZ(20px);
  transition: transform 0.6s ease;
}

.game-card:hover .game-info {
  transform: translateZ(40px);
}

.game-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 
    0 0 40px rgba(59, 212, 255, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateZ(10px);
}

.game-card.featured:hover {
  box-shadow: 
    0 0 80px rgba(59, 212, 255, 0.5),
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 120px rgba(59, 212, 255, 0.2);
  transform: translateY(-20px) rotateX(15deg) rotateY(8deg) translateZ(60px);
}

/* 3D Tilt Effect on Mouse Move */
.game-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.game-card-inner {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Enhanced Glow Effect */
.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 20%, rgba(73, 226, 255, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(33, 120, 160, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(73, 226, 255, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(59, 212, 255, 0.15) 0%, transparent 50%);
  animation: glowPulse 15s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Enhanced Grid Background */
.grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(73, 226, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 226, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: enhancedGridFloat 20s linear infinite;
}

@keyframes enhancedGridFloat {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Contact Form Styles */
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(6, 25, 34, 0.8);
  border: 1px solid var(--outline);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 212, 255, 0.1);
}

.contact-form select option {
  background: var(--card);
  color: var(--ink);
  padding: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-label .checkmark {
  display: none;
}

.checkbox-label:hover {
  color: var(--accent);
}

@keyframes gridFloat {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 120px 120px; }
}

@keyframes modalIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bar {
  0%, 100% { height: 16px; opacity: 0.6; }
  50% { height: 32px; opacity: 1; }
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.social-icon.discord:hover {
  background: #5865F2;
}

.social-icon.twitter:hover {
  background: #1DA1F2;
}

/* Contact Page Styles */
.contact {
  padding: 80px 0;
  background: var(--bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.contact-item {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item strong {
  color: var(--text);
  min-width: 120px;
}

.email-link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--surface);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: #2a2a3a;
  border: 2px solid #4a4a6a;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: #2a2a3a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8a8aa0;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-message {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  display: none;
  font-size: 0.95rem;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .game-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 30px 20px;
  }
}
