/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: left;
 
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(17, 17, 17, 0.8) 70%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/overlay-texture.png');
  opacity: 0.15;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: left;
  margin: 7% 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  animation: glow 3s infinite alternate;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(50, 205, 50, 0.7);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  }
  100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

/* Features Section */
.features {
  background-color: var(--color-background);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-bg.png');
  opacity: 0.05;
  z-index: 0;
}

.features-grid {
  display: flex;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.feature-text {
  flex: 1;
}

.feature-item {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 2rem;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(50, 205, 50, 0.7);
}

.feature-item h3 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.feature-image {
  flex: 1;
  position: relative;
}

.feature-image img {
  border-radius: var(--border-radius-small);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  transition: all 0.5s ease;
}

.feature-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.image-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-small);
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-image:hover .image-glow {
  opacity: 1;
}

/* Games Section */
.games {
  background-color: var(--color-card-bg);
  position: relative;
}

.games::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(153, 50, 204, 0.05) 0%, rgba(17, 17, 17, 0) 70%);
  z-index: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.game-card {
  background-color: var(--color-background);
  border-radius: var(--border-radius-small);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
  border-color: var(--color-primary);
}

.game-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-card h3 {
  color: var(--color-primary);
  margin: 1.5rem 1.5rem 0.5rem;
  font-size: 1.5rem;
}

.game-card p {
  margin: 0 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(250, 250, 210, 0.8);
  flex-grow: 1;
}

.play-button {
  font-family: var(--font-secondary);
  background-color: var(--color-secondary);
  color: var(--color-text-dark);
  display: block;
  margin: 0 1.5rem 1.5rem;
  padding: 0.7rem;
  text-align: center;
  border-radius: var(--border-radius-small);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.play-button:hover {
  background-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

.play-button span {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

.play-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(50, 205, 50, 0.7) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.play-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.5;
}

/* Responsive Styles for Index */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .features-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .features-grid {
    flex-direction: column-reverse;
    gap: 3rem;
  }
  
  .feature-item {
    margin-bottom: 2rem;
  }
  
  .feature-item h3 {
    font-size: 1.3rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .feature-item {
    padding-left: 1.5rem;
  }
  
  .feature-item h3 {
    font-size: 1.2rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
}