/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* English Language Font Classes */
.lang-en {
  font-family: 'ProductSans', sans-serif !important;
}

.lang-en h1,
.lang-en h2,
.lang-en h3,
.lang-en h4,
.lang-en h5,
.lang-en h6 {
  font-family: 'ProductSans', sans-serif !important;
}

.lang-en p,
.lang-en span,
.lang-en div,
.lang-en a,
.lang-en button,
.lang-en input,
.lang-en textarea {
  font-family: 'ProductSans', sans-serif !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: auto;
  /* Disable native smooth scroll - Lenis handles it */
  -webkit-tap-highlight-color: transparent;
  /* Remove iOS tap highlight */
  touch-action: manipulation;
  /* Allow native iOS scrolling */
  user-select: none;
  /* Keep only standard property */
  /* Scrollbar will be controlled by JS */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 5px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Scrollbar hidden state */
html.scrollbar-hidden {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1.6;
  color: #40491d;
  background-color: #40491d;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* iOS momentum scrolling */
  -webkit-touch-callout: none;
  /* Disable long-press menu on iOS */
  touch-action: manipulation;
  /* Allow native touch scrolling */
  will-change: scroll-position;
  /* Avoid transforms on ancestors; it breaks position: fixed */
  -webkit-font-smoothing: antialiased;
  /* Smooth fonts on mobile */
  -webkit-text-size-adjust: 100%;
  /* Prevent zoom on input */
  padding-top: 70px;
  /* Space for fixed navbar */
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: "Noto Sans Thai", sans-serif;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  will-change: transform, box-shadow;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(20px);
  border: 0px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.navbar.is-hidden {
  transform: translateY(-110%);
}

/* Hide navbar while any modal is open */
body.modal-open .navbar {
  transform: translateY(-110%) !important;
  box-shadow: none !important;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 400;
}

.logo-icon {
  width: 44px;
  height: 44px;
  margin-right: 0;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.logo-text {
  color: #40491d;
  font-weight: 400;
  letter-spacing: 1px;
}

.nav-menu,
.nav-menu-desktop,
.nav-menu-mobile {
  background: none;
}

.nav-link {
  text-decoration: none;
  color: #40491d;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 0;
  background-color: #cef441;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Language Toggle Button */
.language-toggle {
  background: var(--accent);
  color: #40491d;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 5px 4px 2px 4px;
  font-size: 1rem;
  font-weight: 400 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
  font-family: "Noto Sans Thai", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-toggle:hover {
  background: #F7FDFF !important;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1201;
  background: none;
  border: none;
  padding: 0;
}

.bar {
  width: 28px;
  height: 1.5px;
  background-color: #f0f4f8 !important;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger:hover .bar {
  opacity: 0.85;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  margin-top: 0;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #ffffff;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) contrast(1.3) grayscale(0.9);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.hero-video:not([src]) {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  filter: grayscale(0.7) hue-rotate(45deg) saturate(-0.5);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.port-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  filter: grayscale(1) brightness(1.1) blur(8px) contrast(1.2);
  transform: scale(1.5);
}

.port-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1) contrast(1.3) grayscale(0.8);
  background: linear-gradient(135deg, #989fab 0%, #1a202c 100%);
}

.port-video:not([src]) {
  background: linear-gradient(135deg, #989fab 0%, #1a202c 100%);
  filter: grayscale(0.7) hue-rotate(45deg) saturate(-0.5);
}

.port-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #00000033;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: max-content;
  padding: 0 20px;
  color: #40491d;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 64px;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  color: #F7FDFF;
  text-shadow: 2px 2px #2f404436;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
  color: #F7FDFF;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.4s both;
  justify-content: center;
}

.card-posi {
  top: 32px;
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.service-card,
.stat,
.portfolio-item,
.contact-item,
.about-image img,
.footer-section,
input,
textarea,
.stats,
.about,
.services,
.portfolio,
.contact,
.footer,
.section-header,
.service-item,
.admin-form,
.form-group,
.form-row {
  border-radius: 0em;
}

.btn,
.btn-primary {
  background: linear-gradient(90deg, #b2c7d1 0%, var(--accent) 100%) !important;
  color: #40491d !important;
  border: 2px solid var(--accent) !important;
  border-radius: 6px;
  box-shadow: 0 2px 16px #00cfff33;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-family: "Noto Sans Thai", sans-serif;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--accent) !important;
  color: #40491d !important;
}

.btn-secondary {
  background: transparent;
  color: #e8e8e8;
  border: 2px solid var(--accent) !important;
}

.btn-secondary:hover {
  background: var(--accent) !important;
  color: #40491d !important;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 100;
}

.section-header h2 {
  font-size: 64px;
  font-weight: 800;
  color: #40491d;
  margin-bottom: 0px;
  letter-spacing: 1px;
}

.section-header p {
  font-size: 17px;
  color: #070000;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 120px 0 120px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 24px 1px #00000012;
  z-index: 1;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background-image: url('https://clickin2.com/img/creative_idea_img.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px) grayscale(1);*/
  opacity: 0.2;
  z-index: 1;
}

.about .container {
  position: relative;
  z-index: 2;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  color: #40491d;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 17px;
  color: #40491d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-posi {
  transform: translate(0px, -55%);
  top: 50%;
  position: absolute;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: none;
}

.stat {
  text-align: center;
  /* background: linear-gradient(339deg, rgb(0 0 0) 0%, rgb(0 0 0) 100%); */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 12px 10px 12px;
  border-radius: 12px;
  border: 1px solid #000000;
}

.stat h4 {
  font-size: 2.5rem;
  color: #40491d;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #40491d;
  font-size: 16px;
}

.about-image img {
  width: 100%;
  border-radius: 6px;
  filter: brightness(0.9) contrast(1.1);
}

.about-page {
  background: transparent;
  color: #111827;
}

.about-hero {
  padding: 120px 0 120px;
  background: linear-gradient(0deg, rgb(255 255 255) 0%, rgb(244 246 248) 100%);
  border-bottom: 0px solid rgba(15, 23, 42, 0.08);
}

.about-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 5rem;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}


.about-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: rgb(205 244 65);
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-hero__intro h1 {
  font-size: 48px;
  line-height: 64px;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  color: #1a1d24;
  font-weight: 700;
}

.about-hero__intro p {
  margin-top: 0.8rem;
  color: rgba(15, 23, 42, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.about-hero__intro p:first-of-type {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.9);
}

.about-hero__visual {
  display: flex;
  justify-content: flex-end;
}

.about-hero__visual img {
  width: 100%;
  /* max-width: 620px; */
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.14);
  object-fit: cover;
}

.about-hero__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0px auto 64px auto;
  max-width: 1180px;
}

.about-hero-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  min-height: 230px;
  aspect-ratio: 4 / 3;
}

.about-hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-details {
  padding: 120px 0 120px;
  background: #f4f6f8;
  position: relative;
}

.about-details .container {
  max-width: 1440px;
  margin: 0 auto;
}

.about-feature {
  padding: 120px 0 120px;
  background: var(--main-white);
}

.about-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.8fr);
  gap: 4rem;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.about-feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.5rem;
}

.feature-card-wrapper {
  display: flex;
  justify-content: flex-start;
}

.feature-card {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.feature-card img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #181c24;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

.feature-card__footer {
  padding: 1.5rem 1.6rem 1.6rem;
  display: grid;
  gap: 0.4rem;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #181c24;
}

.feature-card__footer span {
  color: rgba(17, 24, 39, 0.75);
  font-size: 0.95rem;
}

.about-feature__content {
  padding-top: 0.5rem;
}

.about-feature__content h2 {
  font-size: 40px;
  margin-bottom: 1.8rem;
  color: #111827;
  line-height: 64px;
  font-weight: 700;
}

.about-feature__content p {
  color: rgba(17, 24, 39, 0.82);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.about-feature__content blockquote {
  margin-top: 2.2rem;
    padding: 12px;
    border-left: 4px solid var(--accent);
    background: rgba(206, 244, 81, 0.08);
    color: rgba(17, 24, 39, 0.9);
    font-size: 0.98rem;
    line-height: 1.8;
    font-style: italic;
    opacity: 0.95;
    border-radius: 6px;
}

.about-growth {
  padding: 120px 0 120px;
  background: linear-gradient(135deg, #181c24 0%, #0a0a0a 100%);
}

.about-growth h2 {
  font-size: clamp(2.8rem, 4vw, 3.2rem);
  text-align: center;
  margin-bottom: 2rem;
  color: #f7fdff;
  font-weight: 700;
}

.about-growth p {
  max-width: 800px;
  margin: 0 auto 1.2rem;
  text-align: center;
  color: rgba(247, 253, 255, 0.9);
  line-height: 1.85;
  font-size: 17px;
}

.about-page .about-feature {
  background: linear-gradient(135deg, #181c24 0%, #0a0a0a 100%);
}

.about-page .about-feature__content h2 {
  color: #f7fdff;
}

.about-page .about-feature__content p,
.about-page .about-feature__content blockquote {
  color: rgba(247, 253, 255, 0.9);
}

.about-page .about-feature__content a,
.about-page .about-hero__intro a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.about-page .about-feature__content a:hover,
.about-page .about-feature__content a:focus,
.about-page .about-hero__intro a:hover,
.about-page .about-hero__intro a:focus {
  color: inherit;
  text-decoration: none;
}

.about-page .about-feature__content blockquote {
  border-left-color: #cef441;
  background: rgba(206, 244, 81, 0.08);
}

.about-page .feature-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.about-page .feature-card__title {
  color: #f7fdff;
}

.about-page .feature-card__footer span {
  color: rgba(247, 253, 255, 0.75);
}

.about-page .about-growth {
  background: #f4f6f8;
  background-image: url(https://clickin2.com/img/digital-ai.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1);
}

.about-page .first {
    background-image: url(https://clickin2.com/img/digital-ai.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-page .about-growth h2 {
  color: #111827;
}

.about-page .about-growth p {
  color: rgba(17, 24, 39, 0.82);
}

/* Modern Philosophy Section */
.about-philosophy {
  background: transparent;
  padding: 0;
}

.philosophy-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.philosophy-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  margin: 1.2rem auto 0;
  opacity: 0.85;
}

.philosophy-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #111827;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.philosophy-subtitle {
  font-size: 17px;
  color: rgba(17, 24, 39, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.philosophy-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0 auto;
}

.philosophy-block {
  display: grid;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.12);
}

.philosophy-block--light {
  grid-template-columns: 1fr 1fr;
}

.philosophy-block--dark {
  grid-template-columns: 1fr 1fr;
}

.about-page .philosophy-block--light {
  background: #f8fafc;
}

.about-page .philosophy-block--light .philosophy-content h3,
.about-page .philosophy-block--light .philosophy-content p {
  color: #111827;
}

.about-page .philosophy-block--dark {
  background: #1a1d24;
}

.about-page .philosophy-block--dark .philosophy-content h3,
.about-page .philosophy-block--dark .philosophy-content p {
  color: rgba(247, 253, 255, 0.92);
}

.about-page .philosophy-block--dark .philosophy-icon {
  color: var(--accent);
}

.about-page .philosophy-block--dark .philosophy-content {
  background: transparent;
}

.about-page .philosophy-block--dark .philosophy-content p {
  color: rgba(247, 253, 255, 0.82);
}

.philosophy-content {
  padding: 48px 28px 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  background: transparent;
  position: relative;
}

.about-ico-content {
  position: absolute;
  top: 32px;
  left: 32px;
}

.philosophy-icon {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: inline-block;
  width: fit-content;
  transition: transform 0.3s ease;
  line-height: 1;
}

.philosophy-content h3 {
  font-size: 36px;
  color: #111827;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 48px;
  margin-top: 0;
}

.philosophy-content p {
  color: rgba(17, 24, 39, 0.82);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0;
}

.philosophy-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.philosophy-block:hover .philosophy-image img {
  transform: scale(1.04);
}

.philosophy-block:hover .philosophy-icon {
  transform: translateY(-2px);
}

/* Responsive Philosophy Section */
@media (max-width: 1024px) {

  .philosophy-block--light,
  .philosophy-block--dark {
    grid-template-columns: 1fr;
  }

  .philosophy-content {
    padding: 2.2rem 2rem;
  }

  .philosophy-image {
    min-height: 280px;
    order: -1;
  }

  .philosophy-blocks {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .philosophy-header {
    margin-bottom: 2.5rem;
  }

  .philosophy-content {
    padding: 1.8rem 1.5rem;
  }

  .philosophy-image {
    min-height: 220px;
  }

  .philosophy-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .philosophy-content p {
    font-size: 0.9rem;
  }

  .philosophy-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }

  .philosophy-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }

  .philosophy-subtitle {
    font-size: 0.9rem;
  }

  .philosophy-blocks {
    gap: 1rem;
  }

  .about-ico-content {
    position: unset;
    top: unset;
    left: unset;
  }
}

.philosophy-content p {
  color: rgba(17, 24, 39, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.philosophy-image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.philosophy-block:hover .philosophy-image img {
  transform: scale(1.03);
}

.philosophy-block:hover .philosophy-icon {
  transform: translateY(-2px);
}

/* Responsive Philosophy Section */
@media (max-width: 1024px) {

  .philosophy-block--light,
  .philosophy-block--dark {
    grid-template-columns: 1fr;
  }

  .philosophy-content {
    padding: 2.2rem 2rem;
  }

  .philosophy-image {
    min-height: 280px;
    order: -1;
  }

  .philosophy-blocks {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .philosophy-header {
    margin-bottom: 2.5rem;
  }

  .philosophy-content {
    padding: 1.8rem 1.5rem;
  }

  .philosophy-image {
    min-height: 220px;
  }

  .philosophy-content h3 {
    font-size: 26px;
    margin-bottom: 0.6rem;
    line-height: 36px;
  }

  .philosophy-content p {
    font-size: 17px;
  }

  .philosophy-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }

  .philosophy-header h2 {
    font-size: 32px;
    margin-bottom: 0.6rem;
    line-height: 44px;
  }

  .philosophy-subtitle {
    font-size: 17px;
  }

  .philosophy-blocks {
    gap: 1.5rem;
  }

  .about-feature__content h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .about-hero__intro h1 {
    font-size: 44px;
    line-height: 56px;
  }

  .about-growth h2 {
    line-height: 56px;
  }


}

/* about-us specific philosophy block height consistency */
.about-page .philosophy-block {
  min-height: 440px;
  grid-auto-rows: 1fr;
}

.about-page .philosophy-image {
  min-height: 440px;
}

@media (max-width: 1024px) {
  .about-page .philosophy-block {
    min-height: auto;
  }

  .about-page .philosophy-image {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .about-page .philosophy-image {
    min-height: 220px;
  }
}

@media (max-width: 1080px) {
  .about-hero__layout {
    grid-template-columns: 1fr;
  }

  .about-hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-details__grid,
  .about-feature__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .about-hero {
    padding: 80px 0 80px;
  }

  .about-hero__intro h1 {
    font-size: 2.8rem;
  }

  .about-hero__layout {
    gap: 2.5rem;
  }

  .about-hero__visual img {
    max-width: 100%;
  }

  .about-details {
    padding: 80px 0 80px;
  }

  .feature-card {
    max-width: 100%;
  }
}

/* Services Section */
.services {
  padding: 120px 0 120px 0;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.services-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://clickin2.com/img/creative_idea_img.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.6) blur(20px) hue-rotate(286deg);
  opacity: 0.2;
  z-index: 1;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding-left: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 340px;
  height: 553px;
  max-height: 553px;
  overflow: hidden;
  padding: 0;
  background: none;
  border-radius: 12px;
  border: none;
  text-align: left;
  transition: box-shadow 0.3s, transform 0.3s;
  color: #40491d;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.service-card:hover {
  /* box-shadow: 0 8px 40px 0 rgba(0,0,0,0.28); */
  /* transform: translateY(-6px) scale(1.03); */
}

.service-card img.service-img {
  /* display: none; */
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(29deg, #000000 12%, rgb(0 0 0 / 12%) 43% 50%, #00000047 98%);
  z-index: 2;
  border-top: #fbfbfb26 2px solid;
  border-left: #fbfbfb03 1px solid;
  border-right: #fbfbfb03 2px solid;
  border-bottom: #fbfbfb08 0px solid;
}

.service-card h3 {
  font-size: 16px;
  color: #40491d;
  font-weight: 600;
  margin: 0;
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  z-index: 3;
  text-align: right;
  max-width: 60%;
}

.service-card p {
  color: #40491d;
  font-size: 0.98rem;
  font-weight: 400;
  margin: 0;
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  max-width: 60%;
  z-index: 3;
  text-align: left;
}

.service-bg-graphic {
  background-image: url('https://images.unsplash.com/photo-1465101046530-73398c7f28ca?auto=format&fit=crop&w=400&q=80');
  background-size: cover;
  background-position: center;
}

.service-bg-web {
  background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=400&q=80');
  background-size: cover;
  background-position: center;
}

.service-bg-app {
  background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=400&q=80');
  background-size: cover;
  background-position: center;
}

.service-bg-video {
  background-image: url('https://images.unsplash.com/photo-1464983953574-0892a716854b?auto=format&fit=crop&w=400&q=80');
  background-size: cover;
  background-position: center;
}

.service-bg-digital {
  background-image: url('https://images.unsplash.com/photo-1461344577544-4e5dc9487184?auto=format&fit=crop&w=400&q=80');
  background-size: cover;
  background-position: center;
}

.service-bg-photo {
  background-image: url('https://images.unsplash.com/photo-1465101178521-c1a9136a3c8b?auto=format&fit=crop&w=400&q=80');
  background-size: cover;
  background-position: center;
}

/* Portfolio Section */
.portfolio {
  padding: 120px 0 120px 0;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  /* Prevent horizontal scroll on the section itself */
}

.portfolio-container {
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 0 20px;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  background: linear-gradient(135deg, #181c24 0%, #0a0a0a 100%);
}

/* Navigation arrows container positioned at bottom */
.portfolio-nav-container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  /* 24px spacing between arrows */
  /* Align with language toggle button position - same as nav-container padding */
  padding-right: 20px;
  /* Same as nav-container padding */
  margin-top: 2rem;
}

.portfolio-nav {
  position: relative;
  /* Changed from absolute to relative */
  background: var(--accent);
  /* Solid green background like language toggle */
  border: none;
  /* Remove border for solid look */
  color: #181c24;
  /* Dark text color like language toggle */
  font-size: 1rem;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  /* Apple-style circular buttons */
  transition: all 0.3s ease;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  /* Apple-style hover effects */
  transform: scale(1);
}

.portfolio-prev {
  /* Removed left positioning */
}

.portfolio-next {
  /* Removed right positioning */
}

.portfolio-nav:hover:not([disabled]) {
  background: #F7FDFF;
  /* Blue hover color like language toggle */
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgb(229 214 209);
  /* Same shadow as language toggle */
}

.portfolio-nav[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--accent);
  /* Keep green background when disabled */
  color: #181c24;
  /* Keep dark text when disabled */
}

.portfolio-nav[disabled]:hover {
  transform: scale(1);
  background: var(--accent);
  /* Keep green background when disabled */
  box-shadow: none;
}

.portfolio-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 24px;
  padding-left: calc((100vw - 400px)/2);
  padding-right: calc((100vw - 400px)/2);
  -webkit-user-select: none;
  user-select: none;
}

.portfolio-scroll-container::-webkit-scrollbar {
  display: none;
}

.portfolio-scroll-content {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  gap: 2rem;
  padding-left: 0;
  margin-left: 0;
  padding-right: 0;
  margin-right: 0;
}

.portfolio-item:first-child {
  margin-left: 0;
}

.portfolio-item:last-child {
  margin-right: 0 !important;
}

.portfolio-item {
  flex: 0 0 400px;
  height: 400px;
  scroll-snap-align: center;
  margin-right: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 18px;
  box-shadow: 0 0 24px 0 rgba(79, 209, 255, 0.08);
  background: transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-item.active {
  box-shadow: 0 0 32px 0 #F7FDFF88, 0 0px 13px rgba(0, 0, 0, 0.2);
  transform: scale(1.06);
  z-index: 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: brightness(0.8) contrast(1.1);
}

.portfolio-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.9) contrast(1.2);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(24, 28, 36, 0.5);
  color: #bfc9d1;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  background: rgba(24, 28, 36, 0.8);
}

.portfolio-overlay h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0px;
  color: #40491d;
}

.portfolio-overlay p {
  font-size: 1rem;
  color: #40491d;
}

/* Gallery Section (Legacy - keeping for compatibility) */
.gallery {
  padding: 120px 0 120px 0;
  background: #989fab;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  will-change: transform;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: brightness(0.8) contrast(1.1);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.9) contrast(1.2);
}

/* Contact Section */
.contact {
  padding: 120px 0 120px 0;
  position: relative;
  overflow: hidden;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://clickin2.com/img/programming-background-collage.jpg');
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.9) blur(40px) hue-rotate(286deg);
  opacity: 0.2;
  z-index: 1;
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  justify-content: space-between;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  background: none;
  color: #40491d;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-right: 1rem;
  margin-top: 0.5rem;
}

.contact-item h4 {
  color: #F7FDFF;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #40491d;
}

.contact-form {
  /* background: #ffffff; */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 2.5rem 2rem;
  color: #40491d;
  max-width: 700px;
  margin-left: auto;
  border: none;
  border-top: #fbfbfbba 1px solid;
  border-left: #fbfbfb6b 1px solid;
  border-right: #fbfbfb42 1px solid;
  border-bottom: #cef4411f 1px solid;
  background: linear-gradient(339deg, rgb(255 255 255 / 82%) 0%, rgb(255 255 255) 100%);
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  color: #40491d;
  border: none;
  border-bottom: 1px solid #40491d;
  border-radius: 0;
  padding: 0.7rem 24px;
  font-size: 16px;
  font-weight: 400 !important;
  margin-bottom: 1.8rem;
  width: 400px;
  max-width: 100%;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  box-shadow: none;
  font-family: "Noto Sans Thai", sans-serif;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom: 2px solid #F7FDFF;
  background: transparent;
  color: #40491d;
  font-weight: 400 !important;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgb(0 0 0 / 55%);
  opacity: 1;
}

.contact-form button.btn-primary {
  background: #36518c;
  color: #F7FDFF;
  border: none;
  border-radius: 200px;
  font-weight: 400 !important;
  font-size: 16px;
  padding: 9px 16px;
  margin-top: 0.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(107, 154, 255, 0.07);
  font-family: "Noto Sans Thai", sans-serif;
  letter-spacing: 0.01em;
  margin-left: auto;
  display: block;
}

.contact-form button.btn-primary:hover {
  background: var(--accent);
  color: #40491d;
  box-shadow: 0 4px 16px rgba(0, 207, 255, 0.13);
}

.contact-form label {
  color: #40491d;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

/* Footer */
.footer {
  background: #111111;
  color: #F7FDFF;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 44px;
  height: 44px;
  margin-right: 8px;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.footer-section p {
  color: #40491d;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #181c24;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #36518c;
  transform: translateY(-3px);
}

.foo-ico {
  width: 100%;
  max-width: 24px;
  height: auto;
  margin-right: 6px;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #40491d;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #40491d;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #F7FDFF;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #8bb1a42b;
  color: #F7FDFF;
  background: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[loading] {
  opacity: 1;
}

img.loaded {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    background: #26282ce6;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    z-index: 2000;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    height: auto;
    min-height: 0;
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    max-width: 95vw;
    width: 95vw;
  }

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

  .nav-link {
    color: #F7FDFF !important;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    padding: 0.5rem 0;
    text-align: left;
    text-decoration: none;
    line-height: 1.1;
    font-family: 'Inter', 'Sora', "Noto Sans Thai", sans-serif;
  }

  .nav-link:hover {
    color: var(--accent) !important;
  }

  .navbar {
    box-shadow: none !important;
  }

  .menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #F7FDFF;
    color: #222;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    z-index: 2000;
    transition: background 0.2s, color 0.2s;
  }

  .service-card {

    height: 480px;
    max-height: 480px;

  }

  .menu-close:hover {
    background: #F7FDFF !important;
    color: #40491d !important;
    box-shadow: 0 5px 15px rgb(229 214 209) !important;
  }

  .about-content {
    flex-direction: column !important;
    align-items: stretch;
    display: block;
  }

  .about-image {
    order: 0 !important;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .about-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    border-radius: 18px;
    margin: 0 auto 18px auto;
    display: block;
  }

  .about-text {
    order: 1 !important;
    text-align: center !important;
    width: 100%;
    margin: 0;
  }

  .about-text h3,
  .about-text p,
  .stats {
    text-align: center !important;
  }

  .about-text h3 {
    margin-top: 0.5em;
  }

  .stats {
    flex-direction: row;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .hamburger {
    display: flex !important;
  }

  .language-toggle {
    margin-right: 24px !important;
  }

  .contact-content {
    display: flex;
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 480px;
  }

  .contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    justify-items: center;
    align-items: stretch;
  }

  .contact-item {
    width: 100%;
    box-sizing: border-box;
  }

  .nav-menu-mobile li {
    font-weight: 500 !important;
  }

  .nav-menu-mobile .nav-link {
    font-weight: 400 !important;
  }
}

@media (max-width: 1280px) {

  .about-posi {
    transform: unset;
    top: unset;
    position: relative;
  }
}

@media (min-width: 901px) {
  .about-content {
    display: block !important;
    width: 100%;
    position: relative;
    min-height: 1px;
  }

  .about-text {
    float: left;
    width: 46%;
    text-align: left;
    margin: 0;
  }

  .about-image {
    float: right;
    width: 50%;
    margin-bottom: 0;
    display: block;
    text-align: center;
  }

  .about-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    filter: brightness(1) hue-rotate(347deg) grayscale(1) contrast(1.2);
  }

  .about-content::after {
    content: "";
    display: table;
    clear: both;
  }
}

@media (min-width: 901px) {
  .hamburger {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .about-text h3 {
    font-size: 1.6rem !important;
  }

  .stat h4 {
    font-size: 1.3rem;
  }

  .stats {
    gap: 0.7rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .language-toggle {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .footer-content {
    grid-template-columns: auto;
  }
}

/* Enhanced touch scrolling for mobile */
@media (hover: none) and (pointer: coarse) {
  html {
    -webkit-overflow-scrolling: touch;
  }

  body {
    -webkit-overflow-scrolling: touch;
  }

  .gallery-item,
  .service-card,
  .btn {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Medium screen adjustments for portfolio alignment */
@media (max-width: 1440px) {
  .portfolio-scroll-content {
    padding-left: 20px;
    /* Align with logo on medium screens */
  }

  .portfolio-nav-container {
    padding-right: 20px;
    /* Align with language toggle on medium screens */
  }
}

/* Enhanced mobile experience for portfolio */
@media (max-width: 768px) {
  .portfolio-scroll-container {
    /* Better touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  .portfolio-item {
    /* Slightly smaller on mobile for better UX */
    flex: 0 0 350px;
    height: 350px;
  }

  .portfolio-scroll-content {
    gap: 1.5rem;
    padding-right: 20px;
  }
}

/* Smooth scrolling for all devices */
@media (prefers-reduced-motion: no-preference) {
  .portfolio-scroll-container {
    scroll-behavior: smooth;
  }

  .portfolio-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38, 40, 44, 0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .hamburger {
    display: flex !important;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1301;
  }

  .menu-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1301;
    /* Same as hamburger */
  }

  .language-toggle {
    margin-right: 24px !important;
  }
}

@media (min-width: 769px) {
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .nav-logo {
    margin-right: auto;
  }

  .nav-menu {
    margin-right: 40px !important;
    margin-left: 0 !important;
  }

  .language-toggle {
    margin-left: 0 !important;
  }
}

.menu-close {
  position: relative;
  font-size: 0 !important;
  /* ซ่อนตัวอักษร × เดิม */
}

.menu-close::before,
.menu-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 1.5px;
  background: #40491d;
  border-radius: 1px;
  transform-origin: center;
}

.menu-close::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-close::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-menu.active .menu-close {
  display: flex !important;
  position: absolute;
  right: 0px;
  top: 20px;
  transform: translateY(-50%);
  z-index: 1301;
}

@media (max-width: 768px) {
  .menu-close {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 901px) {
  .nav-menu-desktop {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    background: none !important;
    box-shadow: none !important;
    gap: 2rem !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    height: auto !important;
    padding: 0 !important;
    max-width: none !important;
    width: auto !important;
    margin-right: 40px !important;
    margin-left: 0 !important;
  }

  .nav-menu-mobile {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .nav-menu-desktop {
    display: none !important;
  }

  .nav-menu-mobile {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    background: rgb(245 252 255 / 0%);
    backdrop-filter: blur(16px) saturate(1.5) brightness(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.10);
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    z-index: 9999 !important;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.9, 0, 0.58, 1);
    height: auto;
    min-height: 0;
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    max-width: 95vw;
    width: auto;
  }

  .nav-menu-mobile.active {
    position: fixed !important;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 99999 !important;
  }

  .nav-menu-mobile .nav-link {
    color: #F7FDFF !important;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    padding: 4px;
    text-align: left;
    text-decoration: none;
    line-height: 40px;
    font-family: 'Inter', 'Sora', "Noto Sans Thai", sans-serif;
    letter-spacing: 1.5px;
    display: block;
    width: 100%;
  }

  .nav-menu-mobile .nav-link:hover {
    color: var(--accent) !important;
  }

  .nav-menu-mobile .menu-close {
    position: absolute;
    top: 18px;
    right: 0px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #222;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    z-index: 2100;
    transition: background 0.2s, color 0.2s;
    transform: translateY(-50%);
  }

  .nav-menu-mobile .menu-close:hover {
    background: var(--accent);
    color: #222;
  }
}

.nav-menu-desktop,
.nav-menu-mobile {
  list-style: none;
  padding: 0px 24px0;
}

@media (max-width: 1176px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
  }

  .section-header {
    text-align: center;
  }

  .card-posi {
    top: 0px;
  }


}

@media (max-width: 900px) {
  .language-toggle {
    margin-right: 24px !important;
  }
}

@media (max-width: 768px) {
  .language-toggle {
    margin-right: 56px !important;
  }
}

:root {
  --main-bg: #cef441;
  --main-black: #000;
  --main-white: #f5fdff;
  --accent: #cef441;
  --accent-green: #cef441;
}

body {
  background: #000000;
  color: #40491d;
  font-family: "Noto Sans Thai", sans-serif;
}

.section-header h2,
.logo-text {
  color: #000000;
  letter-spacing: 0.5px;
}

a,
.portfolio-overlay h3 {
  color: #cef441;
}

.portfolio-overlay h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0px;
  color: #40491d;
}

.portfolio-overlay p {
  font-size: 1rem;
  color: #40491d;
}

/* Service cards text */
.service-card h3 {
  font-size: 20px;
  color: #F7FDFF;
  font-weight: 500;
  margin: 0;
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 3;
  text-align: right;
  max-width: 100%;
  letter-spacing: 1px;
}

.service-card p {
  color: #F7FDFF;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 90%;
  z-index: 3;
  text-align: left;
}

/* About section text */
.about-text h3 {
  color: #000000;
  font-size: 32px;
  line-height: 42px;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  font-weight: 800;
}

.about-text p {
  color: #070000;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Stats text */
.stat h4 {
  color: #000000;
  font-size: 50px;
  font-weight: 800;
  margin-top: 12px;
  letter-spacing: -0.8px;
  /* text-shadow: 2px 2px #63636333; */
  line-height: 56px;
  -webkit-text-stroke: 1px #000000;
}

.stat p {
  color: #131313;
  font-size: 17px;
}

/* Contact section text */
.contact-item h4 {
  color: #cef441;
  margin-bottom: 0px;
  font-weight: 500;
  font-size: 24px;
}

.contact-item p {
  color: #F7FDFF;
}

/* Footer text */
.footer-logo .logo-text {
  color: #F7FDFF;
}

.footer-section p {
  color: #F7FDFF;
}

.footer-section h4 {
  color: #cef441;
  margin-bottom: 4px;
  font-size: 20px;
}

.footer-section ul li a {
  color: #F7FDFF;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #F7FDFF;
}

.footer-ico-adr {
  color: #F7FDFF !important;
}

/* Keep blue only for buttons and icons (not logo) */
.btn,
.btn-primary {
  background: linear-gradient(90deg, #b2c7d1 0%, var(--accent) 100%) !important;
  color: #40491d !important;
  border: 2px solid var(--accent) !important;
  border-radius: 200px;
  box-shadow: 0 2px 16px #00cfff33;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn:hover,
.btn-primary:hover {
  background: var(--accent) !important;
  color: #40491d !important;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  background: #fff !important;
  box-shadow: 0 2px 16px #00cfff33;
  transition: background 0.2s;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-right: 1rem;
  margin-top: 0.5rem;
}

.language-toggle {
  background: var(--accent);
  color: #212c2f;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 400 !important;
}

.language-toggle:hover {
  background: #F7FDFF;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgb(229 214 209);
}

.portfolio-nav {
  position: relative;
  background: var(--accent);
  border: none;
  color: #181c24;
  font-size: 1rem;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transform: scale(1);
}

.portfolio-nav:hover:not([disabled]) {
  background: #F7FDFF;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgb(229 214 209);
}

/* Logo icon stays blue */
.logo-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.logo-icon,
.logo-text {
  color: #40491d !important;
  fill: #40491d !important;
  filter: none !important;
}

.navbar,
.nav-link,
.nav-link:visited,
.nav-link:active,
.nav-link:hover,
.hamburger,
.menu-close {
  color: #F7FDFF !important;
  fill: #F7FDFF !important;

}

.btn,
.btn-primary,
.btn-secondary {
  background: #cef441 !important;
  color: #212c2f !important;
  border: none !important;
  box-shadow: none !important;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  background: #40491d !important;
  color: #cef441 !important;
  border: none !important;
}

button,
.btn {
  transition: background 0.2s, color 0.2s;
}

button[style*='#a58c81']:hover,
.btn.bg-68c1c1:hover,
button.bg-68c1c1:hover,
button[style*='background: #a58c81']:hover {
  background: #fff !important;
  color: #a58c81 !important;
}

/* Apple-style White Card Gallery */
.Gallery_scrollContainer__1LaRX {
  width: 100vw;
  height: auto;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 40px 0 0px 0;
  margin-left: 0;
  margin-right: 0;
  background: none;
  position: relative;
  z-index: 100;
}

.Gallery_scrollContainer__1LaRX::-webkit-scrollbar {
  display: none;
}

.Gallery_scrollContent__1LaRX {
  display: flex;
  gap: 28px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: calc(50% - 700px);
  padding-right: 64px;
  -webkit-user-select: none;
  user-select: none;
}

.Gallery_scrollContent__1LaRX::-webkit-scrollbar {
  display: none;
}

.Gallery_card__1LaRX {
  background: #F7FDFF;
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  min-width: 340px;
  max-width: 340px;
  width: 340px;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  transition: box-shadow 0.3s;
  overflow: hidden;
  position: relative;
  padding: 0 0 12px 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.Gallery_card__1LaRX:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.Gallery_cardImg__1LaRX {
  display: none;
}

.Gallery_cardOverlay__1LaRX {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: auto;
  min-height: 85px;
  max-height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 0 0 28px 28px;
  z-index: 1;
}

.Gallery_cardTitle__1LaRX,
.Gallery_cardSubtitle__1LaRX,
.Gallery_cardPlus__1LaRX {
  position: relative;
  z-index: 2;
  margin-left: 28px;
  margin-right: 28px;
  color: #F7FDFF;
  padding-bottom: 0px;
  font-family: 'ProductSans', sans-serif !important;
}

.Gallery_cardTitle__1LaRX {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 0px;
  text-align: left;
  font-family: 'ProductSans', sans-serif !important;
}

.Gallery_cardSubtitle__1LaRX {
  font-size: 17px;
  color: #F7FDFF;
  text-align: left;
  margin-bottom: 0;
}

.Gallery_cardPlus__1LaRX {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  background: #F7FDFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  border: none;
  transition: 0.3s ease;
  text-decoration: none !important;
}

.Gallery_cardPlus__1LaRX:hover {
  background: #cef441;
  text-decoration: none !important;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgb(229 214 209);

}

.Gallery_arrowBtn__1LaRX {
  position: relative;
  background: var(--accent);
  color: rgb(227 187 98 / 0%);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0;
  /* ซ่อน text เดิม */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.Gallery_arrowBtn__1LaRX::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-style: solid;
  border-width: 0px 0px 3px 3px;
  border-color: #212c2f;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-34%, -50%) rotate(45deg);
  background: none;
  box-sizing: border-box;
  border-radius: 1px
}

.Gallery_arrowBtn__1LaRX#gallery-arrow-right::before {
  transform: translate(-62%, -50%) rotate(-135deg);
}

.Gallery_arrowLeft__1LaRX {
  left: 24px;
}

.Gallery_arrowRight__1LaRX {
  right: 24px;
}

.gallery-arrow-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  padding-right: 20px;
}

.Gallery_arrowGroup__1LaRX {
  position: relative;
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  z-index: 100 !important;
  /* pointer-events: none; */
}


@media (max-width: 900px) {
  .Gallery_arrowGroup__1LaRX {
    right: 16px;
    bottom: 16px;
    gap: 12px;
  }

  .Gallery_scrollContainer__1LaRX {
    padding-bottom: 70px;
  }
}


.paddlenav {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.paddlenav-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 32px;
  margin-bottom: 0;
}

.paddlenav-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  padding-right: 20px;
  display: flex;
  justify-content: flex-end;
}

.Gallery_arrowBtn__1LaRX.disabled {
  pointer-events: none !important;
  opacity: 0.15 !important;
}

/* --- Responsive Gallery Card (fixed card size) --- */

@media (max-width: 1440px) {
  .Gallery_scrollContent__1LaRX {
    padding-left: 20px;
    padding-right: 20px;
    gap: 24px;
  }
}

@media (max-width: 768px) {

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {

  .hero-title {
    font-size: 36px;
    line-height: 40px;
  }

  .stat h4 {
    font-size: 48px;
    line-height: 44px;
    letter-spacing: -1px;
  }

  .stat p {
    color: #40491d;
    font-size: 14px;
  }

}


/* Card size always fixed */
.Gallery_card__1LaRX {
  min-width: 400px !important;
  max-width: 400px !important;
  width: 400px !important;
  height: 400px !important;
  border-radius: 12px;
}

.Gallery_cardOverlay__1LaRX {
  min-height: 85px;
  border-radius: 0 0 8px 8px;
}

.Gallery_cardTitle__1LaRX {
  font-size: 20px;
  margin-left: 28px;
  margin-right: 28px;
  font-weight: 700 !important;
  font-family: 'ProductSans', sans-serif !important;
}

.Gallery_cardSubtitle__1LaRX {
  font-size: 15px;
  margin-left: 28px;
  margin-right: 28px;
}

.Gallery_cardPlus__1LaRX {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  right: 0px;
  bottom: 20px;
  text-decoration: none !important;
}

.menu-close:hover {
  background: #F7FDFF !important;
  color: #40491d !important;
  box-shadow: 0 5px 15px rgb(229 214 209) !important;
}

.menu-close:hover::before,
.menu-close:hover::after {
  background: #40491d !important;
}

/* Apple-like Thai font for Thai text only */
:lang(th),
[lang="th"] {
  font-family: "Noto Sans Thai", sans-serif !important;
}

/* For normal (body) Thai text, use medium weight */
:lang(th):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
[lang="th"]:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.6px;
}

/* Use font-weight 500 for h1 and h2 in Thai */
:lang(th) h1,
[lang="th"] h1,
:lang(th) h2,
[lang="th"] h2 {}


/* Use font-weight 200 for p in Thai */
:lang(th) p,
[lang="th"] p {
  font-weight: 200 !important;
}

/* --- Remove conflicting Thai font-weight rule --- */
/*
:lang(th):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
[lang="th"]:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-weight: 400 !important;
  line-height: 1.5 !important;
}
*/

/* --- Force Kanit ExtraLight for Thai <p> tags --- */
:lang(th),
[lang="th"] {
  font-family: "Noto Sans Thai", sans-serif !important;
}

:lang(th) p,
[lang="th"] p {
  font-family: "Noto Sans Thai", sans-serif !important;
  font-weight: 200 !important;
}

/* ปรับน้ำหนัก font เฉพาะปุ่มที่ต้องการ */
.language-toggle,
.language-toggle .lang-text,
#hero-btn-primary-th,
#hero-btn-primary-en,
#hero-btn-secondary-th,
#hero-btn-secondary-en,
.contact-form button.btn-primary {
  font-weight: 700 !important;
}

/* ปรับน้ำหนัก font เฉพาะ title ใน card ผลงาน */
.Gallery_cardTitle__1LaRX {
  font-weight: 400 !important;
  font-family: 'ProductSans', sans-serif !important;
}

/* Force font-weight 400 for portfolio card title only (highest specificity) */
.Gallery_card__1LaRX .Gallery_cardTitle__1LaRX {
  font-weight: 500 !important;
  font-family: 'ProductSans', sans-serif !important;
}

.portfolio-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--accent);
  color: #40491d;
  border: none;
  margin-left: 0;
  margin-right: 0;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.portfolio-add-btn:hover {
  background: #F7FDFF;
  color: #40491d;
  box-shadow: 0 5px 15px rgb(229 214 209);
}

.portfolio-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Force gallery arrow hover to white background */
.Gallery_arrowBtn__1LaRX:hover {
  background: #fff !important;
}

/* Force Font Awesome icon rendering */
.fa,
.fa-solid,
.fa-regular,
.fa-light,
.fa-duotone,
.fa-brands,
i[class^='fa-'] {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'FontAwesome', sans-serif !important;
  font-weight: 900 !important;
  font-style: normal !important;
  speak: never;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.Gallery_arrowBtn__1LaRX i {
  font-weight: 900 !important;

}

/* --- Service Card Image Zoom Effect --- */
.service-card-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: contrast(1.1) grayscale(0.3);
}

.service-card-img-wrapper img.service-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.service-card:hover .service-card-img-wrapper img.service-img {
  transform: scale(1.08);
}

/* ==========================================
   Auto-Opening Welcome Modal
   ========================================== */

.auto-opening-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.auto-opening-modal.show {
  display: flex;
  animation: fadeInModal 0.5s ease-out;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.auto-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.auto-modal-content {
  position: relative;
  z-index: 2;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(20px);
  border: 0px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  max-width: 980px;
  width: 90%;
  max-height: 85vh;
  overflow: visible;
  color: #fff;
  padding: 0;
  animation: slideInModal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

@keyframes slideInModal {
  from {
    transform: scale(0.92) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.auto-modal-close {
  position: absolute;
  top: -24px;
  right: -24px;
  background: var(--accent);
  border: 0px solid rgba(255, 255, 255, 0.1);
  color: #000000;
  font-size: 38px;
  cursor: pointer;
  z-index: 10000;
  padding: 3px 0px 0px 1px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.auto-modal-close:hover {
  background: rgb(255 255 255);
  transform: rotate(90deg);
}

.auto-modal-body {
  padding: 40px 20px;
  text-align: center;
  overflow-y: auto;
  max-height: calc(85vh - 60px);
  scrollbar-width: none;

  /* Hide scrollbar for IE and Edge */
  -ms-overflow-style: none;
}

.auto-modal-demo-image {
  width: 100%;
  height: auto;
  margin: 0px auto 24px auto;
  overflow: hidden;
  border-radius: 16px;
}

.auto-modal-demo-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.auto-modal-body h2 {
  font-family: 'ProductSans', 'Noto Sans Thai', sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
  text-align: center;
}

.auto-modal-body p {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #e0e0e0;
  margin: 12px auto;
  max-width: 96%;
  text-align: center;
}

.auto-modal-body p strong {
  color: #cef441;
  font-weight: 600;
  font-size: 22px;
}

.auto-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.auto-modal-btn-primary,
.auto-modal-btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'Noto Sans Thai', 'ProductSans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.auto-modal-btn-primary {
  background: linear-gradient(135deg, #cef441 0%, #a8d700 100%);
  color: #000;
  flex: 1;
  min-width: 140px;
}

.auto-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(206, 244, 65, 0.3);
}

.auto-modal-btn-secondary {
  background: transparent;
  color: #cef441;
  border: 2px solid #cef441;
  flex: 1;
  min-width: 140px;
}

.auto-modal-btn-secondary:hover {
  background: rgba(206, 244, 65, 0.1);
  transform: translateY(-2px);
}

/* Responsive Auto-Opening Modal */
@media (max-width: 768px) {
  .auto-modal-content {
    width: 95%;
    max-width: 100%;
  }

  .auto-modal-body {
    padding: 25px 16px;
  }

  .auto-modal-demo-image {
    border-radius: 16px 16px 0 0;
  }

  .auto-modal-body h2 {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .auto-modal-body p {
    margin-bottom: 10px;
    line-height: 1.6;
  }

  .auto-modal-close {
    top: -20px;
    right: -8px;
    font-size: 38px;
  }

  .auto-modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .auto-modal-btn-primary,
  .auto-modal-btn-secondary {
    width: 100%;
    min-width: unset;
  }
}