/* CSS Reset and Basic Styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 600;
  font-style: normal;
}

body {
  background-color: #f0f0f0;
}

/* Header */
nav {
  height: 10vh;
  background-color: rgb(255, 255, 255);
}

.header-nav {
  position: relative; /* Changed from absolute */
  z-index: 100;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 10vh;
  background-color: rgba(255, 255, 255, 0.9);
}

.header_logo {
  width: 4rem;
  height: 3rem;
  object-fit: contain;
}

.header_navbar_logo {
  padding-left: 1rem;
}

.header_navbar_logo a {
  font-size: 20px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: #06aeef;
  text-decoration: none;
}

.header_navbar_logo a p {
  padding-top: 0;
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 500;
  font-style: normal;
  padding-left: 10px;
}

#nav-list {
  display: flex;
  align-items: center;
}

#nav-list li {
  list-style-type: none;
  padding: 1.5rem 2rem;
  letter-spacing: 1px;
}

#nav-list li a {
  color: #06aeef;
  text-decoration: none;
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
}

.nav_list_button {
  transition: 0.3s;
  width: 7rem;
  height: 2.5rem;
  border-radius: 50px;
  background-color: #06aeef;
  text-decoration: none;
  position: relative;
  margin: auto 1rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#nav-list .color {
  color: white;
  text-decoration: none;
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 400;
  font-size: 16px;
}

#hmb {
  position: relative;
  width: 32px;
  height: 28px;
  cursor: pointer;
  z-index: 30;
  margin-right: 2rem;
}

#hmb span {
  width: 100%;
  height: 3px;
  display: none;
  background-color: #06aeef;
  border-radius: 2px;
  position: absolute;
  transition: 0.2s;
}

#nav-list li,
.nav_list_button {
  display: none;
}

/* Desktop Styles */
@media (min-width: 1024px) {
  #hmb {
    display: none;
  }
  #nav-list li,
  .nav_list_button {
    display: flex;
  }
}

/* Mobile & Tablet Styles */
@media (max-width: 1023px) {
  #hmb span {
    display: block;
    cursor: pointer;
    transition: 0.5s;
  }

  #hmb span:first-child {
    top: 0;
  }

  #hmb span:nth-child(2) {
    top: 10px;
  }

  #hmb span:last-child {
    top: 20px;
  }

  /* Active Hamburger Menu */
  .active #hmb span:first-child {
    top: 10px;
    transform: rotate(45deg);
    background-color: white;
  }

  .active #hmb span:nth-child(2) {
    opacity: 0;
  }

  .active #hmb span:last-child {
    top: 10px;
    transform: rotate(-45deg);
    background-color: white;
  }

  .active #nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8rem;
    background-color: #06aeef;
    z-index: 20;
    transition: transform 0.4s ease-in-out;
    transform: translateX(100%);
  }

  .active #nav-list.open {
    transform: translateX(0);
  }

  .active #nav-list li {
    display: block;
    z-index: 50;
  }

  .active .nav_list_button {
    display: flex;
    background-color: white;
    margin: 1rem auto;
  }

  .active #nav-list li a {
    color: white;
  }

  .active #nav-list .color {
    color: #06aeef;
  }

  .active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    background-color: black;
    width: 100vw;
    height: 100vh;
    opacity: 0.4;
    z-index: 10;
  }
}

/* Contact Page First View */
.contact-first-view {
  position: relative;
  width: 100%;
  height: 40vh;
  background-image: url("https://placehold.co/1600x600/06aeef/ffffff?text=CONTACT");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-first-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.contact-first-view h1 {
  position: relative;
  color: white;
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .contact-first-view h1 {
    font-size: 2rem;
  }
}

/* Contact Form Section */
.contact-form-section {
  padding: 4rem 1rem;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .contact-form-container {
    padding: 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group label .required {
  color: #e44d26;
  margin-left: 0.25rem;
  font-weight: normal;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #06aeef;
  box-shadow: 0 0 0 2px rgba(6, 174, 239, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button-container {
  text-align: center;
  margin-top: 2rem;
}

.submit-button {
  background-color: #06aeef;
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.submit-button:hover {
  background-color: #058ac7;
  transform: translateY(-2px);
}

.success-message {
  text-align: center;
  padding: 4rem 1rem;
  min-height: 480px; /* Adjust to match form height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.success-message h2 {
  color: #06aeef;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.success-message p {
  font-weight: 400;
  line-height: 1.8;
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 2rem 1rem;
}

.footer_info {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.footer_company_info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer_navbar_logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

.footer_logo img {
  width: 6rem;
  height: auto;
  filter: brightness(0) invert(1); /* Make logo white */
}

.company_info p {
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}

.company_phone {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.phone_slush {
  display: none;
}

.footer_button {
  margin-top: 2rem;
}

.footer_button a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #06aeef;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.footer_button a:hover {
  background-color: #058ac7;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  font-size: 0.8rem;
  font-weight: 300;
}

@media (min-width: 768px) {
  .footer_company_info {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer_navbar_logo a {
    flex-direction: row;
  }
  .company_info {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  .company_phone {
    margin-top: 0;
  }
  .phone_slush {
    display: inline;
  }
  .footer_button {
    margin-top: 0;
  }
}
