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

/* Estilização geral */
body {
    color: white;
    background-color: black;
}
span{
    color: #DC5F00;
}

span a {
    text-decoration: none;
    color: #023def;
}

h1 {
    font-family: sans-serif;
}

/* Deu certo */

body.light-mode span {
    color: #023def;
}

/* Cabeçalho fixo */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 9px 20px;
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.8); 
    z-index: 1000; 
}


/* Efeito de visibilidade ao rolar */
.hidden {
    opacity: 1;
    pointer-events: none;
}

h2 {
    font-size: 2.5em;
    padding: 19px;
    font-weight: bold;
}

/* Navegação */
ul {
    font-family: sans-serif;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

ul li {
    margin: 9px;
}

ul li:hover{
    text-decoration: underline;
    transition: .5s;
}

ul a {
    text-decoration: none;
    font-size: 1.5em;
    color: white;
    font-weight: bold;
}

/* Seção de apresentação */
.bolocosHome {
    display: flex;
    width: 100%;
}

.imgHome {
    height: 450px;
    margin-top: 15%;
    width: 400px;
    background-color: transparent;
}

#titulo::after {
    content: "|";
    animation: blink 0.10s infinite alternate;
}

.apresentacao {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    width: 80vw;
    margin: 150px 0 0 60px;
    color: white;
    overflow: hidden;
}

.apresentacao p span {
    font-weight: bold;
    font-size: 2.5em;
}

.apresentacao h2 {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 3em;
    margin-top: 20px;
    width: 500px;
}

.botaoHome {
    background-color: #dc5f00;
    cursor: pointer;
    margin: 5px;
    border-radius: 7px;
    color: #fff;
    border: none;
    font-size: 1.2em;
    font-weight: bolder;
}

body.light-mode .botaoHome{
    background-color: #023def;
}

.apresentacao span {
    margin-top: 20px;
    font-size: 2em;
}

/* Configuração do vídeo de fundo */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Botões */
.botoes button {
    height: 39px;
    width: 150px;
}

/* Contatos */
.contatos {
    margin: 40px 0 0 10px;
    width: 150px;
    height: 39px;
    display: flex;
    gap: 19px;
}

main {
    padding-top: 60px;
}

/* Imagens */
img {
    background-color: rgba(255, 255, 255, 0.733);
    border-radius: 9px;
}

.sectionSobre{
    height: 644px;
    display: flex;
    flex-direction: row;
}

.imgSobre {
    width: 450px;
    height: 120px;
    padding: 70px;
    background-color: rgba(0, 0, 0, 0);
}

.textoSobre {
    margin: 50px;
    width: 60%;
    height: 750px;
    & h2 {
        font-size: 2.5em;
    }
    & p {
        font-size: 2em;
    }
}

.habilidades {
    text-align: center;
    height: 600px;
    margin: 50px 0;
    & h2{
        font-family: sans-serif;
        font-size: 2.5em;
        margin: 30px;
    }
}

.logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    & img {
        width: 150px;
        background-color: rgb(255, 255, 255);
        padding: 10px;
    }
}

.projetos {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(177, 35, 35, 0);
    & h2 {
        font-family: sans-serif;
        font-size: 2.5em;
        margin: 9px;
    }
    & img {
        background-color: black;
    }
}
body.light-mode .projetos img{
    background-color: #fff;
}

body.light-mode .projetos a{
    border: solid 2px rgb(48, 41, 41);
    border-radius: 7px;
    color: #080606;
    padding: 9px;
}

body.light-mode .projetos p{
    margin: 9px;
}

body.light-mode .projetos a:hover{
    color: #023def;
}

.laptop-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 80%;
    max-width: 1000px;
    justify-content: center;
}

.laptop-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.laptop {
    width: 100%;
    display: block;
}

.screen {
    position: absolute;
    top: 3%; 
    left: 7%;
    width: 86%; 
    height: 62%;
    object-fit: cover;
    border-radius: 0;
}

.laptop-wrapper p {
    position: relative; 
    margin-top: 10px; 
    font-size: 1.2em;
    background-color: #fff;
    padding: 4px;
    border-radius: 7px;
}

.laptop-wrapper p a {
    text-decoration: none;
    color: rgb(7, 5, 5);
    font-weight: bold;
}

