/* This is a style that will be applied universally */
:root {
  --primary-color: #006d6d;
  --secondary-color: #004453;
  --accent-color: rgb(4, 141, 141);
  --light-color: white;
  --bg-color: #f9f9f9;
  --text-color: #333;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-size: medium;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.805);
  --webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.logo {
  width: 30%;
}
.logo img {
  width: 100%;
  height: auto;
  max-width: 300px;
}

#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #006d6d;
  margin: 4px 0;
  transition: all var(--transition-speed) ease;
}

nav {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 100%;
  width: 80%;
}

.nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 100%;
  transition: color 0.3s;
}

nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #004453;
  font-size: 11pt;
  transition: color var(--transition-speed);
  width: 100%;
  height: 100%;
}

nav a:hover {
  color: rgb(255, 255, 255);
}

.nav-button {
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  box-shadow: 0px 3px 0px rgba(161, 161, 161, 0.219);
}

.nav-button:hover {
  background-image: linear-gradient(
    to right,
    rgba(21, 241, 131, 0.856) 10%,
    rgba(0, 138, 192, 0.87) 90%
  );
  font-size: 12pt;
  font-weight: 500;
}

.active {
  background-image: linear-gradient(
    to right,
    rgba(22, 194, 108, 0.856) 10%,
    rgba(5, 106, 146, 0.87) 90%
  );
}
.active a {
  font-size: 12pt;
  color: #fff;
  font-weight: 500;
}

.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 2rem;
  width: 99%;
  margin-top: 100px;
  min-height: 80vh;
}

/* Main Content Layout */
main {
  display: flex;
  flex-direction: column;
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  margin-bottom: 3rem;
  gap: 2rem;
}
.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.section:nth-child(even) {
  flex-direction: row-reverse;
}

.image img {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 0 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.image {
  border-radius: 0 15px;
}

.section .content h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.section .image {
  height: auto;
}


/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/* Footer */

footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 140px;
  background-color: #ffffff;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}
footer {
  background-color: #ffffff;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

footer .footer-logo {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

footer .footer-links {
  display: flex;
  gap: 1rem;
}

footer .footer-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

footer .footer-links a:hover {
  color: #666;
}

/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/* Global Media Queries */

@media (max-width: 1250px) {
  main {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    font-size: 0.8rem;
    width: 100%;
  }

  h1 {
    font-size: 10pt;
  }
  h2 {
    font-size: 10pt;
  }
  h3 {
    font-size: 9pt;
  }
  p {
    font-size: 9pt;
  }

  .hero {
    width: 95%;
  }

  .content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    margin-left: 0.2em;
    margin-right: 0;
    padding: 0;
    margin-top: 100px;
  }

  .content {
    width: 100%;
    padding: 0.5rem;
  }

  .section {
    display: block;
    align-items: center;
    justify-content: start;
    margin-bottom: 1rem;
    gap: 0.7rem;
  }
  .contact-form {
    width: 80%;
  }
  /* Position and style for the nav in mobile view */
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
  }
  .logo {
    font-size: 28pt;
    width: 60%;
  }
  nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  /* Display the hamburger icon at small screens */
  .hamburger {
    display: flex;
  }

  /* When the nav-toggle is checked, fully expand the nav menu */
  #nav-toggle:checked + .hamburger + nav {
    display: flex;
    flex-direction: column; /* ensures the items stack vertically */
    width: 100%;
    max-height: 500px; /* Adjust this value to the maximum height of your menu */
    height: max-content;
    transition: max-height 0.3s ease-in-out;
    z-index: 1000;
  }
  #nav-toggle:checked + .hamburger + .nav-button + a {
    display: flex;
    flex-direction: column; /* ensures the items stack vertically */
    width: 80%;
  }

  /* Transform the hamburger icon into an X */
  #nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  #nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}
