@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

body {
  background-color: #321332;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  font-family: sans-serif;
  overflow-y: auto;
  padding: 65px;
  animation: fadein 0.6s ease-in;
}

#card {
  background-color: #5a1f5a;
  border-radius: 24px;
  padding: 60px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
}

#IntroCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 260px;
  gap: 14px;
  position: sticky;
  top: 0;
}

#IntroCard img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

#IntroCard h2 {
  color: #e87de8;
  font-size: 1.5rem;
}

#right {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 24px;
  background-color: #4a194a;
  border-radius: 16px;
  padding: 30px;
}

#aboutme {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#aboutme h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 6px;
}

#aboutme h2 {
  color: white;
  font-size: 1.6rem;
  margin-top: 8px;
}

#aboutme h3 {
  color: #e87de8;
  font-size: 1.3rem;
  margin-top: 8px;
}

#aboutme p {
  color: white;
  font-size: 1.1rem;
  line-height: 1.7;
}

#aboutme em {
  color: white;
  font-size: 1.1rem;
  line-height: 1.7;
}

#aboutme ul {
  color: white;
  font-size: 1.1rem;
  line-height: 1.8;
  padding-left: 20px;
}

.btn-social {
  display: inline-block;
  padding: 14px 18px;
  background-color: #7a2f7a;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.btn-social:hover {
  background-color: #9a3f9a;
}

.btn-social img {
  width: 32px;
  height: 32px;
  display: block;
  filter: invert(1);
}

.btn-about {
  display: block;
  padding: 22px;
  background-color: #f06ab0;
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.2s;
}

.btn-about:hover {
  background-color: #e055a0;
}

.paw {
  position: fixed;
  width: 60px;
  opacity: 0.15;
  pointer-events: none;
}

#credit em {
  color: #b080b0;
  font-size: 1rem;
  line-height: 1.6;
}

.p1 { top: 8%;    left: 4%;   transform: rotate(15deg); }
.p2 { top: 20%;   right: 5%;  transform: rotate(-40deg); }
.p3 { bottom: 15%; left: 7%;  transform: rotate(75deg); }
.p4 { bottom: 10%; right: 10%; transform: rotate(-20deg); }
.p5 { top: 13%;   right: 7%;  transform: rotate(6deg); }
.p6 { top: 55%;   left: 29%;  transform: rotate(-61deg); }
.p7 { top: 80%;   right: 14%; transform: rotate(122deg); }
.p8 { top: 30%;   left: 7%;   transform: rotate(-60deg); }
.p9 { top: 2%;    right: 6%;  transform: rotate(88deg); }
.p0 { top: 40%;   left: 19%;  transform: rotate(-156deg); }

@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  #card {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }

  #IntroCard {
    flex: unset;
    width: 100%;
    position: static;
  }

  #IntroCard img {
    width: 130px;
    height: 130px;
  }

  #IntroCard h2 {
    font-size: 1.2rem;
  }

  #aboutme h1 {
    font-size: 2rem;
  }

  #aboutme h2 {
    font-size: 1.3rem;
  }

  #aboutme h3 {
    font-size: 1.1rem;
  }

  #aboutme p,
  #aboutme em,
  #aboutme ul {
    font-size: 1rem;
  }

  .btn-about {
    padding: 16px;
    font-size: 1.1rem;
  }

  .paw {
    width: 30px;
  }

  .btn-social img {
    width: 16px;
    height: 16px;
  }
}
