* {
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
  }
  

/* Correção do problema com background no mobile */
body::before {
    content: ""; /* Cria um elemento vazio */
    position: fixed; /* Fixa o fundo na tela */
    top: 0;
    left: 0;
    width: 100vw; /* Garante que cobre a largura da viewport */
    height: 100vh; /* Garante que cobre a altura da viewport */
    background-image: url(img/background.png); /* Sua imagem */
    background-size: cover; /* Ajusta o tamanho */
    background-repeat: no-repeat; /* Não repete a imagem */
    background-position: center; /* Centraliza a imagem */
    z-index: -1; /* Coloca atrás de todo o conteúdo */
}

/* Remove o background-image original no body */
body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    background: none; /* Remove o background original */
}


.wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

header {
    width: 100%;
    padding: 0;
    margin: 0;
    position: fixed;
    z-index: 10;
}

.header-container {
    background-image: url(img/background-blur-dark.jpg);
    background-size: cover;
    display: flex;
    justify-content: space-between; /* Espaça corretamente os itens à esquerda e à direita */
    align-items: center; /* Alinha verticalmente */
    padding: 10px 20px; /* Ajuste de espaçamento */
}


.img-container {
    flex: 1;
}

.nav-container {
    margin-top: 10px;
    padding: 10px;
    flex: 4;
}

header nav ul li {
    display: inline;
    margin: 0 30px;
    font-weight: 600;
    font-size: x-large;
}

header nav ul li a {
    transition: 0.5s;
}

header nav ul li a:hover {
    color: black;
    background-color: #a1d9b5;
    padding: 30px;
}


header nav {
    display: flex;
    align-items: center; /* Alinha verticalmente os itens */
    justify-content: flex-end; /* Alinha tudo à direita */
    gap: 20px; /* Espaçamento entre os itens */
}


header img {
    padding: 13px;
    height: 6rem;
    transition: 0.3s;
}

header img:hover {
    height: 7rem;
}

/* Botão de hambúrguer (escondido por padrão em telas grandes) */
.navbar-toggle {
    margin: 0; /* Remove margens desnecessárias */
    margin-bottom: 10px;
    font-size: 24px;
    background: none;
    border: none;
    color: #cfb758;
    cursor: pointer;
    display: none;
}


a {
    color: aliceblue;
    text-decoration: none;
}

.main-container {
    display: flex; /* Use flexbox to align main and aside side by side */
    flex: 1; /* Make main-container take up remaining space */
    padding: 2%; /* Internal spacing for main content */
    margin-top: 7.5rem; /* Offset for fixed header */
    margin-bottom: 0;
    padding-bottom: 0;
    margin-left: 10rem;
    margin-right: 10rem;
}




.main-container main {
    height: 18rem;
    border-radius: 15px; /* Add border radius */
    padding: 2rem;
    background-color: black;
    color: aliceblue;
    flex: 3;
    margin-bottom: 0;

}

.main-container main h1 {
    font-family: "JetBrains Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-size: 4rem;
    
}

.typewritter {
    border-right: .15em solid orange; /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    letter-spacing: .15em; /* Adjust as needed */
    animation: 
      typing 3.5s steps(40, end),
      blink-caret .75s step-end infinite;
}

.hello-world {
    display: flex;
    margin-bottom: 20px;
}

  /* The typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgb(255, 255, 255); }
  }



aside {
    display: flex; /* Ativa o flexbox */
    flex-direction: column; /* Alinha os itens verticalmente em coluna */
    justify-content: center; /* Centraliza os itens verticalmente */
    align-items: center; /* Centraliza os itens horizontalmente */
    margin-left: 2%;
    height: 18rem;
    border-radius: 15px; /* Add border radius */
    padding: 1rem;
    background-image: url(img/background-blur-dark.jpg);
    background-size: cover;
    background-attachment: fixed;
    color: aliceblue;
    flex: 1.5;
}

aside img {
    margin-bottom: 0px;
    height: 7rem;
    border-radius: 50%;
}

aside h1 {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: x-large;
}

