@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
:root {
  --clr-1: #010c3f;
  --clr-2: #000425b9;
  --clr-3: #0828df;
  --clr-4: #b60606;
  --clr-5: #0828df;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-image: url(imgs/back8.avif);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  color: white;
}
header {
  background: var(--clr-2);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
header span {
  font-size: 1rem;
  font-weight: bold;
}
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.card {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 2 / 3;
  border-radius: 0.5rem;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  inset: -0.5rem;
  z-index: 0;
  background: conic-gradient(
    from var(--gradient-angle),
    var(--clr-3),
    var(--clr-4),
    var(--clr-5),
    var(--clr-4),
    var(--clr-3)
  );
  border-radius: inherit;
  animation: rotation 10s linear infinite;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(8, 40, 223, 0.5);
  transition: all 0.3s ease;
}

.card::after {
  filter: blur(3.5rem);
}

.card-content {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  background: var(--clr-1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  height: 100%;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.p_i {
    border-radius: 50%;
    border: 4px solid transparent;
    background:
        linear-gradient(var(--clr-4), var(--clr-5)) border-box;
    padding: 4px;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    object-fit: cover;
    animation: pulse 10s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px #b60606; }
  50% { box-shadow: 0 0 20px #0828df; }
}

.card-content h2,
.card-content p {
  color: white;
  margin: 0.3rem 0;
}

footer {
  background: #111;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

@keyframes rotation {
  0% {
    --gradient-angle: 0deg;
  }
  50% {
    --gradient-angle: 180deg;
  }
  100% {
    --gradient-angle: 360deg;
  }
}

.thm {
 margin-top: 5%;
 width: 100%;
 height: auto;
}

.thm-image {
  width: 100%;
}

/* Responsiveness */
@media (max-width: 480px) {
  header {
    text-align: center;
  }
  .thm-image {
	  width: 98%;
  }

  .card {
    max-width: 90vw;
    padding: 0.1rem;
  }
  .card-content {
    padding: 1rem;
  }
}

span {
  color: gray;
}

a {
  text-decoration: none;
}

span:hover {
  color: white;
  text-shadow:
    0 0 5px rgb(6, 0, 59),
    0 0 10px rgb(0, 2, 110),
    0 0 20px rgb(0, 10, 146),
    0 0 30px rgb(0, 21, 211)
}

.icon {
  width: 50px;
  height: 50px;
  background: black;
  animation: rotation 6s linear infinite;
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: transform 0.2s;
}

.icon:hover {
  transform: scale(1.1);
  background-color: rgb(63, 64, 156);
  text-shadow:
    0 0 5px rgb(6, 0, 59),
    0 0 10px rgb(0, 2, 110),
    0 0 20px rgb(0, 10, 146),
    0 0 30px rgb(0, 21, 211)
}

.icons {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
}

.badge {
  background: #0a0a2a;
  color: #fff;
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  margin: 0.2rem;
  display: inline-block;
}

.badge.mid { background: #1e3aad; }
.badge.low { background: #3a3a3a; }
.badge.learning { background: #b60606; }