<!--
************************************************************
*                                                          *
*   Flowhooks Software - All Rights Reserved               *
*          (c) 2025 Felipe Cezar Zwerchowski Paz LTDA.     *
*                                                          *
*  This software is proprietary.                           *
*  Unauthorized use, reproduction, or distribution is      *
*  strictly prohibited.                                    *
*                                                          *
*  Author: Felipe Cezar Paz (git@felipecezar.com)          *
*  File:                                                   *
*  Description:                                            *
*                                                          *
************************************************************
-->

html,
body {
  height: 100%;
  margin: 0; /* Remove default margin */
}

/* Apply the new font to the entire body */
body {
  font-family: "Roboto", sans-serif; /* Use the new font */
}

/* Parallax Section */
.parallax {
  height: 100vh; /* Full viewport height */
  background-attachment: fixed; /* Keep the background 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(5px);
  -webkit-backdrop-filter: blur(5px);
  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;
}

/* Apply the serif font to the overlay text */
.overlay-text h1,
.overlay-text p {
  font-family: "Nanum Myeongjo", serif;
}

/* 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) {
  .parallax {
    height: 100vh; /* Adjust height for mobile */
    background-attachment: scroll; /* Change to scroll for better performance on mobile */
  }

  .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;
  }
}

/* Custom Fade-In and Fade-Out Animations */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.fade-out {
  animation: fadeOut 1s ease-in forwards;
}

/* Smooth transition for form hiding */
.form-hidden {
  opacity: 0;
  transform: scale(0.95); /* Slightly shrink the form for a smoother effect */
  pointer-events: none; /* Disable pointer events while the form is hidden */
  transition:
    opacity 1s ease,
    transform 1s ease; /* Only animate opacity and scale */
}

.form-visible {
  opacity: 1;
  transform: scale(1); /* Ensure the form is in its original size */
  pointer-events: auto; /* Enable pointer events when the form is visible */
  transition:
    opacity 1s ease,
    transform 1s ease; /* Only animate opacity and scale */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