.laptop-wrapper p a:hover {
    text-decoration: underline;
    color: #dc5f00;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 14px;
    margin-top: 50px;
}

footer ul {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 15px;
}

footer ul li {
    display: inline-block;
}

footer ul li a img {
    width: 30px;
    transition: transform 0.3s ease;
}

footer ul li a img:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

footer p {
    margin-top: 10px;
    font-size: 1em;
    opacity: 0.8;
}

/* Tema Claro */
.light-mode {
    background-color: white;
    color: black;
}

/* Estilizando o botão */
#toggleTheme {
    cursor: pointer;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #DC5F00;
    color: white;
    transition: 0.3s;
}

#toggleTheme:hover {
    background-color: #a94400;
}

/* media query */

@media (max-width: 768px) {
    header > h1 {
        margin-top: 9px;
        font-size: 24px;
    }

    nav > ul a li {
        margin-top: 9px;
        font-size: 1rem;
    }

    .bolocosHome img {
        width: 290px;
        margin-top: 20px;
    }

    .apresentacao {
        margin-top: 20px;
    }

    .apresentacao > h2 {
        font-size: 33px;
    }
    
    #titulo {
        font-size: 28px;
    }

    .botoes button {
        width: 120px;
        font-size: 17px;
    }

    .contatos img {
        width: 38px;
    }

    /*Seção Sobre */

    .imgSobre {
        width: 500px;
        margin-top: 50px;
    }

    .textoSobre h2 {
        font-size: 24px;
        padding: 0;
        margin-bottom: 9px;
    }
    
    .textoSobre p {
        font-size: 1rem;
    }

    /* Seção habilidades */
    .habilidades h2 {
        font-size: 33px;
    }

    .logos img {
        width: 100px;
    }

    /* Projetos */
    .screen {
        height: 55%;
    }
}

@media (max-width: 426px) {
    header > h1 {
        font-size: 12px;
        color: red;
    }

    nav > ul a li {
        margin-top: 9px;
        font-size: 12px;
    }

    ul li {
        margin: 4px;
    }

    #toggleTheme {
       padding: 1px;
       width: 30px;
    }

    .apresentacao {
        margin: 30px;
    }

    .apresentacao h2 {
        padding: 0;
        font-size: 23px;
    }

    .apresentacao button {
        height: 30px;
        margin: 10px;
    }

    #titulo {
        font-size: 20px;
    }

    .bolocosHome img {
        width: 140px;
    }

    .contatos {
        margin: 140px 0 0 0;
    }

    .contatos img {
        padding: 0;
        margin: 0;
        width: 30px;
    }

    .imgSobre {
        width: 250px;
        padding: 14px;
    }
    .sectionSobre {
        margin-top: 30%;
        display: flex;
        flex-direction: column;
        padding: 10px;
        font-size: 12px;
        & .imgSobre {
            width: 180px;
        }
        & .textoSobre {
            margin-top: 40px;
            padding: 10px;
            width: 100%;
            text-align: justify;
        & h2 {
            margin: 20px 0 5px 0;
        }
        }
    }
    .habilidades h2 {
        font-size: 17px;
    }

    .logos img {
        margin: 5px;
    }

    .projetos h2 {
        font-size: 17px;
    }

    .laptop-wrapper p{
        font-size: 0.9rem;

    }

    .screen {
        height: 43%; 
        & p {
            font-size: 9px;
        }
    }
}

@media (max-width: 320px) { 
    .video-bg {
        height: 668px;
    }
    .bolocosHome {
        display: flex;
        flex-direction: column;
        & .apresentacao {
            margin: 20px 0 0 20px;
            height: 250px;
        }
        & .contatos{
            margin-top: 26px;
        }
        & .imgHome {
            margin-top: 10px;
            height: 150px;
        }
    }

    .sectionSobre {
        margin-top: 30%;
        display: flex;
        flex-direction: column;
        padding: 10px;
        font-size: 12px;
        & .imgSobre {
            width: 180px;
        }
        & .textoSobre {
            margin-top: 40px;
            width: 100%;
            text-align: justify;
        & h2 {
            margin: 20px 0 5px 0;
        }
        }
    }

    .logos {
        margin: 25px;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
   .screen {
    height: 50%;
   }

   .habilidades {
    margin: 0;
   }

    .laptop-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

