/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a55eea;
  --text-color: #2d3436;
  --light-text: #636e72;
  --background: #ffffff;
  --section-bg: #f5f6fa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: bold;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s ease;
  animation: fadeInUp 1s ease 0.4s;
}

.cta-button:hover {
  transform: translateY(-3px);
}

/* Dart Game Section */
.dart-section {
  padding: 5rem 5%;
  background: var(--section-bg);
  text-align: center;
}

.dart-section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

#dartGameContainer {
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto 1rem;
  background: #2c3e50;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#dartCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Basketball Game Section */
.basketball-section {
  padding: 5rem 5%;
  background: var(--section-bg);
  text-align: center;
}

.basketball-section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

#basketballGameContainer {
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto 1rem;
  background: #2c3e50;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#basketballCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.game-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.game-button {
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.game-button:hover {
  background: var(--secondary-color);
}

.game-instructions {
  color: var(--light-text);
}

/* Games Section */
.games {
  padding: 5rem 5%;
  background: white;
}

.games h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-image {
  height: 200px;
  background: #ddd;
  background-size: cover;
  background-position: center;
}
.game-image img {
  width: auto;
  height: 200px;
}

.game-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.5rem;
}

.game-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--light-text);
}

.store-button {
  display: inline-block;
  margin: 0.5rem 1.5rem 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.store-button:hover {
  background: var(--secondary-color);
}

/* About Section */
.about {
  padding: 5rem 5%;
  background: var(--section-bg);
}

.about h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  color: var(--light-text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 5rem 5%;
  background: white;
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}
.contact .desc {
  margin-bottom: 2rem;
}
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

#contact-form textarea {
  height: 150px;
  resize: vertical;
}

.submit-button {
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background: var(--secondary-color);
}

/* Footer */
footer {
  background: var(--text-color);
  color: white;
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

/* .footer-section .desc {
  color: rgb(56, 176, 217) ;
} */

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

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

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-container {
    padding: 1rem;
  }

  #dartGameContainer,
  #basketballGameContainer {
    height: 350px;
  }
}
