/* Importando as fontes */
@font-face {
    font-family: 'Caviar-Regular';
    src: url('../font/CaviarDreams.ttf') format('truetype');
}

@font-face {
    font-family: 'Caviar-Bold';
    src: url('../font/CaviarDreams_Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand-Bold';
    src: url('../font/Quicksand-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand-Light';
    src: url('../font/Quicksand-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand-Medium';
    src: url('../font/Quicksand-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand-Regular';
    src: url('../font/Quicksand-Regular.ttf') format('truetype');
}

/* Estilos gerais */
body {
    font-family: Quicksand-Regular, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garante que o corpo ocupe pelo menos a altura da tela */
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #76993d;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.logo {
    width: 170px;
    padding-left: 20px;
}

nav {
    flex-grow: 1;
    text-align: right;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    padding-right: 100px;
}

.menu > li {
    position: relative;
    margin-left: 25px;
}

.menu > li > a {
    text-decoration: none;
    color: #ffffff;
    font-size: large;
    padding: 10px 10px;
    display: block;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.menu > li > a:hover {
    background-color: #98b980;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #98b980;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    border-bottom: 1px solid #98b980;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
    font-family: Quicksand-Light;
}

.dropdown-content a:hover {
    background-color: #b7d5a0;
}

/* Mostrar dropdown no hover */
.dropdown:hover .dropdown-content {
    display: block;
    transition: opacity 0.3s ease;
    opacity: 1;
}

h1 {
    opacity: 0.2;
}




/* Vídeo de fundo */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mostra o máximo do vídeo possível */
    z-index: -1;
}

/* Logo Central com fade-in */
.logo-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.logo-fade {
    width: 500px; /* Tamanho ajustado da imagem */
    opacity: 0;
    animation: fadeIn 5s forwards; /* Efeito de fade-in */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Header (nav incluído) oculto inicialmente */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #76993d;
    transition: transform 1s ease-in-out;
    transform: translateY(-100%); /* Move o header para fora da tela */
    z-index: 2;
}

/* Mostrar o header com a animação suave */
.menu-visible header {
    transform: translateY(0); /* Traz o header de volta à tela */
}

/* Ocultar a imagem no menu */
nav .logo {
    display: none;
}

/* Menu */
.menu {
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

/* Efeito de "sugar" o header para cima */
.menu-hidden header {
    transform: translateY(-100%); /* Header volta a sair da tela */
    transition: transform 0.8s ease-in-out; /* Animação suave de sumir */
}
