@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;700;900&family=Urbanist:wght@300;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lexend Deca", sans-serif;
}

html {
  font-size: 62.5%;
}

body {
  background: linear-gradient(135deg, #0c0d21, #162236);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 0;
}

a {
  text-decoration: none;
  font-size: 1.4rem;
  color: #4fc3f7;
  transition: color 0.3s ease;
}

a:hover {
  color: #80deea;
}

section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  margin: 4rem auto 2rem auto;
  text-align: center;
}

input {
  width: 35rem;
  height: 5.5rem;
  padding: 1rem;
  border: none;
  border-radius: 2.5rem;
  font-size: 1.8rem;
  margin-right: 2rem;
  background-color: #1e2b3a;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.7);
}

button {
  padding: 1.4rem 3.2rem;
  font-size: 1.8rem;
  background-color: #1a73e8;
  border: none;
  color: #fff;
  border-radius: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.4);
}

button:hover {
  background-color: #4285f4;
  box-shadow: 0 6px 18px rgba(66, 133, 244, 0.6);
}

.main_container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  gap: 2.5rem;
  padding: 4rem 0;
  justify-content: center;
}

.card {
  width: 100%;
  height: 100%;
  background-color: #1f2d3d;
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 10px 25px rgba(79, 195, 247, 0.3);
}

img {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  border: 0.4rem solid rgba(79, 195, 247, 0.8);
  box-shadow: 0 4px 10px rgba(79, 195, 247, 0.5);
  margin: 0 auto 1.5rem;
  object-fit: cover;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #80deea, #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.card-body p {
  font-size: 1.5rem;
  color: #c5d6e5;
  margin: 0.6rem 0;
}

.card-body .user-stats {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 1rem;
}

.user-stats p {
  font-size: 1.4rem;
  color: #b0bec5;
}

.card-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.card-footer a {
  padding: 0.8rem 1.6rem;
  background-color: #2196f3;
  border-radius: 2rem;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.card-footer a:hover {
  background-color: #80deea;
}

.empty-msg {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  color: #ffffff;
}

hr {
  height: 0.01rem;
  border: 0.1rem solid #80deea;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  input {
    width: 28rem;
    height: 4.5rem;
    font-size: 1.6rem;
    margin-right: 1rem;
  }

  button {
    padding: 1.2rem 2.8rem;
    font-size: 1.6rem;
  }

  .main_container {
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  }

  .card {
    padding: 2rem;
  }

  .card-body h3 {
    font-size: 2rem;
  }

  .card-body p {
    font-size: 1.3rem;
  }

  .card-footer a {
    font-size: 1.3rem;
    padding: 0.6rem 1.4rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%;
  }

  input {
    width: 24rem;
    height: 4rem;
    font-size: 1.4rem;
    margin-right: 1rem;
  }

  button {
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
  }

  .main_container {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-body h3 {
    font-size: 1.8rem;
  }

  .card-body p {
    font-size: 1.2rem;
  }

  .card-footer a {
    font-size: 1.2rem;
    padding: 0.5rem 1.2rem;
  }
}