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

:root{
    --text-color: white;
    --bg-url: url(./assetes/bg-mobile.jpg);
    --stroke-color: rgba(255, 255, 255, 0.05);
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-color-hover: rgba(255, 255, 255, 0.02);
    --highlight-color: rgba(255,255,255,0.2);
    --swtich-bg-url: url(./assetes/moon-star.svg);
    --butoon-home: url(./assetes/home-icon.svg);
    --body-grad: linear-gradient(to right,#472758,#37274B,#2D243F,#212030,#191820,#1A121D,#1E101D,#260F21,#34102C,#3F1239,#461542,#521B52,#5A2666,#5F3479,#5E397F);
}

.light {
    --text-color: black;
    --bg-url: url(./assetes/bg-mobile-light.jpg);
    --stroke-color: rgba(0 , 0 , 0 , 0.5);
    --surface-color: rgba(0 , 0 , 0 , 0.05);
    --surface-color-hover: rgba(0 , 0 , 0 , 0.02);
    --highlight-color: rgba(0 , 0 , 0 , 0.1);
    --swtich-bg-url: url(./assetes/sun.svg);
    --butoon-home: url(./assetes/home-icon.svg);
}

body{
    /*background-image: url(./assetes/gb-mobile.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;*/
    background: var(--bg-url) no-repeat top center/cover;
    height: 100vh;
}
body * {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
}

#container{
    width: 100%;
    max-width: 588px;
    /*border: 1px solid red;*/
    margin: 65px auto 0px;
    padding: 0 24px;
}

#profile{
    text-align: center;
    padding: 24px;
}

#profile img {
    width: 112px;
}

#profile p{
    font-weight: 500;
    line-height: 24px;  
    margin-top: 8px;    
}
#swithc{
    width: 64px;
    position: relative;
    margin: 4px auto;
}

#swithc button{
    width: 32px;
    height: 32px;
    background: white var(--swtich-bg-url) no-repeat center ;
    border: 0;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
    transform: translateY(-50%);
    animation: slide-out 0.4s;
}

.light #swithc button{
    animation: slide-in 0.4s forwards;
}

#swithc button:hover{
    outline: 8px solid var(--highlight-color);
}

#swithc span {
    display: block;
    width: 64px;
    height: 24px;
    background: var(--surface-color);
    border: 1px solid var(--surface-color);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
}



/*links//lista*/
#container ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;

}

ul li a{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    background: var(--surface-color);
    border: 1px solid var(--stroke-color);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

ul li a:hover{
    background: var(--surface-color-hover);
    border: 1.5px solid --text-color;
}

#social-links{
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    font-size: 24px;
}

#social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: background 0.2s;
    border-radius: 50%;
}

#social-links a:hover{
    background: var(--highlight-color);
    padding: 16px;
}

footer {
    padding: 24px 0;
    text-align: center;
}

/*media queries*/
@media (min-width: 700px){
    :root{
        --bg-url: url(./assetes/bg-desktop.jpg);
    }

    .light{
        --bg-url: url(./assetes/bg-desktop-light.jpg);
    }
}

@keyframes slide-in{
    from{
        left: 0;
    }
    to{
        left: 50%;
    }
}

@keyframes slide-out{
    from{
        left: 50%;
    }
    to{
        left: 0;
    }
}

/*nav projects*/

#home a{
    display: flex;
    margin: auto;
    width: 50px;
    height: 50px;
    background:var(--butoon-home);
}
#home h1{
    text-align: center;
    padding: 10px;
    color: rgb(127, 70, 168);
}

#body-projects{
    background: var(--body-grad);
}

#conteudo{
    width: 100%;
    text-align: center;
    margin: 25px auto 0px;
    max-width: 800px;
    max-height: 800px;
}

#conteudo div{
    display: inline-flex;
    flex-wrap: wrap;
}

#conteudo .item{ 
    width: 33%;
    max-width: 300px;
    height: 33%;
    height: 250px;
    max-height: 100%;
    float: left;
    padding: 2px 5px;
    list-style: none;
}

#conteudo .item a{
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#conteudo a, #conteudo .descrip{
    color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--stroke-color);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

#conteudo a .descrip:hover{
    color: var(--text-color);
    font-weight: 700;
    backdrop-filter: blur(4px);
}

/*Style do sobre mim*/
#principal{
    position: relative;
}

#sobre-mim p{
    font-size: 25px;
    font-style: italic;
    text-align: center; 
    max-width: 700px;
    width: auto;
    max-height: 500px;
    height: auto;
    border: 1px solid var(--stroke-color);
    background: var(--surface-color);
    border-radius: 3vh;
}

#sobre-mim{
    display: flex;
    justify-content: center;
}