* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f7f7;
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  min-height: 90px;
  background: #ff9800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 55px;
}

.back-btn {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: 0.3s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  max-height: 900px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  text-align: center;
  padding: 0 20px;
}

.overlay span {
  background: #ff9800;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overlay h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  margin: 20px 0;
  line-height: 1.1;
}

.overlay p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
}

/* ===== ABOUT ===== */
.about {
  padding: clamp(60px, 10vw, 100px) 8%;
  text-align: center;
}

.about .text {
  max-width: 720px;
  margin: 0 auto;
}

.about h2 {
  color: #ff9800;
  margin-bottom: 25px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  position: relative;
  padding-bottom: 18px;
}

.about h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff9800;
  border-radius: 999px;
}

.about p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ===== GAMES ===== */
.games {
  padding: clamp(60px, 10vw, 100px) 8%;
}

.games h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #222;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.game-card {
  background: white;
  padding: 40px 25px;
  border-radius: 22px;
  text-align: center;
  transition: 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #ff9800;
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 152, 0, 0.15);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff3e0;
  font-size: 2.2rem;
  transition: 0.35s ease;
}

.game-card:hover .icon {
  background: #ff9800;
  transform: scale(1.08);
}

.game-card h3 {
  font-size: 1.1rem;
  margin-top: 18px;
  color: #333;
}

/* ===== SCHEDULE / TIMELINE ===== */
.schedule {
  padding: clamp(60px, 10vw, 100px) 8%;
  background: #fff;
}

.schedule h2 {
  text-align: center;
  margin-bottom: 60px;
  color: #222;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #ffe0b2;
}

.event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding-left: 0;
  margin-bottom: 35px;
}

.event:last-child {
  margin-bottom: 0;
}

.event-marker {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ff9800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.35);
}

.event-content {
  background: #fafafa;
  border-radius: 16px;
  padding: 20px 25px;
  flex: 1;
  transition: 0.3s;
}

.event:hover .event-content {
  background: #fff3e0;
  transform: translateX(5px);
}

.event-day {
  color: #ff9800;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-content h3 {
  margin-top: 6px;
  color: #333;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ===== CTA ===== */
.cta {
  background: #ff9800;
  color: white;
  text-align: center;
  padding: clamp(60px, 10vw, 100px) 8%;
}

.cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.cta p {
  margin-top: 12px;
  opacity: 0.9;
}

.cta button {
  margin-top: 30px;
  border: none;
  background: white;
  color: #ff9800;
  padding: 15px 34px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.3s;
}

.cta button:hover {
  background: #222;
  color: white;
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 45px 20px;
}

.site-footer img {
  width: 55px;
  margin-bottom: 12px;
}

.site-footer p {
  opacity: 0.75;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.site-footer a {
  color: #ffb84d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== SCROLL-REVEAL (paired with classmeet.js) ===== */
.game-card,
.event {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.game-card.show,
.event.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  nav {
    padding: 0 30px;
  }

  .about,
  .games,
  .schedule,
  .cta {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 18px;
    min-height: 70px;
  }

  .logo img {
    height: 42px;
  }

  .back-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .hero {
    height: 85vh;
    min-height: 420px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .game-card {
    padding: 28px 15px;
  }

  .game-card .icon {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }

  .timeline::before {
    left: 19px;
  }

  .event {
    gap: 16px;
  }

  .event-marker {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .event-content {
    padding: 16px 18px;
  }
}

@media (max-width: 380px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}
