/* Base styles and CSS reset */
:root {
  --primary-color: #3498db;
  --secondary-color: #9b59b6;
  --accent-color: #f1c40f;
  --text-color: #333333;
  --light-bg: #f8f9fa;
  --dark-bg: #2c3e50;
  --border-radius: 8px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

/* Header */
header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px 0;
  box-shadow: var(--box-shadow);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

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

.logo a {
  color: white;
  text-decoration: none;
}

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

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

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

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature-card {
  flex: 1 1 300px;
  max-width: 350px;
  padding: 30px;
  border-radius: var(--border-radius);
  background-color: var(--light-bg);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

/* Game Section */
.games {
  background-color: var(--dark-bg);
  color: white;
  padding: 80px 0;
}

.games h2 {
  color: white;
  margin-bottom: 40px;
  text-align: center;
}

.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.game-card {
  flex: 1 1 280px;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition);
}

.game-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

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

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

.game-links {
  padding: 15px 0;
}

.game-links a {
  display: block;
  padding: 8px 0;
  color: var(--accent-color);
  font-weight: 500;
  transition: var(--transition);
}

.game-links a:hover {
  color: white;
  transform: translateX(5px);
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--light-bg);
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color: white;
}

.testimonial-card {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.testimonial-card p {
  font-style: italic;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-color);
}

/* Contact */
.contact {
  padding: 80px 0;
  background-color: var(--dark-bg);
  color: white;
}

.contact h2 {
  color: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.btn-submit {
  background-color: var(--accent-color);
  color: var(--dark-bg);
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

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

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

.footer-info {
  flex: 1 1 300px;
  margin-right: 30px;
}

.footer-links {
  flex: 1 1 200px;
}

.footer-links h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

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

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

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-color);
}

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

.social-links a {
  color: white;
  font-size: 1.2rem;
}

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

/* Media queries for responsive design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .feature-card, .game-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-menu li {
    margin: 0;
    margin-bottom: 15px;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .row {
    flex-direction: column;
  }
  
  .col {
    margin-bottom: 30px;
  }
  
  .feature-card, .game-card {
    flex: 1 1 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-info, .footer-links {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
