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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    outline: none;
    border: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root{
    --body-color: #f4f4f4;
    --primary-color: #000;
    --secondary-color: #fff;
    --secondary-2-color: #ccc;
    --p-color: #555;
    --input-color: #fbfbfb;
    --input-hover-color: #f0efef;
    --shadow-color: rgba(0,0,0,0.8);
    --border-color: #353535;
}

/* Dark Theme */
body.dark-theme{
    --body-color: #000;
    --primary-color: #d1d1d1;
    --secondary-color: #181818;
    --secondary-2-color: #838383;
    --p-color: #969595;
    --input-color: #202020;
    --input-hover-color: #393939;
    --shadow-color: rgba(255,255,255,0.5);
    --border-color: #cdcdcd;
}

.change-theme{
    font-size: 1.2rem;
    cursor: pointer;
}

body {
    background-color: var(--body-color);
}

p{
    color: var(--p-color);
}

/*     Header    */

header{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    padding: 9px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .5s ease;
}

/* Logo */

.logo{
    font-size: 33px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span{
    color: var(--p-color);
}

/* navbar */

.nav-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.nav-container ul li{
    display: inline-block;
    font-size: 17px;
    font-weight: 400;
    margin-right: 2rem;
}

.nav-container ul li a{
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 10px;
    transition: color .5s;
}

.nav-container ul li a:hover{
    color: var(--p-color);
    text-decoration: underline;
}

.nav-button{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Underline */

.underline{
    position: fixed;
    /* height: 3px; */
    /* background-color: var(--primary-color); */
    /* transition: width .2s, background-color .5s, transform .5s ; */
    z-index: 1;
    left: 0;
}

#menu-icon{
    color: var(--primary-color);
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    display: none;
}

/* Sticky Header */

header.sticky{
    padding: 9px 6%;
    background: transparent;
    backdrop-filter: blur(55px);
    box-shadow: 0 0 10px var(--shadow-color);
}


/* Section */

section{
    padding-top: 15vh;
    margin: 0 10rem;
    min-height: fit-content;
}


/* Profile section */

#profile{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    height: 90vh;
}

/* Pic Profile */

.section_pic-container{
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.profile-pic{
    border-radius: 40%;
    box-shadow: 0 0 7px var(--shadow-color);
}

.section_pic-container:hover{
    transform: scale(1.1);
    transition: all .3s ease;
}

/* Text section */

.section_text{
    align-self: center;
    text-align: center;
}

.section_text p{
    font-weight: 600;
}

.section_text_p1{
    text-align: center;
    color: var(--p-color);
}

.section_text_p2{
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.section_text_p3{
    font-size: 14px;
    /* margin-bottom: 1rem; */
}

.title{
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
}

/* Social Media */

#social-container{
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
    margin-top: 1rem;
    gap: 10px;
}

/* Icon Part */
.social-icon{
    color: var(--body-color);
    background: var(--p-color);
    border-radius: 50%;
    padding: 5px;
    font-size: 1.5rem;
    cursor: pointer;
}

.social-icon:hover{
    background: var(--primary-color);
    transition: all .3s ease;
}

/* Button Part */

.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn{
    font-weight: 600;
    transition: all .3s ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    background: transparent;
}

.btn-color-1 , .btn-color-2{
    border: 1px solid var(--border-color);
    color: var(--p-color);
}

.btn-color-1 , .btn-color-2:hover{
    background: var(--border-color);
    color: var(--body-color);
    cursor: pointer;
}

.btn-color-1:hover{
    background: var(--border-color);
} 


/* Media Query */

@media screen and (max-width: 1400px){
    #profile{
        height: 90vh;
    }
    .about-containers{
        flex-wrap: wrap;
    }
    #projects{
        height: fit-content;
    }
}
    

@media screen and (max-width: 1200px) {
    .nav-container ul li{
        margin-right: 10px;
    }
    #profile{
        height: auto;
        min-height: 100vh;
    }
    #about {
        height: auto;
    }

    section, .section-container{
        height: fit-content;
    }
    section{
        margin: 0 5%;
    }
}

@media screen and (max-width: 800px) {
    .logo{
        font-size: 1.8rem;
    }

    #profile{
        display: block;
        min-height: 70vh;
    }

    .section_pic-container{
        width: 275px;
        height: 275px;
        margin: 0 auto 2rem;
    }

    #menu-icon{
        display: block;
        position: relative;
        color: var(--primary-color);
    }
    .underline{
        display: none;
    }
    .navbar{
        position: fixed;
        width: 100%;
        height: 100vh;
        padding: 40px 60px;
        top: 0;
        bottom: 0;
        left: 100%;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--secondary-color);
        transition: all .5s ease;
    }
    .navbar a{
        display: block;
        color: var(--primary-color);
        padding: 0;
        margin: 0 0 40px 0;
        font-size: 1rem;
        font-weight: 400;
    }
    .navbar.open{
        left: 0;
    }

    #about .section_pic-container{
        display: none;
    }

    .section_text_p1{
        font-size: 12px;
    }
    .text-container{
        margin-top: 2rem;
    }

    .title{
        font-size: 2rem;
    }
    .section_text_p2{
        font-size: 1.25rem;
    }
    .text-container{
        text-align: justify;
        margin-top: 5rem;
    }
}

@media screen and (max-width:540px) {
    .section_pic-container{
        height: 60vw;
    }
    .profile-pic{
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
}

@media screen and (max-width: 400px) {
    .section_pic-container{
        height: 55vw;
    }
    .profile-pic{
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    .section_text_p2{
        font-size: 1.5rem;
    }
    .section_text_p3{
        font-size: 12px;
    }
}
@media screen and (max-width: 350px) {
    .section_pic-container{
        height: 50vw;
    }
    .section_text_p2{
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 300px) {
    .section_pic-container{
        height: 45vw;
    }
    .profile-pic{
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    .section_text_p2{
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 250px) {
    .section_pic-container{
        height: 40vw;
    }
    .profile-pic{
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    .section_text_p2{
        font-size: 1rem;
    }
}
@media screen and (max-width: 200px) {
    .section_pic-container{
        height: 35vw;
    }
    .profile-pic{
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    .section_text_p2{
        font-size: 0.9rem;
    }
}
