:root {
  --chess-white: #f0f0f0;
  --chess-black: #1a1a1a;
  --chess-red: #980018;
  --chess-light-green: #96b37d;
  --accent-gold: #ffd700;
  --chess-gray: #575a5d;
}

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

body {
  font-family: 'Poppins', 'Georgia', sans-serif;
  line-height: 1.6;
  background-color: var(--chess-white);
  color: var(--chess-black);
}

header {
  background-color: var(--chess-red);
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(118, 150, 86, 0.3);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo h1 {
  color: var(--chess-white);
  font-size: 1.8rem;
  font-weight: 700;
}

.chess-piece {
  color: var(--chess-white);
  font-size: 2rem;
}

.nav-links a {
  color: var(--chess-white);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-links a:hover {
  background-color: var(--chess-light-green);
  color: var(--chess-white);
}

main {
  margin-top: 4rem;
}

.chessboard-pattern {
  height: 90vh;
  background-image: linear-gradient(45deg, var(--chess-gray) 25%, transparent 25%),
    linear-gradient(-45deg, var(--chess-gray) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--chess-gray) 75%),
    linear-gradient(-45deg, transparent 75%, var(--chess-gray) 75%);
  background-size: 100px 100px;
  background-position: 0 0, 0 50px, 50px -50px, -50px 0px;
  position: relative;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.chess-piece-hero {
  color: var(--chess-red);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--chess-black);
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--chess-red);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-pieces {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--chess-red);
  letter-spacing: clamp(0.5rem, 1.5vw, 0.8rem);
  margin-top: 1.5rem;
}

section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  color: var(--chess-black);
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

section h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background-color: var(--chess-red);
  position: absolute;
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

.content-box {
  background-color: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.content-box:hover {
  transform: translateY(-5px);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.feature {
  padding: 1.5rem;
  border-radius: 10px;
  background-color: rgba(118, 150, 86, 0.1);
}

.feature i {
  font-size: 2.5rem;
  color: var(--chess-red);
  margin-bottom: 1rem;
}

.feature h3 {
  color: var(--chess-black);
  margin-bottom: 0.5rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.schedule-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  background-color: rgba(118, 150, 86, 0.1);
}

.day {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--chess-red);
  margin-bottom: 0.5rem;
}

.event {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.join-box {
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  margin: 2rem 0;
  background-color: var(--chess-red);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(118, 150, 86, 0.3);
}

.cta-button:hover {
  background-color: var(--chess-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chess-pieces {
  font-size: 3rem;
  text-align: center;
  margin-top: 2rem;
  color: var(--chess-red);
  letter-spacing: 0.5rem;
}

footer {
  background-color: var(--chess-black);
  color: var(--chess-white);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.social-links {
  margin-top: 1rem;
}

.social-icon {
  color: var(--chess-white);
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .nav-links a {
    margin: 0;
  }

  .features, .schedule-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 1rem;
  }

  .chessboard-pattern {
    height: 60vh;
    width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 2rem;
    width: 90%;
  }

  section h2 {
    font-size: 2rem;
  }
}
