/* Home Page Specific Styles */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 30%, rgba(255, 58, 58, 0.1) 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--color-background) 40%, transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 600px;
  animation: fadeIn 1.5s ease;
}

.hero-content h1 {
  margin-bottom: var(--spacing-md);
  font-size: 4.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* About Section */
.about {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-background-alt);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 69, 230, 0.1), transparent 70%);
  z-index: 0;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 0 0 100%;
  margin-bottom: var(--spacing-md);
}

.about-image {
  flex: 0 0 100%;
  text-align: center;
}

.about-image img {
  max-width: 300px;
  height: auto;
}

@media (min-width: 768px) {
  .about-text {
    flex: 0 0 60%;
    margin-bottom: 0;
    padding-right: var(--spacing-lg);
  }
  
  .about-image {
    flex: 0 0 40%;
  }
}

/* Games Section */
.games {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-background);
  position: relative;
  overflow: hidden;
}

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

.games-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

@media (min-width: 576px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  background-color: var(--color-background-alt);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  position: relative;
}

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

.game-card[data-game="gates-of-hades"]:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-primary);
}

.game-card[data-game="wealthy-frog"]:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-candy-blue);
}

.game-card[data-game="jumbo-safari"]:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px #6fff21;
}

.game-card[data-game="fiesta-fortune"]:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px #ff9021;
}

.game-card[data-game="lucky-monkey"]:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px #ffdf21;
}

.game-card[data-game="sleeping-dragon"]:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-accent);
}

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

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

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

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8));
}

.game-info {
  padding: var(--spacing-md);
  position: relative;
}

.game-info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.game-info p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

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

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(33, 200, 255, 0.1), transparent 70%);
  z-index: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

@media (min-width: 576px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 69, 230, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--color-secondary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover .feature-icon::after {
  opacity: 0.5;
}

.feature-icon.instant-play {
  background-image: url('../images/icon-instant-play.svg');
}

.feature-icon.mobile-friendly {
  background-image: url('../images/icon-mobile.svg');
}

.feature-icon.no-signup {
  background-image: url('../images/icon-no-signup.svg');
}

.feature-icon.new-games {
  background-image: url('../images/icon-new-games.svg');
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Contact CTA Section */
.contact-cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  position: relative;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 69, 230, 0.2), transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  text-shadow: 0 0 10px var(--color-primary);
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .feature-card {
    padding: var(--spacing-sm);
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
}