* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(250deg, black, hsl(0, 0%, 12%), black);
    color: white;
}



/*----------------========[[[[ Header ]]]]========----------------*/

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*--------====[[ Navigation Bar ]]====--------*/

.hamburgerBar {
    padding: 20px 0px;
    width: 100%;
    font-size: 25px;
    display: flex;
    justify-content: center;
    background-color: transparent;
    border: none;
}

.navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(250deg,white, hsl(0, 10%, 81%), white);
    position: fixed;
    opacity: 90%;
}

#navbarList {
    width: 100%;
    overflow: hidden;
    text-align: center;
    list-style-type: none;
}

#navbarList a {
    padding: 20px 16px;
    display: block;
    text-decoration: none;
    background: transparent;
    color: black;
    transition: 0.3s;
}

#navbarList a:hover {
    background: linear-gradient(250deg,hsl(0, 10%, 81%), hsl(0, 9%, 74%), hsl(0, 10%, 81%));
    color: white;
}

.navbar img {
    width: 50px;
}

.encourageVisit {
    display: none;
}

/*--------====[[ Profile ]]====--------*/

.profile {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    animation: appear;
    animation-duration: 2s;
}

.profileImg {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profileImg img {
    width: 350px;
    border: 2px solid white;
    border-radius: 200px;
}

/*----==[[ Profile Info ]]==----*/

.profileInfo {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 5px;
}

.profileInfo h1 {
    font-size: 25px;
    border-bottom: 2px solid white;
    margin: 0px 25px;
}



/*----------------========[[[[ Main ]]]]========----------------*/


/*--------====[[ Section ]]====--------*/

section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: appear;
    animation-duration: 2s;
}

.sectionHead {
    height: fit-content;
    width: fit-content;
    display: flex;
    justify-content: center;
}

.sectionHead h2 {
    font-size: 40px;
    border-bottom: 2px solid white;
}

.sectionHead p {
    margin: 0px 10px
}

.sectionHead a {
    width: 100%;
}


.sectionContent p {
    margin: 10px;
}

/*----==[[ Skills ]]==----*/

#skillsContent {
    display: flex;
    flex-direction: column;
}

.skillList, .skillList li {
    list-style-type: none;
}

.skillList {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 20px;
}

.skillCategory {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.skillCategory h2{
    font-size: 20px;
}

#languages li, #environment li, #framework li  {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#languages {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
}

#environment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.icon {
    padding: 2px;
    width: 40px;
    background-color: white;
    border-radius: 10px;
}


/*----==[[ Projects ]]==----*/

#projects {
    height: 100vh;
    gap: 20px;
}

#projectHead {
    display: flex;
    flex-direction: column;
}

#projectHead a {
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    transition: 0.3s;
}

#projectHead a:hover {
    background-color: white;
    color: black;
}

#projectsContent {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.projectList {
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projectContent {
    display: flex;
    flex-direction: column;
}

/*----==[[ Summary ]]==----*/

.carousel {
    margin: 100px auto;
    width: 90%;
    border: none;
    display: flex;
    overflow-x: auto;
    border: 1px solid white;
    border-left: 5px solid;
    border-right: 5px solid;
    border-radius: 10px;
    padding: 10px 0px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 10s infinite linear;
    padding-right: 1em;
}

.card {
    display: flex;
    flex: 0 0 5em;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 5em;
    padding: 1em;
    background: linear-gradient(250deg,white, hsl(0, 10%, 81%), white);
    background-color: white;
    color: black;
    font-size: 3em;
    border-radius: .2em;
    opacity: 90%;
    transition: 0.5s;
}

.card:hover {
    opacity: 100%;
}

.card p,h3 {
    transition: 0.5s;
}

.card p:hover,h3:hover {
    transform: scale(1.10);
}

.card h3 {
    font-size: 20px;
}


/*----==[[ Contact ]]==----*/

#contact {
    justify-content: space-evenly;
}

#contactContent h1 {
    margin-bottom: 10px;
}

#contactForm {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 15px;
}

/*#contactForm input, textarea, button{
    padding: 10px;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    outline: none;
}

#contactForm textarea {
    height: 20vh;
}*/

.formDiv {
    display: flex;
    flex-direction: column;
}

.formDiv label {
    text-align: left;
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 3px;
    font-size: 20px;
}

.formDiv input, textarea, button{
    padding: 10px;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    outline: none;
}

.formDiv textarea {
    height: 20vh;
}

#contactForm button {
    cursor: pointer;
    transition: 0.3s;
}

