body {
  margin: 0;
  font-family: "Prompt", sans-serif;
  background: url("https://i.postimg.cc/vmN4JtJT/IMG-20251019-230030.jpg") center/cover no-repeat fixed;
  color: #333;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}

body.loaded {
  opacity: 1;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 100, 150, 0.3);
  border: 6px solid white;
  background: #ffd6eb;
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* คิตตี้เกาะโปรไฟล์ */
.kitty {
  position: absolute;
  width: 70px;
  bottom: -5px;
  right: -55px;
  transform: rotate(-10deg);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-6px) rotate(-8deg); }
  100% { transform: translateY(0) rotate(-10deg); }
}

.intro {
  text-align: center;
}

.intro h1 {
  font-size: 24px;
  color: #FFD700;
  margin: 0;
}

.intro p {
  color: #FFD700;
  margin: 5px 0;
  position: relative;
}

.kitty3 {
  position: absolute;
  width: 80px;
  height: auto;
  top: 20%; 
  right: 10%; 
  transform: rotate(-10deg);
  z-index: 999;
  animation: floatJump 10s ease-in-out infinite;
}

/* รวมลอย + กระโดดในอันเดียว */
@keyframes floatJump {
  0%, 20% {
    transform: translateY(0) rotate(-10deg) scale(1);
    opacity: 0.9;
  }

  30% {
    transform: translateY(-10px) rotate(-8deg) scale(1.05);
  }

  40% {
    transform: translateY(-15px) rotate(-6deg) scale(1.08);
  }

  /* กระโดดช่วงกลาง */
  50% {
    transform: translateY(-45px) rotate(-5deg) scale(1.12);
  }

  60% {
    transform: translateY(-15px) rotate(-8deg) scale(1.05);
  }

  80%, 100% {
    transform: translateY(0) rotate(-10deg) scale(1);
    opacity: 0.9;
  }
}

.intro p {
  position: relative;
  }


/* คิตตี้เด้ง */
.kitty2 {
  position: absolute;
  width: 200px;
  height: auto;
  bottom: 40px;
  right: 90px;
  z-index: 10;
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}

.jump {
  animation: jumpKitty 0.8s ease;
}

@keyframes jumpKitty {
  0% { transform: translateY(0) rotate(-10deg); }
  30% { transform: translateY(-40px) rotate(-5deg); }
  60% { transform: translateY(-40px) rotate(-5deg); }
  100% { transform: translateY(0) rotate(-10deg); }
}
 .contact-links {
  position: relative;
  }

.kitty4 {
  position: absolute;
  width: 55px;
  top: 147px;
  left: -120px; /* เริ่มจากนอกจอฝั่งซ้าย */
  animation: loopout 5s linear infinite; /* วิ่งวนเรื่อย ๆ */
}

/* สร้าง animation ใหม่ */
@keyframes loopout {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(120vw); /* วิ่งเลยจอขวา */
  }
    }
    

/* Section about */
.about {
  background: url("https://i.postimg.cc/85rLtzyV/oc7-Kf-PDf-SODFr-F2c-VOpe-VAk-WAINf-ID6-QAAnn-E9-tplv-tej9nj120t-wap-logo-QGVsa-XNhcm9kcmlnd-WVz-1080-0.webp") center/cover no-repeat;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(255, 111, 147, 0.2);
  padding: 20px;
  margin-top: 20px;
  border: 2px solid #ffe0ed;
  color: #55283b;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 240, 247, 0.7);
  z-index: 0;
  border-radius: 20px;
}

.about h2,
.about p {
  position: relative;
  z-index: 1;
}

/* Section portfolio */
.portfolio {
  background: url("https://i.postimg.cc/85rLtzyV/oc7-Kf-PDf-SODFr-F2c-VOpe-VAk-WAINf-ID6-QAAnn-E9-tplv-tej9nj120t-wap-logo-QGVsa-XNhcm9kcmlnd-WVz-1080-0.webp") center/cover no-repeat;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(255, 111, 147, 0.2);
  padding: 20px;
  margin-top: 20px;
  border: 2px solid #ffe0ed;
  color: #55283b;
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 240, 247, 0.7);
  z-index: 0;
  border-radius: 20px;
}

.portfolio h2,
.portfolio p,
.portfolio h3 {
  position: relative;
  z-index: 1;
}

h2 {
  color: #e94e77;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(255, 150, 180, 0.2);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Contact links */
.contact-links {
  margin-top: 30px;
  text-align: center;
}

.contact-links a {
  display: inline-block;
  background: #ff8fb1;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  padding: 10px 20px;
  border-radius: 21px;
  margin: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 100, 150, 0.3);
  text-decoration: none;
}

.contact-links a:hover {
  background: #e94e77;
  transform: translateY(-3px);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 30px;
  color: #a35577;
  font-size: 14px;
}