@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0f0f0f;
    color: #ffffff;
    opacity: 0;
}

.header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #222;
}

.logo-img {
    width: 250px;
    margin-bottom: 5px;
}

.slogan {
    color: #aaa;
}


.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

.card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.card h2 {
    font-size: 1.2rem;
}

.card:hover {
    transform: translateY(0);
    background: #222;
    box-shadow: 0 0px 15px rgba(255,255,255,0.1);
}

.card-link {
    text-decoration: none;
    color:#aaa;
}

.card-link:hover h2 {
    color: #ccc;
    font-size: 1.4rem;
}

.play-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
}

.play-btn:hover {
  background: #d9d9d9;
  transform: translateY(-2px);
}

.badge {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background: white;
    color: black;
    border-radius: 8px;
    font-size: 0.8rem;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    display:flex;
    flex-direction: column;
    align-items:center;
    gap: 8px;
    color: #777;
}


body.loaded {
    opacity: 1;
    transition: opacity 0.6s ease;
}


body.loaded .card {
    opacity: 1;
    transform: translateY(0);
    transition: 0.6s ease;
}


body.loaded .card:nth-child(1) {transition-delay: 0.2s; }
body.loaded .card:nth-child(2) {transition-delay: 0.4s; }
body.loaded .card:nth-child(3) {transition-delay: 0.6s; }

/* ===== NAVBAR ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 20px;
}

/* left side (logo) */
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  width: 28px;
  height: 28px;
}

.nav-title {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
}

/* links */
.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #bbbbbb;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
  transition: 0.25s ease;
}

.nav a:hover {
  color: #ffffff;
  background: #1f1f1f;
}

/* underline animation */
.nav a::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 2px;
  width: calc(100% - 16px);
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: #ffffff;
}

/* mobile */
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    gap: 8px;
  }

  .nav-links {
    justify-content: center;
  }
}


/*phones*/
@media (max-width: 480px) {
    body {
        padding: 0.5rem;

    }
    .logo-img {
        width: 160px;
    }

    .container {
        padding: 10px;
        gap: 15px;
    }

    .card {
        padding: 1rem;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/*tablets*/
@media (max-width: 900px) and (min-width: 481px) {
    .container {
        padding: 15px;
        gap: 18px;
        max-width: 900px;
    }

    .card {
        padding: 1.2rem;
    }

    .card h2 {
        font-size: 1.2rem;
    }
}

/*desktop scaling*/
@media (min-width: 901px) {
    .card h2 {
        font-size: 1.3rem;
    }
}
