@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Parkinsans:wght@300..800&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto+Slab:wght@100..900&family=Roboto:wght@300;400;700&display=swap');

:root {
    --black: #181A1B;
    --brown: #ab4e4f;
    --white: #fafafa;
    --gray: #8B8C8D;
    --dark-gray: #4f5a5d;
    --off-black: #262a2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    text-decoration: none;
}

body {
    background-color: var(--black);
    font-family: 'Raleway', sans-serif;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0px;
    right: 0px;
    left: 0px;
}

.header_container {
    width: 90%;
    padding: 40px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo_container a{
    font-family: "Roboto slab", serif;
    color: var(--white);
    font-weight: 700;
    font-size: 22px;
}

.active {
    padding-bottom: 10px;
    color: var(--white) !important;
    border-bottom: 2px solid var(--brown);
}

.menu_burger_container {
    display: flex;
    align-items: center;
    width: 30px;
    height: 10px;
}

.menu_burger_container img {
    width: 100%;
    height: 100%;
}

.navbar_desktop {
    display: none;
}

.navbar_desktop ul li a:hover {
    color: var(--white) !important;
}


#profile, #skills, #projects, #contact {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#profile {

    background: linear-gradient(0deg, rgba(42,56,78,1) 0%, rgba(24,22,20,1) 49%);

    .profile_container {
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        /* background-color: red; */

        .profile_description {
            width: 100%;
            h2 {
                color: var(--white);
                font-size: 18px;
                font-weight: bold;
                margin-bottom: 13px; 
            }

            p {
                color: var(--gray);
                font-size: 15px;
                font-family: "Montserrat", sans-serif;
                margin-bottom: 8px;

                span {
                    color: var(--white);
                }
            }

            a {
                color: var(--white);
                margin-top: 10px;
                font-size: 15px;
                text-decoration: none;
                width: fit-content;
                border-bottom: 1px solid var(--brown);

                &:hover {
                /* color: var(--brown); */
                border-bottom: 3px solid var(--brown);

                }
            }
        }

        .profile_image {
            width: 60%;
            /* height: 40vh !important; */
            /* display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden; */

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



.profile_image img {
    filter: grayscale(100%);
    transition: .2s linear;
    /* #1A1A1A */
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 2px 2px;
}

.profile_image img:hover {
    filter: grayscale(30%);
    /* background-color: #181a1c; */
    /* background-color: #171818; */
    /* background-color: rgba(24,22,20,1); */
    background-color: rgba(0, 0, 0, 0.05);
    /* background: linear-gradient(0deg, rgba(42,56,78,1) 0%, rgba(24,22,20,1) 86%); */
    box-shadow: rgba(99, 99, 99, 0.2) 0px 0px 8px 0px;

}

#skills {
    .skills_container {
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 70px;
        /* background-color: #ab4e4f; */

        .skills_title {
            color: var(--white);
            font-size: 18px;
            font-weight: bold;
        }

        .images_container {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            /* background-color: green; */

            .image_div {
                width: 33%;
                display: flex;
                justify-content: center;
                margin-bottom: 30px;

                img {
                    width: 50%;
                    
                }
            }
        }
    } 
}



#projects {

    background: linear-gradient(0deg, rgba(42,56,78,1) 0%, rgba(24,22,20,1) 86%);

    .projects_container {
        width: 90%;
        display: flex;
        flex-direction: column;
        gap: 30px;
        /* background-color: #ab4e4f; */

        .projects_title {
            color: var(--white);
            font-size: 18px;
            font-weight: bold;
            display: flex;
            justify-content: center;
        }

        .projects {
            display: flex;
            flex-direction: column;
            gap: 30px;

            .project {
                display: flex;
                text-align: center;
                flex-direction: column;
                /* background-color: gray; */
    
                .project_image_container {
                    display: none;
                }
    
                .project_name {
                    font-size: 20px;
                    color: var(--white);
                }
    
                .project_description {
                    font-size: 17px;
                    color: var(--brown);
                }
            }
        }    
    }
}

#contact {
    .contact_container {
        width: 90%;
        display: flex;
        flex-direction: column;
        gap: 50px;

        .contact_title {
            color: var(--white);
            font-size: 18px;
            font-weight: bold;
            display: flex;
            justify-content: center;
        }

        .contact_icons {
            display: flex;
            text-align: center;
            width: 100%;
            gap: 3%;

            a {
                width: 32%;

                img {
                    width: 35%;
                }
            }
        }
    }
}

