* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}
:root {
    --bg-color: #000000e0;
    --second-bg-color: #000000;
    --text-color: rgb(231, 221, 231);
    --main-color: #ff00b3c2;
}
html{
    font-size: 60%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}
.logo:hover{
    transform: scale(1.1);
}
.logo span{
    text-shadow: none;
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a:active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);    
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}
section{
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    flex-direction: column;
    gap: 15rem;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--second-bg-color)), url('stars.png'); /* Gradiente + Imagem */
    background-size: cover;
    background-position: center;
    position: relative;
    background-attachment: fixed;
    padding: 8rem 12% 10rem; 
}
.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 25, 25, 0.5); /* Mantém a camada de transparência */
    z-index: 1;
}
.home-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}
span{
    color: var(--main-color);
}
.logo {
    font-size: 3rem; /* Ajuste o tamanho para STELLA */
    font-family: 'Teko', sans-serif; /* Usa a mesma fonte */
    color: white; /* "STELLA" branco */
    font-weight: 300;
}
.logo span{
   color: var(--main-color);
   font-family: 'Teko', sans-serif; 
   font-size: 3rem; 
}

.shine {
    font-family: 'Roboto', cursive; /* Ou qualquer outra fonte */
    font-size: 7rem;
    font-weight: 200;
    color: var(--main-color);
}
.shine-head{
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    color: var(--main-color);
}
.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 300;
}
.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem; /* Ajuste conforme necessário */
}
.about-content{
    display: flex;
    align-items: center; /* Alinha verticalmente no centro */
    justify-content: center; /* Opcional, centraliza horizontalmente */
    gap: 2rem; /* Espaço entre a imagem e o texto */
    margin: 0;
    position: relative;
    z-index: 2;
}
.about-text {
    max-width: 600px;
}
.about-content p {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 300;
    text-align: left; /* Ajusta o alinhamento do texto */
}
.about-img {
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-img img {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
    object-fit: cover;
}

.home-content p{
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 1rem;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
 }
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.btn-group{
   display: flex;
   align-items: center;
   gap: 1.5rem;  
}
.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: #2c2c2c;
}
.shine {
    text-shadow: 0 0 25px var(--main-color);
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 12%;
    background: rgba(26, 25, 25, 0.5); /* Fundo preto com 50% de transparência */
    backdrop-filter: blur(3px); /* Mantém o efeito de desfoque */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}
.heading {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
}
.publications {
    padding: 2rem 15px; /* Alinha o padding ao da seção about */
    background: var(--second-bg-color);
}
.publications h2 {
    margin-bottom: 2rem !important;
    margin-top: 0 !important; /* Reduz a margem superior */
    font-size: 3rem; /* Ajuste o tamanho da fonte para corresponder ao about */
    font-weight: bold; /* Ajuste o peso da fonte para corresponder ao about */
}
.timeline-items{
    display: flex;
    flex-direction: column; /* Faz as caixas ficarem uma abaixo da outra */
    align-items: center;    /* Centraliza as caixas horizontalmente */
    max-width: 1200px;
    margin: auto;
    position: relative;
}
.timeline-items ::before{
    content: none;
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
}
.timeline-item{
    margin-bottom: 60px;
    width: 100%;
    position: relative;
}
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even){
    padding: 0; /* Remove padding lateral */
    text-align: center; /* Centraliza o conteúdo dentro de cada caixa */
}
.timeline-content{
    text-align: center; /* Centraliza o texto dentro da caixa */
    margin: 0 auto;     /* Centraliza a própria caixa se ela tiver largura fixa */
    padding: 30px 50px;
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.timeline-content h3{
    font-size: 20px;
    color: #ff00c8e0;
    margin: 0 0 10px;
    font-weight: 600;
}
.timeline-content p{
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}
::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 40px;
}

