/* Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body, html {
    width: 100%;
    height: auto;
    overflow-x: hidden; /* Mantém a rolagem apenas no eixo Y */
    scroll-behavior: smooth;
}

/* Garante que a frase de efeito fique apenas dentro do vídeo */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(50%);
}

/* Camada escura para contraste */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Menu Transparente Inicialmente */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

/* Quando rolar a página, o fundo fica branco */
header.scrolled {
    background: rgb(26, 23, 190);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Ajuste na cor dos links quando o fundo for branco */
header.scrolled nav ul li a {
    color: black;
}

header.scrolled nav ul li a:hover {
    color: #007bff; /* Cor azul ao passar o mouse */
}

.navbar {
    display: flex;
    justify-content: space-between; /* Separa logo e links */
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    transition: background 0.3s ease-in-out;
    z-index: 10;
}

.navbar .logo img {
    height: 100px; /* Ajuste conforme necessário */
    margin-left: 100px;
    filter: brightness(0) invert(1); /* A logo começa predominantemente branca */
    transition: filter 0.3s ease-in-out;
}

/* Quando rolar a página e o fundo for branco, a logo mantém a cor original */
.navbar-scrolled .logo img {
    filter: none; /* Remove o efeito */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px; /* Espaçamento entre links */
    margin-right: 100px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

/* Quando rolar a página */
.navbar-scrolled {
    background: white; /* Fundo branco ao rolar */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Pequena sombra */
}

.navbar-scrolled .nav-links li a {
    color: black; /* Deixa os links visíveis no fundo branco */
}


.hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    pointer-events: none; /* Evita que a frase bloqueie cliques no vídeo */
}

/* Estilos para o Título (h1) */
.hero h1 {
    font-size: 50px;
    font-family: 'Poppins', sans-serif; /* Fonte moderna e chamativa */
    font-weight: 700; /* Negrito */
    color: rgb(248, 245, 245);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra no texto */
    border-right: 3px solid white;
    white-space: nowrap;
    overflow: hidden;
    max-width: 90%; /* Limita a largura do texto */
    margin: 0 auto; /* Centraliza o texto */
    letter-spacing: 2px; /* Aumenta o espaçamento entre as letras */
    animation: blink-caret 0.75s step-end infinite; /* Animação do cursor */
}

/* Estilos para a Subfrase (h2) */
.hero h2 {
    font-size: 34px;
    font-family: 'Roboto', sans-serif; /* Fonte moderna e leve */
    font-weight: 300; /* Peso mais leve */
    color: rgb(194, 191, 191);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Sombra mais suave */
    border-right: 3px solid white;
    margin-top: 10px;
    max-width: 90%; /* Limita a largura do texto */
    margin: 0 auto; /* Centraliza o texto */
    white-space: nowrap;
    letter-spacing: 1px; /* Espaçamento entre as letras */
    animation: blink-caret 0.75s step-end infinite; /* Animação do cursor */
}

/* Animação do cursor piscando */
@keyframes blink-caret {
    from, to {
        border-color: transparent; /* Cursor desaparece */
    }
    50% {
        border-color: white; /* Cursor aparece */
    }
}

/* 🌟 RESPONSIVIDADE PARA MOBILE */
@media (max-width: 768px) {
    video {
        object-fit: cover;
        filter: blur(3px) brightness(50%); /* Menos blur para melhor leitura */
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* .logo img {
        height: 40px;
        text-align: center;
    } */

    nav ul {
        margin-top: 10px;
        flex-direction: column;
        text-align: center;
        display: none;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 28px; /* Reduz o tamanho da fonte em telas menores */
        white-space: normal; /* Permite a quebra de linha em telas menores */
        text-align: center; /* Centraliza o texto */
    }

    .hero h2 {
        font-size: 18px; /* Reduz o tamanho da fonte em telas menores */
        white-space: normal; /* Permite a quebra de linha em telas menores */
        text-align: center; /* Centraliza o texto */
    }

    .navbar {
        justify-content: center; /* Centraliza a logo */
        padding: 10px; /* Reduz o padding para melhor centralização */
    }

    .nav-links {
        display: none; /* Esconde os links do menu */
    }

    .navbar .logo img {
        margin-left: 0; /* Remove a margem esquerda da logo */
        height: 180px; /* Reduz o tamanho da logo em telas menores */
    }
}

/* Garante que o vídeo ocupa apenas a primeira tela */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Mantém o vídeo ocupando apenas a tela inicial */
    overflow: hidden;
}

/* Mantém os elementos sobre o vídeo */
.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

/* 🔹 Estiliza a seção de serviços para ficar abaixo do vídeo */
#servicos {
    position: relative;
    z-index: 3;
    background: #f5f5f5;
    padding: 80px 5%;
    margin-top: 0vh; /* Isso garante que ele fique exatamente abaixo do vídeo */
}

