/* Base Styles */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f1faee;
  --text-color: #333;
  --light-text: #fff;
  --background-color: #fff;
  --light-background: #f8f9fa;
  --border-color: #dee2e6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-color);
}

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

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background-color: #d32736;
  color: var(--light-text);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  color: var(--secondary-color);
}

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

.section-description {
  text-align: center;
  max-width: 800px;
  margin: -1.5rem auto 3rem;
}

/* Header Styles */
.header {
  padding: 1rem 0;
  background-color: var(--background-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 50px;
}

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

.nav-list {
  display: flex;
}

.nav-list li {
  margin-left: 1.5rem;
}

.nav-list a {
  padding: 0.5rem 0;
  font-weight: 500;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.8)), url('../assets/hero-bg.svg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  padding: 8rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

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

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

.feature-item {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.feature-item h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Products Preview Section */
.products-preview {
  padding: 5rem 0;
}

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

.product-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background-color: var(--background-color);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 180px;
  background-color: var(--light-background);
  overflow: hidden;
}

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

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.product-info p {
  margin-bottom: 1rem;
  color: #666;
}

/* Games Module Section */
.games-module {
  padding: 5rem 0;
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.games-module .section-title {
  color: var(--light-text);
}

.games-module .section-title::after {
  background-color: var(--accent-color);
}

.games-grid {
  display: flex;
  justify-content: center;
}

.game-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
}

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

.game-links {
  margin-top: 1.5rem;
}

.game-links li {
  margin-bottom: 0.8rem;
}

.game-links a {
  color: var(--accent-color);
  display: inline-block;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.game-links a:hover {
  border-bottom-color: var(--accent-color);
  color: #fff;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--light-background);
}

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

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

.testimonial-quote {
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: """;
  font-size: 4rem;
  position: absolute;
  top: -2rem;
  left: -1rem;
  opacity: 0.1;
  font-family: serif;
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Newsletter Section */
.newsletter {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: var(--light-text);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  outline: none;
}

.newsletter-form .btn-primary {
  background-color: var(--secondary-color);
}

.newsletter-form .btn-primary:hover {
  background-color: #0f2540;
}

/* Footer Section */
.footer {
  padding: 5rem 0 2rem;
  background-color: var(--secondary-color);
  color: var(--light-text);
}

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

.footer-logo p {
  margin: 1rem 0;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text);
}

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

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

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

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

.footer-links a,
.footer-contact a {
  color: var(--light-text);
  opacity: 0.8;
}

.footer-links a:hover,
.footer-contact a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-contact p {
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--light-text);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  opacity: 1;
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--background-color);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
    opacity: 0;
  }
  
  .nav-list.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
  
  .nav-list li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-list a {
    display: block;
    padding: 0.8rem 0;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-grid {
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .feature-item,
  .product-card,
  .testimonial-card {
    padding: 1.5rem;
  }
}
