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

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #272727;
    color: #fff;
}

/* Scrollbar styles */

::-webkit-scrollbar {
    width: 12.5px;
}

::-webkit-scrollbar-track {
    background: #ff652f;
}

::-webkit-scrollbar-thumb {
    background: #272727;
}

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

/* NavBar Styles */

#navbar {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    position: fixed;
    height: 70px;
    background-color: #ff652f;
    font-size: 1.3rem;
    width: 100%;
    z-index: 19;
}

#navbar ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    height: 100%;
    align-items: center;
    margin-right: 2%;
}

#navbar ul li {
    cursor: pointer;
}

#navbar ul li a {
    padding: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: background-color ease 0.5s;
}

#navbar ul li a:hover {
    background-color: #0099cc;
}

/* Welcome Section Styles */

#welcome-section {
    height: 100vh;
    text-align: center;
}

#welcome-section h1 {
    font-size: 4rem;
    padding: calc(70px + 17%) 0 0;
}

#welcome-section p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 100;
    font-style: italic;
    font-size: 2rem;
    padding: 0 0 17%;
    color: #ff652f;
}

/* Projects Section Styles */

#projects {
    background-color: #0099cc;
    padding: 5% 0 calc(5% + 3rem);
    text-align: center;
}

#projects h2 {
    font-size: 2.5rem;
    text-decoration: underline;
    text-underline-offset: 15px;
    text-decoration-thickness: 2.5px;
    margin-bottom: 2rem;
}

#projects>div {
    padding: 1rem;
    margin-bottom: 3rem;
}

#projects>div>div {
    display: flex;
    margin-bottom: 3rem;
}

#projects div div a {
    margin: 1rem;
    color: #fff;
}

#projects div div a figure {
    position: relative;
}

#projects div div a figure img {
    width: 100%;
}

#projects div div a figure figcaption {
    position: absolute;
    background-color: #272727;
    padding: 1rem;
    top: 98%;
    width: 100%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 1.38rem;
}

#projects div div a figure figcaption span {
    color: #ff652f;
    opacity: 0;
    transition: opacity ease 0.5s;
}

#projects div div a:hover figure figcaption span {
    opacity: 1;
}

#projects .all-projects {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: #272727;
    padding: 1rem;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: 2px;
}

#projects .all-projects:hover {
    background-color: #ff652f;
}

#projects .all-projects span {
    transition: margin-left ease 0.5s;
}

#projects .all-projects:hover span {
    margin-left: .5rem;
}

/* Contact Section */
#contact {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    padding: 10rem 11rem;
    text-align: center;
}

#contact h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#contact p {
    font-style: italic;
    font-weight: 100;
    font-size: 1.15rem;
    margin-bottom: 5rem;
}

#contact div {
    display: flex;
    justify-content: space-around;
    align-items: baseline;
}

#contact div a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform ease 0.5s;
}

#contact div a:hover {
    transform: translateY(8px);
}

#contact div a svg {
    fill: #fff;
    width: 13%;
}

@media screen and (max-width: 1280px) {
    /* Contact Section Styles */

    #contact div a {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 1024px) {
    /* Projects Section Styles */

    #projects>div {
        display: flex;
    }

    #projects>div>div {
        flex-direction: column;
        margin-bottom: 0;
    }

    #projects div div a {
        margin-bottom: 5rem;
    }

    /* Welcome Section Styles */

    #welcome-section h1 {
        padding: calc(70px + 25%) 0 0;
    }

    /* Contact Section Styles */

    #contact h3 {
        font-size: 3rem;
    }

    #contact div a {
        font-size: 1rem;
    }
}

@media screen and (max-width: 912px) {
    /* Welcome Section Styles */

    #welcome-section h1 {
        padding: calc(70px + 55%) 0 0;
    }

    /* Contact Section Styles */

    #contact {
        padding: 10rem 9rem;
    }
}

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

    /* Contact Section Styles */
    #contact {
        padding: 10rem 6rem;
    }
}

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

    /* Contact Section Styles */
    #contact {
        padding: 10rem 4rem;
    }
}

@media screen and (max-width: 712px) {
    /* Projects Section Styles */

    #projects div div a figure figcaption {
        font-size: 1rem;
    }

    /* Contact Section Styles */
    #contact {
        padding: 10rem 2rem;
    }
}

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

    /* Contact Section Styles */

    #contact div a {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 540px) {
    /* Welcome Section Styles */

    #welcome-section h1 {
        padding: calc(70px + 45%) 0 0;
    }

    /* Products Section Styles */

    #projects h2 {
        font-size: 2rem;
    }

    #projects div div a figure figcaption {
        font-size: 0.8rem;
    }

    /* Contact Section Styles */

    #contact {
        padding: 7rem 2rem;
    }

    #contact h3 {
        font-size: 2rem;
    }

    #contact div {
        display: grid;
        justify-content: space-around;
        align-items: stretch;
        grid-template-rows: 30% 30% 30%;
        grid-template-columns: 40% 40%;
        align-content: space-between;
    }

    #contact div a {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    #contact div a svg {
        width: 10%;
    }
}

@media screen and (max-width: 414px) {
    /* NavBar Styles */

    #navbar {
        font-size: 1.1rem;
    }

    #navbar ul li a {
        padding: 1.5rem 1rem;
    }

    /* Welcome Section Styles */

    #welcome-section h1 {
        font-size: 3rem;
        padding: calc(70px + 65%) 0 0;
    }

    /* Projects Section Styles */

    #projects h2 {
        font-size: 1.5rem;
    }

    #projects>div {
        padding: 0;
        margin-bottom: 2rem;
    }

    #projects div div a {
        margin-bottom: 4rem;
    }

    #projects div div a figure figcaption {
        padding: 0.8rem;
        top: 95%;
        font-size: 0.7rem;
    }
}

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

    /* Projects Section Styles */

    #projects h2 {
        font-size: 1.3rem;
    }

    #projects div div a {
        margin-bottom: 3rem;
    }

    #projects div div a figure figcaption {
        padding: 0.8rem 0;
    }

    #projects .all-projects {
        padding: 0.8rem;
        font-size: 1.2rem;
    }
}

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

    /* Projects Section Styles */

    #projects h2 {
        font-size: 1rem;
    }

    /* Welcome Section Styles */

    #welcome-section h1 {
        font-size: 2rem;
    }

    #welcome-section p {
        font-size: 1.5rem;
    }

    /* Contact Section Styles */

    #contact div a {
        font-size: 0.62rem;
    }
}