aside p {
    margin-bottom: 10px;
    font-size: small;
    text-indent: 8%;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
}

.linkedin-logo {
    height: 2.5rem;
    margin-bottom: 0;
    transition: 0.3s;
}

.github-logo {
    height: 2.5rem;
    margin-bottom: 0;
    transition: 0.3s;
}

.email-logo {
    height: 2.5rem;
    margin-bottom: 0;
    transition: 0.3s;
}

.linkedin-logo:hover {
    height: 3rem;
}

.github-logo:hover {
    height: 3rem;
}

.email-logo:hover {
    height: 3rem;
}



.page-content p {
    height: 2000px;
    filter: opacity(100%);
    -webkit-filter: opacity(100%);
}

.second-main-container {
    display: flex; /* Use flexbox to align main and aside side by side */
    flex: 1; /* Make main-container take up remaining space */
    padding: 30px; /* Internal spacing for main content */
    margin-left: 10rem;
    margin-right: 10rem;
}

.second-main-container main {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Add border radius */
    padding: 50px;
    background-color: black;
    color: aliceblue;
    margin-top: 0;
    background-image: url(img/background-blur-dark.jpg);
    background-size: cover;
    background-attachment: fixed;
    font-size: large;

    
}

.second-main-container h1 {
    margin: 10px;
    margin-top: 0;
}

.second-main-container h2 {
    margin: 20px;
}

.second-main-container ul{
    list-style: none;
}



.second-main-container li {
    font-size: 2rem;
    font-style: italic;
    font-weight: bolder;
    margin: 10px;
    transition: 0.3s;
    margin-left: 0;
}

.second-main-container li:hover {
    font-size: 2.5rem;
}

.second-main-container img {
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5));
}

#repositorio {
   width: 12rem;
}

#repositorio:hover {
    width: 14rem;
    transition: 0.3s;
}

.ferramentas img {
    width: 7rem;
}



.slider-wrapper {
    position: relative;
    width: 48rem;
    margin: 0 auto;

}

.slider {
    display: flex;
    aspect-ratio: 16 / 9;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 5%;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75ream hsla(0, 0%, 0%, 0.25);
    border-radius: 0.5rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    
}

.slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.slider img {
    flex: 1 0 100%;
    scroll-snap-align: start;
    
    /*object-fit: cover; (SÓ SE PUDER CORTAR)*/

}

.slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 75%;
    transition: opacity ease 250ms;
}

.slider-nav a:hover {
    opacity: 1;
}

footer {
    display: flex;
    justify-content: flex-end;
    height: 70px;
    text-align: right;
    padding: 10px;
    background-color: black;
    color: white;
}

footer img {
    width: 10%;
    height: auto;
}

/*Main de outras páginas*/

.secao-competencias {
    display: flex;
}

.out-main-container {
    display: flex; /* Use flexbox to align main and aside side by side */
    flex: 1; /* Make main-container take up remaining space */
    padding: 30px; /* Internal spacing for main content */
    margin-left: 10rem;
    margin-right: 10rem;

}

.out-main-container main {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Add border radius */
    padding: 50px;
    background-color: black;
    color: aliceblue;
    margin-top: 7.5rem;
    background-image: url(img/background-blur-dark.jpg);
    background-size: cover;
    background-attachment: fixed;
    font-size: large;
    
}

.out-main-container h1 {
    margin: 10px;
    margin-top: 0;
}

.out-main-container h2 {
    margin: 20px;
}

.out-main-container li {
    margin: 10px;
}

.out-main-container p {
    padding-left: 15px;
}

.linguagens img {
    width: 18rem;
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5));
}

.linguagens img:hover {
    width: 22rem;
    transition: 0.4s;
}

.r img {
    width: 9rem;
}

.r img:hover {
    width: 12rem;
}

.javascript {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    width: 20rem;
}

.javascript img {
    width: 4.5rem;
}

.javascript img:hover {
    width: 6rem;
}

.contatos img {
    width: 4rem;
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5));
}

