@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300&family=Poppins:wght@400;700&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  width: 100vw;
  height: 100vh;
  font-size: 62.5%;
  color: white;
}

/* Body and Background */
body {
  background: url(../img/fundo.png);
  background-position: center center;
  background-size: 77rem;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 1rem;
  background-position-y: 0px;
}

/* Main Content Styles */
main {
  height: 93vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Typography */
h1, h2 {
  font-size: 4rem;
  color: #0e1a31;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
  font-family: 'Outfit', sans-serif;
}

h1 {
  font-size: 3rem;
}

h1::before,
h2::before {
  display: block;
}

.primary-text {
  width: 850px;
  font-size: 5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.second-text {
  margin-bottom: 7rem;
  font-size: 2rem;
  color: rgb(165, 165, 165);
  text-transform: uppercase;
}

/* Header Styles */
header {
  width: 100%;
  height: 9.3vh;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 5px 25px rgb(0 0 0 / 20%);
  padding: 0 100px;
  transition: 0.6s;
}

header .logo {
  font-size: 1.8em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  width: 120px;
  height: auto;
  display: block;
}

header .navigation {
  position: relative;
  line-height: 75px;
  transition: 0.6s;
  transition-property: line-height;
  margin-left: auto; /* Added for right alignment */
}

header.sticky .navigation {
  line-height: 60px;
}

header .navigation .menu {
  position: relative;
  display: flex;
  justify-content: flex-end; /* Changed from 'center' to 'flex-end' */
  list-style: none;
  user-select: none;
}

header .menu-item {
  margin-left: 0; /* Added to remove default margins */
}

.menu-item a {
  color: #264d53;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  text-decoration: none;
  margin: 20px;
  padding: 25px 0;
  font-weight: 600;
}

.menu-item a:hover {
  color:#2f9f99;
  transition: 0.2s;
}

/* Form Styles */
.form {
  height: 350px;
  font-size: 1.125rem;
  background-color: transparent;
  border-radius: 10px;
  display: block;
  margin: 20px auto;
  text-align: center;
  border: 2px solid #1c7080;
  padding: 14px 10px;
  outline: none;
  transition: 0.25s;
  width: 555px;
  max-width: 100%;
}

.form label,
.form input,
.form textarea,
.form button {
  display: block;
  width: 100%;
}

.form label {
  color: #0e1a31;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #1c7080;
  border-radius: 5px;
  transition: border-color, box-shadow 0.2s;
  background-color: transparent;
}

.form textarea {
  min-height: 13rem;
  resize: vertical;
  color: #1c7080;
}

.form input:hover,
.form input:focus,
.form textarea:hover,
.form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.624);
  box-shadow: 0 0 0 1px rgba(236, 236, 236, 0.624);
  color: rgba(255, 255, 255, 0.624);
}

.form button {
  display: block;
  padding: 1rem;
  background: #2f9f9a8a;
  color: #000000;
  font: inherit;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.form button:hover,
.form button:focus {
  outline: none;
  background: #2f9f99;
  color: #ffffff;
}

/* Button Styles */
.btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btns button {
  width: 250px;
  height: 60px;
  cursor: pointer;
  border: 1px solid white;
  color: rgba(255, 255, 255, 0.932);
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  background-color: transparent;
  font-weight: bold;
  letter-spacing: 0.2rem;
  border-radius: 20px;
  position: relative;
  transition: 1.5s;
}

.btns button:before {
  content: ' ';
  border-radius: 20px;
  bottom: 0;
  left: 0;
  position: absolute;
  width: 0;
  height: 60px;
  background-color: #af86447f;
  z-index: -1;
  transition: 1s;
}

.btns button:hover:before {
  width: 100%;
}

.btns button:hover {
  color: rgba(236, 236, 236, 0.932);
  border: none;
}

/* Text and Image Layout */
.texto-imagem {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.texto-imagem h1,
.texto-imagem p {
  flex: 2;
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: justify;
}

.texto-imagem .imagem {
  flex: 1;
}

.texto-imagem .imagem img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Menu Button Styles */
.menu-btn, .close-btn {
  display: none;
}

.close-btn {
  position: absolute;
  background: url(close.png) no-repeat;
  width: 40px;
  height: 40px;
  background-size: 25px;
  background-position: center;
  top: 0;
  left: 0;
  margin: 25px;
  cursor: pointer;
}

.menu-btn {
  background: url(menu.png) no-repeat;
  width: 40px;
  height: 40px;
  background-size: 30px;
  background-position: center;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1060px) {
  header {
    padding: 15px 20px;
  }

  .navigation .menu {
    position: fixed;
    display: block;
    background: rgba(22, 22, 22, 0.2);
    min-width: 350px;
    height: 100vh;
    top: 0;
    right: -100%;
    padding: 90px 50px;
    visibility: hidden;
    overflow-y: auto;
    transition: 0.5s;
    transition-property: right, visibility;
  }

  header.sticky .navigation {
    line-height: 75px;
  }

  .navigation .menu.active {
    right: 0;
    visibility: visible;
  }

  .menu-item {
    position: relative;
  }

  .menu-item .sub-menu {
    opacity: 1;
    position: relative;
    top: 0;
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    display: none;
  }

  header.sticky .menu-item .sub-menu {
    top: 0;
  }

  .menu-item:hover .sub-menu {
    transform: translateX(10px);
  }

  .menu-item .sub-menu .sub-item {
    box-shadow: none;
  }

  .menu-item .sub-menu .sub-item:hover {
    background: none;
  }

  .menu-item .sub-menu .sub-item a:hover {
    color: #ffffff;
    transition: 0.3s;
  }

  .more .more-menu {
    opacity: 1;
    position: relative;
    left: 0;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: none;
  }

  .more .more-menu .more-item {
    box-shadow: none;
  }

  .more .more-menu .more-item:hover {
    background: none;
  }

  .more .more-menu .more-item a {
    margin-left: 20px;
  }

  .menu-btn, .close-btn {
    display: block;
  }

  .primary-text {
    width: 100%;
    font-size: 3.5rem;
  }

  .form {
    width: 90%;
    height: auto;
    padding: 20px;
  }
}

/* Utility Classes */
.about {
  margin-top: 20rem;
}