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

:root {
    --black1: #191d2b;
    --gray1: rgb(24, 24, 24);
    --blue1: #04064f;
    --blue-light: #60daff;
    --gray-cv: #808080;
    --green-light: #60ffda;
    --red-orange: #ff2a00;
    --fam1: 'Roboto', sans-serif;
    --fam2: 'Poppins', sans-serif;
    --fam3: 'Dancing Script', cursive;
    --fam4: 'Source Code Pro', monospace;
}

html {
    scroll-behavior: smooth;
    /* navbar was covering head of each section before this, important */
    /* scroll-padding-top: 3rem; */
}

body {
    /* max-width: 1440px; */
    margin-left: auto;
    margin-right: auto;
    background-color: #f3fcff;
    box-shadow: 1px 1px 10px #556;
    -webkit-font-smoothing: antialiased;
}

.top-container {
    position: sticky;
    top:0;
    height: 60px;
    display: flex;
    /* z-index fixed this problem: blur covering navbar */
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: .5rem;
    padding-right: .5rem;
}

.hamburger-menu {
    display: none;
    align-items: center;
    background-color: var(--black1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.hamburger-menu a {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 50%;
    width: 100%;
    height: 80%;
}

a .bar {
    background-color: whitesmoke;
    border-radius: 2px;
    height: 1px;
    width: 24px;
}

.top-container-about {
    height: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: var(--fam3);
    font-size: 1.33rem;
    height: 48px;
    width: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 0.4rem;
    border: 1px solid var(--black1);
    background-color: var(--black1);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: whitesmoke;
}

.logo a:hover {
    opacity: 0.9;
}

li {
    list-style-type: none;
}

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

.nav-item a {
    padding: .5rem 0;
}

.nav-container {
    position: fixed;
    top: 0;
    height: 60px;
    width: 100%;
    /* max-width: 1440px; */
    background-color: whitesmoke;
    box-shadow: -1px 1px 10px #ddd;
}

.nav-list {
    font-family: var(--fam1);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item {
    text-align: center;
    width: 140px;
}

.nav-link {
    display: inline-block;
    font-family: var(--fam4);
    font-weight: 500;
    width: 140px;
}

.nav-item a:hover:not(.cv) {
    border-bottom: 3px solid var(--blue1);
}

.nav-list a {
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.nav-list>.active>a {
    border-top: 3px solid transparent;
    border-bottom: 3px solid var(--green-light);
}

.nav-link.cv {
    background-color: var(--black1);
    color: whitesmoke;
    border-radius: 5px;
}

.nav-link.cv:hover {
    background-color: var(--red-orange);
    color: whitesmoke;
}

.greeting {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(https://i.ibb.co/bFZfBxm/IMG-1818-2.jpg);
    background-color: whitesmoke;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.greeting h4 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-family: var(--fam2);
    color: var(--black1);
    font-weight: normal;
    font-size: 1.6rem;
    border-bottom: 1px #60ffdaaa solid;
}

h1 {
    font-family: var(--fam2);
    color: var(--black1);
    font-size: 2.5rem;
}

h3 {
    font-family: var(--fam3);
    color: var(--black1);
    font-size: 2.2rem;
}

/* ! ------ About ------- */

.mid-container {
    background-color: var(--black1);
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #bbb;
    justify-content: space-evenly;
    padding: 1rem 8%;
    font-family: var(--fam2);
    font-size: 1rem;
}

.about-first {
    display: flex;
    align-items: center;
}

#ppic {
    width: 150px;
    height: 150px;
    border: 1px solid #64ffdb;
    box-shadow: 2px 2px 5px var(--blue-light);
    border-radius: 50%;
    margin-right: 1.5rem;
}

.short-info {
    padding-top: 5px;
    padding-bottom: 5px;
}

.mid-container a {
    color: #60dbff;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.mid-container a:hover {
    color: #fbfbfb;
    background-color: var(--red-orange);
    border-radius: 3px;
}

#languages-used {
    background-color: rgba(189, 255, 47, .92);
    border-radius: 3px 14px 16px 10px;
    color: var(--black1)
}

#about-second {
    display: flex;
    flex-direction: column;
}

.about-programming-title-div {
    display: flex;
    justify-content: center;
    width: 180px;
    margin: 1rem auto;
}

#about-second h3 {
    display: inline-flex;
    justify-content: center;
    padding: 6px 10px;
    margin: 1rem auto;
    width: 180px;
    color: var(--green-light);
    font-family: var(--fam4);
    font-weight: normal;
    font-size: 1.5rem;
    border: 1px solid #64ffd9;
    box-shadow: 2px 2px 8px var(--blue-light);
    border-radius: 5px;
}

.about-first p:last-of-type {
    margin-bottom: 0;
}

#about-second ul {
    list-style: none;
    margin-left: 4rem;
    text-align: justify;
}

#about-second li::before {
    content: '\2022';
    color: #ccc;
    display: inline-block;
    font-weight: bold;
    margin-right: .7rem;
}

.goals-list {
    margin-left: 0 !important;
}

.goals-list li::before {
    content: '🎯' !important;
}

/* ! ------ Projects -------- */
.projects-container {
    position: relative;
    /* z-index: -1; */
    padding: 1rem;
    /* background-color: whitesmoke; */
    background-color: var(--black1);
    min-height: calc(100vh - 100px);
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* can also be stretch */
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-family: var(--fam2);
}

