
    * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  min-height: 100vh;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  margin: auto;
  padding: 14px 0;
}

.logo {
  font-size: 18px;
  font-weight: bold;
  color: #38bdf8;
}

.menu {
  display: flex;
  gap: 25px;
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: #cbd5e1;
  transition: 0.3s;
}

.menu a:hover {
  color: white;
}

.btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* HERO */
.hero {
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  background: url("../doc/hero.webp") center/cover no-repeat;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

/* SEARCH */
.search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.search input,
.search select {
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
}

.search button {
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: #38bdf8;
  color: black;
  cursor: pointer;
  font-weight: bold;
}

/* TITLE */
h1 {
  text-align: center;
  margin: 30px 0;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  width: 92%;
  margin: 30px auto;
}

/* CARDS */
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 15px;
  text-align: center;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card h2 {
  font-size: 18px;
  margin: 10px 0;
}

.card p {
  font-size: 13px;
  color: #cbd5e1;
}

.card button {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #22c55e;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.card button:hover {
  background: #16a34a;
}

/* WEATHER */
.weather {
  position: fixed;
  top: 80px;
  right: 15px;
  width: 180px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 10;
}

.weather h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.small {
  color: #94a3b8;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .hero-content h1 {
    font-size: 28px;
  }
}

/* START BUTTON */
.start-btn {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.start-btn button {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: 0.3s;
}

.start-btn button:hover {
  transform: scale(1.07);
}

/* FIX BUTTON LINK */
.start-btn a {
  color: white;
  text-decoration: none;
}

/* TOP PLAYERS SECTION */
.Top-players {
  width: 92%;
  margin: 40px auto 10px auto;
  font-size: 22px;
  font-weight: bold;
  color: #38bdf8;
  border-left: 5px solid #38bdf8;
  padding-left: 10px;
}

/* SEARCH INPUT STYLE IMPROVEMENT */
.search input,
.search select {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.search input::placeholder {
  color: #94a3b8;
}

/* DROPDOWN FIX (white text issue) */
.search select option {
  color: black;
}

/* SMALL ANIMATION */
.grid .card {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.card button {
  transition: all 0.3s ease;
}

.card button:hover {
  transform: scale(1.05);
}

/* ABOUT SECTION */
.about {
  width: 92%;
  margin: 60px auto;
  text-align: center;
}

.about h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #38bdf8;
}

.about p {
  max-width: 700px;
  margin: auto;
  color: #cbd5e1;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ABOUT CARDS */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.about-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.about-box:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
}

.about-box h3 {
  margin-bottom: 10px;
}

.about-box p {
  font-size: 14px;
}
/* SECTION DIVIDER */
.section-divider {
  width: 92%;
  margin: 60px auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
}

/* GAME SECTION */
.game-section {
  width: 92%;
  margin: 60px auto;
  text-align: center;
}

.game-section h2 {
  font-size: 30px;
  color: #38bdf8;
  margin-bottom: 20px;
}

.game-box {
  max-width: 500px;
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

#question {
  font-size: 20px;
  margin-bottom: 20px;
}

#answerInput {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 15px;
  outline: none;
}

.game-buttons {
  display: flex;
  gap: 10px;
}

.game-buttons button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #38bdf8;
  color: black;
  cursor: pointer;
  font-weight: bold;
}

.game-buttons button:hover {
  background: #0ea5e9;
}

.score {
  margin-top: 15px;
  font-weight: bold;
}

.about-container{
  width: 92%;
  margin: 60px auto;
  text-align: center;

}

/* HOW TO PLAY */
.how {
  width: 92%;
  margin: 60px auto;
  text-align: center;
}

.how h2 {
  font-size: 30px;
  color: #38bdf8;
  margin-bottom: 30px;
}

.how-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.how-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  position: relative;
}

.how-step:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
}

