@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #1c1c25;
  color: #fff;
  overflow-y: auto;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(-45deg, #1c1c25, #2c2c38, #1a1a24, #101018);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  z-index: -1;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 400px;
}

.face {
  width: 100%;
  border-radius: 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.face h3 {
  font-weight: 500;
  font-size: 22px;
  margin-top: 10px;
  color: #ffffffcc;
}

.profile-photo {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
}

.icon-content {
  margin-top: 20px;
  padding: 0 10px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 1.2rem;
  word-wrap: break-word;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  transition: transform 0.3s ease;
}

.grid-item :hover {
  transform: scale(1.2);
}

.grid-item a {
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.grid-item i {
  font-size: 18px;
  margin-bottom: 5px;
  color: inherit;
}

.grid-item h5 {
  font-size: 11px;
  font-weight: 400;
  color: #ccc;
  text-align: center;
  word-break: break-word;
}

.svg-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 5px;
  filter: invert(100%);
  object-fit: contain;
}

.svg-icon-accredible {
  width: 22px;
  height: 22px;
  margin-bottom: 5px;
  object-fit: contain;
}
/* Cybrary fix specifically */
.grid-item img[alt="Cybrary"] {
  width: 70px;
  height: auto;
  filter: none;
  margin-bottom: -2px;
}

.geeksforgeeks-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mirrored1, .mirrored2 {
  height: 19px;
}

.mirrored1 {
  transform: scaleX(-1);
}

.mirrored2 {
  transform: scaleX(1);
}

@media (max-width: 420px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .face {
    padding: 15px;
  }
  .profile-photo {
    width: 140px;
    height: 140px;
  }
}
