/* Variables */
:root {
  --primary: #4CAF50; /* Green */
  --primary-dark: #2E7D32; /* Dark Green */
  --secondary: #FF9800; /* Orange */
  --secondary-dark: #E65100; /* Dark Orange */
  --accent: #03A9F4; /* Light Blue */
  --text: #212121; /* Almost Black */
  --text-light: #757575; /* Gray */
  --light: #FFFFFF;
  --light-bg: #F5F5F5;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

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

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

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

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

.btn.secondary {
  background: var(--secondary);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn.secondary:hover {
  background: var(--secondary-dark);
}

.section {
  padding: 5rem 0;
}

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

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 15px auto;
}

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

/* Header */
.header {
  background: var(--light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

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

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

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

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.8)), 
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%234CAF50' fill-opacity='0.4'/%3E%3Cpath d='M0 50 L100 50 M50 0 L50 100' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.3'/%3E%3C/svg%3E");
  color: var(--light);
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Features Section */
.features {
  background: var(--light);
}

.feature-card {
  background: var(--light);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  text-align: center;
}

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

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

.feature-icon.orange {
  background: var(--secondary);
}

.feature-icon.blue {
  background: var(--accent);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Courses Section */
.courses {
  background: var(--light-bg);
}

.course-card {
  background: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course-image svg {
  width: 100%;
  height: 100%;
}

.course-content {
  padding: 1.5rem;
}

.course-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.course-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Games Section */
.games {
  background: var(--light);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.game-card {
  background: rgba(76, 175, 80, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.game-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.game-card p {
  font-size: 0.95rem;
}

.game-card a {
  font-weight: 600;
}

/* Testimonials Section */
.testimonials {
  background: var(--primary);
  color: var(--light);
}

.testimonials .section-title {
  color: var(--light);
}

.testimonials .section-title:after {
  background: var(--secondary);
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
}

.author-info h4 {
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Contact Section */
.contact {
  background: var(--light-bg);
}

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

.contact-info {
  background: var(--primary);
  color: var(--light);
  padding: 2rem;
  border-radius: 8px;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--light);
  padding: 4rem 0 1rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

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

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

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

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--light);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 1rem 0;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}
