/* === General Body Styling === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: white;
}

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background-color: rgba(0, 0, 0, 0.3);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: #2ef8f8;
}

.logo a {
  color: #2ef8f8;
  text-decoration: none;
}

.logo a:hover {
  color: white;
}

nav a {
  color: #ccc;
  margin-left: 24px;
  text-decoration: none;
}

nav a:hover {
  color: white;
}

.button-home {
  border: 1px solid #2ef8f8;
  color: #2ef8f8;
  padding: 8px 16px;
  border-radius: 5px;
  background: transparent;
  margin-left: 32px;
}

/* === Title & Filters === */
.title {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 60px;
  margin-bottom: 16px;
  padding-top: 50px;
}

.filter-buttons {
  text-align: center;
  margin-bottom: 32px;
}

.filter-buttons button {
  background-color: #333;
  color: #2ef8f8;
  border: none;
  padding: 8px 16px;
  margin: 0 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 25px;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background-color: #2ef8f8;
  color: #000;
}

/* === Grid & Cards === */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 10px 200px 100px;
  justify-content: center;
}

.card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid white;
  text-align: center;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-weight: bold;
  margin: 12px 0;
  padding: 0 16px;
}

.card-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px;
}

.card-buttons a {
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  background-color: #a259ff;
  color: white;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 32px;
  font-size: 12px;
  color: #888;
}

/* === Filter Label Font Color === */
.filter-font {
  color: #2ef8f8;
}

/* === Particle Background === */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}


.grid:has(.card:only-child) {
  justify-content: center;
}

/* === Responsive Styles === */

/* Medium Devices (Tablets) */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 50px 100px;
  }

  .filter-buttons button {
    font-size: 24px;
    margin: 6px;
  }

  .title {
    font-size: 50px;
  }
}

/* Small Devices (Mobile Phones) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  nav a, .button-home {
    margin: 8px;
    font-size: 14px;
  }

  .title {
    font-size: 36px;
    padding-top: 20px;
  }

  .filter-buttons button {
    font-size: 20px;
    padding: 6px 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 10px 20px 80px;
  }

  .card img {
    height: 160px;
  }

  .card-buttons a {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Extra Small Devices (Very narrow screens) */
@media (max-width: 480px) {
  .title {
    font-size: 28px;
  }

  .filter-buttons button {
    font-size: 16px;
  }

  .card-title {
    font-size: 14px;
  }
}