#servicos h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

#servicos p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

/* 🌟 CONTAINER DOS SERVIÇOS */
.servicos-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 20px;
    background-color: #f7f7f7;
    flex-wrap: wrap; /* Permite que os cards se ajustem em telas menores */
    text-align: center; /* Centraliza todo o conteúdo */
}

/* 🌟 RESPONSIVIDADE */
@media (max-width: 1024px) {
    .servicos-container {
        flex-direction: column;
        align-items: center; /* Centraliza os cards verticalmente */
        gap: 20px; /* Reduz o espaçamento entre os cards */
    }

    .servico-card {
        max-width: 100%; /* Permite que o card ocupe a largura total em telas menores */
    }
}

.servico-card h3 {
    font-size: 22px;
    font-family: 'Montserrat', sans-serif; /* Fonte moderna e chamativa */
    font-weight: 700; /* Negrito */
    color: #333; /* Cor escura para contraste */
    margin-bottom: 15px;
    letter-spacing: 1px; /* Espaçamento entre as letras */
    text-transform: uppercase; /* Transforma o texto em maiúsculas */
}

/* Estilos para os Parágrafos dos Cards (p) */
.servico-card p {
    font-size: 16px;
    font-family: 'Open Sans', sans-serif; /* Fonte limpa e legível */
    font-weight: 400; /* Peso normal */
    color: #666; /* Cor mais suave */
    line-height: 1.6; /* Aumenta o espaçamento entre as linhas */
    margin-bottom: 20px;
}

/* Estilos para os Botões dos Cards */
.servico-card button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-family: 'Montserrat', sans-serif; /* Fonte moderna para o botão */
    font-weight: 700; /* Negrito */
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.servico-card button:hover {
    background-color: #0056b3;
    transform: translateY(-3px); /* Efeito de levantar o botão */
}
.servico-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 520px; /* Define a largura máxima */
    width: 100%; /* Ocupa 100% da largura disponível */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 5px solid transparent;
}

/* Imagem responsiva */
.servico-card img {
    width: 100%; /* Garante que a imagem ocupe toda a largura do card */
    height: 400px;
    max-height: 400px; /* Ajuste o tamanho máximo conforme necessário */
    object-fit: cover; /* Garante que a imagem se ajuste sem distorcer */
    border-radius: 10px;
    margin-bottom: 15px;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Bordas coloridas para diferenciar os serviços */
.servico-card:nth-child(1) {
    border-top-color: #007bff;
}
.servico-card:nth-child(2) {
    border-top-color: #28a745;
}
.servico-card:nth-child(3) {
    border-top-color: #ff5733;
}

.servico-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.servico-card p {
    font-size: 16px;
    color: #666;
}

.servico-card button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.servico-card button:hover {
    background-color: #0056b3;
}

/* Estilos do Rodapé */
footer {
    background-color: #04032c; /* Cor de fundo do rodapé */
    color: white;
    padding: 60px 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de curva no topo do rodapé */
footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    background: #04032c;
    border-radius: 50% 50% 0 0;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    gap: 120px; /* Aumentei o espaçamento entre os itens */
}

.footer-logo img {
    height: 200px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.footer-address {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-address:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-address h3, .footer-social h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-address p {
    margin: 5px 0;
    font-size: 16px;
    color: #ddd;
}

.footer-address iframe {
    margin-top: 10px;
    border-radius: 10px;
    border: none;
    width: 100%;
    max-width: 300px;
    height: 200px;
    transition: transform 0.3s ease;
}

.footer-address iframe:hover {
    transform: scale(1.05);
}

.footer-social {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-social:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-social ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.footer-social ul li a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social ul li a img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ccc;
}

/* Efeito de onda no rodapé */
footer::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: #04032c;
    border-radius: 0 0 50% 50%;
    z-index: 1;
}

/* Responsividade para o rodapé */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo, .footer-address, .footer-social {
        margin-bottom: 30px;
        width: 100%;
        max-width: 300px;
    }

    .footer-address iframe {
        width: 100%;
        max-width: 100%;
    }

    .footer-social ul {
        justify-content: center;
    }
}

/* Estilos do Botão do WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* Cor verde do WhatsApp */
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
}

.whatsapp-button:hover {
    transform: scale(1.1); /* Aumenta levemente o botão ao passar o mouse */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsividade para o botão do WhatsApp */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        padding: 12px;
    }

    .whatsapp-button img {
        width: 35px;
        height: 35px;
    }
}