/* Portfolio Styles */

/* Importing the Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');


/* Remove padding and margin, so only padding and margin I have specifically put will show */
*{
    margin: 0;
    padding: 0;
}

/* Set the default font for the entire body to Poppins; see imported google fonts */
body{
    font-family: 'Poppins', sans-serif;
    background-color:  #f0f8ff;
}

#desktop-nav{
    position: sticky;
    top: 0;
    z-index: 100; /* Ensures nav stays above other content */
    background-color:  #f0f8ff; /* Add background color so that content doesn't show through*/
}

#hamburger-nav{
    position: sticky;
    top: 0;
    z-index: 100; /* Ensures nav stays above other content */
    background-color:  #f0f8ff; /* Add background color so that content doesn't show through*/
}


html{
    scroll-behavior: smooth;
}

p{
    color: rgb(85, 85, 85);

}

/*Transition */

a, .btn{
    transition: all 300ms ease; 
}


/*desktop navigation bar*/

nav, .nav-links{
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh; /* 17% of the viewport height */
}

.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a{
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}


a:hover{
    color: skyblue;
    text-decoration: underline;
    text-underline-offset: 1rem; /* Adjust the distance between the text and the underline */
    text-decoration-color: rgb(135, 206, 235); /* Set the color of the underline */
}

.logo{
    font-size: 2rem;
}

.logo:hover{
    cursor: default; 
}

/*Hamburger navigation menu*/

#hamburger-nav {
    display: none; /* Hidden by default, shown on smaller screens */
}

.hamburger-menu{
    position: relative;
    display: inline-block;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    cursor: pointer;
}

/* Style for the three lines of the hamburger icon */
.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: skyblue;
    transition: all 0.3s ease-in-out; 
}


.menu-links{
    position: absolute;
    top: 100%;
    right: 0%;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}


.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links li{
    list-style: none; /* Remove bullet points from list items */
}

/* When the menu is open, set max-height to a large value to allow it to expand */
.menu-links.open{
    max-height: 300px;
}


.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(8px, 5px); /* Rotate the first line to form the top part of the "X" */
}


.hamburger-icon.open span:nth-child(2){
    opacity: 0; /* Hide the middle line */
}

.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(7px, -5px); /* Rotate the last line to form the bottom part of the "X" */
}

/* Conflicting code that was previously in the file, but I have removed it because it was causing issues with the hamburger menu functionality.
.hamburger-icon span:first-child{
    transform: none;
}


.hamburger-icon span:first-child{
    opacity: 1; *Shows the middle line*
}


.hamburger-icon span:first-child{
    transform: none;

 */



/* Sections */

section{
    padding-top: 4vh; /* Add padding to the top of each section to create space between the navigation bar and the content */
    height: 96vh; /* Set the height of each section to 96% of the viewport height */
    margin: 0 10rem;
    box-sizing: border-box; /* Ensure padding and border are included in the total width and height */
    min-height: fit-content; /* Allow sections to expand vertically if content exceeds the specified height and does not overlap each other */
}



/*Profile Section */

#profile{
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}


.section__pic_container{
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}


.section__text{
    align-self: center;
    text-align: center;
    align-items: center;
    justify-content: center;
}


.section__text p{
    font-weight: 600;
}

.section__text_p1{
    text-align: center;
}

.section__text_p2{
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;

}

.title{
    font-size: 3rem;
    text-align: center;
}


#socials-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}


#socials-container img:hover{
    filter: invert(67%) sepia(89%) saturate(323%) hue-rotate(156deg) brightness(92%) contrast(96%); /*Makes image skyblue; color property does not work on images */
}

/*Icons*/
.icon {
    cursor: pointer;
    height: 3rem;
}


/*Buttons */
.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 3rem;
}

.btn-color-1, .btn-color-2{
    border: rgb(53, 53,53) 0.1rem solid;

}

/*contact info button*/
.btn-color-1:hover{
   cursor: pointer;
   background: black;
   color: skyblue;
   transform: scale(1.2);
   transform-origin: left center;
}

/*download button*/
.btn-color-2:hover{
   cursor: pointer;
   background: black;
   color: skyblue;
   transform: scale(1.2);
   transform-origin: right center;
}


/*About Section*/

#about{
     position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    min-height: 100vh;  /* Add this */
    height: auto;       /* Change from fixed height */
    padding-bottom: 4rem;  /* Add some bottom padding */
}

.about-containers{
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container{
    justify-content: center;
    flex-direction: column;
}

.about-containers, .about-details-container{
    display: flex;

}

.about-pic {
    border-radius: 2rem;
    height: auto; /* Lets the height adjust automatically */
    width: 100%;
    object-fit: contain; /* Shows the entire image the without cropping */
    border: 3px solid black;

}


/* Make the .about-pic responsive on different screens */

/* Tablet screens */
/* Tablet screens */
@media screen and (max-width: 768px) {
    .section-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        height: auto;  /* Add this - allows proper centering */
    }
    
    .section__pic-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        max-width: 300px;
        width: 100%;
        height: auto;  /* Add this */
        min-height: 300px;  /* Add this - gives space for vertical centering */
    }
    
    .about-pic {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0;  /* Remove any default margins */
    }
    
    /* Ensure the about section allows centering */
    #about {
        padding: 2rem 1rem;
        height: auto;
        min-height: 100vh;
        justify-content: center;
    }
}

/* Mobile screens */
@media screen and (max-width: 480px) {
    .section__pic-container {
        max-width: 250px;
        min-height: 250px;  /* Adjust for smaller screens */
    }
}


/* Changes arrow to be absolute on page */
.arrow{
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
    transition: all 0.3s ease-in-out;
}


.details-container{
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53,53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;

}


.section-container{
    gap: 4rem;
    height: auto;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}


.section__pic-container{
    display: flex;
    width: 100%;
    max-width: 400px;
    margin: auto;

}

/* To show the website is still in development*/
#web-in-progress{
    margin-top: 10px;
    color: skyblue;
}


/*Experience */
#experience{
    position: relative;
}


.experience-sub-title{
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}


.experience-details-container{
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}


.article-container{
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Experience responsive at different screens */
@media screen and (max-width: 550px) {
    .article-container {
        flex-direction: column;
        align-items: center;
    }
    
    article {
        width: 100%;
        justify-content: center;
    }
}



/* Ensure both Web and Backend sections have the same article layout */
.details-container .article-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}



article{
    display: flex;
    width: auto;
    justify-content: flex-start;
    gap: 0.5rem;
}

article .icon{
    cursor: default;
}



/* Projects */
#projects{
    position: relative;
}

.color-container{
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250 , 250);
}

.project-img{
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title{
    margin: 1rem;
    color: black;
}

.project-btn{
    color: black;
    border-color: rgb(163, 163, 163);
}



