@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;
}

body {
  font-family: 'Anuphan', sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s, color 0.4s;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

/* --- Navbar Liquid Glass --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.theme-dark .navbar {
  background-color: rgba(24, 24, 27, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer {
  text-align: center;
  font-size: 0.875rem;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.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 Updates */
.main-section {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 70vh;
}

.content {
  max-width: 600px;
  margin: 0 auto;
}

.image-wrapper {
  margin-bottom: 2rem;
}

.hero-img {
  width: 180px;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
  transition: transform 0.5s ease;
}

.hero-img:hover {
  transform: scale(1.05);
}

.theme-dark .hero-img {
  /* ปรับเงาในโหมดมืดให้ดูละมุนขึ้น */
  filter: drop-shadow(0 20px 30px rgba(249, 115, 22, 0.1));
}

@media (min-width: 768px) {
  .hero-img {
    width: 220px;
  }
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .main-title { font-size: 3.5rem; }
  .subtitle { font-size: 1.25rem; }
}

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

/* --- Mobile Menu Liquid Glass --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 2rem;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.theme-dark .mobile-menu {
  background-color: rgba(24, 24, 27, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.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 Backgrounds with Gradient for Glassmorphism --- */
.theme-light {
  background-color: #fcfcfc;
  background-image: radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 100% 0%, rgba(0, 163, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: #1f2937;
}

.theme-dark {
  background-color: #18181b;
  background-image: radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: #e4e4e7;
}

.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;
  color: #f97316;
}

.hidden {
  display: none !important;
}

.hamburger .icon,
#hamburger-btn .icon,
.hamburger,
#hamburger-btn {
  stroke: currentColor;
  fill: currentColor;
  color: inherit;
}

.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 Liquid Glass --- */
.link-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px;
  margin: 10px 0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  min-width: 210px;
  font-size: 1.1rem;
  text-align: left;
  transition: background 0.2s, transform 0.2s;
  
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.link-box:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.theme-dark .link-box {
  background: rgba(24, 24, 27, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-dark .link-box:hover {
  background: rgba(24, 24, 27, 0.6);
}

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

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

.desktop-menu a:hover { color: #f97316; }
.desktop-menu a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Updated CTA Button (Softer Orange) */
.button-container {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.cta-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  color: white !important;
  background-color: #f97316;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  width: 100%;
}

@media (min-width: 640px) {
  .cta-button {
    width: auto;
  }
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s;
}

.cta-button:hover {
  background-color: #ea580c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.icon-bounce {
  transition: transform 0.3s;
}

.cta-button:hover .icon-bounce {
  transform: rotate(15deg) scale(1.1);
}

button, .cta-button {
  font-family: 'Anuphan', sans-serif !important;
}