/*  RESET  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
  background: #f4f4f8;
  /* padding-top: 56px; */
}

/* TOP NAV BAR*/
/* .top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  background: rgba(30, 15, 60, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 181, 253, 0.15);
} */

.nav-brand {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: #fff;
  text-shadow:
    0 0 4px #6a0000,
    0 0 20px #d0aaff,
    0 0 6px #a64dff;
  letter-spacing: 0.02em;
  user-select: none;
}

/* OVERLAY MENU*/
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: opacity;
  transform: translateZ(0);
}

.nav-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 5, 32, 0.97);
  z-index: -1;
}

.nav-overlay.open {
  pointer-events: all;
  opacity: 1;
}

/* Big "25Tiko" text inside overlay */
.overlay-brand {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(3rem, 15vw, 8rem);
  color: #fff;
  text-shadow:
    0 0 8px #6a0000,
    0 0 40px #d0aaff,
    0 0 16px #a64dff;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  user-select: none;
}

.nav-overlay.open .overlay-brand {
  opacity: 1;
  transform: translateY(0);
}

/* Nav links list */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 340px;
}

.nav-links li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  width: 100%;
}

.nav-overlay.open .nav-links li:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.18s;
}

.nav-overlay.open .nav-links li:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.26s;
}

.nav-overlay.open .nav-links li:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.34s;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  border-radius: 16px;
  border: 1.5px solid rgba(196, 181, 253, 0.2);
  background: rgba(166, 77, 255, 0.1);
  color: #e8d5ff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.nav-links a:hover {
  background: rgba(166, 77, 255, 0.28);
  border-color: rgba(196, 181, 253, 0.5);
  transform: scale(1.03);
  color: #fff;
}

/* .nav-icon {
  font-size: 1.4rem;
} */

/*HAMBURGER BUTTON — fixed bottom-right*/
.hamburger-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 1100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #a64dff;
  box-shadow:
    0 0 0 4px rgba(166, 77, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.hamburger-btn:hover {
  background: #8b2fe8;
  transform: scale(1.08);
  box-shadow:
    0 0 0 6px rgba(166, 77, 255, 0.3),
    0 12px 32px rgba(0, 0, 0, 0.5);
}

.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    opacity 0.2s ease,
    width 0.3s ease;
  transform-origin: center;
}

/* X state */
.hamburger-btn.open .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.open .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger-btn.open .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

#podium,
#class-section,
#client {
  scroll-margin-top: 300px;
}

.lang-switcher {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.lang-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(196, 181, 253, 0.3);
  background: rgba(166, 77, 255, 0.1);
  color: #e8d5ff;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.lang-btn:hover {
  background: rgba(166, 77, 255, 0.28);
  border-color: rgba(196, 181, 253, 0.5);
  transform: scale(1.08);
  color: #fff;
}

.lang-btn.active {
  background: #a64dff;
  border-color: #a64dff;
  color: #fff;
}

/*  HERO  */
.hero {
  position: relative;
  min-height: 100vh;
  background: #3c287f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 60px 60px, 30px 30px;
  background-position: 0 0, 15px 15px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  max-width: 500px;
  padding: 40px 20px;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #fff;
}



.glow {
  text-shadow:
    0 0 4px #e4d9e7,
    0 0 20px #d0aaff,
    0 0 6px #a64dff;
}

.hero-poster {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(196, 181, 253, 0.85);
  line-height: 1.5;
  margin-top: 30px;
  margin-bottom: 30px;
}

