/* Common CSS for H5 Game Website */
/* Modern, Tech-inspired Design */

:root {
  /* Color Palette - Dark Cold Tone Theme */
  --primary-color: #4a9bff;
  /* Cool blue */
  --secondary-color: #64b5f6;
  /* Light blue */
  --accent-color: #81c784;
  /* Cool green */
  --tertiary-color: #4db6ac;
  /* Teal */
  --quaternary-color: #9575cd;
  /* Cool purple */

  /* Background Colors - Darker and cooler */
  --bg-primary: #0f172a;
  /* Dark blue-gray */
  --bg-secondary: #1e293b;
  /* Darker blue-gray */
  --bg-tertiary: #334155;
  /* Medium blue-gray */
  --bg-accent: #0c4a6e;
  /* Deep blue */
  --bg-gradient: linear-gradient(135deg, #0c4a6e 0%, #1e3a8a 100%);

  /* Dark mode alternatives (for sections that need contrast) */
  --dark-primary: #020617;
  /* Very dark blue */
  --dark-secondary: #0f172a;
  /* Dark blue */
  --dark-tertiary: #1e293b;
  /* Medium dark blue */

  /* Text Colors */
  --text-primary: #e2e8f0;
  /* Light blue-gray for main text */
  --text-secondary: #cbd5e1;
  /* Medium blue-gray for secondary text */
  --text-muted: #94a3b8;
  /* Light slate for muted text */
  --text-white: #ffffff;
  /* White text for dark backgrounds */
  --text-accent: #4a9bff;
  /* Primary color for accents */

  /* Status Colors */
  --success-color: #81c784;
  /* Cool green */
  --warning-color: #ffb74d;
  /* Warm amber */
  --error-color: #ef5350;
  /* Red */
  --info-color: #4a9bff;
  /* Blue */

  /* Gradients - Cool and dark gradients */
  --gradient-primary: linear-gradient(135deg, #4a9bff 0%, #64b5f6 50%, #81c784 100%);
  --gradient-secondary: linear-gradient(135deg, #4db6ac 0%, #81c784 100%);
  --gradient-success: linear-gradient(135deg, #81c784 0%, #4db6ac 100%);
  --gradient-rainbow: linear-gradient(135deg, #4a9bff 0%, #64b5f6 25%, #4db6ac 50%, #81c784 75%, #9575cd 100%);
  --gradient-card: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);

  /* Shadows - Cool shadows */
  --shadow-sm: 0 2px 4px rgba(2, 132, 199, 0.1);
  --shadow-md: 0 4px 12px rgba(2, 132, 199, 0.15);
  --shadow-lg: 0 8px 24px rgba(2, 132, 199, 0.2);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.3);
  --shadow-colorful: 0 8px 32px rgba(2, 132, 199, 0.15), 0 4px 16px rgba(129, 199, 132, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
}

h3 {
  font-size: 2rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--primary-color);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    animation: pulseGlow 2s infinite;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--dark-tertiary);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  border: 1px solid rgba(74, 155, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-lg);
}

/* Header/Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 155, 255, 0.2);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  transform: scaleX(0);
  transition: var(--transition-fast);
  transform-origin: left;
}

.logo:hover::after {
  transform: scaleX(1);
  animation: pulseGlow 2s infinite;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(74, 155, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  animation: pulseGlow 2s infinite;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
  transform: translateX(-50%);
  border-radius: var(--radius-sm);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
  box-shadow: 0 0 10px var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
  background: rgba(30, 41, 59, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(74, 155, 255, 0.3);
  transition: var(--transition-fast);
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* New Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: var(--space-lg);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Header */
.mobile-menu-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(74, 155, 255, 0.2);
  margin-bottom: var(--space-xl);
}

.mobile-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.mobile-close-btn {
  background: rgba(30, 41, 59, 0.9);
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  border: 1px solid rgba(74, 155, 255, 0.3);
  box-shadow: var(--shadow-md);
}

.mobile-close-btn:hover {
  background: var(--gradient-primary);
  transform: rotate(90deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* Mobile Menu Items */
.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
  gap: var(--space-md);
}

.mobile-nav-item {
  width: 100%;
  text-align: center;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  text-decoration: none;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(74, 155, 255, 0.2);
  font-size: 1.1rem;
  width: 100%;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-color);
  background: rgba(74, 155, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  animation: pulseGlow 2s infinite;
}

/* Mobile Search */
.mobile-search-container {
  width: 100%;
  max-width: 300px;
  margin-top: var(--space-xl);
  position: relative;
}

.mobile-search-wrapper {
  position: relative;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-full);
  padding: 2px;
  border: 1px solid rgba(74, 155, 255, 0.2);
  transition: var(--transition-fast);
}

.mobile-search-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  background: rgba(30, 41, 59, 0.8);
}

.mobile-search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-primary);
  border-radius: var(--radius-full);
}

.mobile-search-input::placeholder {
  color: var(--text-muted);
}

.mobile-search-input:focus {
  outline: none;
}

