/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cosmic Sans MS', cursive, sans-serif;
  background: radial-gradient(circle, #0f2027, black, black);
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

.navbar {
  display: flex;
  justify-content: center;
  padding: 15px;
  background-color: #1c2833;
  border-bottom: 2px solid #34495e;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-link {
  text-decoration: none;
  color: #f39c12;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 15px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #d35400;
}

.container {
  text-align: center;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
}

h1 {
  font-size: 1rem;
  color: #f1c40f;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Contributor Card Grid */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px;
}

/* Contributor Card Styling */
.contributor-card {
  background: linear-gradient(145deg, #1f2c34, #2d3b44);
  color: #e1e8eb;
  border-radius: 20px;
  padding: 25px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: pulse 1.5s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contributor-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #f39c12;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contributor-card h3 {
  font-size: 1.6rem;
  margin: 15px 0;
  font-weight: 600;
  color: #f1c40f;
}

.contributor-card a {
  display: block;
  margin: 10px 0;
  color: #1abc9c;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contributor-card a:hover {
  color: #16a085;
  text-decoration: underline;
}

/* Certificate Button */
.contributor-card button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #f39c12;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contributor-card button:hover {
  background-color: #d35400;
  transform: scale(1.05);
}

/* Scroll Button */
#scrollBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #1abc9c;
  color: rgb(247, 242, 242);
  border: none;
  border-radius: 50%;
  padding: 15px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollBtn:hover {
  background-color: #000;
  transform: scale(1.2);
}

/* Pulse Effect */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.15);
  }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .contributors-grid {
    gap: 15px;
  }
}

/* Responsive Design for Large Screens */
@media (min-width: 1024px) {
  .contributors-grid {
    gap: 30px;
  }

  h1 {
    font-size: 3rem;
  }
}