@import '../global/global.css';

:root {
  --text-color: #ffffff;
  --link-hover: #52BF04;
  --navbar-bg: rgba(3, 140, 12, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

html, body {
  height: 100%;
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(3, 140, 12, 0.8);/* cor com transparência */
  color: white;
  z-index: 1000;
  height: 90px;
  backdrop-filter: blur(8px); /* desfoque moderno */
  -webkit-backdrop-filter: blur(8px); /* compatibilidade Safari */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* sombra discreta opcional */
  margin-bottom: 0;
  padding-bottom: 0;
}


.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: white;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links .link-item {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 18px;
}

.nav-links .link-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: green;
  left: 0;
  bottom: 0;
  transition: width 0.4s ease-in-out;
  border-radius: 2px;
}
.nav-links a:hover::after {
  width: 100%; /* A largura da linha vai para 100% SOMENTE quando o mouse está em hover */
}


.link-acesso {
  background-color: var(--cor-verde04);
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--cor-branco);
  font-weight: 500;
  font-size: 18px;
}

.link-acesso:hover{
  opacity: 0.8;
  transition: 0.3s ease;
}

/* Botão Hamburguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  height: 22px;
  justify-content: space-around;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  border-radius: 5px;
  background-color: var(--text-color);
  transition: 0.3s ease;
}

/* Responsivo */
@media (max-width: 920px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(3, 140, 12, 0.8);
        align-items: center;
        position: absolute;
        top: 90px;
        right: 0;
        width: 100%;
        padding: 1rem 0;
        align-items: center;
        gap: 1.5rem;
        z-index: 999;
    }

 

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .menu-toggle span {
        display: block;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
        position: absolute;
        width: 100%;
    }

    .menu-toggle span:nth-child(1) {
        top: 0;
    }

    .menu-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-toggle span:nth-child(3) {
        bottom: 0;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.6rem 1.5rem;
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(3, 140, 12, 0.8);
        align-items: center;
        gap: 1.5rem;
        padding: 1rem 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Footer */
.footer {
  background-color: #038C0C;
  color: #fff;
  text-align: center;
  padding: 20px;
}


