* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans Display", sans-serif;
}

.container {
  padding: 0 10px;
  width: 90%;
  margin: 0 auto;
  max-width: 1250px;
}

/**
NAV
**/

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(0, 0, 0, 1);
  padding: 20px;
  position: relative;
  z-index: 10;
  height: 100px; /* Adjust the height of the navbar */
  position: sticky;
  top: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links.left {
  margin-left: auto;
  justify-content: flex-end;
}

.nav-links.right {
  margin-right: auto;
  justify-content: flex-start;
}

.nav-links li {
  display: inline-block;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 20px; /* Increase font size */
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: "Kanit", sans-serif;
}

.nav-links li a:hover {
  color: #f0a500;
}

.logo-container {
  overflow: hidden;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 30px;
  padding: 40px 0 0;
}

.logo {
  width: 350px; /* Set logo width */
}

@media (max-width: 900px) {
  .logo {
    width: 265px; /* Set logo width */
  }
}
@media (max-width: 768px) {
  .logo {
    width: 225px; /* Set logo width */
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 30;
  position: absolute;
  right: 20px;
  top: 20px;
}

.hamburger .bar {
  width: 35px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .logo-container {
    margin: 0 30px;
    padding: 10px 0 0;
    position: absolute;
    left: 0;
  }
  .navbar {
    justify-content: space-between;
    padding: 0;
    height: 70px;
    position: relative;
    flex-direction: column;
  }
  .nav-links {
    display: none;
    background-color: black;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links.left.active {
    padding: 120px 0 20px;
  }
  .nav-links.right.active {
    padding: 0 0 40px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

.invalid-feedback,
.empty-feedback {
  display: none;
}

.was-validated :placeholder-shown:invalid ~ .empty-feedback {
  display: block;
}

.was-validated :not(:placeholder-shown):invalid ~ .invalid-feedback {
  display: block;
}

.is-invalid,
.was-validated :invalid {
  border-color: #dc3545;
}

/**
HERO
**/

.hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  padding: 0 20px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 50px;
}

.hero-content a {
  background-color: #1b75bb;
  color: white;
  border: none;
  padding: 20px 30px;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 10px;
}

.hero-content a:hover {
  background-color: #094c80;
}

@media (max-width: 767px) {
  .hero {
    height: auto;
    padding: 100px 0;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content {
    top: inherit;
    transform: translateY(0);
  }
}

/**

SWIPER

**/
.splide__slide img {
  object-fit: cover;
  cursor: pointer;
  height: 300px;
  width: auto;
}

/* Modal styles */
.modal {
  display: none; /* Ensure modal is hidden on page load */
  position: fixed;
  z-index: 1000; /* Ensure modal is above the header */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: 87%; /* Set width to 90% */
  margin: 0 auto;
}

.modal-content img {
  width: 100%;
  height: auto;
}

.close {
  position: fixed; /* Changed from absolute to fixed */
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001; /* Ensure close button is above the modal content */
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Prevent page scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Navigation arrows */
.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001; /* Ensure arrows are above the modal content */
  background-color: transparent; /* Make padding area transparent */
  padding: 20px; /* Increase clickable area */
}

.arrow-left {
  left: 20px;
}

.arrow-right {
  right: 20px;
}

/**

SERVICES

**/

.services {
  padding: 60px 20px;
  background-color: #dcdcdc;
}

.services-header {
  text-align: center;
  margin-bottom: 40px;
}

.services-header h2 {
  font-size: 36px;
  font-family: "Kanit", sans-serif;
}

.service-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.service-item {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  flex: 1 1 30%;
  max-width: 30%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.service-item h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-family: "Kanit", sans-serif;
}

.service-item p {
  font-size: 16px;
  color: #555;
}

.detailed-services {
  margin-top: 60px;
}

.detailed-service {
  display: flex;
  align-items: center;
  margin: 70px 0;
  flex-wrap: wrap;
}

.detailed-service:nth-child(even) {
  flex-direction: row-reverse;
}

.detailed-service img.service-image {
  width: 100%;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
}

.service-text {
  flex: 1;
  padding: 20px;
}

.service-text h3 {
  font-size: 28px;
  margin-bottom: 15px;
  font-family: "Kanit", sans-serif;
}

.service-text p {
  font-size: 16px;
  color: #555;
}

@media (max-width: 768px) {
  .service-columns {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    max-width: 80%;
  }

  .detailed-service {
    flex-direction: column;
  }

  .detailed-service:nth-child(even) {
    flex-direction: column;
  }

  .detailed-service img.service-image {
    max-width: 100%;
  }

  .service-text {
    padding: 10px;
  }
}

/**
Industries
**/

.industries {
  padding: 60px 20px;
  background-color: #ffffff;
}

.industries-header {
  text-align: center;
  margin-bottom: 40px;
}

.industries-header h2 {
  font-size: 36px;
  font-family: "Kanit", sans-serif;
}

.industry-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.industry-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  flex: 1 1 30%;
  max-width: 30%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.industry-item img.industry-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.industry-item h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-family: "Kanit", sans-serif;
}

.industry-item p {
  font-size: 16px;
  color: #555;
}

@media (max-width: 768px) {
  .industry-columns {
    flex-direction: column;
    align-items: center;
  }

  .industry-item {
    max-width: 80%;
  }
}

/** FOOTER **/

.footer {
  background-color: #333;
  color: white;
  padding: 40px 20px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.footer-column {
  flex: 1;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-family: "Kanit", sans-serif;
}

.footer-column p,
.footer-column ul,
.footer-column li {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #f0a500;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-media li {
  display: inline-block;
  font-size: 22px;
}

.social-media a img {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    max-width: 100%;
    text-align: center;
  }
}

/***
ABOUT US

**/
.about-us {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h2 {
  font-size: 36px;
  font-family: "Kanit", sans-serif;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.about-text {
  flex: 1;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  max-width: 600px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-text,
  .about-image {
    max-width: 100%;
    text-align: center;
  }

  .about-text {
    margin-bottom: 20px;
  }
}

/***** CONTACT SECTION   *****/

.contact-us {
  padding: 60px 20px;
  background-color: #ffffff;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h2 {
  font-size: 36px;
  font-family: "Kanit", sans-serif;
}

.contact-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info {
  flex: 1;
  max-width: 400px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.contact-info p {
  margin-bottom: 20px;
}

.contact-info a {
  color: #0984e3;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 1;
  max-width: 400px;
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 24px;
  font-family: "Kanit", sans-serif;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

button[type="submit"] {
  background-color: #0984e3;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #065ea3;
}

@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-form {
    max-width: 100%;
  }
}
