@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins';
    background-color: #fffbfe;
}

nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;

    background-color: #fffbfe;


    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1rem 3rem;

    border-bottom: 1px solid black;
    z-index: 1000;
    /* border-radius: 0 0 5px 5px; */
    /* max-width: 900px; */
}


/* Burger button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #545454;
    border-radius: 2px;
    transition: 0.3s;
}



h1 {
    font-weight: 500;
    color: #545454;
}

ul {
    display: flex;
    list-style-type: none;
}

li {
    margin-inline: 20px;
}

.nav-item {
    text-decoration-line: none;
    color: #545454;
    font-size: larger;
    transition: 0.5s;
}

.nav-item:hover {
    color: brown;
}

main {
    padding-top: 5rem;
}

section {
    scroll-margin-top: 80px;
    /* border: 1px solid black; */
}

#about {
    height: 95vh;
    /* padding-inline: 5rem; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-inline: 300px;
}

.main-about>h2 {
    font-size: 5rem;
    font-weight: 300;
}

.main-about>h3 {
    font-size: 2rem;
    font-weight: 250;
    color: #545454;
}

#about>p {
    font-size: 1.2rem;
    font-weight: 300;
    padding: 1rem;

    border: 1px solid black;
    border-radius: 5px;
}

.skills-icons-container {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 10px;
}

.skills-icons {
    width: 40px;
    object-fit: cover;
    aspect-ratio: 1;
    margin-right: 10px;
}

.section-title>h2 {
    font-size: 3rem;
    font-weight: 300;
}


#projects>h2 {
    text-align: center;
}

.project-container {
    margin-inline: auto;
    width: 70vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: 70px;

}

.image-container>img {
    width: 600px;
    flex: 1;
}

.content-container {
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    flex: 1;
}

.reversed {
    flex-direction: row-reverse;
}

.reversed>.content-container {
    margin-left: 0px;
}

.content-container>h3 {
    /* border: 1px solid red; */
    font-weight: 300;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.tech-icons-container {
    /* border: 1px solid red; */
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.tech-icons {
    width: 30px;
    margin-right: 10px;
}

.project-description {
    /* border: 1px solid red; */
    font-size: 1.2rem;
    font-weight: 300;
}

.project-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}


.project-action-button {
    position: relative;
    padding: 0.3rem 1rem;
    font-size: large;
    margin-right: 20px;
    background: transparent;
    border: none;
    border: 1px solid brown;
    width: 120px;
    overflow: hidden;
    z-index: 1;
    color: brown;
    text-decoration-line: none;
    display: inline-block;
    text-align: center;
}

/* curtain layer */
.project-action-button::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: brown;

    transform: scaleY(0);
    /* hidden */
    transform-origin: bottom;
    /* grow upward */
    transition: transform 0.3s ease;

    z-index: -1;
}

.project-action-button:hover::before {
    transform: scaleY(1);
    /* fill up */
}

.project-action-button:hover {
    color: #fffbfe;
}

/* #skills {
    height: fit-content;
    padding-bottom: 5rem;
} */


/* #skills>h2 {
    padding-top: 30px;
    text-align: center;
} */

/* .skills-container {
    width: 80vw;
    margin-inline: auto;
    display: flex;
    flex-direction: row;
} */

/* .skills-text {
    width: 50%;
    font-weight: 300;
    padding: 1rem;
} */



#contact {
    padding-top: 20px;
    margin-inline: auto;
    height: 50vh;
    padding-inline: 20rem;
}

#contact>h2 {
    text-align: center;
}

#contact>p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 200;
}

.contacts-icons-container {
    width: 40vw;
    display: flex;
    margin-inline: auto;
    justify-content: space-around;
}

.contacts-icons {
    width: 100px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

footer {
    text-align: left;
    border-top: 1px solid black;
    height: 100px;
    padding: 1rem;
}

@media(max-width: 1500px) {
    .image-container>img {
        width: 500px;
    }
}

@media(max-width: 1280px) {

    #about,
    #contact {
        padding-inline: 5rem;
        text-align: center;
    }
}


@media (max-width: 1192px) {
    #about {
        padding-inline: 3rem;
        text-align: center;
    }

    .main-about>h2 {
        font-size: 4rem;
    }

    .main-about>h3 {
        font-size: 2rem;
    }

    #about>p {
        display: block;

        margin-inline: auto;
    }

    .skills-icons-container {
        padding: 1rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 10px;
        justify-content: center;
    }

    .skills-icons {
        width: 45px;
        object-fit: cover;
        aspect-ratio: 1;
        margin-right: 10px;
    }

    #projects {
        margin: none;
    }

    .project-container {
        flex-direction: column;
    }

    .content-container {
        margin: none;
        margin-top: 20px;
        padding: none;
        width: 80vw;
    }

    .contacts-icons-container {
        display: flex;
        width: 90%;
        margin-inline: auto;
        justify-content: space-around;
    }
}

@media (max-width: 750px) {
    h1 {
        font-size: 1rem;
    }

    .image-container>img {
        position: relative;
        width: 500px;
        display: block;
        z-index: 1;
        object-fit: cover;
    }

    #about {
        padding-inline: 20px;
    }

    .project-container {
        padding-inline: 20px;
    }

    .contacts-icons {
        width: 50px;
    }


    ul#nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 200px;
        background-color: #fffbfe;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 0;
        margin: 0;
    }

    ul#nav-links.active {
        right: 0;
    }

    li {
        margin: 0;
    }

    .burger {
        display: flex;
    }
}

.nav-item.active {
    color: brown;
    border-bottom: 1px solid brown;
}


@media (max-width: 500px) {
    h1 {
        font-size: 1rem;
    }

    .image-container>img {
        width: 390px;
    }

}

@media(max-width: 380px) {

    .main-about>h2 {
        font-size: 2rem;
    }

    .main-about>h3 {
        font-size: 1.2rem;
    }

    .image-container>img {
        width: 280px;
    }

    #about>p {
        font-size: 14px;
        display: block;
        margin-inline: auto;
    }

    .section-title>h2 {
        font-size: 2rem;
    }

    .content-container>h3 {
        font-size: 1.3rem;
    }

    .content-container>p {
        font-size: 1rem;
    }

    #contact {
        padding-inline: 0.5rem;
        height: fit-content;
        margin-bottom: 20px;
    }

    #contact>p {
        font-size: 1rem;
        text-align: center;
    }

    footer {
        font-size: small;
        margin-bottom: 10px;
    }
}


/* Optional: Animate burger into X */
.burger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle span:nth-child(2) {
    opacity: 0;
}

.burger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}