@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Poppins:wght@400;700&family=Roboto:wght@400;500&display=swap');

:root {
    --primary-color: #4682b4;
    --font-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'inter', sans-serif;
    text-decoration: none;
}

::selection {
    background-color: var(--font-color);
    color: black;
}

.bg-main {
    height: 100svh;
    width: 100%;
    position: relative;
    z-index: 1;
}

#nebula {
    width: 100svw;
    height: 100%;
    z-index: 1;
}

body {
    line-height: 1.6;
    color: var(--font-color);
    background-color: #303030;
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--font-color);

    font-family: 'Poppins', sans-serif;
}

/* Estilo da barra lateral de redes sociais */
.social-media {
    position: fixed;
    left: 0.7rem;
    top: 60%;
    transform: translateY(-50%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.social-media ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Espaçamento entre os ícones */
}

.social-media ul li {
    margin: 0;
}

.social-media ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1f1f1f;
    /* Cor de fundo dos ícones */
    border-radius: 50%;
    transition: background-color 0.5s ease;
    border: #00000034 solid 0.1px;
}

.social-media ul li a svg {
    width: 50%;
    height: 50%;
    color: #fff;
    /* Cor dos ícones */
}

.social-media ul li a:hover {
    background-color: var(--primary-color);
    transform: scale(110%);
    transition: 0.5s;
    border: #fff solid 0.1px;
}

.section#sobre-mim p {
    text-indent: 2rem;
    text-align: justify;
    line-height: 2rem;
    margin: 1.2rem 0 1.2rem 0;
}

.section p:nth-last-child(1) {
    margin-bottom: 0;
}

.corpo {
    margin: 2% 4rem 1% 4rem;
}

.section {
    padding: 3% 8% 6% 8%;
    text-align: center;
    background: #2c2c2c;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 1);
    scroll-margin-top: 6rem;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    background-color: rgba(44, 44, 44, 0.8);
    border-radius: 1rem;
    border: 1px solid rgba(168, 168, 168, 0.445);
}

.section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #ffffff;
}

#sobre-mim img {
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    max-width: 15rem;
    margin-bottom: 0.8rem;
}

/* Estilos para a seção de Formação Acadêmica */

#formacao h3 {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

#formacao ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

#formacao li {
    font-size: 18px;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
}

#habilidades h2 {
    font-size: 32px;
    color: #e0e0e0;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}

.habilidades {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.habilidade {
    background: #455a64;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 150px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    align-items: center;
    display: flex;
}

#part1, #part2{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.habilidade:hover {
    transform: scale(1.05);
    background-color: #607d8b;
}

.habilidade img {
    width: 5rem;
}

.barraProficiencia {
    background: #3a3a3a;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.barraProficiencia .nivel {
    height: 10px;
    background: #4caf50;
    transition: width 0.5s ease;
}

/* Estilos para a seção de Currículo */
#curriculo {
    padding: 3% 8%;
    margin-bottom: 2rem;
}

#curriculo h2 {
    font-size: 32px;
    color: #e0e0e0;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

#curriculo p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
}

#curriculo a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

#curriculo a:hover {
    background-color: #529ad4;
}

#contato a{
    text-decoration: none;
    color: #4682b4;
}

/* Ajustes gerais para as seções */

.section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}


.section img:hover {
    transform: scale(1.05);
}

.projetos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.projeto {
    background: #292929;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.projeto img {
    max-width: 100%;
    border-radius: 5px;
}

.projeto a{
    text-emphasis: none;
    color: #4682b4;
}

.projeto:hover {
    transform: translateY(-10px);
}

.habilidades {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.habilidade {
    background: #292929;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 150px;
}

.habilidade img {
    max-width: 60px;
    margin-bottom: 10px;
}

.barraProficiencia {
    background: #3a3a3a;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.barraProficiencia .nivel {
    height: 10px;
    background: #4caf50;
    transition: width 0.5s ease;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    background-color: #333;
    color: #f5f5f5;
}

form button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}

form button:hover {
    background: #529ad4;
}

.redes-sociais {
    margin: 20px 0;
}

.redes-sociais img {
    width: 40px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.redes-sociais img:hover {
    transform: scale(1.1);
}

footer {
    background: #1C1C1C;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
}

footer p {
    margin: 0;
}

footer p span {
    font-weight: bold;
    color: var(--primary-color);
}

#nebula {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.text-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-align: center;
    color: #f5f5f5;
}