@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&display=swap');
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  outline: none;
}

:root {
  --card-shadow: 0 0 8rem rgba(220, 234, 255, 0.183);
  --popup-shadow: 0 0 2rem rgba(0, 0, 0, 0.183);
  --text-dark: #080809;
  --text-light: #84829a;
  --icon-bg: #f5f5f5;
  --white: #fff;
  --progress-bg: #f5f5f5;
  --progress-fill-bg: #4475f2;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  text-rendering: optimizeLegibility;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(18, 3, 62);
}

.heading {
  color: var(--text-dark);
  font-size: 1.8rem;
  font-weight: 800;
}

.subheading,
.card-footer {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.6rem;
}

.card {
  max-width: 40rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 2.6rem;
  box-shadow: var(--card-shadow);
}

.card-image {
  height: 17rem;
}

.card-image .card-img {
  object-fit: contain;
  height: 100%;
}

.card-details {
  padding: 2rem 0;
}

.card-details .subheading {
  padding: 2rem 0;
  display: inline-flex;
}

.card-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.card-icon {
  width: 4rem;
  height: 4rem;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.card-icon img {
  width: 2rem;
}

.card-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card-footer {
  display: flex;
  gap: 1rem;
  flex: 90%;
  align-items: center;
}

.card-footer img {
  width: 1.8rem;
}

.popup-btn {
  position: relative;
}

.popup-btn > img {
  cursor: pointer;
}

.popup {
  position: absolute;
  top: -10rem;
  left: -11rem;
  padding: 1rem;
  width: 25rem;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--popup-shadow);
  display: flex;
  align-items: center;
  transition: all 1s ease;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at 50% 100%);
}

.popup-btn:hover .popup {
  transform: translateY(-1rem);
  opacity: 1;
  visibility: visible;
  clip-path: circle(100% at 50% 100%);
}

.popup-image {
  width: 5rem;
  height: 5rem;
}

.popup-image img {
  width: 100%;
  object-fit: contain;
}

.popup-details .heading {
  padding: 0.5rem 0;
}

.progress-title {
  padding: 0 0 0.5rem 0;
  font-weight: 500;
}

.progress-title span {
  color: var(--progress-fill-bg);
}

.progress {
  position: relative;
  background: var(--progress-bg);
  height: 0.5rem;
  width: 100%;
  border-radius: 1rem;
}

.progress::before {
  position: absolute;
  content: '';
  left: 0;
  width: 40%;
  height: 100%;
  background: var(--progress-fill-bg);
  border-radius: inherit;
}