.project {
    /* height: auto; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    gap: 3px;
    padding: .5rem;
    box-shadow: 1px 1px 3px #000;
    /* background-color: #60ddca33; */
    /* background-color: rgba(185, 255, 217, 0.83); */
    background-color: rgb(50, 66, 77);
    color: whitesmoke;
    border-radius: 8px;
    max-width: 375px;
    max-height: 440px;
    /* border: 1px solid var(--blue-light); */
}

.project:hover {
    box-shadow: 6px 3px 13px var(--green-light);
    transition: all .5s;
}

.thumbnail {
    height: 200px;
    /* height: 33%; */
    border-radius: 5px;
}

.project figcaption {
    font-size: 1.3rem;
}

.project small:nth-of-type(1) {
    margin-top: .8rem;
}

.project small {
    font-size: .9rem;
    display: block;
}

.project-link {
    width: 355.56px;
    border: 1px solid var(--blue1);
    border-radius: 10px;
    text-align: center;
    height: 2rem;
    line-height: 2rem;
    vertical-align: middle;
    color: whitesmoke;
}

.project-link.youtube {
    background-color: var(--red-orange);
}

.project-link.app {
    background-color: var(--blue1);
}

.description-box {
    overflow: scroll;
}

.fa {
    padding: 5px;
    text-align: center;
    text-decoration: none;
}

.fa:hover {
    opacity: 0.8;
}

/* .fa-envelope {
    color: #eee;
} */

/* .fa-github {
    color: white;
} */

footer {
    height: 40px;
    background-color: var(--black1);
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 4vh;
    vertical-align: middle;
    font-family: var(--fam1);
    font-size: .75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

footer .social-buttons {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0;
}

footer .social-buttons a {
    padding: 0 16px;
    color: var(--green-light)
}

footer .social-buttons a:first-child {
    padding-left: 0;
}

footer p {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

footer a {
    color: var(--green-light);
    text-decoration: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ! ------ Mobile design ------ */

@media (max-width: 768px) {

    /* .navbar-links-div {
        display: none;
    } */

    .hamburger-menu {
        display: flex;
        z-index: 10;
    }

    .hamburger-menu:hover {
        opacity: 0.9;;
    }

    /* burger menu animation */
    .hamburger-menu.open .bar:first-child {
        transform: translate(0, 6.05px) rotate(45deg);
        transition: all .2s ease-in-out;
    }
    
    .hamburger-menu.open .bar:nth-child(2) {
        transform: translate(0, -6.05px) rotate(-45deg);
        transition: all .2s ease-in-out;
    }

    .hamburger-menu .bar:first-child {
        transform: translate(0, 0px) rotate(180deg);
        transition: all .2s ease-in-out;
    }
    
    .hamburger-menu .bar:nth-child(2) {
        transform: translate(0, 0px) rotate(-180deg);
        transition: all .2s ease-in-out;
    }

    .navbar-links-div {
        position: absolute;
        top: 60px;
        right: 0;
        display: flex;
        visibility: hidden;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 240px;
        height: calc(100vh - 60px);
        background-color: var(--black1);
        box-shadow: -4px -5px 9px -3px #ddd;
        z-index: 10;
        /* opacity: 0; */
        transition: opacity .35s linear;
    }

    ul.nav-list {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        text-align: center;
        width: 240px;
        height: 80%;
    }

    .nav-item a {
        color: whitesmoke;
        padding: 1rem 0.5rem;
    }

    .nav-item {
        width: auto;
    }

    .nav-list a {
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
        box-shadow: 1px 1px 1px #ffffff11;
    }
    
    .nav-list>.active>a {
        border-top: none;
        border-bottom: 1px solid var(--green-light);
        box-shadow: 1px 1px 9px var(--blue-light);
    }

    .nav-link {
        font-weight: 400;
        font-size: 1.1rem;
    }

    .nav-item a:hover:not(.cv) {
        border-bottom: 1px solid var(--green-light);
        box-shadow: 1px 1px 4px var(--blue-light);
    }

    .nav-link.cv {
        background-color: whitesmoke;

        color: var(--black1);
        border-radius: 5px;
    }
    
    .nav-link.cv:hover {
        background-color: var(--red-orange);
        color: whitesmoke;
    }

    .greeting {
        min-height: calc(100vh - 120px);
    }

    .greeting h4 {
        font-size: 1.4rem;
    }

    #about {
        padding-left: .9rem;
        padding-right: .5rem;
    }

    .mid-container {
        font-size: 1.2rem;
        padding-left: 0;
        padding-right: 0;
    }

    .about-first {
        flex-direction: column;
    }
    
    #languages-used {
        /* background-color: rgba(100, 255, 47, .9); */
        background-color: rgba(189, 255, 47, .92);
        border-radius: 3px 14px 16px 10px;
        color: var(--black1)
    }
    
    #about-second {
        display: flex;
        flex-direction: column;
        padding-left: 0rem;
        padding-right: 0rem;
    }
    
    #about-second h3 {
        padding: 6px 10px;
        font-weight: bold;
        border: 1px solid var(--green-light);
    }

    #about-second ul {
        margin-left: 1rem;
        font-size: 1rem;
    }

    #about-second ul li {
        margin-top: .5rem;
        margin-bottom: .5rem;
        text-align: left;
    }

    #about-second li::before {
        content: '•';
        color: #ccc;
        display: inline-block;
        font-weight: bold;
        margin-right: .8rem;
    }

    #about-second a {
        display: inline;
    }

    .short-info {
        font-family: var(--fam2);
        font-size: 1rem;
    }

    #ppic {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        margin: 1rem;
    }

    .goals-list li::before {
        content: '🎯' !important;
        padding-right: .3rem;
    }


    footer {
        height: 60px;
    }

}