@media (hover: hover){
    .services{
        background: var(--bg-color);
        color: #5c595b;
    }
    .services h2{
        margin-bottom: 5rem;
        color: black;
    }
    .services-container{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        align-items: center;
        gap: 2.5rem;
    }
    .service-box {
        position: relative;
        width: 100%;
        height: 300px;
        overflow: hidden;
        border-radius: 3rem;
        border: 5px solid transparent;
        cursor: pointer;
        transition: 0.4s ease-in-out;
    }
    .service-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.4s ease-in-out;
    }
    .service-box:hover {
        background: #2c2c2c;
        color: var(--main-color);
        border: 5px solid var(--main-color);
        transform: scale(1.03);
    }
    .service-box .service-info {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Fundo semitransparente */
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.4s ease-in-out;
        text-align: center;
        padding: 2rem;
        box-sizing: border-box;
    }
    /* Estilos gerais para títulos */
    h4 {
        font-weight: 800;
        line-height: 2;
        text-align: center;
        margin-bottom: 1rem; /* Ajusta o espaçamento inferior */
    }
    
    /* Estilo específico para h4 dentro de .service-info */
    .service-info h4 {
        font-size: 2rem; /* Ajuste o tamanho da fonte */
        color: var(--main-color);
    }
    
    .service-box h4 {
        font-size: 3rem; /* Tamanho maior para o título na caixa de serviço */
        color: var(--main-color);
    }
    
    /* Estilo para parágrafo dentro da caixa de serviço */
    .service-box h4 p {
        font-size: 1.5rem;
        font-weight: normal;
        line-height: 2;
        color: white;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Estilo para links */
    .service-info h4 a,
    .service-box h4 a {
        color: white; /* Define a cor padrão para os links */
        text-decoration: none; /* Remove o sublinhado */
        transition: color 0.3s ease-in-out; /* Transição suave */
    }
    
    .service-info h4 a:visited {
        color: var(--main-color); /* Mantém a cor principal após visita */
    }
    
    .service-info h4 a:active,
    .service-box h4 a:active {
        color: white; /* Muda para branco ao clicar */
    }
    
    .service-info h4 a:hover,
    .service-box h4 a:hover {
        color: var(--main-color); /* Cor ao passar o mouse */
    }
    
    /* Estilos para informações e efeito de hover */
    .service-info p {
        font-size: 1.4rem;
        font-weight: normal;
    }
    
    .service-box:hover img {
        transform: scale(1.1); /* Efeito de zoom na imagem ao passar o mouse */
    }
    
    .service-box:hover .service-info {
        opacity: 1; /* Exibe as informações ao passar o mouse */
    }
}

.contact {
    background-color: var(--second-bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
    color: rgb(255, 255, 255);
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 5rem auto;
    width: 90%; /* Ajuste conforme necessário */
    max-width: 800px; /* Ajuste conforme necessário */
    text-align: center;
}

.contact form .form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
}

.contact form .form-group input {
    width: calc(100% - 3rem); /* Ajusta a largura para se adequar ao padding */
    padding: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--second-bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem auto;
}

.contact form textarea {
    width: calc(100% - 3rem); /* Ajusta a largura para se adequar ao padding */
    padding: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--second-bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem auto;
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    color: #fff;
    background-color: var(--main-color);
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact form .btn:hover {
    background-color: darken(var(--main-color), 10%);
}
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: rgb(255, 255, 255);
    box-shadow: 0 0 25px var(--main-color);
}
.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: rgb(255, 255, 255);
}
.typing-container {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-top: 20px;
}

.cursor {
    display: inline-block;
    background-color: #000000;
    width: 2px;
    height: 1.2em;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.paper-link {
    color: #f8b2e3c2; /* Define a cor rosa para o link */
    text-decoration: none; /* Remove o sublinhado do link, se desejado */
    font-weight: bold; /* Opcional: deixa o link em negrito */
    transition: color 0.3s ease-in-out; /* Suave transição ao passar o mouse */
}

.paper-link:hover {
    color: var(--main-color); /* Muda a cor do link ao passar o mouse */
}
section {
    scroll-margin-top: 7rem; 
}
.about, .projects, .contact {
    padding-top: 3rem; 
}

@media screen and (max-width: 767px) {
    .home {
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--second-bg-color)), url('stars.png'); 
        background-size: cover; /* Faz a imagem se ajustar ao container sem cortar */
        background-position: center; /* Centraliza a imagem */
        background-repeat: no-repeat; /* Evita a repetição da imagem */
        background-attachment: scroll; /* A imagem se move conforme o scroll */
        image-rendering: crisp-edges;
    }
    #menu-icon {
        display: block; /* Mostra o ícone do menu */
    }

    .about-img img {
        width: 90%;
    }

    .about-img img {
    width: 370px;
    height: 370px;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
    object-fit: cover;
    }

    .about-content p {
        margin-bottom: 2rem;
        margin-top: 1rem;
        font-size: 2rem;
        font-weight: 300;
        text-align: justify;
    }

    .services-container {
        display: grid; /* Mantém o grid para a versão mobile */
        grid-template-columns: 1fr; /* Uma coluna na versão mobile */
        gap: 1.5rem; /* Espaço entre as caixas */
    }

    .service-box {
        height: auto; /* Ajusta a altura ao conteúdo */
        border-radius: 1.5rem; /* Bordas arredondadas */
        padding: 1rem; /* Espaço interno */
        position: relative;
        transition: none; /* Remove transições */
        pointer-events: none; /* Desabilita interações */
    }

    .service-box img {
        width: 100%; /* Imagem ocupa toda a largura */
        height: auto; /* Altura ajusta automaticamente */
        border-radius: 1.5rem; /* Bordas arredondadas para as imagens */
        object-fit: cover; /* Cobre o espaço disponível */
        pointer-events: none; /* Desabilita hover na imagem */
    }

    /* Remover informações de serviço ao passar o mouse */
    .service-info {
        display: none; /* Remove a exibição da caixa de informações no mobile */
    }

    /* Exibe título e texto sempre no mobile */
    .service-box h4 {
        display: block; /* Exibe o título */
        text-align: center; /* Centraliza o título */
        font-size: 2.2rem; /* Tamanho do título */
        margin: 0.2rem 0; /* Espaçamento */
    }

    .service-box p {
        display: block; /* Exibe a descrição */
        text-align: center; /* Centraliza o texto */
        font-size: 1.5rem; /* Tamanho do texto */
        margin: 0.5rem 0; /* Espaçamento */
        text-align: justify;
    }

    .mobile-title {
        font-size: 5rem; /* Aumentado para 5rem */
        color: #ff00b3c2; /* Cor principal */
        text-align: center; /* Centraliza o título */
        margin-bottom: 0.5rem; /* Espaçamento */
        text-decoration: none; /* Remove o sublinhado do link */
        display: block; /* Garante que esteja visível */
    }

    .mobile-title a {
        color: #ff00b3c2 !important; /* Define a cor do link */
        text-decoration: none; /* Remove o sublinhado do link */
    }

    .mobile-description {
        font-size: 1.8rem; /* Aumentado para 1.8rem */
        text-align: center; /* Centraliza a descrição */
        margin-bottom: 0.5rem; /* Espaçamento */
        display: block; /* Garante que esteja visível */
    }

    .more-info {
        font-size: 4rem; /* Aumentado para 4rem */
        text-align: center; /* Centraliza o texto */
        margin-top: 1rem; /* Espaçamento acima */
        color: #ff00b3c2 !important; /* Cor do texto */
        text-decoration: none; /* Remove sublinhado do link */
        pointer-events: auto; /* Habilita eventos para o link */
        display: block;
    }

    .more-info a{
        color: var(--main-color);
    }

    .flex {
        display: flex; /* Garante que o flex funcione */
        flex-direction: column; /* Direção da coluna */
    }

    .navbar {
        display: none; /* Esconde a navbar na versão mobile */
    }

    /* Mover o título e descrição para fora da imagem na versão mobile */
    .mobile-title, .mobile-description {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .desktop-title, .desktop-description {
        display: none; /* Esconder o conteúdo da versão desktop */
    }
}

