/* Global Styles */
:root {
  --primary-color: #5c258d;
  --secondary-color: #4389a2;
  --accent-color: #ff9900;
  --text-color: #333333;
  --light-color: #ffffff;
  --dark-color: #222222;
  --background-color: #f9f9f9;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  color: var(--primary-color);
}

h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-family: var(--font-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
  display: flex;
  align-items: center;
}

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

.logo h1 {
  color: var(--light-color);
  font-size: 1.8rem;
  margin-bottom: 0;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--light-color);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: rgba(255,255,255,0.2);
  text-decoration: none;
}

.hamburger-menu {
  display: none;
  font-size: 1.8rem;
  color: var(--light-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--light-color);
}

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

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: darken(var(--accent-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--light-color);
}

/* Features Section */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 20%;
}

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

.feature-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.feature-content {
  padding: 25px;
}

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

/* Games Section */
.games {
  padding: 100px 0;
  background-color: #f0f4f8;
}

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

.game-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

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

.game-content {
  padding: 20px;
}

.game-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.game-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary-color);
}

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

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

.news-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-content {
  padding: 25px;
}

.news-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.news-card .source {
  display: block;
  margin-top: 15px;
  font-style: italic;
  color: #777;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  padding: 60px 0 30px;
}

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

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

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

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--light-color);
}

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

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

.footer-section ul li a {
  color: rgba(255,255,255,0.8);
}

.footer-section ul li a:hover {
  color: var(--light-color);
}

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

.social-icons {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.social-icons a {
  color: var(--light-color);
  font-size: 1.5rem;
  margin-right: 15px;
  transition: all 0.3s ease;
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 130px 0 80px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  nav ul {
    display: none;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .mobile-nav {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: all 0.3s ease;
  }
  
  .mobile-nav.active {
    transform: translateY(0);
  }
  
  .mobile-nav ul {
    list-style: none;
  }
  
  .mobile-nav ul li {
    margin-bottom: 15px;
  }
  
  .mobile-nav ul li a {
    color: var(--light-color);
    font-size: 1.2rem;
    display: block;
    padding: 8px 10px;
  }
  
  .features-grid,
  .games-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .btn {
    padding: 10px 25px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
