/* Base Styles and Reset */
:root {
  --primary-color: #e63946;
  --primary-dark: #c1121f;
  --secondary-color: #457b9d;
  --dark-color: #1d3557;
  --light-color: #f1faee;
  --success-color: #2a9d8f;
  --warning-color: #e9c46a;
  --danger-color: #e76f51;
  --body-bg: #f8f9fa;
  --card-bg: #ffffff;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --header-height: 80px;
  --footer-bg: #1d3557;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--body-bg);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-lg {
  padding: 1.5rem 3rem;
  font-size: 1.8rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-login {
  background-color: transparent;
  color: var(--dark-color);
  padding: 1.2rem 2rem;
}

.btn-login:hover {
  color: var(--primary-color);
}

/* Header */
.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  height: var(--header-height);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-container {
  font-size: 2.4rem;
  font-weight: 700;
}

.logo {
  color: var(--primary-color);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: 1rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark-color);
  transition: var(--transition);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1518998053901-5348d3961a04?auto=format&fit=crop&q=80&w=1974&ixlib=rb-4.0.3') center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: var(--header-height);
}

.hero-content h1 {
  color: white;
  font-size: 5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 2.2rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 10rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

.section-header p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.8rem;
}

/* Features Section */
.features {
  background-color: var(--light-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.feature-card h3 {
  margin-bottom: 1.5rem;
}

/* Games Section */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.game-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.game-card h3 {
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.game-card p {
  margin-bottom: 2.5rem;
}

.game-links {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 3rem;
  margin-top: 5rem;
}

.game-links h3 {
  margin-bottom: 2rem;
  text-align: center;
}

.partner-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.partner-links a {
  display: block;
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.partner-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials {
  background-color: var(--light-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.testimonial-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-content::before {
  content: '"';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 2rem;
}

.author-name {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.author-location {
  font-size: 1.4rem;
  color: #777;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1596451190630-186aff535bf2?auto=format&fit=crop&q=80&w=1974&ixlib=rb-4.0.3') center/cover no-repeat;
  color: white;
  text-align: center;
}

.cta-content h2 {
  color: white;
  font-size: 4rem;
  margin-bottom: 2rem;
}

.cta-content p {
  font-size: 2rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.main-footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 8rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-about {
  margin-right: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.footer-logo img {
  width: 50px;
  height: auto;
}

.footer-logo p {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.footer-links h3,
.footer-newsletter h3 {
  color: white;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.footer-links h3::after,
.footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
  display: inline-block;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.newsletter-form input {
  padding: 1.2rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  font-family: inherit;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-social {
  display: flex;
  gap: 2rem;
}

.social-icon {
  display: inline-block;
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-disclaimer {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  html {
    font-size: 55%;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 50%;
  }
  
  .mobile-menu-toggle {
    display: block;
    z-index: 999;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 99;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content p {
    font-size: 1.8rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .section-header h2 {
    font-size: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  section {
    padding: 6rem 0;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .section-header h2 {
    font-size: 2.8rem;
  }
  
  .testimonial-card,
  .feature-card,
  .game-card {
    padding: 2rem;
  }
  
  .footer-grid {
    gap: 3rem;
  }
}
