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

body {
  color: #fff;
  font-family: "Kanit", sans-serif;
}

.container {
  padding: 1rem 6rem;
}

header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 6rem;
}

header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

header .logo img {
  width: 75px;
  height: 75px;
}

header .logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

header nav a {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

header nav a::after {
  content: "";
  display: block;
  border-bottom: 4px solid #fff;
  width: 100%;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s linear;
}

header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s linear;
}

header nav button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 1rem 3rem;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  overflow: hidden;
}

header nav button::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  width: 100%;
  background-color: #fff;
  transition: 0.3s linear;
  z-index: 0;
}

header nav button:hover::after {
  height: 100%;
  top: initial;
  bottom: 0;
  transition: 0.3s linear;
}

header nav button span {
  position: relative;
  transition: color 0.3s linear;
  z-index: 1;
}

header nav button:hover span {
  color: #000;
}

header .hamburger-menu {
  display: none;
}

section {
  min-height: 100vh;
  background-image: url("../Images/dark-bg.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

section .container .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
}

section .container .content h1 {
  font-size: 48px;
  font-weight: bold;
}

section .container .content p {
  font-size: 20px;
}

section .container .content .action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

section .container .content .action .action-1 {
  padding: 1rem 2rem;
  background: transparent;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s linear;
}

section .container .content .action .action-1:hover {
  background-color: #fff;
  color: #000;
  transition: 0.2s linear;
}

section .container .content .action .action-2 {
  padding: 1rem 2rem;
  background: transparent;
  color: #000;
  background-color: #fff;
  border: 3px solid #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s linear;
}

section .container .content .action .action-2:hover {
  background-color: #e4e4e4;
  border: 3px solid #e4e4e4;
  transition: 0.2s linear;
}

#nav-mobile {
  display: flex; /* Enables flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  position: fixed; /* Keeps the element in a fixed position */
  top: 0;
  left: 0;
  width: 100vw; /* Full width of the viewport */
  height: 100vh; /* Full height of the viewport */
  background-color: rgba(0, 0, 0, 0.8); /* Optional: Background with transparency */
  z-index: 1000; /* Ensure it is above other elements */
}

#nav-mobile ul {
  list-style: none; /* Remove bullet points */
  padding: 0;
  margin: 0;
  text-align: center;
}

#nav-mobile ul li {
  margin: 10px 0; /* Add spacing between links */
}

#nav-mobile ul li a {
  color: white; /* Link color */
  text-decoration: none; /* Remove underline */
  font-size: 1.5rem; /* Adjust link size */
}

#close-mobile {
  position: absolute; /* Position close button */
  top: 20px; /* Adjust from top */
  right: 20px; /* Adjust from right */
  cursor: pointer; /* Pointer cursor on hover */
}



@media screen and (max-width: 1024px) {
  header nav {
    display: none;
  }

  header .hamburger-menu {
    display: block;
  }

  header .mobile-nav {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    height: 100vh;
    background-color: #000;
    z-index: 999;
    transition: all 0.2s linear;
  }

  header .mobile-nav.show {
    transform: translateY(0);
    transition: all 0.2s linear;
  }

  header .mobile-nav .close {
    position: absolute;
    top: 24px;
    right: 16px;
    display: flex;
    justify-content: end;
    width: 100%;
  }

  header .mobile-nav .close svg {
    cursor: pointer;
    width: 35px;
    height: 35px;
  }

  header .mobile-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  header .mobile-nav ul li {
    cursor: pointer;
    position: relative;
    list-style: none;
    width: 25%;
  }

  header .mobile-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 36px;
    transition: 0.3s linear;
  }

  header .mobile-nav ul li .nav-link::after {
    content: "";
    display: block;
    border-bottom: 1px solid #fff;
    width: 0%;
    transition: 0.3s linear;
  }

  header .mobile-nav ul li:hover .nav-link::after {
    width: 100%;
    transition: 0.3s linear;
  }

  section .container .content {
    align-items: center;
    width: 100%;
  }

  section .container .content h1,
  section .container .content p {
    text-align: center;
  }

  section .container .content p {
    width: 85%;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 1rem 4rem;
  }

  header {
    padding: 1rem 4rem;
  }

  section .container .content p {
    width: 100%;
  }
}

@media screen and (max-width: 450px) {
  header {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }
}
