@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(-45deg, #fbc2eb, #a6c1ee, #84fab0, #8fd3f4);
  background-size: 400% 400%;
  animation: bgAnim 25s ease infinite;
  color: #fff;
}

@keyframes bgAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 2.8rem;
  color: #fff;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
}

/* Main layout */
#main {
  display: flex;
  max-width: 1400px;
  margin: 0 auto 60px auto;
  gap: 20px;
  padding: 0 16px;
}

/* Sidebar panel */
#sidebar {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

#sidebar h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

#sidebar button {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

#sidebar button:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Tools Grid */
#tools {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Download cards */
.card {
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  backdrop-filter: blur(6px);
}

.card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.card p {
  font-size: 1rem;
  margin-bottom: 12px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Card footer: download button + counter */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-btn {
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.download-btn:hover {
  transform: scale(1.12);
  background: linear-gradient(135deg, #42e695, #3bb2b8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.counter {
  background: rgba(255, 255, 255, 0.9);
  color: #ff3d00;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 42px;
  text-align: center;
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Date & visitor */
#dateTime,
#visitorCount {
  position: fixed;
  top: 12px;
  right: 16px;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

#visitorCount {
  top: auto;
  bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  #main {
    flex-direction: column;
  }
  #tools {
    grid-template-columns: 1fr;
  }
}
