/* styles.css */
* {
  font-family: "Titillium Web", sans-serif;
}

/* Parallax Section */
.parallax {
  height: 700px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.98;
  z-index: 0;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar ul {
  display: flex;
  list-style: none;
  transition:
    max-height 0.5s ease,
    opacity 0.5s ease;
  max-height: none; /* Always show on desktop */
  opacity: 1; /* Always show on desktop */
}

.navbar ul li {
  margin: 0.5rem 1rem;
  padding: 0;
}

.navbar .icon {
  display: none;
  cursor: pointer;
}

#navbar-links li a {
  position: relative;
  color: #4a5568; /* Cor padrão do texto */
  text-decoration: none;
  transition: color 0.3s ease;
}

#navbar-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #1e40af; /* Azul Tailwind */
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

#navbar-links li a:hover::after {
  width: 100%;
  left: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .navbar ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    width: 100%;
    z-index: 10;
    padding: 1rem 0;
    margin: 0;
    max-height: 0; /* Initially hide the dropdown */
    opacity: 0; /* Initially hide the dropdown */
    overflow: hidden; /* Prevent overflow */
    transition:
      max-height 0.5s ease,
      opacity 0.5s ease;
  }

  .navbar ul.show {
    max-height: 200px; /* Set a max height for the dropdown */
    opacity: 1; /* Show the dropdown */
  }

  .navbar .icon {
    display: block;
  }
}
