/* --- Global Styles & Variables --- */
:root {
  --bg-brown: #5a5349;
  --text-light: #f0f0f0;
  --text-dark: #333;
  --accent-cyan: #00bcd4;
  --accent-red: #ff4d4d;
  --header-bg: rgba(40, 40, 40, 0.8);
  --accent-orange: #fbb980;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Kanit', sans-serif;
  background-color: #222;
  color: var(--text-light);
  line-height: 1.6;
  background-image: url(images/background.webp);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-position: fixed;
}
/* --- Header & Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--header-bg);
  backdrop-filter: blur(5px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hotline {
  color: var(--accent-red);
  font-weight: bold;
  white-space: nowrap;
  font-size: 1.3em;
  text-decoration: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--text-light);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search-icon {
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.search-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}
/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
/* --- Section General Styling --- */
.section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  /* ให้ความสูงไม่เต็มจอ 100% เพื่อให้เห็นส่วนต่อไปง่ายขึ้น */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 5%;
  overflow: hidden;
}
.content-container {
  width: 100%;
  max-width: 960px;
  text-align: center;
  position: relative;
  z-index: 2;
}
/* --- Section Specifics & Angled Dividers --- */
/* Hero Section */
.hero-section {
  min-height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  /* แทนที่ด้วยรูปพื้นหลังของคุณ */
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  margin-bottom: -10vh;
  /* สำคัญ: ทำให้ section ต่อไปซ้อนขึ้นมา */
}
.hero-logo {
  width: 179px;
  height: auto;
  margin-bottom: 1rem;
}
.hero-section h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  letter-spacing: 5px;
}
  {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.separator {
  width: 80px;
  height: 3px;
  background-color: var(--text-light);
  border: none;
  margin: 1rem auto 1.5rem;
}
.hero-section p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}
/* About Section */
.about-section {
  background-color: var(--bg-brown);
  clip-path: polygon(50% 0%, 100% 8%, 100% 92%, 50% 100%, 0% 92%, 0% 8%);
  margin-bottom: -10vh;
  z-index: 2;
  padding: 16vh 0 20vh 0;
  position: relative;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: polygon(50% 2%, 98% 10%, 98% 90%, 50% 98%, 2% 90%, 2% 10%);
  background: transparent;
  z-index: 1;
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}
.about-header {
  text-align: center;
  margin-bottom: 4rem;
}
.about-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}
.about-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
/* Company Overview */
.about-overview {
  margin-bottom: 4rem;
}
.overview-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.overview-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-weight: 600;
}
.overview-text p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: var(--text-light);
  opacity: 0.9;
}
.overview-text strong {
  color: var(--accent-orange);
  font-weight: 700;
}
.overview-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.company-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.overview-image:hover .company-image {
  transform: scale(1.05);
}
/* Statistics Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 4rem 0;
  padding: 3rem 0;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}
.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.9;
  font-weight: 500;
}
/* Core Values */
.core-values {
  margin: 4rem 0;
}
.core-values h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-weight: 600;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.value-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.value-icon {
  background: var(--accent-orange);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}
.value-card:hover .value-icon {
  transform: rotate(360deg) scale(1.1);
}
.value-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-weight: 600;
}
.value-card p {
  color: var(--text-light);
  opacity: 0.9;
  line-height: 1.6;
}
/* Company Timeline */
.company-timeline {
  margin: 4rem 0;
}
.company-timeline h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--text-light);
  font-weight: 600;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}
.timeline-item:nth-child(odd) {
  flex-direction: row;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-year {
  background: var(--accent-orange);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  margin: 0 2rem;
}
.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  flex: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.timeline-content:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}
.timeline-content h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.timeline-content p {
  color: var(--text-light);
  opacity: 0.9;
  line-height: 1.6;
}
/* Company Info */
.company-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
}
.info-header h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-weight: 600;
}
.info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.info-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}
.info-item i {
  color: var(--accent-orange);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}
