html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000; /* Preto puro */
    color: white;
    text-align: center;
    overflow-x: hidden;
}


/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(8, 8, 8, 0.85); /* Preto com 85% de opacidade */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0px 4px 10px rgba(31, 31, 31, 0.5);
    backdrop-filter: blur(5px); /* Suaviza o fundo */
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-logo {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-logo li {
    display: inline;
}

.nav-logo li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
}

.nav-logo li a:hover {
    color: #0400e0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links li {
    display: inline;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
}

.nav-links li a:hover {
    color: #0400e0;
}

/* Header */
header {
    background: url('header-bg.jpg') no-repeat center center/cover;
    padding: 80px 20px;
    margin-top: 70px;
    max-width: 100%;
}

header h1 {
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
    margin: 20px 0;
}

.btn {
    background-color: #0400e0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

/* Garante que todas as seções ocupem a tela inteira */
.features, .cases, .contact{
    min-height: 100vh; /* Mantém todas do tamanho do vídeo */
    display: flex;
    flex-direction: column; /* Mantém os itens empilhados */
    align-items: center; /* Centraliza horizontalmente */
    justify-content: center; /* Centraliza verticalmente */
    text-align: center;
    padding: 50px 20px; /* Espaçamento interno */
    box-sizing: border-box;
}

/* Ajuste nos títulos das seções para ficarem alinhados */
.features h2, .cases h2, .contact h2, .about h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Ajuste para colocar os 4 cards lado a lado */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Força os 4 cards a ficarem na mesma linha */
    gap: 20px; /* Espaço entre os cards */
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    justify-content: center;
}

/* Responsividade para telas menores */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 por linha em telas médias */
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr; /* Empilha os cards em telas pequenas */
    }
}

.features .card {
    background: #080808;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(57, 57, 57, 0.5);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Efeito ao passar o mouse */
.features .card:hover {
    transform: scale(1.07); /* Aumenta ligeiramente */
    box-shadow: 0px 15px 30px rgba(8, 0, 113, 0.397); /* Sombra mais intensa */
}

/* Efeito de brilho animado */
.features .card::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(7, 0, 210, 0.538) 0%, transparent 60%);
    transition: all 0.6s ease-in-out;
    transform: rotate(25deg);
    opacity: 0;
}

.features .card:hover::before {
    top: -50%;
    left: -50%;
    opacity: 1;
}

.about {
    min-height: 100vh; /* Mantém a altura da seção igual à tela */
    max-width: 850px; /* Limita a largura do conteúdo */
    margin: 0 auto; /* Centraliza horizontalmente */
    padding: 50px 20px; /* Adiciona espaçamento */
    
    display: flex; /* Ativa o flexbox */
    flex-direction: column; /* Mantém os itens empilhados */
    justify-content: center; /* Centraliza verticalmente */
}

/* Mantém o título centralizado */
.about h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* Ajuste para os parágrafos */
.about p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left; /* Mantém alinhado à esquerda */
    max-width: 750px; /* Mantém a largura controlada */
}



/* Formulário */
/* Ajuste do formulário */
form {
    max-width: 700px; /* Define a largura maior */
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Ajuste dos inputs e botão */
form input, form button {
    width: 100%;
    padding: 18px; /* Tamanho maior para melhor usabilidade */
    font-size: 1.2rem;
    border-radius: 8px;
    border: none;
    box-sizing: border-box;
    display: block;
}

/* Espaçamento entre os campos */
form input {
    margin-bottom: 15px; /* Adiciona espaço entre os campos */
}

/* Ajuste do botão */
form button {
    background-color: #0400e0;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease-in-out;
}

/* Efeito hover no botão */
form button:hover {
    background-color: #0300b3;
}


/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    header h1 {
        font-size: 3rem;
    }

    .content h1 {
        font-size: 2.5rem; /* Reduz um pouco em telas pequenas */
    }

    header p {
        font-size: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}


/* Mantendo o tamanho do h1 fixo e responsivo */
.content h1 {
    font-size: 3rem; /* Ajuste conforme necessário */
    font-weight: 700;
    margin: 0;
    transition: font-size 0.3s ease-in-out;
}

/* Garante que a seção principal ocupe a tela toda */
.principal {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa toda a tela */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.principal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Ajuste a opacidade conforme desejar */
    z-index: 1; /* Coloca a camada acima do vídeo */
}

.content {
    position: relative;
    z-index: 2; /* Mantém o texto acima do overlay */
}


/* Fundo do vídeo */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Mantém o vídeo atrás do conteúdo */
}

/* Ajustando o vídeo para ocupar 100% da tela sem distorção */
.video-background .video {
    width: 100vw; /* Usa 100% da largura da tela */
    height: 100vh; /* Usa 100% da altura da tela */
    object-fit: cover; /* Garante que o vídeo cubra a tela sem deformar */
    position: absolute;
    top: 0;
    left: 0;
}

/* Conteúdo sobre o vídeo */
.content {
    position: absolute;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
}

/* Rodapé */
.end {
    background: rgba(8, 8, 8, 0.85); /* Mesmo tom do cabeçalho */
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* 🔹 Permite que os itens quebrem linha se necessário */
    width: 100%;
}


/* Links das redes sociais */
.social-links {
    display: flex;
    gap: 20px; /* Ajusta o espaçamento entre os ícones */
    margin-bottom: 15px;
    flex-wrap: wrap; /* 🔹 Faz com que os itens quebrem para outra linha se necessário */
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    color: white;
    font-weight: bold;
    gap: 8px;
    flex: 1 1 auto; /* 🔹 Garante que os itens se ajustem */
    min-width: 120px; /* 🔹 Mantém um tamanho mínimo */
    text-align: center;
}


.social-links img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease-in-out;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column; /* 🔹 Empilha os ícones em telas pequenas */
        align-items: center;
    }

    .social-links a {
        min-width: auto; /* 🔹 Remove largura mínima para melhor ajuste */
    }

    .social-links img {
        width: 30px; /* 🔹 Ícones um pouco menores em telas pequenas */
        height: 30px;
    }
}


.social-links a:hover img {
    transform: scale(1.1); /* Efeito de zoom ao passar o mouse */
}

/* Mensagem de direitos reservados */
.end p {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center; /* 🔹 Garante que fique centralizado */
    max-width: 90%; /* 🔹 Evita que fique muito largo em telas grandes */
}