@media screen and (min-width: 768px) {
    #menu-icon {
        display: none; /* Oculta o ícone do menu na versão desktop */
    }
    .logo:hover {
        transform: scale(1.1);
    }
    .navbar a:hover,
    .navbar a:active {
        color: var(--main-color);
        border-bottom: 3px solid var(--main-color);
    }

    .social-icons a:hover {
        color: var(--text-color);
        transform: scale(1.3) translateY(-5px);
        box-shadow: 0 0 25px var(--main-color);
        background-color: var(--main-color);
    }

    .btn:hover {
        transform: scale(1.05);
        box-shadow: 0 0 50px var(--main-color);
    }

    .service-box:hover {
        background: #2c2c2c;
        color: var(--main-color);
        border: 5px solid var(--main-color);
        transform: scale(1.03);
    }

    .service-box:hover img {
        transform: scale(1.1);
    }

    .service-box:hover .service-info {
        opacity: 1;
    }
    .navbar {
        display: block; /* Mostra a navbar na versão desktop */
    }

    /* Mostrar apenas o conteúdo da versão desktop */
    .mobile-title, .mobile-description {
        display: none;
    }

    .desktop-title, .desktop-description {
        display: block;
    }
}
/* Estilo para o menu mobile */
.menu-mobile {
    display: none; /* Inicialmente escondido */
}

.menu-mobile.active {
    display: block; /* Mostra o menu quando ativo */
    position: fixed; /* Fica fixo na tela */
    top: 0; /* Começa no topo */
    right: 0; /* Alinha à direita */
    width: 300px; /* Largura do menu */
    height: 100%; /* Ocupa a tela toda */
    background-color: rgba(27, 26, 26, 0.753); /* Mantém a camada de transparência */
    color: white; /* Cor do texto */
    z-index: 1000; /* Fica na frente de outros elementos */
    padding: 20px; /* Mantenha o padding existente */
}

.btn-fechar {
    cursor: pointer; /* Indica que é clicável */
    font-size: 24px; /* Tamanho do ícone de fechar */
    margin-bottom: 20px; /* Espaçamento abaixo do botão de fechar */
}

/* Estilo para o menu */
.menu-mobile nav ul {
    list-style: none; /* Remove marcadores da lista */
    padding: 0; /* Remove padding */
}

.menu-mobile nav ul li {
    margin: 10px 0; /* Espaçamento entre os itens do menu */
}

.menu-mobile nav ul li a {
    text-decoration: none; /* Remove o sublinhado */
    color: white; /* Cor do texto */
    font-size: 20px; /* Tamanho da fonte */
}








