/* Hero Section Styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 150px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(255, 44, 223, 0.15) 0%, rgba(13, 13, 29, 0) 50%),
    linear-gradient(235deg, rgba(0, 255, 255, 0.15) 0%, rgba(13, 13, 29, 0) 70%);
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  background: linear-gradient(90deg, var(--neon-blue), var(--fuchsia));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(255, 44, 223, 0.3);
  position: relative;
  display: inline-block;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--fuchsia);
  box-shadow: 0 0 10px var(--fuchsia);
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-bg {
  width: 100%;
  height: 400px;
  background-image: 
    linear-gradient(to right, rgba(0, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 30px 30px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  transform: perspective(800px) rotateY(-15deg) rotateX(10deg);
}

.grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 44, 223, 0.8) 0%, transparent 70%);
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* About Section Styles */
.about {
  background-color: var(--card-bg);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(26, 26, 46, 0) 70%);
  z-index: 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content h2 {
  color: var(--neon-blue);
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--fuchsia);
  box-shadow: 0 0 10px var(--fuchsia);
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.arcade-machine {
  width: 100%;
  height: 400px;
  background-color: var(--darker-card);
  border-radius: 10px;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 15px rgba(255, 44, 223, 0.3);
  position: relative;
  overflow: hidden;
}

.arcade-machine::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 70%;
  height: 50%;
  background-color: rgba(0, 255, 255, 0.1);
  border: 2px solid var(--neon-blue);
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.arcade-machine::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 25%;
  width: 50%;
  height: 15%;
  background-color: var(--darker-card);
  border-top: 2px solid var(--fuchsia);
  box-shadow: 0 0 10px rgba(255, 44, 223, 0.5);
}

/* Games Section Styles */
.games {
  position: relative;
  overflow: hidden;
}

.games::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 44, 223, 0.1), transparent 70%);
  z-index: -1;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--fuchsia));
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

.game-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(0, 255, 255, 0.5);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%);
  z-index: -1;
}

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

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.game-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--electric-yellow);
  font-weight: 700;
}

.game-card p {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  flex-grow: 1;
}

.game-card .btn {
  align-self: center;
  margin-top: auto;
}

/* Responsive Styles for Home */
@media (max-width: 992px) {
  .hero-container,
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image,
  .about-image {
    order: -1;
  }

  .grid-bg,
  .arcade-machine {
    height: 350px;
  }

  .hero-content,
  .about-content {
    text-align: center;
    align-items: center;
  }

  .hero-content h1::after,
  .about-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-content p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .grid-bg,
  .arcade-machine {
    height: 250px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }
}