*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primaria: #4f46e5;
    --secundaria: #7c3aed;
    --escuro: #0f172a;
    --maisescuro: #0a0f1c;
    --claro: #e2e8f0;
    --vidro: rgba(255, 255, 255, 0.1);
    --preto: #000000;
}

body {
   background: url("img/fundo12.png") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

.navegacao {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    z-index: 100;
    padding: 1.3rem;
    position: relative;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
}
.menu-link {
    text-decoration: none;
    color: var(--claro);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.menu-link::after{
    content: '';
    height: 2px;
    width: 0%;
    position: absolute;
    bottom: 0%;
    left: 0%;
    background: linear-gradient(90deg, var(--primaria), var(--secundaria));
    transition: width 0.5s ease;
}

.menu-link:hover::after {
    width: 100%;
}

.cabecalho {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.foto-perfil {
    margin-top: -250px;
    width: 20%;
    height: 20%;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    border: 4px solid var(--vidro);
    animation: flutuar 3s ease-in-out infinite;
}

.h1 {
    font-size: 2.5rem;
    color: var(--claro);
    font-weight: bold;
    margin: 20px;
}

.cabecalho-sub-titulo {
    font-size: 1.5rem;
    color: var(--claro);
}

.sobre{
    padding: 6rem 2rem;
}

.sobre-titulo {
    margin-top: -350px;
    font-size: 3rem;
    color: var(--claro);
    text-align: center;margin-bottom: 20px;
}

.sobre-caixa{
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--vidro);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.05);
}

.sobre-paragrafo {
    text-align: center;
    font-size: 1.2rem;
}

.projetos {
    padding: 6rem 2rem;
}

.projetos-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px , 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projetos-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--vidro);
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    object-fit: contain; 
}

.projetos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.projetos-card:hover {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-10px) scale(1.03);
}

.projetos-imagem {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.caixa-texto-projeto {
    padding: 1.5rem;
}

.paragrafo-projetos {
    color: rgba(226,232, 240, 0.8);
    line-height: 1.25rem;
}

.info-projetos {
    margin-bottom: 5px;
}

.contatos {
    padding: 6rem 2rem;
}

.contatos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.formulario-contato {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border: 1px solid var(--vidro);
    border-radius: 16px;
}

.campo-form {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--claro);
    border: 1px solid var(--vidro);
    outline: none;
}

.campo-form:focus {
    border-color: var(--secundaria);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.grupo-form {
    margin-bottom: 1.5rem;
}

.botao-form {
    color: var(--claro);
    background: linear-gradient(45deg, var(--primaria), var(--secundaria));
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all;
}

.consulta-btn {
  margin-left: 750px;
  margin-top: 0px;  
  padding: 10px 150px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.consulta-btn:hover {
  opacity: 0.9;
}
.botao-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.projetos-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.projetos-card:hover {
    transform: scale(1.05);
    border: 1px solid gold;
}

.video-container {
  text-align: center;
  margin-top: 10px;
}

.video-container video {
  width: 600px; /* tamanho padrão para PC */
  max-width: 20%; 
  height: auto; /* mantém proporção */
}

.video-box {
  width: 600px;           /* largura da caixa no PC */
  max-width: 90%;         /* não ultrapassa a tela em celular */
  margin: 50px auto;      /* centraliza horizontalmente e dá espaço em cima */
  padding: 15px;          /* espaço interno entre borda e vídeo */
  background-color: rgba(255, 255, 255, 0.05); /* cor de fundo da caixa */
  border: 2px solid rgba(255, 255, 255, 0.05); /* borda da caixa */
  border-radius: 12px;    /* cantos arredondados */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* sombra suave */
  text-align: center;     /* centraliza o vídeo dentro da caixa */
  height: 600px
}

.video-box video {
  width: 50%;  /* vídeo ocupa toda a largura da caixa */
  height: auto; /* mantém proporção */
  border-radius: 8px; /* opcional: cantos arredondados do vídeo */
}

/* Ajuste para celular */
@media (max-width: 768px) {
  .video-box {
    height: 80%;
    width: 90%; /* caixa menor em telas pequenas */
    padding: 10px;
  }
}

/* Estilos para telas pequenas (celular) */
@media (max-width: 768px) {
  .video-container video {
    width: 90%;    /* ocupa 90% da tela do celular */
    max-width: 300px; /* opcional: limite máximo em celulares */
  }
}

@keyframes flutuar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 1024px) {
    .menu {
        gap: 1.5rem;
    }
    .foto-perfil {
        width: 30%;
        height: auto;
        margin-top: -50px;
    }
    .h1 {
        font-size: 2rem;
    }
    .cabecalho-sub-titulo {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .menu {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .navegacao {
        font-size: 14px;
        padding: 1rem;
        gap: 10px;
    }
    .foto-perfil {
        width: 50%;
        margin-top: -250px;
    }
    .h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    .cabecalho-sub-titulo {
        font-size: 1rem;
        text-align: center;
    }
    .sobre-titulo {
        margin-top: -350px;
        font-size: 2rem;
    }
    .projetos-titulo,
    .contatos-titulo {
        margin-top: -50px;
        font-size: 2rem;
    }
    .sobre-paragrafo {
        font-size: 1rem;
    }
    .projetos-caixa {
        grid-template-columns: 1fr;
    }
}
