/* ===== GAMES SECTION STYLES ===== */

.games-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 0 20px;
}

.game-card {
  position: relative;
  background: rgba(5,10,6,0.4);
  border: 1px solid rgba(34,255,153,0.15);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 80px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  isolation: isolate;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,255,153,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(5,10,6,0.6);
  box-shadow: 0 4px 16px rgba(34,255,153,0.15);
}

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

.game-name {
  position: relative;
  z-index: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.3;
}

.game-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.game-card:hover .game-accent {
  width: 100%;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* View All Games Button */
.games-cta {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.btn-view-all-games {
  position: relative;
  background: linear-gradient(135deg, rgba(34,255,153,0.15), rgba(34,255,153,0.05));
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  isolation: isolate;
}

.btn-view-all-games::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.btn-view-all-games:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34,255,153,0.3), 0 0 0 1px var(--primary);
}

.btn-view-all-games:hover::before {
  opacity: 0.2;
}

.btn-text {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.btn-count {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  opacity: 0.8;
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.btn-view-all-games:hover .btn-shine {
  transform: translateX(100%);
}

/* Games Modal */
.games-modal {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}

.games-modal-card {
  max-width: 900px;
  max-height: 80vh;
  width: 90vw;
  background: linear-gradient(180deg, rgba(5,10,6,0.98), rgba(12,31,14,0.95));
  border: 2px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(34,255,153,0.2);
}

.games-modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
}

.games-modal-body::-webkit-scrollbar {
  width: 8px;
}

.games-modal-body::-webkit-scrollbar-track {
  background: rgba(34,255,153,0.05);
  border-radius: 4px;
}

.games-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.games-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.game-item {
  background: rgba(34,255,153,0.08);
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text) !important;
  transition: all 0.2s ease;
  cursor: default;
}

.game-item:hover {
  background: rgba(34,255,153,0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34,255,153,0.2);
}

/* Ensure games modal header title is visible */
.games-modal .modal-head h3 {
  color: var(--primary) !important;
}

/* Ensure games modal close button uses futuristic font */
.games-modal .modal-foot .btn-primary {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

/* ===== CONTACT SECTION STYLES ===== */

.contact-buttons-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  isolation: isolate;
}

.contact-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

.contact-buttons {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-btn {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: rgba(5,10,6,0.8);
  border: 2px solid var(--outline);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}

.contact-btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,255,153,0.05), rgba(34,255,153,0.02));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.contact-btn:hover .contact-btn-bg {
  opacity: 1;
}

.contact-btn-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.contact-btn:hover .contact-btn-glow {
  opacity: 0.4;
}

.contact-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(34,255,153,0.25);
}

.contact-btn-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,255,153,0.1);
  border: 1px solid var(--outline);
  border-radius: 12px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.contact-btn-icon svg {
  width: 28px;
  height: 28px;
}

.contact-btn:hover .contact-btn-icon {
  background: rgba(34,255,153,0.2);
  border-color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.contact-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-btn-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.8;
}

.contact-btn-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.contact-btn-arrow {
  position: relative;
  z-index: 1;
  font-size: 32px;
  color: var(--primary);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.contact-btn:hover .contact-btn-arrow {
  opacity: 1;
  transform: translateX(8px);
}

.contact-btn-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.contact-btn-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.6s ease;
}

.contact-btn-particles span:nth-child(1) {
  top: 20%;
  left: 10%;
}

.contact-btn-particles span:nth-child(2) {
  top: 60%;
  left: 30%;
}

.contact-btn-particles span:nth-child(3) {
  top: 40%;
  right: 20%;
}

.contact-btn:hover .contact-btn-particles span {
  opacity: 1;
  animation: float-particle 2s ease-in-out infinite;
}

.contact-btn:hover .contact-btn-particles span:nth-child(2) {
  animation-delay: 0.3s;
}

.contact-btn:hover .contact-btn-particles span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }
}

/* WhatsApp specific color */
.whatsapp-btn:hover {
  border-color: #25D366;
}

.whatsapp-btn:hover .contact-btn-glow {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-btn .contact-btn-label,
.whatsapp-btn .contact-btn-arrow {
  color: #25D366;
}

.whatsapp-btn .contact-btn-icon {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

/* Idle animations */
@keyframes idle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34,255,153,0.4);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(34,255,153,0.2);
  }
}

.contact-btn {
  animation: idle-pulse 3s ease-in-out infinite;
}

.contact-btn:nth-child(2) {
  animation-delay: 1s;
}

.contact-btn:nth-child(3) {
  animation-delay: 2s;
}

/* Responsive */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .game-card {
    padding: 16px 12px;
    min-height: 70px;
  }
  
  .game-name {
    font-size: 13px;
  }
  
  .btn-view-all-games {
    padding: 16px 32px;
  }
  
  .btn-text {
    font-size: 16px;
  }
  
  .contact-btn {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 20px 24px;
  }
  
  .contact-btn-arrow {
    display: none;
  }
  
  .contact-btn-value {
    font-size: 16px;
  }
  
  .games-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Light theme adjustments */
[data-theme="light"] .game-card {
  background: rgba(240,246,248,0.5);
  border-color: rgba(0,204,102,0.2);
}

[data-theme="light"] .game-card:hover {
  background: rgba(240,246,248,0.8);
  border-color: var(--primary);
}

[data-theme="light"] .contact-btn {
  background: rgba(240,246,248,0.9);
}

[data-theme="light"] .games-modal-card {
  background: linear-gradient(180deg, rgba(240,246,248,0.98), rgba(232,238,240,0.95));
}