@media only screen and (min-width: 600px) {

    #profile { 

        .profile_container {
            width: 50%;
            /* background-color: #ab4e4f; */

            .profile_description {
                h2 {
                    font-size: 19px;
                }
    
                p {
                    font-size: 17px;
                }

                a {
                    font-size: 17px;
                }
            }
            .profile_image {
                width: 70%;
                /* height: 40vh !important; */
                /* display: flex;
                justify-content: center;
                align-items: center;
                overflow: hidden; */
    
                img {
                    width: 100%;
                    height: 100%;
                    border-radius: 50%;
                }
            }
        }
    }

    #skills {
        .skills_container {
            
            .skills_title {
                /* display: none; */
            }

            .images_container {
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                /* background-color: green; */
    
                .image_div {
                    width: 20%;
                    display: flex;
                    justify-content: center;
                    margin-bottom: 30px;
                    /* background: gray; */
    
                    img {
                        width: 50%;
                    }
                }
            }
        }
    }

    #projects {
        .projects_container {
            width: 90%;
            display: flex;
            flex-direction: column;
            gap: 30px;
            /* background-color: #ab4e4f; */

            .projects_title {
                color: var(--white);
                font-size: 18px;
                font-weight: bold;
                display: flex;
                justify-content: center;
            }

            .projects {
                display: flex;
                flex-direction: row;
                justify-content: center;
                text-align: start;
                flex-wrap: wrap;
                width: 100%;
                gap: 5%;
                /* background-color: #8B8C8D; */
                
                .project {
                    display: flex;
                    text-align: start;
                    flex-direction: column;
                    width: 35%;
                    gap: 10px;
                    margin-bottom: 30px;
                    /* background-color: #8B8C8D; */

                    .project_image_container {
                        display: flex;
                        width: 100%;
                        height: 100%;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
        
                    .project_name {
                        font-size: 20px;
                        color: var(--white);
                    }
        
                    .project_description {
                        font-size: 17px;
                        color: var(--brown);
                    }
                }
            }    
        }
    }

    #contact {
        .contact_container {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 50px;
    
            .contact_title {
                color: var(--white);
                font-size: 18px;
                font-weight: bold;
                display: flex;
                justify-content: center;
            }
    
            .contact_icons {
                display: flex;
                text-align: center;
                justify-content: center;
                width: 100%;
                gap: 3%;
    
                a {
                    width: 17%;
    
                    img {
                        /* width: 30%; */
                    }
                }
            }
        }
    }
}


