.top h1 {
  text-align: center;
  font-size: 2.5em;
  color: #cd0909;
  margin-top: 20px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0d0d0d;
  color: #f5f5f5;
  scroll-behavior: smooth;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #111;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar a {
  color: #cd0909;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #798988;
}

.category {
  padding: 50px 20px;
  text-align: center;
}

.category h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #d8e8e6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  position: relative;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s;
}

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

.card img {
  width: 300px;       /* fixed width */
  height: 350px;      /* fixed height */
  object-fit: cover;  /* crops edges, keeps ratio */
  display: block;
  margin: 0 auto;     /* center the image inside card */
  padding-top: 20px;
  border-radius: 20%;
}

.info {
  padding: 15px;
}

.info h3 {
  margin: 0;
  font-size: 1.2em;
  color: #cd0909;
}

.info p {
  margin: 5px 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 20px;
  font-size: 0.9em;
}

.card:hover .overlay {
  opacity: 1;
}

.back-to-top {
  display: block;
  margin: 30px auto;
  width: fit-content;
  padding: 10px 20px;
  background: #cd0909;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.back-to-top:hover {
  background: #2f1d86;
  color: #000;
}

.footer {
  background-color: #111;
  color: #f5f5f5;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 2px solid #ff007f;
  font-size: 0.9em;
}

.footer p {
  margin: 5px 0;
}


@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    gap: 10px;
  }
}