.mobile-search-btn {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: 50%;
  transition: var(--transition-fast);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-btn:hover {
  background: var(--gradient-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Search Bar */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.5);
  padding: 2px;
  border: 1px solid rgba(74, 155, 255, 0.2);
  transition: var(--transition-fast);
}

.search-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  background: rgba(30, 41, 59, 0.8);
}

.search-input {
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 250px;
  transition: var(--transition-fast);
  color: var(--text-white);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  background: var(--bg-secondary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: var(--space-sm);
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: 50%;
  transition: var(--transition-fast);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--gradient-primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Main Content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Footer */
.footer {
  background: var(--dark-primary);
  border-top: 1px solid rgba(74, 155, 255, 0.2);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
  color: var(--text-white);
  background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(74, 155, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(129, 199, 132, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  animation: pulseGlow 2s infinite;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: var(--text-white);
  opacity: 0.8;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  opacity: 1;
  padding-left: var(--space-sm);
  text-shadow: 0 0 8px var(--primary-color);
  animation: pulseGlow 2s infinite;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(74, 155, 255, 0.2);
  color: var(--text-white);
  opacity: 0.8;
  background: rgba(2, 6, 23, 0.5);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(5px);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--quaternary-color) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 155, 255, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 10;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20px;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
  transition: all 0.6s;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 25px rgba(74, 155, 255, 0.5),
    0 0 0 0 rgba(74, 155, 255, 0.7);
  color: white;
  background: linear-gradient(135deg, var(--quaternary-color) 0%, var(--primary-color) 100%);
  animation: pulseGlow 1.5s infinite, scalePulse 2s ease-in-out infinite;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid rgba(74, 155, 255, 0.3);
  box-shadow: 0 2px 10px rgba(74, 155, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
  border-radius: var(--radius-lg);
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20px;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: all 0.6s;
  z-index: -1;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(74, 155, 255, 0.2) 0%, rgba(74, 155, 255, 0.3) 100%);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 6px 20px rgba(74, 155, 255, 0.3),
    0 0 0 0 rgba(74, 155, 255, 0.2);
  animation: pulseGlow 1.5s infinite, scalePulse 2s ease-in-out infinite;
}

.btn-secondary:hover::before {
  opacity: 0.2;
}

.btn-secondary:hover::after {
  left: 120%;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 10px rgba(74, 155, 255, 0.1);
  z-index: 10;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--quaternary-color) 100%);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
  border-radius: var(--radius-lg);
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20px;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: all 0.6s;
  z-index: -1;
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--quaternary-color) 100%);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 25px rgba(74, 155, 255, 0.4),
    0 0 0 0 rgba(74, 155, 255, 0.6);
  animation: pulseGlow 1.5s infinite, scalePulse 2s ease-in-out infinite;
  border-color: transparent;
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-outline:hover::after {
  left: 120%;
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(74, 155, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: -1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-color);
  background: var(--gradient-card);
  animation: pulseGlow 2s infinite;
}

.card:hover::before {
  opacity: 0.05;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  /* Hide desktop menu and show mobile menu toggle */
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .search-container {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .search-container {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .menu-toggle {
    padding: var(--space-xs);
    width: 35px;
    height: 35px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 155, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(74, 155, 255, 0);
  }
}

@keyframes floatAnimation {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes scalePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(74, 155, 255, 0.3);
    box-shadow: 0 0 5px rgba(74, 155, 255, 0.2);
  }

  50% {
    border-color: rgba(74, 155, 255, 0.8);
    box-shadow: 0 0 20px rgba(74, 155, 255, 0.4);
  }
}

@keyframes shineEffect {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mt-5 {
  margin-top: var(--space-xl);
}

.mb-1 {
  margin-bottom: var(--space-xs);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.mb-5 {
  margin-bottom: var(--space-xl);
}

.p-1 {
  padding: var(--space-xs);
}

.p-2 {
  padding: var(--space-sm);
}

.p-3 {
  padding: var(--space-md);
}

.p-4 {
  padding: var(--space-lg);
}

.p-5 {
  padding: var(--space-xl);
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.cursor-pointer {
  cursor: pointer;
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
  background: var(--bg-tertiary);
}

.game-image:hover {
  transform: scale(1.05);
}

/* Image loading states */
.game-image[src=""],
.game-image:not([src]),
.game-image[src*="placeholder"] {
  background: var(--bg-tertiary);
  background-image: linear-gradient(45deg, transparent 25%, rgba(99, 102, 241, 0.1) 25%, rgba(99, 102, 241, 0.1) 50%, transparent 50%, transparent 75%, rgba(99, 102, 241, 0.1) 75%);
  background-size: 20px 20px;
  animation: loading-pattern 1s linear infinite;
}

@keyframes loading-pattern {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 20px 20px;
  }
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.video-modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--bg-tertiary);
}

.video-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.video-modal-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.video-modal-close:hover {
  background: var(--bg-tertiary);
}

.video-modal-body {
  padding: var(--space-md);
}

.video-modal-body video {
  border-radius: var(--radius-md);
  outline: none;
}