@import url('https://fonts.googleapis.com/css2?family=Lato');

* {
    margin: 0;
    padding: 0;
}

:root {
    --white: #fff;
    --dark1: #34344e;
    --dark2: #3a415a;
    --dark3: #566981;
    --dark4: #89a7b1;
    --dark5: #cbdad5;
    --dark6: #2f2f46;
    --cyan1: #70e3ea;
    --blue: #1845c0;
}

::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-track{
    background: var(--dark2);
}

::-webkit-scrollbar-thumb{
    background: var(--dark3);
}

::-webkit-scrollbar-thumb:hover{
    background: var(--dark4);
}

body {
    background-color: var(--dark6);
    min-height: 100vh;
    font-family: 'Lato';
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .8rem;
    background-color: var(--dark5);
    min-height: 50px;
}

.box-img-header {
    height: 100%;
}

.img-logo {
    max-width: 80px;
    height: 100%;
}

nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher img {
    width: 30px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.language-switcher img:hover,
.language-switcher img.active {
    opacity: 1;
    transform: scale(1.1);
}

.nav-link {
    text-decoration: none;
    color: var(--dark2);
}

.nav-link:hover {
    color: var(--blue);
    transition: .3s;
    text-decoration: underline;
}

.box-btn-actions {
    display: flex;
    gap: 1rem;
}

:is(button,.link-action) {
    padding: .6rem;
    font-size: .9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: .4s;
}

.btn-action {
    background-color: transparent;
    border: 1px solid var(--dark1);
    color: var(--dark1);
}

.btn-action:hover {
    background-color: var(--cyan1);
    border: 1px solid var(--cyan1);
    color: var(--dark1);
}

.link-action {
    text-decoration: none;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--cyan1);
    color: var(--cyan1);
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section {
    padding: 4rem;
}

.first-section {
    display: flex;
    justify-content: space-evenly;  
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center; 
}

.text-content{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 300px;    
}

h1 {
    font-size: clamp(2.2rem, 5vw + 1rem, 4rem);
    color: var(--white);
    letter-spacing: 8px;
}

strong {
    color: var(--cyan1);
    letter-spacing: 2px;
}

.first-section p {
    max-width: 600px;
    color: var(--white);
    text-align: justify;
}

.box-img-main {
    max-width: 450px;
    padding: 1rem;    
}

.img-profile {
    border-radius: 50%;
    width: 100%;     
}

:is(.second-section, .fourth-section){
    background-color: var(--dark2);  
    display: flex;  
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.second-section ul{
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.second-section ul li{
    color: var(--dark4);
    letter-spacing: 2px;
    font-weight: bold;
}

.second-section ul li:hover{
    color: var(--dark5);
    transition: .4s;
    cursor: default;
}

.title{
    color: var(--dark5);
}

.third-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.third-section > div{
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;    
}

.third-section > div img{
    width: 200px;
    border-radius: 10px;
}

.third-section > div p{
    max-width: 600px;
    color: var(--white);
    text-align: justify;
}

footer{
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

footer > div{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

#my-projects-list{
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#my-projects-list a{
    text-decoration: none;
    color: var(--dark3);
}

#my-projects-list a:hover{
    color: var(--dark5);
    transition: .4s;
    cursor: pointer;
}

:is(.img-profile, .img-who-am-i){
    box-shadow: 0px 0px 15px -4px var(--cyan1);
}

/* --- Media Queries para Responsividade --- */

@media (max-width: 768px) {
    h1 { text-align: center; }

    section, footer {
        padding: 3rem 2rem;
    }

    .first-section {
        justify-content: center;
    }

    .text-content {
        /* Centraliza o conteúdo do texto e o botão */
        align-items: center;
    }

    .first-section p {
        text-align: center;
    }

    .third-section > div {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 650px) {
    header {
        flex-direction: column;
        justify-content: center;
    }

    .box-img-main {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        letter-spacing: 4px;
    }

    nav {
        gap: 1.5rem;
    }
}