@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");
/* Variables */
:root {
    --font-family: sans-serf;
    --normal-font: 400;
    --bold-font: 700;
    --bolder-font: 900;
    --bg-color: #0f023fe6;
    --primary-color: #fdf5f5;
    --secondary-color: #a175e7b3;
    --bottom-margin: 0.5rem;
    --bottom-margin-2: 1rem;
    --line-height: 1.7rem;
    --transition: 0.3s;
}
/* Variable end */

html {
    scroll-behavior: smooth;
}

/* CSS Resets */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

body {
    font-family: var(--font-family);
    background-color: #edeaf2d9;
}

nav {
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3.5rem;
    background-color: var(--bg-color);
    box-shadow: 0 3px 5px rgb(0, 0, 0, 0.1);
}

nav h1 {
    color: var(--primary-color);
}

nav a {
    color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 1.8rem;
}

nav ul li {
    font-weight: var(--bold-font);
}


.burger-menu {
    color: var(--primary-color);
    font-size: 2rem;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    display: none;

}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 68.75rem;
    margin: auto;
}

.hero img {
    height: 25.5rem;
    width: 25.5rem;
}

.bio {
    width: 25rem;
    padding: 0.625rem;
    border-radius: 6px;
    box-shadow: 0px 2px 15px 2px var(--secondary-color);
}

.bio h2 {
    margin-bottom: var(--bottom-margin);
}

.bio p {
    line-height: var(--line-height);
    padding: 0.3rem 0;
}

.rprojects {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 2rem;
}

.projects-pic {
    width: 65%;
    height: 60%;
}

.projects-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.3rem;
}

.projects-title {
    text-align: center;
    margin-bottom: 1rem;
}

.project-container {
    text-align: center;
    width: 21.875rem;
    padding: 1rem;
}

.project-container p {
    padding: 0.4rem;
}

.project-title {
    margin-bottom: var(--bottom-margin);
}

.projects-details {
    margin-bottom: var(--bottom-margin);
}

.project-card {
    background-color: #fff;
    border-radius: 11px;
    box-shadow: 0 3px 10px var(--primary-color);
    padding: 20px;
    margin: 10px;
}

.contact {
    margin-top: 2rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: var(--bottom-margin-2);
}

.contact-form-container {
    max-width: 40.75rem;
    margin: 0 auto;
    padding: 0.938rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px var(--secondary-color);
}

.contact-form-container label {
    line-height: 2.7rem;
    font-weight: var(--bold-font);
    color: #000000;
}

.contact-form-container textarea {
    min-height: 6.25rem;
    font-size: 14px;
}

.contact-form-container .input-field {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    border: none;
    border: 2px outset var(--primary-color);
    font-size: 0.875rem;
    outline: none;
}

.input-field::placeholder {
    padding: 0.5rem;
    color: #08010765;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #fff;
    border: 2px solid;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: var(--bold-font);
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.socials {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 1%;
    bottom: 50%;
}

.socicon {
    width: 2rem;
    height: 2rem;
}

footer {
    color: var(--primary-color);
    background-color: var(--bg-color);
    padding: 1.25rem;
    text-align: center;
    margin: 2rem 0 0;
}

.scroll-up {
    position: fixed;
    right: 0.5%;
    bottom: 4%;
    cursor: pointer;
}

.up-arrow {
    width: 3rem;
    height: 3rem;
}

@media screen and (max-width: 720px){
    /* changes reflects on screen with a with of 720px and below
    */

    nav {
        padding: 1.5rem 1rem;
    }

    nav ul {
        position: fixed;
        background-color: var(--bg-color);
        flex-direction: column;
        top: 86px;
        left: 10%;
        width:85%;
        text-align: center;
        transform: translateX(120%);
        transition: transform 05.s ease-in;
    }

    nav ul li {
        margin: 8px;
    }

    .burger-menu {
        display:block;
    }

    nav ul.show {
        transform: translateX(0);
    }

    .hero {
        margin-top: -1rem;
        flex-direction: column;
        gap: 0;
    }

    .hero img {
        height: 37.5rem;
        width: 26rem;
    }

    .bio {
        margin-top: -3rem;
        width: 20.5rem;
    }

    .projects-container {
        display: flex;
        flex-direction: column;
        margin-top: -1rem;
        width: 30rem;
    }

    .contact-form-container {
        max-width: 23.75rem;
    }
    .socials {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 1%;
        bottom: 50%;
    }
    
    .socicon {        
        width: 2rem;
        height: 2rem;
    }
    

}

@media screen and (max-width: 420px) {

    nav {
        padding: 1.5rem 1rem;
        margin: 1%;
    }

    nav ul {
        position: fixed;
        background-color: var(--bg-color);
        flex-direction: column;
        top: 86px;
        left:1%;
        width:85%;
        text-align: center;
        transform: translateX(120%);
        transition: transform 05.s ease-in;
    }

    nav ul li {
        margin: 10px;
    }

    .burger-menu {
        display:block;
    }

    nav ul.show {
        transform: translateX(0);
    }

    .hero img {
        margin-top: -5rem;
        height: 37.5rem;
        width: 23rem;
    }

    .bio {
        width: 18.3rem;
    }

    .projects-container {
        display: flex;
        flex-direction: column;
        margin-top: -1rem;
        width: 30rem;
    }

    .contact-form-container {
        max-width: 23.75rem;
    }

    .experience-container {
        max-width: 17.75rem;
    }

    .project-container {
        width: 17.875rem;
    }

    .contact-form-container {
        max-width: 17.75rem;
    }
    .socials {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 1%;
        bottom: 50%;
    }
    
    .socicon {
        width: 2rem;
        height: 2rem;
    }
}