* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primaria: #4f46e5;
    --secundaria: #7c3aed;
    --escuro: #0f172a;
    --maisEscuro: #0a0f1c;
    --claro: #e2e8f0;
    --vidro: rgba(255, 255, 255, 0.1);
}

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

.navegacao {
    position: fixed;
    top: 0;
    background: rgba(15, 23, 42, 0.8);
    width: 100%;
    z-index: 1000;
    padding: 1.5rem;
}

.menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.menu-link {
    text-decoration: none;
    color: var(--claro);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.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.3s ease;
}

.menu-link:hover::after {
    width: 100%;
}

.menu-link:hover {
    color: var(--primaria);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--claro);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cabecalho {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.foto-perfil {
    width: 206px;
    height: 320px;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    border: 4px solid var(--vidro);
    animation: flutuar 5s ease-in-out infinite;
}

h1 {
    font-size: 3.5rem;
    color: var(--primaria);
    font-weight: bold;
    margin: 20px;
}

h4 {
    margin-top: 30px;
    margin-bottom: 30px;
}

.container h2 {
    margin-bottom: 30px;
}

.cabecalho-sub-titulo {
    font-size: 1.5rem;
    color: var(--claro);
}

.sobre {
    padding: 6rem 2rem;
}

.sobre-titulo {
    font-size: 3rem;
    color: var(--claro);
    text-align: center;
    margin-bottom: 20px;
}

.sobre-caixa {
    padding: 2rem;
    max-width: 600px;
    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: 1.2rem;
}

.projetos {
    padding: 6rem 2rem;
}

.projetos-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.caixa-projetos {
    transition: all 0.5s ease;
    cursor: pointer;
}

.caixa-projetos:hover {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-10px) scale(1.03);
}

.projetos-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--vidro);
    overflow: hidden;
}

.projetos-card:hover {
    
}

.caixa-curriculo {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--vidro);
    padding: 30px;
}

.caixa-rodape {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--vidro);
    padding: 30px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}
        
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: var(--transition);
}
        
.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.projetos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.projetos-imagem {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.caixa-textos-projeto {
    padding: 1.5rem;
}

.paragrafo-projetos {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.25rem;
}

.info-projetos {
    margin-bottom: 5px;
}

#content {
    margin-left: 0; 
    transition: var(--transition);
    padding: 20px;
    flex: 1;
    width: 100%;
}

.section {
    padding: 60px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    scroll-margin-top: 20px;
    min-height: auto !important; 
}

.section h2 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

#tecnologias {
    padding: 6rem 2rem;
    scroll-margin-top: 80px;
}

#tecnologias h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--claro);
}

.tech-category {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--primaria);
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tech-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.tech-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--vidro);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-item:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primaria);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.tech-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 0.8rem;
    object-fit: contain;
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--claro);
    margin: 0;
}

.contatos {
    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%;
    height: 40px;
    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 60%),
  radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 20%)
  var(--maisEscuro);
}

@keyframes flutuar {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (min-width: 768px) {
    .container .row .barra-lateral {
        border-right: 1px solid var(--claro);
    }
}

@media (max-width: 992px) {

    .menu {
        gap: 1.5rem;
    }
    
    .menu-link {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 2.8rem;
    }
    
    .cabecalho-sub-titulo {
        font-size: 1.3rem;
    }
    
    .menu {
        gap: 2rem;
    }
    
    .sobre-titulo, .projetos-titulo, .contatos-titulo {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    .navegacao {
        padding: 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        right: 20px;
        width: auto;
        min-width: 200px;
        height: auto;
        background: rgba(15, 23, 42, 0.8);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        transition: all 0.3s ease;
        backdrop-filter: blur(15px);
        border-radius: 12px;
        border: 1px solid var(--vidro);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        padding: 1rem 0;
        opacity: 0;
        transform: translateY(-20px);
        visibility: hidden;
    }
    
    .menu.active {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    
    .menu li {
        width: 100%;
    }
    
    .menu-link {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        display: block;
        width: 100%;
        transition: all 0.3s ease;
    }
    
    .menu-link:hover {
        background: rgba(79, 70, 229, 0.1);
        color: var(--primaria);
    }
    
    .menu-link::after {
        display: none;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    #tecnologias {
        padding: 4rem 1.5rem;
    }
    
    #tecnologias h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .tech-category {
        font-size: 1.3rem;
        margin: 2rem 0 1rem 0;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1rem 0.5rem;
    }
    
    .tech-logo {
        width: 40px;
        height: 40px;
    }
    
    .tech-name {
        font-size: 0.8rem;
    }

    .navegacao {
        padding: 1rem;
    }
    
    .menu {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    h1 {
        font-size: 2.3rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .cabecalho-sub-titulo {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .foto-perfil {
        width: 180px;
        height: 280px;
    }
    
    .sobre, .projetos, .contatos {
        padding: 4rem 1.5rem;
    }
    
    .sobre-titulo, .projetos-titulo, .contatos-titulo {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .sobre-caixa {
        padding: 1.5rem;
    }
    
    .sobre-paragrafo {
        font-size: 1.1rem;
    }
    
    .projetos-caixa {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .formulario-contato {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .menu {
        gap: 1rem;
        justify-content: space-around;
    }
    
    .menu-link {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .cabecalho-sub-titulo {
        font-size: 1rem;
    }
    
    .foto-perfil {
        width: 160px;
        height: 250px;
    }
    
    .sobre, .projetos, .contatos {
        padding: 3rem 1rem;
    }
    
    .sobre-titulo, .projetos-titulo, .contatos-titulo {
        font-size: 1.8rem;
    }
    
    .sobre-caixa {
        padding: 1rem;
    }
    
    .sobre-paragrafo {
        font-size: 1rem;
    }
    
    .projetos-caixa {
        grid-template-columns: 1fr;
    }
    
    .formulario-contato {
        padding: 1rem;
    }
    
    .campo-form {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        top: 1rem;
        right: 1rem;
        width: 25px;
        height: 20px;
    }
    
    .menu {
        top: 60px;
        right: 15px;
        min-width: 180px;
    }
    
    .menu-link {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 400px) {

    #tecnologias {
        padding: 3rem 1rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .tech-item {
        padding: 0.8rem 0.3rem;
    }
    
    .tech-logo {
        width: 35px;
        height: 35px;
    }
    
    .tech-name {
        font-size: 0.75rem;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .foto-perfil {
        width: 140px;
        height: 220px;
    }
}

@media (max-width: 360px) {

    .menu {
        right: 10px;
        min-width: 160px;
    }
    
    .menu-link {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}