.contatos img:hover {
    transition: 0.5s;
    width: 5rem;
    filter: none;
}

@media (max-width: 768px) {
    body::before {
        background-size: cover; /* Ajuste específico para mobile */
        background-position: center top; /* Centraliza a parte mais importante */
    }
    
    .navbar-links {
        align-self: center;
        text-decoration: underline white;
        gap: 10px;
        display: none; /* Esconde os links por padrão */
        flex-direction: column;
        background-color: #cfb758;
        position: absolute;
        padding: 10px;
        top: 40px;
        right: 10px;
        width: 60%;
        border-radius: 5px;
        overflow: hidden;
        overflow-y: auto; /* Adiciona rolagem se os links ultrapassarem o limite */
        }

        .navbar-links li {
            font-size: 1rem;
            text-decoration: black;
            color: black;
        }

    .header-container {
        height: 3rem;
    }

    header img {
        height: 4rem;
        padding: auto;
        margin-top: 5px;
    }

    .header-container {
        padding: 0;
    }

    
    .navbar-links.active {
        display: flex; /* Exibe os links quando ativo */
        animation: slide-down 0.2s ease-out; /* Adiciona a animação */
      }

      .navbar-links.closing {
        animation: slide-up 0.2s ease-out; /* Animação para sumir */
    }
    
    
      .navbar-toggle {
        display: block; /* Mostra o botão de hambúrguer */
      }





    aside {
        margin: 1rem;
        margin-left: 0;
        padding: 1rem;
        flex: 1;
        height: 13rem;

    }
    
    aside h1 {
        font-size: medium;
    }

    aside p {
        font-size: xx-small;
    }

    aside img {
        height: 5rem;
    }

    .logos img{
        height: 1.5rem;
        margin: 0;
        padding: 0;
    }









    .main-container{
        justify-content: center;
        flex-direction: row;
        gap: 1rem; /* Espaçamento entre os itens */
        margin: 0;
        margin-top: 3rem;
        padding: 0;
    }

    .main-container main {
        margin: 5%;
        height: 13rem;
        border-radius: 15px; /* Add border radius */
        padding: 1.5rem;
        background-color: black;
        color: aliceblue;
        flex: 3;
        margin: 1rem;
        margin-right: 0;
    }

    .main-container main h1 {
        font-family: "JetBrains Mono", monospace;
        font-weight: 100;
        font-style: normal;
        font-size: 2rem;
        
    }

    .main-container main p {
        font-size: small;
        
    }

    .second-main-container {
        padding: 0;
        margin: 0;
    }

    .second-main-container main{
        padding: 30px;
        padding-left: 5px;
        margin: 0;
        border-radius: 0;
    }

    .second-main-container h2 {
        text-align: center;
    }

    .second-main-container main li{
        margin: 5px;
    }

    .ferramentas img {
        width: 6rem;
    }
    .slider {
        width: 35rem;
    }

    .slider-nav {
        width: 10rem;
    }

    footer img {
        width: 35%;
        height: auto;
    }




    .secao-competencias {
        display: block;
    }



    .out-main-container{
        padding: 0;
        padding-top: 0; 
        padding-bottom: 0;
        margin-left: 0;
        margin-right: 0;
    }


    .out-main-container main{
        padding: 20px;
        border-radius: 0;
        font-size: small;
        margin-top: 3rem;
    }

    .out-main-container h1{
        font-size: 180%;
        margin: 0;
        padding: 0;
    }

    .out-main-container main hr{
        margin: 0;
        padding: 0;
        margin-top: 20px; 
        margin-bottom: 20px; 
        opacity: 40%;
    }

    .out-main-container img {
        width: 100%;
    }

    .linguagens img {
        width: 9rem;
    }

    footer img {
        width: 7.5rem;
    }


}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes blink-aside {
    0%, 25%, 50%, 75%, 100% { box-shadow: none; }
    12.5%, 37.5%, 62.5% { box-shadow: 0 0 20px 10px rgb(255, 255, 255); }
}

.blink-aside {
    animation: blink-aside 4s ease;
}



  
  
  

