/* Global Variables */
:root {
  --primary-color: #e63946;
  --secondary-color: #f1faee;
  --dark-color: #1d3557;
  --light-color: #a8dadc;
  --accent-color: #457b9d;
  --text-color: #333;
  --background-color: #f8f9fa;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

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

ul {
  list-style: none;
}

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--dark-color);
}

p {
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

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

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

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

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

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  width: 180px;
}

.main-nav .nav-list {
  display: flex;
}

.main-nav .nav-list li {
  margin-left: 25px;
}

.main-nav .nav-list a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 16px;
  padding: 10px 0;
  position: relative;
}

.main-nav .nav-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.main-nav .nav-list a:hover::after {
  width: 100%;
}

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--accent-color) 100%);
  color: white;
  text-align: center;
  padding: 120px 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Games Section */
.games h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

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

.game-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.game-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--light-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.game-info {
  padding: 20px;
}

.game-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.game-info p {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.game-info a {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--primary-color);
}

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

/* Features Section */
.features {
  background-color: #f9f9f9;
}

.features h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

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

.feature {
  text-align: center;
  padding: 30px 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature h3 {
  margin-bottom: 15px;
}

/* News Section */
.news h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

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

.news-card {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.news-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--accent-color);
}

.read-more:hover {
  color: var(--primary-color);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--dark-color) 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo p {
  margin-top: 15px;
}

.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
  color: #ccc;
}

.social-icons {
  display: flex;
  margin-top: 20px;
}

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

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

.footer-newsletter form {
  display: flex;
  margin-top: 20px;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  outline: none;
}

.footer-newsletter button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background-color: #d32836;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom a {
  color: #ccc;
}

.footer-bottom a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 100px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    padding: 40px 20px;
    transition: var(--transition);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .main-nav .nav-list li {
    margin: 15px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .games-grid,
  .features-grid,
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta p {
    font-size: 1.1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links h3::after,
  .footer-contact h3::after,
  .footer-newsletter h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-newsletter form {
    max-width: 400px;
    margin: 20px auto 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 50px 0;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }
}
