/* Enhanced Homepage Styles */

/* Global Enhancements */
:root {
  --primary-gradient: linear-gradient(135deg, #f8b700 0%, #ff8c00 100%);
  --secondary-gradient: linear-gradient(135deg, #b91d22 0%, #8b0000 100%);
  --dark-gradient: linear-gradient(to bottom, #222222 0%, #111111 100%);
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  --hover-transform: translateY(-8px);
  --transition-slow: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/banner.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  text-align: center;
  padding: 8rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(248, 183, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
}

.hero h1, .hero p {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.3rem;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Enhanced Promotions Section */
.promotions {
  background: var(--dark-gradient);
  color: var(--text-light);
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
}

.promotions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
}

.promotions h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.promotions h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.promo-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-slow);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.promo-card:hover img {
  transform: scale(1.05);
}

.promo-content {
  padding: 1.8rem;
}

.promo-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.promo-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.promo-content .btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  background: var(--primary-gradient);
  color: var(--text-dark);
  border: none;
  transition: all 0.3s ease;
}

.promo-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(248, 183, 0, 0.4);
}

.view-all {
  text-align: center;
  margin-top: 3rem;
}

.view-all .btn-secondary {
  background: var(--secondary-gradient);
  color: var(--text-light);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.view-all .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(185, 29, 34, 0.4);
}

/* Enhanced Featured Games Section */
.featured-games {
  padding: 5rem 1rem;
  background-color: #f9f9f9;
  position: relative;
}

.featured-games h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--text-dark);
  position: relative;
}

.featured-games h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-slow);
  position: relative;
}

.game-card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-info {
  padding: 1.8rem;
}

.game-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.game-info p {
  color: #666;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.provider {
  display: inline-block;
  background: var(--primary-gradient);
  color: var(--text-dark);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Enhanced Why Choose Section */
.why-choose {
  background-color: #fff;
  padding: 5rem 1rem;
  position: relative;
}

.why-choose h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-dark);
  position: relative;
}

.why-choose h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background-color: #f9f9f9;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition-slow);
  border: 1px solid #eee;
}

.feature:hover {
  transform: var(--hover-transform);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: rgba(248, 183, 0, 0.1);
  border-radius: 50%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature p {
  color: #666;
  line-height: 1.6;
}

/* Enhanced Responsible Section */
.responsible {
  background: var(--secondary-gradient);
  color: var(--text-light);
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.responsible::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.responsible h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.responsible p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  line-height: 1.8;
  position: relative;
}

.responsible .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: white;
  color: var(--secondary-color);
  transition: all 0.3s ease;
  position: relative;
  border: none;
}

.responsible .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
  background-color: var(--primary-color);
  color: var(--text-dark);
}

/* Enhanced Footer */
footer {
  background: var(--dark-gradient);
  color: var(--text-light);
  padding: 5rem 1rem 1rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
}

.footer-logo img {
  max-width: 180px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-column {
  flex: 1;
  min-width: 180px;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #ccc;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-column a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.footer-column a:hover::before {
  transform: translateX(3px);
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .promo-slider, .games-grid, .features-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}

/* Animation for Cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-card, .game-card, .feature {
  animation: fadeInUp 0.6s ease-out forwards;
}

.promo-card:nth-child(2), .game-card:nth-child(2), .feature:nth-child(2) {
  animation-delay: 0.2s;
}

.promo-card:nth-child(3), .game-card:nth-child(3), .feature:nth-child(3) {
  animation-delay: 0.4s;
}

.game-card:nth-child(4), .feature:nth-child(4) {
  animation-delay: 0.6s;
}

/* Floating CTA Button */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  animation: pulse 2s infinite;
}

.floating-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: var(--text-dark);
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
}

.floating-cta-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(248, 183, 0, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(248, 183, 0, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(248, 183, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(248, 183, 0, 0);
  }
}

/* Improved Navigation */
nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}
