@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Anuphan';
  src: url('../fonts/Anuphan-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}
/* เพิ่ม @font-face สำหรับน้ำหนักอื่นๆ ตามที่คุณมี */

body {
  font-family: 'Anuphan', sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s, color 0.4s;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.footer {
  text-align: center;
  font-size: 0.875rem;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.theme-dark .navbar {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.theme-dark .footer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo {
  height: 2rem;
  width: 2rem;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.theme-btn {
  padding: 0.3rem 0.6rem;
  font-size: 1.25rem;
  border-radius: 0.375rem;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
}

.theme-dark .theme-btn {
  border-color: #ffffff;
  color: #ffffff;
}

.main-section {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-img {
  max-width: 220px;
  margin: 1rem auto;
}

.desktop-menu {
  display: flex;
  gap: 1rem;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.theme-dark .mobile-menu {
  background-color: rgba(0, 0, 0, 0.6);
}

.hamburger {
  display: none;
  font-size: 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  .hamburger {
    display: inline-block;
  }
}

.theme-light {
  background-color: white;
  color: #1f2937;
}
.theme-dark {
  background-color: #000;
  color: white;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

.mobile-menu a {
  transition: all 0.3s ease-in-out;
  padding: 0.4rem 0;
}

.mobile-menu a:hover {
  transform: translateX(6px);
  opacity: 0.9;
}

.hidden {
  display: none !important;
}

/* Ensure hamburger (heroicon) and close icons adopt theme color */
.hamburger .icon,
#hamburger-btn .icon {
  stroke: currentColor;
  fill: currentColor;
  color: inherit;
}

/* Ensure hamburger (bars) and close (X) icons adapt to theme color */
.hamburger {
  color: inherit !important;
}

/* Also target the button by id */
#hamburger-btn {
  color: inherit !important;
}

/* Hamburger and close icons inherit theme color */
.hamburger,
#hamburger-btn {
  color: inherit;
}
/* Ensure correct icon color per theme */
.theme-light .hamburger,
.theme-light #hamburger-btn {
  color: #1f2937;
}
.theme-dark .hamburger,
.theme-dark #hamburger-btn {
  color: #ffffff;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}
.contact-form label {
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid currentColor;
  border-radius: 0.375rem;
  background: transparent;
  color: inherit;
}
.contact-form .submit-btn {
  margin-top: 0.5rem;
  padding: 0.6rem;
  border: none;
  border-radius: 0.375rem;
  background-color: currentColor;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}
.contact-form .submit-btn:hover {
  background-color: #555;
}

.linktree-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}
.link-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px;
  margin: 10px 0;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: black;
  font-weight: 500;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.2s;
  min-width: 210px;
  font-size: 1.1rem;
  text-align: left;
}
.link-box:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}
.theme-dark .link-box {
  background: #1a1a1a;
  color: white;
}
.theme-dark .link-box:hover {
  background: #2a2a2a;
}

.desktop-menu a,
.mobile-menu a {
  position: relative;
  transition: color 0.2s;
}

.desktop-menu a::after,
.mobile-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #ff4d1c;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(.4,2,.6,1);
  transform-origin: left;
  opacity: 0.7;
}

.desktop-menu a:hover,
.mobile-menu a:hover {
  color: #ff4d1c;
}

.desktop-menu a:hover::after,
.mobile-menu a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Button styles */
.button-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    color: white;
    background-color: #ff4d1c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #e63d0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 28, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button i {
    font-size: 1.2rem;
}

body.theme-dark .cta-button {
    background-color: #ff4d1c;
    color: white;
}

body.theme-dark .cta-button:hover {
    background-color: #e63d0e;
    box-shadow: 0 4px 12px rgba(255, 77, 28, 0.2);
}