#contactForm button:hover {
    background-color: rgb(232, 226, 226);
}



/*----------------========[[[[ Footer ]]]]========----------------*/


footer {
    padding: 10px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(420deg,white, hsl(0, 10%, 81%), white);
    color: black;
}

.visit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visit h3 {
    font-size: 15px;
}

.visit img {
    width: 50px;
    transition: 0.3s;
}

.encourageVisit img:hover, .visit img:hover {
    opacity: 50%;
}



/*----------------========[[[[ Project Page ]]]]========----------------*/


#projectPageHeader {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

#projectPageHeader h1 {
    font-size: 50px;
}

#projectPageHeader a {
    text-decoration: none;
    color: white;
    border-bottom: 2px solid white;
}

#projectPageMain {
    padding: 10px;
}

.projectSection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100vh;
}

.projectSection h2 {
    font-size: 30px;
}

.projectSectionContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projectSectionImage {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.projectSectionImage img {
    width: 100%;
}

.projectSectionImage a {
    padding: 10px;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    outline: none;
    transition: 0.3s;
}

.projectSectionImage a:hover {
    background-color: white;
    color: black;
}

#projectPageFooter {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#projectPageFooter a {
    color: black;
}



/*--------------------------------================[[[[[[[[ Desktop ]]]]]]]]================--------------------------------*/

@media (min-width: 1024px) {
    #projectPageHeader {
        height: 100vh;
        background: linear-gradient( rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6) ), url("images/20260515_102939.jpg");
        background-attachment:fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .hamburgerBar {
        display: none;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .navbar ul li {
        float: left;
    }

    #navbarList {
        display: flex !important;
        width: fit-content;
    }

    .encourageVisit {
        margin-right: 10px;
        display: flex;
        flex-direction: column;
        
    }

    .encourageVisit img {
        padding: 3px;
        width: 50px;
        border-radius: 10px;
        transition: 0.3s;
    }

    .profileLinks {
        display: flex;
    }

    .profile {
        width: 100%;
        flex-direction: row;
        justify-content: space-evenly;
    }

    .profileImg img {
        box-shadow: 0px 0px 20px black;
    }

    #projectPageMain {
        box-shadow: 0px 0px 30px black;
    }

    section {
        padding: 50px;
        flex-direction: row-reverse;
        justify-content: space-around;
        gap: 20px;
    }

    section:nth-child(2n) {
        flex-direction: row;
    }

    .sectionHead {
        width: 30%;
        gap: 10px;
    }

    .sectionHead h2 {
        font-size: 100px;
    }

    .sectionContent {
        width: 70%;
    }


    #aboutContent {
        width: 50%;
        font-size: 18px;
        border-top: solid white;
        border-bottom: solid white;
        border-radius: 10px;
        padding: 20px 0px;
    }

    .skillList {
        gap: 30px;
    }

    #skills p {
        width: 70%;
    }

    #skillsContent {
        align-items: center;
    }

    #languages {
        gap: 5px 250px;
    }
    
    #projects {
        justify-content: space-evenly;
        gap: 100px;
    }

    .projectList {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 35px;
        row-gap: 35px;
    }

    .projectContent {
        font-size: 18px;
        justify-content: center;
        border-top: solid white;
        border-bottom: solid white;
        border-radius: 10px;
        padding: 20px 0px;
    }

    .projectContent h2 {
        font-size: 20px;
    }

    #summary {
        flex-direction: column;
    }

    #contactForm {
        width: 50%;
    }

    #contactForm textarea {
        resize: none;
    }

    .projectSection {
        flex-direction: row-reverse;
    }

    .projectSection:nth-child(2n) {
        flex-direction: row;
    }

    .projectSectionContent {
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 50%;
    }

    .projectSectionImage{
        width: fit-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .projectSectionImage img {
        width: fit-content;
        height: 300px;
        padding: 5px;
        border-top: solid white;
        border-bottom: solid white;
        border-radius: 10px;
    }

    .projectSectionImage a {
        width: 100%;
    }

    footer {
        display: flex;
        padding: 20px;
    }


    #projectPageFooter {
        display: grid;
        grid-template-columns: 1fr 3fr 1fr;
        align-items: center;
    }

    #mainVisit {
        display: none;
    }
}



/*----------------========[[[[ Animations ]]]]========----------------*/

@keyframes appear {
    from {opacity: 0%}
    to {opacity: 100%}
}

@keyframes spin {
    from {translate: 0;}
    to {translate: -100%;}
}