/* STEP NUMBER */
.how-step span {
  position: absolute;
  top: -12px;
  left: 15px;
  background: #38bdf8;
  color: black;
  font-weight: bold;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step p {
  margin-top: 10px;
  font-size: 14px;
  color: #cbd5e1;
}

/* CONTACT SECTION */
.contact {
  width: 92%;
  margin: 60px auto;
  text-align: center;
}

.contact h2 {
  font-size: 30px;
  color: #38bdf8;
  margin-bottom: 30px;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

/* LEFT SIDE */
.contact-info {
  text-align: left;
}

.contact-info h3 {
  margin-bottom: 10px;
}

.contact-info p {
  color: #cbd5e1;
  margin-bottom: 10px;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: white;
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #38bdf8;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #0ea5e9;
}

/* GAME SECTION */
.game-section{
  width:92%;
  margin:80px auto;
  text-align:center;
}

.game-section h2{
  font-size:32px;
  color:#38bdf8;
  margin-bottom:20px;
}

/* BOX */
.game-box{
  max-width:420px;
  margin:auto;
  padding:30px;
  border-radius:20px;

  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  backdrop-filter:blur(12px);

  box-shadow:0 10px 40px rgba(0,0,0,0.4);
  transition:.3s;
}

.game-box:hover{
  transform:translateY(-5px);
  border-color:#38bdf8;
}

/* TEXT */
.game-box p{
  color:#cbd5e1;
  margin-bottom:15px;
}

/* INPUT */
.game-box input{
  width:100%;
  padding:12px;
  margin-bottom:15px;

  border-radius:12px;
  border:1px solid rgba(255,255,255,0.2);

  background:rgba(0,0,0,0.2);
  color:white;
  outline:none;
}

.game-box input:focus{
  border-color:#38bdf8;
  box-shadow:0 0 10px rgba(56,189,248,0.4);
}

/* BUTTON */
.game-buttons button{
  width:100%;
  padding:12px;

  border:none;
  border-radius:12px;

  background:linear-gradient(135deg,#38bdf8,#0ea5e9);
  font-weight:bold;
  cursor:pointer;
  transition:.3s;
}

.game-buttons button:hover{
  transform:scale(1.05);
  box-shadow:0 0 20px rgba(56,189,248,0.5);
}


/* =========================
   📱 MOBILE (phones)
========================= */
@media (max-width: 768px) {

  /* NAV */
  .menu {
    display: none;
  }

  .logo {
    font-size: 16px;
  }

  .nav-inner {
    padding: 10px 0;
  }

  /* HERO */
  .hero {
    height: auto;
    padding: 100px 15px 60px;
  }

  .hero-content h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  /* SEARCH */
  .search {
    flex-direction: column;
    gap: 10px;
  }

  .search input,
  .search select,
  .search button {
    width: 100%;
  }

  /* GRID */
  .grid {
    grid-template-columns: 1fr;
  }

  /* CARDS */
  .card img {
    height: 160px;
  }

  /* WEATHER */
  .weather {
    width: 140px;
    font-size: 12px;
    top: 70px;
  }

  /* ABOUT */
  .about h2 {
    font-size: 24px;
  }

  /* GAME BOX */
  .game-box {
    padding: 20px;
  }

  /* CONTACT */
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  /* HOW */
  .how-container {
    grid-template-columns: 1fr;
  }
}


/* =========================
   📲 TABLET (iPads)
========================= */
@media (max-width: 1024px) {

  .hero-content h1 {
    font-size: 34px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}


/* =========================
   💻 LARGE SCREENS
========================= */
@media (min-width: 1400px) {

  .hero-content h1 {
    font-size: 52px;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* HAMBURGER (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

/* =========================
   📱 MOBILE NAV
========================= */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .menu {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;

    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: center;
    gap: 20px;

    padding: 20px 0;

    display: none; /* hidden by default */
  }

  .menu.active {
    display: flex; /* show when active */
  }

  .menu li {
    width: 100%;
    text-align: center;
  }

  .menu a {
    display: block;
    padding: 10px;
    width: 100%;
  }
}