@media only screen and (min-width: 1024px) {
    .header_container {
        padding: 60px 0;
    }

    .logo_container a {
        font-size: 26px;
    }

    .menu_burger_container {
        display: none;
    }

    .navbar_desktop {
        display: flex;
    }

    .navbar_desktop ul {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .navbar_desktop ul li {
        list-style: none;
        font-size: 17px;
    }

    .navbar_desktop ul li a {
        color: var(--gray);
    }

    #profile {

        .profile_container {
            width: 60%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 0;

            .profile_description {
                width: 45%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;

                h2 {
                    color: var(--white);
                    font-size: 30px;
                    font-weight: bold;
                    margin-bottom: 26px; 
                }

                p {
                    color: var(--gray);
                    font-size: 20px;
                    font-family: "Montserrat", sans-serif;
                    margin-bottom: 15px;

                    span {
                        color: var(--white);
                    }
                }

                a {
                    /* color: var(--white); */
                    margin-top: 20px;
                    font-size: 24px;
                    /* text-decoration: none; */
                    /* width: fit-content; */
                    /* border-bottom: 1px solid var(--brown); */

                    &:hover {
                        /* color: var(--brown); */
                        /* border-bottom: 1px solid var(--white); */
                    }
                }
            }

            .profile_image {
                width: 33%;
                /* height: 40% !important; */
                /* height: 80vh !important; */
                /* background-color: #ab4e4f; */

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

    #skills {
        .skills_container {
            
            .skills_title {
                font-size: 22px;
                /* display: none; */
            }

            .images_container {
                width: 100%;
                display: flex;
                justify-content: center;
                flex-wrap: wrap;
                gap: 0;
                /* background-color: green; */
    
                .image_div {
                    width: 11%;
                    display: flex;
                    justify-content: center;
                    margin-bottom: 30px;
                    /* background: gray; */
                    /* transition: transform 0.3s, box-shadow 0.3s; */
                    &:hover {
                        /* transform: scale(1.1); */
                    }
    
                    img {
                        width: 50%;
                        /* background-color: #ab4e4f; */
                    }
                }

                .tailwind {
                    width: 17%;
                }

                .react {
                    width: 13%;
                }
            }
        }
    }

    .image_div img {
        --_g: 10% /45% 45% no-repeat linear-gradient(#000 0 0);
        --m:
            left   var(--_i,0%) top    var(--_g),
            bottom var(--_i,0%) left   var(--_g),
            top    var(--_i,0%) right  var(--_g),
            right  var(--_i,0%) bottom var(--_g);
        -webkit-mask: var(--m);
                mask: var(--m);
        filter: grayscale(0%);
        transition: transform 0.3s, filter 0.5s ease-in-out, mask 0.5s ease-in-out;
    }
    
    
    .image_div img:hover {
        --_i: 100%; /* Expands the mask gradually */
        --_g: 100%; /* Ensures mask fades out */
    
        -webkit-mask: none; /* Remove masking effect */
        mask: 0.5s ease-in-out; /* Ensure full image is visible */
        
        filter: grayscale(0%);
        transform: scale(1.3);

    }

    #projects {
        .projects_container {
            width: 90%;
            display: flex;
            flex-direction: column;
            gap: 30px;
    
            .projects_title {
                display: none;
            }
    
            .projects {
                display: flex;
                flex-direction: row;
                justify-content: center;
                text-align: start;
                flex-wrap: wrap;
                width: 100%;
                gap: 2%;
                
                .project {
                    display: flex;
                    text-align: start;
                    flex-direction: column;
                    width: 23%;
                    gap: 20px;
                    margin-bottom: 0px;
                    transition: transform 0.3s, box-shadow 0.3s;
    
                    &:hover {
                        transform: scale(1.2);
                    }
    
                    /* Fixing the hover effect */
                    &:hover .project_name {
                        display: none; /* Hide h3 on hover */
                    }
    
                    &:hover .project_description {
                        display: flex; /* Show p on hover */
                    }
    
                    .project_image_container {
                        display: flex;
                        width: 100%;
                        height: 100%;
    
                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
    
                    .project_name {
                        font-size: 20px;
                        color: var(--white);
                        display: block; /* Ensure it's visible initially */
                    }
    
                    .project_description {
                        display: none; /* Hide description by default */
                        font-size: 17px;
                        color: var(--white);
                    }
                }
            }
        }
    }

    #contact {
        .contact_container {
            width: 90%;
            display: flex;
            flex-direction: column;
            gap: 50px;
    
            .contact_title {
                color: var(--white);
                font-size: 18px;
                font-weight: bold;
                display: flex;
                justify-content: center;
            }
    
            .contact_icons {
                display: flex;
                text-align: center;
                justify-content: center;
                width: 100%;
                gap: 3%;
    
                a {
                    width: 10%;
                    transition: transform 0.3s, box-shadow 0.3s;
                    &:hover {
                        transform: scale(1.3);
                    }
    
                    img {
                        /* width: 17%; */
                    }

                }
            }
        }
    }
}

.navbar_mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--off-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.navbar_mobile.active {
    right: 0;
}

.navbar_mobile ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.navbar_mobile ul li {
    margin: 20px 0;
}

.navbar_mobile ul li a {
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
}

.menu_close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}