/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(-45deg, #1e1f26, #2b2d3a, #383b44, #1e1f26);
  background-size: 400% 400%;
  animation: bg-animation 10s ease infinite;
  color: #fff;
  padding-top: 80px;
}

@keyframes bg-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navigation */
.navbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ffea;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00ffea;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
  transition: 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 300px;
  }
}

/* Game Container */
.main-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  animation: popIn 1s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #00ffea;
  text-shadow: 1px 1px 3px #000;
}

.score-board {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.score h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.score p {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00ffea;
  transition: transform 0.3s ease;
}

.game {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

.choice {
  font-size: 3rem;
  padding: 20px;
  border-radius: 15px;
  background: #2d2f3a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 234, 0.3);
}

.choice:hover {
  transform: scale(1.3);
  box-shadow: 0 0 30px #00ffea;
}

.choice.clicked {
  animation: pulse 0.4s;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

#result {
  font-size: 1.2rem;
  margin: 20px 0;
  font-weight: 600;
  min-height: 40px;
  transition: all 0.4s ease;
  opacity: 0.8;
}

.fade {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#reset-btn {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  background: #00ffea;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  box-shadow: 0 0 10px #00ffea;
}

#reset-btn:hover {
  background: #00ccba;
  box-shadow: 0 0 20px #00ffea;
}

/* Info Sections */
.info-section {
  margin-top: 80px;
  padding: 40px 20px;
  text-align: center;
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #00ffea;
}

.info-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: auto;
  line-height: 1.6;
  color: #ccc;
}
