:root {
  --primary-color: #39b54a;
  --primary-dark: #007940;
  --secondary-color: #3498db;
  --accent-color: #ff7f50;
  --text-color: #333333;
  --light-text: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #1a1a1a;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-light);
  overflow-x: hidden;
}

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

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--light-text);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 24px;
  color: var(--light-text);
  text-decoration: none;
}

.logo svg {
  height: 40px;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--light-text);
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: url('../images/hero-bg.svg') no-repeat center center;
  background-size: cover;
  height: 500px;
  display: flex;
  align-items: center;
  color: var(--light-text);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Features */
.features {
  padding: 80px 0;
  background-color: var(--background-light);
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--primary-dark);
}

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

.feature-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: var(--transition);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--primary-dark);
}

/* About */
.about {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-image svg {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}

/* Game Section */
.game-section {
  padding: 80px 0;
  background: linear-gradient(to right, #f9f9f9, #e9f8ed);
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

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

.game-card h3 {
  margin: 15px 0 10px;
  color: var(--primary-dark);
}

.game-card p {
  margin-bottom: 15px;
  color: #666;
}

.game-links {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background-color: #f5f5f5;
}

.game-links a {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 8px;
}

.game-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* News Section */
.news {
  padding: 80px 0;
}

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

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.news-img {
  height: 200px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.news-content p {
  margin-bottom: 15px;
  color: #666;
}

.news-date {
  color: #888;
  font-size: 0.9em;
}

/* Subscribe */
.subscribe {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--light-text);
  text-align: center;
}

.subscribe h2 {
  margin-bottom: 20px;
}

.form-group {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
}

.form-input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 30px 0 0 30px;
  font-family: var(--font-main);
  font-size: 16px;
}

.form-input:focus {
  outline: none;
}

.form-btn {
  background-color: var(--accent-color);
  color: var(--light-text);
  border: none;
  padding: 0 25px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  transition: var(--transition);
}

.form-btn:hover {
  background-color: #e06a40;
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  color: var(--light-text);
  padding: 60px 0 30px;
}

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

.footer-column h3 {
  font-family: var(--font-heading);
  font-size: 1.2em;
  margin-bottom: 20px;
  position: relative;
}

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

.footer-column ul {
  list-style: none;
}

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

.footer-column a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  font-size: 0.9em;
  color: #bbb;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  border-radius: 50%;
  transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 101;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--primary-dark);
    width: 80%;
    height: 100vh;
    z-index: 100;
    padding-top: 80px;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }
  
  .nav-link {
    font-size: 1.2em;
  }
  
  .hero h1 {
    font-size: 2.5em;
  }
  
  .form-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-input, .form-btn {
    width: 100%;
    border-radius: 30px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2em;
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  .hero {
    height: 400px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