.poster-frame {
  border-radius: 16px;
  border: 3px solid rgba(196, 181, 253, 0.5);
  box-shadow:
    0 0 40px rgba(167, 139, 250, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: floatPoster 6s ease-in-out infinite;
}

.poster-frame img {
  width: 100%;
  display: block;
}

@keyframes floatPoster {

  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/*  FADE-IN  */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

.fade-in:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*  CLASS SELECT  */
.Class-Select {
  background: transparent;
  padding: 0 20px 60px;
  position: relative;
}

.Class-Select h2 {
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #3c287f;
  padding-top: 40px;
  margin-bottom: 0;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding-top: 200px;
}

/* Hanging buttons */
.hanging-btn {
  position: relative;
}

.hanging-btn::before,
.hanging-btn::after {
  content: "";
  position: absolute;
  top: -201px;
  width: 4px;
  height: 201px;
  z-index: 2;
  background: repeating-linear-gradient(45deg,
      #8b5a2b, #8b5a2b 4px,
      #a47148 4px, #a47148 8px);
  border-radius: 2px;
}

.hanging-btn::before {
  left: 42px;
}

.hanging-btn::after {
  right: 42px;
}

.hanging-btn button::before,
.hanging-btn button::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 8px;
  height: 8px;
  background: #444;
  border-radius: 50%;
  z-index: 1;
}

.hanging-btn button::before {
  left: 40px;
}

.hanging-btn button::after {
  right: 40px;
}

.hanging-btn button {
  position: relative;
  width: 200px;
  background: #6043c1;
  background-image: linear-gradient(to bottom right, #6043c1, #471467);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

}

.hanging-btn span {
  font-size: 14px;
  opacity: 0.8;
}

/* GAME SECTION*/
.game-section {
  background: #efecec;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.game-section.open {
  max-height: 9999px;
  padding: 40px 16px 60px;
}


/* GAME CARD */
.game-card {
  background: #1e1b2f;
  border-radius: 18px;
  width: 100%;
  max-width: 100%;
  padding: 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

/* Game poster image */
.game-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #0d0b1a;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* Creator tag */
.game-creator {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(196, 181, 253, 0.75);
  background: rgba(166, 77, 255, 0.15);
  border: 1px solid rgba(166, 77, 255, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.game-name {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 0 6px #d0aaff;
}

.game-desc {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 14px;
  color: #ccc;
  line-height: 1.55;
  flex: 1;
}

.game-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

/* BUTTONS  */
.trailer-btn,
.team-btn,
.download-btn {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  transition: background 0.25s, transform 0.15s;
  display: block;
  text-align: center;
}

.trailer-btn {
  background: #e53e3e;
  letter-spacing: 0.02em;
}

.trailer-btn:hover {
  background: #c53030;
  transform: scale(1.03);
}

.team-btn {
  background: #4f46e5;
}

.team-btn:hover {
  background: #3730a3;
}

.download-btn {
  background: #10b981;
}

.download-btn:hover {
  background: #047857;
}

/* WINNER PODIUM*/
.podium-section {
  background: #3c287f;
  color: white;
  padding: 60px 10px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
  margin-top: 300px;
}

.podium-title {
  font-family: 'Fredoka One', cursive;
  font-size: 50px;
  margin-bottom: 120px;
  text-shadow: 0 0 10px #d0aaff;
}

.podium-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 80px;
}

.podium-card {
  border-radius: 0;
  flex: 1;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  position: relative;
}

/* .podium-card:hover {
  transform: translateY(-8px);
} */

.podium-card::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
}

.first {
  height: 160px;
  background: #a64dff;
}

.second {
  height: 120px;
  background: #8b5aef;
}

.third {
  height: 90px;
  background: #7c3aed;
}

.first::before {
  border-bottom: 16px solid #a64dff;
}

.second::before {
  border-bottom: 16px solid #8b5aef;
}

.third::before {
  border-bottom: 16px solid #7c3aed;
}

.podium-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d1b69;
}

.podium-card .emoji {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.podium-card .game-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

/*CLIENTS / SPONSORS*/
.clients-section {
  background: #f8fafc;
  padding: 5rem 1.5rem 4.5rem;
  overflow: hidden;
}
.logos-track-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 150px;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.logos-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
.logo-card {
  flex-shrink: 0;
  width: 160px;
  height: 90px;
  background: white;
  border-radius: 12px;
  border: 1.5px solid rgba(167, 139, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  flex-direction: column;
  gap: 0.35rem;
}



.logo-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.04em;
}

.logo-card img {
  width: 150px;
  height: 100px;
  object-fit: contain;
}

/* FOOTER*/
.footer {
  background: #0f0520;
  color: rgba(196, 181, 253, 0.6);
  text-align: center;
  margin-top: 150px;
  padding: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* RESPONSIVE — TABLET (640px+)*/
@media (min-width: 640px) {
  .game-card {
    width: calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .game-img {
    height: 240px;
  }

  #podium,
  #class-section,
  #client {
    scroll-margin-top: 300px;
  }
}

/* RESPONSIVE — TABLET LARGE (768px+)*/
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    max-width: 900px;
    gap: 60px;
    padding: 60px 40px;
  }

  .hero-text {
    flex: 1;
  }

  .hero-poster {
    flex: 0 0 auto;
    width: 320px;
    max-width: 320px;
    margin: 0;
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .button-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    padding-top: 220px;
  }

  .hanging-btn::before,
  .hanging-btn::after {
    top: -220px;
    height: 220px;
  }

  .hanging-btn button {
    width: 220px;
    padding: 18px;
    font-size: 16px;
  }

  .podium-card {
    max-width: 160px;
    padding: 10px 8px 20px;
  }

  .first {
    height: 200px;
  }

  .second {
    height: 160px;
  }

  .third {
    height: 120px;
  }

  .podium-icon {
    width: 72px;
    height: 72px;
    top: -84px;
  }

  .podium-card .game-name {
    font-size: 0.95rem;
  }

  .logo-card {
    width: 200px;
    height: 100px;
  }

  .hamburger-btn {
    bottom: 36px;
    right: 36px;
    width: 62px;
    height: 62px;
  }

  .nav-links {
    max-width: 420px;
    gap: 20px;
  }

  .nav-links a {
    font-size: 1.5rem;
    padding: 20px 32px;
  }

  #podium,
  #class-section,
  #client {
    scroll-margin-top: 300px;
  }
}

/* RESPONSIVE — DESKTOP (1024px+)*/
@media (min-width: 1024px) {
  .hero-content {
    max-width: 1100px;
    gap: 80px;
  }

  .hero-title {
    font-size: 90px;
  }

  .hero-poster {
    width: 380px;
    max-width: 380px;
  }

  .button-wrapper {
    gap: 80px;
    padding-top: 240px;
  }

  .hanging-btn::before,
  .hanging-btn::after {
    top: -240px;
    height: 240px;
  }

  .hanging-btn button {
    width: 240px;
    padding: 20px;
    font-size: 18px;
  }

  .game-card {
    width: calc(33.333% - 16px);
    max-width: 380px;
  }

  .game-img {
    height: 260px;
  }

  .podium-card {
    width: 120px;
    font-size: 1rem;
  }

  .logo-card {
    width: 240px;
    height: 110px;
  }

  .logos-track {
    gap: 2rem;
  }

  #podium,
  #class-section,
  #client {
    scroll-margin-top: 40px;
  }
}

/* RESPONSIVE — WIDE DESKTOP (1440px+)*/
@media (min-width: 1440px) {
  .hero-content {
    max-width: 1300px;
    gap: 100px;
  }

  .hero-title {
    font-size: 120px;
  }

  .hero-poster {
    width: 500px;
    max-width: 500px;
  }

  .button-wrapper {
    gap: 100px;
    padding-top: 260px;
  }

  .hanging-btn::before,
  .hanging-btn::after {
    top: -260px;
    height: 260px;
  }

  .hanging-btn button {
    width: 260px;
    padding: 22px;
    font-size: 20px;
  }

  .game-section {
    gap: 30px;
  }

  .game-card {
    width: calc(33.333% - 20px);
    max-width: 420px;
  }

  .game-img {
    height: 280px;
  }

  .podium-card {
    width: 140px;
    font-size: 1.1rem;
  }

  .logo-card {
    width: 280px;
    height: 120px;
  }

  .logos-track {
    gap: 2.5rem;
  }

  #podium,
  #class-section,
  #client {
    scroll-margin-top: 40px;
  }
}