body {
  margin: 0;
  font-family: 'Sarabun', sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* ลบอนิเมชันจุดระยิบระยับบนพื้นหลังเดิมออก (เอา body::before ออกไปเลย) */

/* หน้าจอเปิด */
.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000; /* พื้นหลังดำล้วน */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-attachment: fixed;
}

/* overlay เดิมเป็น gradient ดำโปร่ง ตอนนี้ให้โปร่งใสไปเลย */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  top: 0;
  left: 0;
}

.content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 800px;
  animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* รูปภาพ */
.emblem {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  background-image: url(images/queen_sirikit.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 999px;
  filter: grayscale(100%) brightness(1.1) contrast(1.1);
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.3),
    0 0 60px rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  /* ตัดการโต้ตอบเวลา hover ด้วยการลบ transition แรง ๆ */
  transition: none;
  animation: glow 3s ease-in-out infinite alternate;
}

/* ไม่ให้เปลี่ยนตอน hover อีกต่อไป */
.emblem:hover {
  transform: none;
  filter: grayscale(100%) brightness(1.1) contrast(1.1);
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.3),
    0 0 60px rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes glow {
  0% {
    box-shadow:
      0 0 30px rgba(255, 255, 255, 0.3),
      0 0 60px rgba(255, 255, 255, 0.1),
      inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow:
      0 0 40px rgba(255, 255, 255, 0.4),
      0 0 80px rgba(255, 255, 255, 0.2),
      inset 0 0 30px rgba(255, 255, 255, 0.15);
  }
}

/* วงแหวนรอบรูป: เดิมเป็นทองหมุน ตอนนี้เปลี่ยนเป็นขาวนุ่ม ๆ ไม่ใส่อนิเมชันสีทอง */
.emblem::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  opacity: 0.8;
  /* ไม่ต้องหมุน ไม่ต้องไล่เฉด */
}

/* หัวเรื่องหลัก */
h1 {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.5;
  margin: 0;
  color: #fff; /* ไม่ใช้ทองแล้ว เป็นขาวล้วน */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  animation: none;
}

/* หัวเรื่องรอง (ถ้าเปิดใช้) */
h2 {
  font-weight: 400;
  margin: 10px 0 20px;
  line-height: 1.6;
  font-size: 1.3rem;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1.5s ease-out 0.5s both;
}

/* ข้อความย่อหน้า */
p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1.5s ease-out 1s both;
}

/* ปุ่มเข้าเว็บไซต์ */
button.enter {
  background: transparent;              /* ไม่มีกราเดียントทอง */
  border: 2px solid #fff;               /* เส้นขาว */
  color: #fff;                          /* ตัวหนังสือขาว */
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;            /* นุ่ม ๆ พอ */
  position: relative;
  overflow: hidden;
  font-family: 'Sarabun', sans-serif;
  font-weight: 500;
  text-shadow: none;                    /* ไม่ต้องใส่เงาทอง */
  animation: fadeInUp 1.5s ease-out 1.5s both;
}

/* เอาแสงทองวิ่งออก */
button.enter::before {
  content: none;
}

/* Hover ปุ่ม: แค่จางลงนิดหน่อย ไม่เปลี่ยนสีเป็นทอง */
button.enter:hover {
  background: rgba(255, 255, 255, 0.1); /* เทาอ่อนโปร่งบนดำ */
  color: #fff;
  border-color: #fff;
  transform: none;
  box-shadow: none;
}

/* เอฟเฟกต์ fade-out ตอนเปลี่ยนหน้า */
body.fade-out {
  opacity: 0;
  transition: opacity 1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content {
    padding: 15px;
    max-width: 90%;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1rem;
  }

  button.enter {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1rem;
  }
}
