/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Thai', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

.hero-background {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      z-index: -2;
      background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1950&q=80');
      background-size: cover;
      background-position: center;
      
    }

    /* ชั้น overlay ด้านบน */
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); /* ปรับความมืด */
      z-index: -1;
    }

/* Navbar */
.navbar-OLD {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;

}

/* กำหนดรูปแบบ banner 
.banner {
  width: 100%;
  overflow: hidden;
}*/

/*.banner img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}*/

.banner {
  width: 100%;
  height: auto;
  padding: 2rem 2rem;
  font-family: 'prompt', sans-serif;
  font-size: 8vw;
  font-weight: bold;
  color: #f9f9f9;
  text-align: center;
  
}

/* กำหนด navbar ให้ลอยขึ้นด้านบนเมื่อเลื่อน */
.navbar {

  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
  transition: background-color 0.3s ease, color 0.3s ease; /* สีเริ่มต้น */
  background-color: transparent; /* หรือสีพื้นฐานของคุณ */
}

/* เมื่อเลื่อนลง */
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #bbeed9; /* เปลี่ยนเป็นสีที่คุณต้องการ */
  color: white;
}

.logo img {
  height: 90px;
}

/* Desktop Menu */
@media (min-width: 769px) {
  .nav-links {
    position: static !important;
    flex-direction: row !important;
    display: flex !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 2rem;
    padding: 0;
  }

  .nav-links li a {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
  }

  .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0%;
    background: #00bfff;
    transition: width 0.3s ease-in-out;
  }

  .nav-links li a:hover::after {
    width: 100%;
  }
}

/* Mobile Menu */
#menu-toggle {
  display: none;
  z-index: 1001;
  font-size: 1.5rem;
}

.nav-links {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  display: none;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-links.show {
  display: flex;
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    cursor: pointer;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0d6efd, #00bcd4);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-lead {
  color: #fff;
  text-align: center;
  padding-top: 2rem;
  font-size: 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.4;
}

.hero .lead {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 800px;
}

.text-overlay {
  background-color: rgba(255, 255, 255, 0.8); /* พื้นขาวโปร่งใส */
  padding: 1rem;
  border-radius: 10px;
  max-width: 800px;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Key Points */
.key-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.point {
  /*background: linear-gradient(135deg, #00bcd4, #0d6efd);*/
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
 
  
}

.point i {
  color: #fff;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  margin-right: 10px;
}

.point strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.point p {
  font-size: 0.95rem;
}

.point:hover {
  transform: translateY(-5px);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #00bcd4);
  border-left: 4px solid #0d6efd;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cta-box h3 {
  margin-top: 0;
}

/* Buttons */
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  background-color: #0d6efd;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-contact .icon-default {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.btn-contact:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.btn-contact:hover .icon-default {
  transform: rotate(360deg) scale(1.2);
}

/* Services Section  background: #fff;*/
.services {
  
  padding: 3rem 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 0.5rem;
}

.service-item {
  background: #f1f1f1;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item i {
  font-size: 2rem;
  color: #0d6efd;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta {
  background: #0d6efd;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

/* Footer */
.main-footer {
  background-color: #0d6efd;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-social h3 {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  color: #0d6efd;
  transition: background 0.3s ease;
  text-decoration: none !important;
  font-size: 1.5rem;
}

.social-icons a:hover {
  background-color: #007bff;
  color: white;
}

.footer-bottom {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ddd;
}

/* WeChat Popup */
.wechat-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  max-width: 300px;
  text-align: center;
}

.popup-content img {
  max-width: 100%;
  margin-top: 1rem;
}

.popup-content h4 {
  margin-bottom: 1rem;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.close-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  background-color: #0d6efd;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-button:hover {
  background-color: #0056b3;
}

/* Footer Animation */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-footer {
  opacity: 0;
  transform: translateY(50px);
  visibility: hidden;
  transition: none;
}

.main-footer.animate {
  animation: fadeSlideIn 1s ease-out forwards;
  visibility: visible;
}

.main-footer.sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.big-text {
  font-family: 'mitr', sans-serif;
  font-size: 5vw;
  /*font-size: 100px;*/
  font-weight: bold;
}