/* RESET E BASE */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html{
    scroll-behavior: smooth;
}

:root {
    --primaria: #74727a;
    --secundaria:#0f172a;
    --escuro: #0a0f1c;
    --maisEscuro: #0a0f1c;
    --claro: #e2e8f0;
    --vidro: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--escuro);
    color: var(--claro);
}

/* MODO CLARO */
html:not(.modo-escuro) {
    --escuro: #f1f5f9;
    --claro: #0a0f1c;
    --primaria: #2d2d2d;
    --secundaria: #3c3c3c;
    --vidro: rgba(0, 0, 0, 0.1);
}

html:not(.modo-escuro) body {
    background-color: var(--escuro);
    color: var(--claro);
}

html:not(.modo-escuro) .menu-link,
html:not(.modo-escuro) .sobre-titulo,
html:not(.modo-escuro) .paragrafo-projetos,
html:not(.modo-escuro) .sobre-paragrafo,
html:not(.modo-escuro) .projetos-titulo,
html:not(.modo-escuro) .contatos-titulo,
html:not(.modo-escuro) .campo-form,
html:not(.modo-escuro) .infor-projetos,
html:not(.modo-escuro) .botao-form,
html:not(.modo-escuro) .cabecalho-sub-titulo,
html:not(.modo-escuro) .menu,
html:not(.modo-escuro) .nome-titulo,
html:not(.modo-escuro) .destaque-neon,
html:not(.modo-escuro) .typing-effect {
  color: var(--claro);
  text-shadow: none;
  border-right-color: var(--claro);
}

html:not(.modo-escuro) .campo-form {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--primaria);
}

html:not(.modo-escuro) .botao-form {
  background: linear-gradient(45deg, var(--primaria), var(--secundaria));
}

html:not(.modo-escuro) .projetos-card,
html:not(.modo-escuro) .sobre-caixa,
html:not(.modo-escuro) .formulario-contato {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--vidro);
}

.navegacao {
    position: fixed;
    top: 0;
    background: rgb(15, 23, 42, 0.8);
    width: 100%;
    z-index: 100;
    padding: 1.5rem;
}
.menu{
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    color: var(--claro);
}
.menu-link{
    text-decoration: none;
    color: var(--claro);
    font-weight: 600;
    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 {
    width: 170px;
    height: 150px;
    box-shadow: 0 0 20px rgba(30, 24, 150, 0.3);
    border-radius: 45%;
    border: 4px solid var(--vidro);
    animation: flutuar 3s ease-in-out infinite;
}
h1 {
    color: var(--primaria);
    font-weight: bold;
    margin: 20px;
}
.cabecalho-sub-titulo {
    font-size: 1.5rem;
    color: var(--claro);
    text-align: center;
}
.sobre {
    padding: 6rem 2rem;
}
.sobre-titulo {
    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: rgba(255, 255, 255, 0.05);
}
.sobre-paragrafo {
    text-align: center;
    font-size: 1rem;
}
.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: transform 0.5s ease;
    cursor: pointer;
}
.projetos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.projetos-card:hover {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-10px) scale(1.03);
}
.projetos-imagem {
    height: 200px;
    width: 100%;
    object-fit: cover;
}
.caixa-textos-projetos {
    padding: 1.5rem;
}
.paragrafo-projetos {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.25rem;
}
.infor-projetos {
    margin-bottom: 5px;
}
.contato {
    padding: 6rem 2rem;
}
.contatos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.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 0.5 ease;
}
.botao-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}
.particulas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    background:
    radial-gradient(circle at 10% 20%, var(--primaria) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 20%);
}
@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
/* Scroll reveal */
.oculto {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.mostrar {
    opacity: 1;
    transform: translateY(0);
}
/* Menu hambúrguer */
.menu-mobile-icon {
    display: none;
}
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: rgba(15, 23, 42, 0.95);
        position: fixed;
        top: 4.5rem;
        width: 100%;
        left: 0;
        z-index: 99;
    }
    .menu.ativo {
        max-height: 300px;
    }
    .menu-mobile-icon {
        display: block;
        position: fixed;
        top: 1.2rem;
        left: 1rem;
        font-size: 2rem;
        cursor: pointer;
        z-index: 1001;
        color: var(--claro);
        background: transparent;
        border: none;
    }
}
/* Botão tema flutuante */
.botao-tema {
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
    color: var(--claro);
    cursor: pointer;
}
/* Nome e títulos */
.nome-titulo {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px #fcfaef, 0 0 15px #fcfaef;
}
.destaque-neon {
    color: #fcfaef;
    text-shadow: 0 0 5px #fcfaef, 0 0 10px #fcfaef;
}
.typing-effect {
    color: #fcfaef;
    font-weight: 600;
    border-right: 2px solid #fcfaef;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #fcfaef; }
}