:root{
    --background: rgb(218, 218, 218);
    --textcolor: black; 
}
*{
    background-color: transparent;
    padding:0;
    margin: 0;
    color:var(--textcolor);
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    /* keep anchored sections from hiding under the fixed nav */
    scroll-padding-top: 110px;
}

img{
    max-width: 100%;
}

#mood{
    cursor: pointer;
}

nav{
    width:100%;
    height:100px;
    display: flex;
    justify-content: center;
    position: fixed;
    z-index: 100;
    top:0;
}
.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.nav ul{
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
.nav li{
    list-style: none;
}
.nav a {
    text-decoration: none;
    font-size: larger;
}

.icons a:hover{
    text-decoration:overline;
}

body{
    background-color: var(--background);
    display:flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}
.inner{
    width: min(1200px, 90%);
}

.body{
    display: flex;
    min-height:100%;
    flex-direction: column;
    gap: 100px;
}

.icons{
    width:40%;
}
section{
    min-height:100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0 40px;
}
.intro{
    width:100%;
    display: flex;
    flex-direction: row;
    gap: clamp(30px, 8vw, 100px);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#MenuClose{
    display:none;
    position: absolute;
    right:20px;
    top:20px;
    z-index: 200;
    cursor: pointer;
}

#MenuOpen{
    display:none;
    position: absolute;
    right:20px;
    top:20px;
    z-index: 200;
    cursor: pointer;

}

.intro a{
    text-decoration: none;
}

.intro img{
    border-radius: 50%;
    border: none;
    width: min(400px, 70vw);
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 15px 15px 20px var(--textcolor);
}
.intro .info{
    display:flex;
    align-items: center;
    flex-direction: column;
    gap:7px;
    text-align: center;
}
.buttons {
    display: flex;
    flex-direction:row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-icons{
    display: flex;
    flex-direction:row;
    align-items: center;
    gap: 10px;
}

.button {
    border: 1px solid var(--textcolor);
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--background);
}

.first{
    background-color: var(--background);
    color: var(--textcolor);
}

.second{
    background-color: var(--textcolor);
    color: var(--background);
}
.button:hover{
    background-color: var(--textcolor);
    color: var(--background);
    transition: ease-in-out 0.2s;
}
#about{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}
.about{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.about img{
    width: min(400px, 80vw);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: -15px 15px 20px var(--textcolor);
}
.text{
    flex: 1;
    min-width: min(450px, 100%);
    min-height: 300px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap:20px;
}

.inner-text-container{
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.inner-text{
    border: solid 2px var(--textcolor);
    padding: 10px;
    border-radius: 20px;
    flex: 1 1 200px;
    min-height: 100px;
}

#Experience{
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:30px;
    text-align: center;
}

#Experiences{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:30px;
}

.Experience{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.Skills-Communities{
    display: flex;
    flex-direction: column;
    flex: 1 1 320px;
    max-width: 480px;
    justify-content: center;
    align-items: center;
    gap:20px;
}

.skills{
    border: solid 2px var(--textcolor);
    padding: 10px 0px;
    border-radius: 20px;
    min-width: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.skills h3, .course h3{
    width: 100%;
    text-align: center;
}

.skills ul,.course ul{
    padding: 25px;
}

.course{
    flex: 1 1 260px;
    max-width: 360px;
    min-height: 300px;
    border: solid 2px var(--textcolor);
    padding: 10px 0px;
    border-radius: 20px;
    gap:10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

#Projects{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:30px;
    text-align: center;
}

.collage{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
}

#Projects a{
    text-decoration: none;
}

.item{
    flex: 1 1 280px;
    max-width: 360px;
    min-height:370px;
    border: solid 2px var(--textcolor);
    padding: 20px 0px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
    box-shadow: 0px 0px 20px var(--textcolor);
}

.item:hover{
    box-shadow: 0px 0px 30px var(--textcolor);
    transition: ease-in-out 0.2s;
}

.item-div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap:20px;
}

.item img{
    width: 90%;
    height:200px;
    object-fit: cover;
    border-radius: 10px;
}

.item h4{
    text-decoration: underline;
}

.proInfo{
    width:80%
}

footer{
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer div::before {
    content: "";
    width: 100%;
    height: 1px;
    border-radius: 2px;
    background-color: var(--textcolor);
    position: absolute;
    top: -5px;
    left: 0;
    z-index: 1;
}

footer div{
    position: relative;
    display: flex;
    gap:20px;
    align-items: center;
    justify-content: center;
}

footer a{
    text-decoration: none;
}

footer p{
    font-size: smaller;
}

@media (max-width: 1037px) {
    .nav{
        width: 100vw;
        height: 0;
        display: flex;
        flex-direction: column;
        justify-content: start;
        gap:100px;
        top:0;
        position: fixed;
    }
    .inner{
        width: 100%;
        
    }
    .nav ul{
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    .icons{
        width:60%;
        height:30%;
        display: none;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    .nav ul{
        flex-direction: column;
        justify-content: space-around;
        align-items: space-around;
        height: 100%;
    }

    .icons a:hover{
        text-decoration: none;
    }

    #MenuOpen{
        display:block;
    }

    .header{
        position: absolute;
        left:20px;
    }
    .intro{
        gap:30px;
    }

    .intro img{
        width: min(250px, 65vw);
    }

    .about{
        flex-direction: column;
        gap:60px;
    }
    .about img{
        width: min(300px, 80vw);
        box-shadow: 0px 15px 20px var(--textcolor);
    }
    .inner-text-container{
        width: 80%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap:20px;
    }
    .inner-text,.text{
        width: 100%; 
    }
    .text{
        align-items: center;
        width: 80%;
    }

    .Experience{
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .Skills-Communities{
        width: 90%;
        max-width: none;
        flex: none;
    }
    
    .course{
        width: 90%;
        max-width: none;
        flex: none;
        height: auto;
        min-height:270px;
        gap:10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .collage{
        width: 90%;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
        gap:30px;
        flex-wrap: nowrap;
    }

    .item{
        width: 100%;
        max-width: 500px;
        flex: none;
        height: auto;
        min-height:370px;
        border: solid 2px var(--textcolor);
        padding: 20px 0px;
    }
    .item img{
        height:250px;
    }
}

@media (max-width: 480px) {
    h1{
        font-size: 1.6rem;
    }
    h2{
        font-size: 1.2rem;
    }
    .inner{
        width: 94%;
    }
    section{
        padding: 90px 0 30px;
    }
    .intro .info p{
        font-size: 0.95rem;
    }
    .button{
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .profile-icons svg{
        width: 40px;
        height: 40px;
    }
    .text{
        width: 95%;
        min-width: 0;
        padding: 5px;
    }
    .skills ul, .course ul{
        padding: 15px 15px 15px 30px;
    }
    .item img{
        height: 180px;
    }
    footer div{
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    footer{
        height: auto;
        padding: 20px 0;
    }
}