* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #e1e1e1;
    height: 100vh;
    font-size: 18px;
    color: #454545;
    position: relative;
}

ul {
    list-style: none;
}

li {
    padding: 5px 0;
    line-height: 30px;
}

a {
    text-decoration: none;
    color: #454545;
}

.container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
}

.section {
    border-radius: 20px;
    padding: 10px;
    margin: 10px 0;
    opacity: 0.7;
}

.section__heading {
    margin-bottom: 10px;
    font-size: 20px;
}

/*   Navigation    */
.navigation {
    width: 100%;
    height: 100vh;
    position: fixed;
    left: -100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    
    background: #d8bff8;
    opacity: .9;
    z-index: 4;
    top: 0;
    transition: left .8s cubic-bezier(1, 0, 0, 1);
}

/*   Header   */

.header__container {
    display: grid;
    grid-template-columns: 30% 60%;
    grid-template-rows: auto;
    grid-template-areas: 
    "img name"
    "img contacts";

    justify-content: space-between;

    padding: 30px 30px 10px;
}

.header__photo-container {
    grid-area: img;
}

.header__img {
    width: 100%;
    border-radius: 20px;
}

.hamburger{
    display: none;
}

.header__profile {
    grid-area: name;

    margin: 30px 0;
}

.header__name {
    font-size: 30px;
    text-transform: uppercase;
}

.header__job-name {
    font-weight: 300;
    font-size: 24px;
}

.header__contacts {
    grid-area: contacts;
}

.header__contacts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.header__contacts-item {
    padding: 0;
    font-size: 16px;
}

/*    Main    */

.main__container {
    padding: 0 30px;
    justify-content: space-between;
    column-gap: 20px;

    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto;
    grid-template-areas: 
    "left right"
    "projects projects";
}

.main__left-side {
    justify-content: space-between;
    display: flex;
    flex-direction: column;

    grid-area: left;
}

.main__right-side {
    justify-content: space-between;
    display: flex;
    flex-direction: column;

    grid-area: right;
}

/*    SKILLS    */

.section_skills {
    background-color: #d8bff8;
}

.section__list {
    list-style-type: disc;
    margin-left: 20px;
}

/*     LANGUAGES    */

.section_languages {
    background-color: #f7d8d5;
}

/*    EDUCATION    */

.section_education {
    background-color: #f8dcbf;
}

/*    ABOUT    */

.section_about {
    background-color: #f1e7dd;
}

/*    CODE    */

.section_code {
    background-color: #cdf6f2;
    font-size: 16px;
}

.section__code-example {
    font-size: 14px;
    opacity: 0.7;
    background: honeydew;
    padding: 10px;
    border-radius: 20px;
}

pre {
    overflow: auto;
    margin: 10px;
}

code {
    font-family: monospace;
}

/*     PROJECTS    */

.section_projects {
    grid-area: projects;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 20px;
}

.project {
    width: 300px;
    height: 150px;

    position: relative;
}

.project__img {
    width: 100%;
    height: 100%;
    display: block;
    border: 2px solid #d8bff8;
    border-radius: 20px;
}

.project__description {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: #d8bff8;
    color: #454545;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.3s ease-in;
}

.project:hover .project__description {
    opacity: 1;
}

.project__link {
    margin: 10px;
    padding: 10px 20px;
    background-color: #e1e1e1;
    opacity: 0.7;
    border-radius: 20px;
}

.project__link:hover {
    cursor: pointer;
}

.project__link:active {
    transform: scale(0.96);
}

/*    FOOTER    */

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 30px;
    background: #f7d8d5;
}

.footer__course {
    width: 100px;
}

/*    MEDIA      */
@media (max-width: 865px){
    .header__container {
        grid-template-areas: 
        "img name"
        "contacts contacts";
        grid-template-columns: 50% 50%;
    } 

    .header__photo-container {
        width: 70%;
    }
    
}

@media (max-width: 670px){
    .header__container {
        grid-template-areas: 
        "name"
        "contacts";

    grid-template-columns: none;
    } 

    .header__profile {
        margin-top: 70px;
    }

    .header__name {
        font-size: 22px;
    }

    .header__job-name {
        font-weight: 300;
        font-size: 18px;
    }

    .header__photo-container {
        width: 100%;
        height: 90px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #cdf6f2;
        padding: 10px;
        border-radius: 20px;
        opacity: 0.7;
        z-index: 5;
        position: fixed;
        top: 0;
        left: 0;
    }

    .header__img {
        height: 75px;
        width: 75px;
    }

    .main__container {
        display: flex;
        flex-direction: column;
    }

    .projects {
        flex-direction: column;
        justify-content: space-between;
    }

    .project {
        width: 100%;
        height: auto;
    }

}

@media (max-width: 550px){

    .header__container {
        grid-template-areas: 
        "img name"
        "contacts";
    } 

    .header__contacts-list {
        display: flex;
        flex-direction: column;
    }
}


