* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primaria: #4f46e5;
    --segundario: #7c3aed;
    --escuro: #0f172a;
    --maisescuro: #0a0f1c;
    --claro: #e2e8f0;
    --vidro: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--escuro);
    color: var(--claro);
}


.navegacao {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    z-index: 100;
    padding: 1.5rem;
}

.menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    justify-content: center;
}

.menu-link {
    text-decoration: none;
    color: var(--claro);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.menu-link::after {
    content: '';
    width: 0;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primaria), var(--segundario));
    transition: width 0.5s ease;
}

.menu-link:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    cursor: pointer;
    z-index: 200;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: var(--claro);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-container {
    display: block;
}


.cabecalho {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.foto-perfil {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--vidro);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

h1 {
    font-size: 3.5rem;
    color: var(--primaria);
    font-weight: bold;
    margin: 20px 0;
}

.cabecalho-bub-titulo {
    font-size: 2rem;
    color: var(--claro);
}


.sobre {
    padding: 6rem 2rem;
    text-align: center;

    .CV {
        color: var(--claro);
        text-decoration: none;
        background: rgba(255, 255, 255, 0.05);
        padding: 10px;
        border: 1px solid var(--vidro);
        border-radius: 0px 0px 16px 16px;
        backdrop-filter: blur(10px);
        position: relative;
        top: 10px;
    }
}

.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: 1.5rem;
}

.skills {
    padding: 6rem 2rem;
    text-align: center;
}

.skills-titulo {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.skills-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--vidro);
    backdrop-filter: blur(10px);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.skill-item span {
    display: block;
    font-size: 0.9rem;
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(90deg, var(--primaria), var(--segundario));
}

.projetos {
    padding: 6rem 2rem;
}

.projetos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.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;
    border: 1px solid var(--vidro);
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.projetos-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

.projetos-imagem {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.info-projetos {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.25rem;
    margin: 1rem;
    transition: color 0.3s ease;
}

.info-projetos:hover {
    color: var(--primaria);
}

.paragrafo-projetos {
    padding: 0 1rem 1rem 1rem;
    font-size: 1rem;
    color: var(--claro);
}

.projetos-botoes {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 1rem;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}


.deploy {
    background: linear-gradient(90deg, var(--primaria), var(--segundario));
    color: white;
}


.repo {
    border: 1px solid var(--vidro);
    color: var(--claro);
}


.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.redes-sociais {
    margin: 30px;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.redes-sociais a {
    text-decoration: none;
    color: var(--claro);
    font-weight: 500;
    transition: color 0.3s ease;
}

.redes-sociais a:hover {
    color: var(--primaria);
}


@media (max-width: 600px) {

    h1 {
        font-size: 2.5rem;
    }

    .cabecalho-bub-titulo {
        font-size: 1.5rem;
    }

    .projetos-imagem {
        height: 150px;
    }

    .menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .menu-icon {
        display: block;
    }

    .menu-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--escuro);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: left 0.5s ease;
    }

    .menu-container.active {
        left: 0;
    }

    .menu-icon.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-icon.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}