.info-item div {
  color: var(--text-light);
  line-height: 1.6;
}
.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}
.contact-item i {
  color: var(--accent-orange);
  width: 20px;
  text-align: center;
}
.contact-item:hover i {
  animation: pulse 0.5s ease-in-out;
  color: #ffcc33;
}
.contact-item span {
  color: var(--text-light);
  opacity: 0.9;
}
/* Safe area protection for content */
.content-safe-area {
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}
/* Ensure content doesn't get clipped */
.about-header,
.about-overview,
.stats-section,
.core-values,
.company-timeline,
.company-info {
  position: relative;
  z-index: 5;
  margin-left: auto;
  margin-right: auto;
}
/* Additional padding for sections with clip-path */
.section {
  box-sizing: border-box;
}
.section.has-clip-path {
  padding-left: 2rem;
  padding-right: 2rem;
}
/* Responsive Design */
@media (max-width: 900px) {
  .section.has-clip-path {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .about-section {
    clip-path: polygon(50% 0%, 100% 4%, 100% 96%, 50% 100%, 0% 96%, 0% 4%);
    padding: 12vh 0 16vh 0;
  }
  .project-section {
    clip-path: polygon(50% 0%, 100% 4%, 100% 96%, 50% 100%, 0% 96%, 0% 4%);
    padding: 12vh 0 16vh 0;
  }
  .contact-section {
    clip-path: polygon(50% 0%, 100% 4%, 100% 100%, 0% 100%, 0% 4%);
  }
  .about-header h2 {
    font-size: 2rem;
  }
  .about-subtitle {
    font-size: 1rem;
  }
  .overview-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem 0;
  }
  .stat-number {
    font-size: 2rem;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline-item {
    flex-direction: row !important;
    padding-left: 3rem;
  }
  .timeline-year {
    position: absolute;
    left: -0.5rem;
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .timeline-content {
    margin-left: 2rem;
  }
  .info-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .company-info {
    padding: 2rem;
  }
}
@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .about-section {
    padding: 10vh 0 14vh 0;
  }
  .project-section {
    padding: 10vh 0 14vh 0;
  }
  .about-header h2 {
    font-size: 1.8rem !important;
  }
  .stats-section {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .stat-number {
    font-size: 1.8rem !important;
  }
  .section.has-clip-path {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
/* Text Content */
.text-content {
  max-width: 700px;
}
/* Contact Section */
.contact-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  /* แทนที่ด้วยรูปพื้นหลังของคุณ */
  background-size: cover;
  background-position: center;
  clip-path: polygon(50% 0%, 100% 8%, 100% 100%, 0% 100%, 0% 8%);
  z-index: 5;
  min-height: 100vh;
}
.contact-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  text-align: center;
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Contact Info Side */
.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.company-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
  text-align: center;
}
.company-info .contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.company-info .contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon i {
  font-size: 1.5rem;
  width: 2em;
  height: 2em;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item strong {
  color: var(--accent-cyan);
}
.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-item a:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}
/* Map Container */
.map-container {
  width: 100%;
}
.map-container h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  text-align: center;
}
.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.map-wrapper iframe {
  width: 100%;
  height: 500px;
  border: none;
  filter: contrast(1.1) saturate(1.2);
}
.map-address {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
.map-address p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
.map-address strong {
  color: var(--accent-cyan);
}
/* Contact Form Side */
.contact-form-side {
  display: flex;
  flex-direction: column;
}
.contact-form {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.contact-form h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
  text-align: center;
}
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Kanit', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.3);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--accent-cyan), #0097a7);
  color: white;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  font-family: 'Kanit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.submit-btn:hover {
  background: linear-gradient(135deg, #00a1b4, #00838f);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}
.submit-btn:active {
  transform: translateY(0);
}
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
}
.form-message.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
}
.form-message.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #f44336;
}
/* --- Footer --- */
.main-footer {
  position: relative;
  z-index: 6;
  background-color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  font-size: 0.9rem;
  color: #aaa;
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-icons a {
  color: #aaa;
  text-decoration: none;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.social-icons a[href*="facebook"]:hover {
  background: #1877f2;
  color: white;
}
.social-icons a[href*="twitter"]:hover {
  background: #1da1f2;
  color: white;
}
.social-icons a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}
.social-icons a[href*="line"]:hover {
  background: #00c300;
  color: white;
}
.social-icons a[href*="tel"]:hover {
  background: var(--accent-cyan);
  color: white;
}
.social-icons a[href*="mailto"]:hover {
  background: #ea4335;
  color: white;
}
.social-icons a::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;
}
.social-icons a:hover::before {
  left: 100%;
}
/* Responsive Design for Contact Section */
@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-section h2 {
    font-size: 2rem;
  }
  .contact-details {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
@media (max-width: 900px) {
  .contact-form {
    padding: 1.5rem;
  }
  .contact-details {
    grid-template-columns: 1fr;
  }
  .contact-item {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding: 0.8rem;
  }
  .contact-icon {
    align-self: flex-start;
    min-width: 2rem;
  }
}
@media (max-width: 480px) {
  .contact-section h2 {
    font-size: 1.8rem;
  }
  .contact-form h3,
  .company-info h3 {
    font-size: 1.3rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
  }
  .submit-btn {
    padding: 1rem;
    font-size: 1rem;
  }
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .contact-icon {
    align-self: center;
  }
}
/* Responsive Design for Footer */
@media (max-width: 900px) {
  .main-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 5%;
  }
  .social-icons {
    justify-content: center;
  }
  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
}
@media (max-width: 480px) {
  .main-footer {
    padding: 1.5rem 3%;
  }
  .copyright {
    font-size: 0.8rem;
  }
  .social-icons {
    gap: 0.8rem;
  }
  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
/* Touch support for mobile */
@media (hover: none) and (pointer: coarse) {
  .thumbnail:hover {
    opacity: 0.6;
    transform: none;
    border-color: transparent;
  }
  .thumbnail.active {
    opacity: 1;
    border-color: var(--accent-cyan);
    transform: scale(1.05);
  }
}
/* Mobile Navigation Responsive */
@media (max-width: 900px) {
  .main-header {
    padding: 1rem 3%;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
  }
  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: transparent;
    border-left: 3px solid var(--accent-cyan);
  }
  .search-icon {
    display: none;
    /* ซ่อนไอคอนค้นหาบน mobile */
  }
}
@media (max-width: 480px) {
  .main-header {
    padding: 0.8rem 3%;
  }
  .mobile-menu-toggle {
    width: 25px;
    height: 25px;
  }
  .hamburger-line {
    height: 2px;
  }
  .main-nav a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
/* Service Section */
.service-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(images/background.webp);
  background-size: cover;
  background-position: center;
  clip-path: polygon(50% 0, 100% 10%, 100% 90%, 50% 100%, 0 90%, 0 10%);
  z-index: 2;
}
.service-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  text-align: center;
}
.service-container {
  max-width: 1200px;
  width: 100%;
}
.service-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.service-menu {
  background: rgba(255, 255, 255, 0.05);
}
/* Responsive Design for Contact Section */
@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-section h2 {
    font-size: 2rem;
  }
}
@media (max-width: 900px) {
  .contact-form {
    padding: 1.5rem;
  }
  .contact-item {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding: 0.8rem;
  }
  .contact-icon {
    align-self: flex-start;
    min-width: 2rem;
  }
}
@media (max-width: 480px) {
  .contact-section h2 {
    font-size: 1.8rem;
  }
  .contact-form h3,
  .company-info h3 {
    font-size: 1.3rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
  }
  .submit-btn {
    padding: 1rem;
    font-size: 1rem;
  }
  .contact-icon {
    align-self: center;
  }
}
/* Responsive Design for Footer */
@media (max-width: 900px) {
  .main-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 5%;
  }
  .social-icons {
    justify-content: center;
  }
  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
}
@media (max-width: 480px) {
  .main-footer {
    padding: 1.5rem 3%;
  }
  .copyright {
    font-size: 0.8rem;
  }
  .social-icons {
    gap: 0.8rem;
  }
  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
/* Touch support for mobile */
@media (hover: none) and (pointer: coarse) {
  .thumbnail:hover {
    opacity: 0.6;
    transform: none;
    border-color: transparent;
  }
  .thumbnail.active {
    opacity: 1;
    border-color: var(--accent-cyan);
    transform: scale(1.05);
  }
}
/* Mobile Navigation Responsive */
@media (max-width: 900px) {
  .main-header {
    padding: 1rem 3%;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
  }
  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: transparent;
    border-left: 3px solid var(--accent-cyan);
  }
  .search-icon {
    display: none;
    /* ซ่อนไอคอนค้นหาบน mobile */
  }
}
@media (max-width: 480px) {
  .main-header {
    padding: 0.8rem 3%;
  }
  .mobile-menu-toggle {
    width: 25px;
    height: 25px;
  }
  .hamburger-line {
    height: 2px;
  }
  .main-nav a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
/* About Section Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 159, 67, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 159, 67, 0.6);
  }
}
/* Apply animations to elements */
.about-header {
  animation: fadeInUp 0.8s ease-out;
}
.overview-text {
  animation: slideInLeft 0.8s ease-out 0.2s both;
}
.overview-image {
  height: 300px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.value-icon {
  animation: glow 2s ease-in-out infinite;
}
.company-image {
  filter: brightness(1.1) contrast(1.1);
  transition: all 0.3s ease;
}
.overview-image:hover .company-image {
  filter: brightness(1.2) contrast(1.2);
}
/* Hover effects */
.timeline-content:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.value-card:hover .value-icon {
  box-shadow: 0 0 20px rgba(255, 159, 67, 0.5);
}
/* Additional responsive improvements */
@media (max-width: 480px) {
  .stats-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .about-header h2 {
    font-size: 1.8rem;
  }
  .company-info {
    padding: 1.5rem;
  }
  .timeline-year {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
/* Clip-path responsive fixes */
@media (max-width: 1024px) {
  .about-section {
    padding: 14vh 0 18vh 0;
  }
  .project-section {
    padding: 14vh 0 18vh 0;
  }
}