* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* This makes sure that the padding and border are included in the total width and height of the elements. */
}

/* clearfix */
*:before,
*:after {
    /* content: ""; */
    display: table;
    clear: both;
}

html {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden
}

body {
    color: #fff;
    background-color: #000;
}

a {
    color: inherit;
}

hr {
    color: #690000;
    border-top: 3px solid #690000;
    width: 26%;
    margin: 8px 0 20px;
}

#site-logo {
    width: 100%;
    padding: 11px 6px;
}

.topmenu {
    display: none;
}

.sidemenu {
    height: 100%;
    position: fixed;
    width: 120px;
    background-color: #151515;
    text-align: center;
}

.menubar-item {
    background-color: #2e2e2e;
    border-bottom: 1px solid black;
    font-size: 14px;
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
    width: 100%;
}

.menubar-item:last-child {
    border: none;
}

.menubar-item-selected {
    background-color: #ccc;
    color: #151515;
}

.menubar-item:hover {
    transition: background-color 1.3s, color 1.3s;
    /* transition: color 1.3s; */
    background-color: #ccc;
    color: #690000;
}

.menubar-item:active {
    transition: none;
    color: #ccc;
    background-color: #690000;
}

.menubar-item>i {
    font-size: 40px;
}

main {
    padding: 12px 24px;
    margin-left: 120px;
}

.heading {
    padding-top: 22px;
    text-align: center;
}

.heading>span {
    font-size: 71px;
    border-bottom: 6px solid #690000;
    padding-bottom: 11px;
}

.heading>p {
    font-size: 31px;
    padding: 22px 0;
}

#profile-image {
    width: 992px;
    height: 1108px;
    max-width: 100%;
    height: auto;
    margin-top: 26px;
}

section {
    color: #ccc;
    margin-left: auto;
    margin-right: auto;
    margin-top: 44px;
    max-width: 980px
}

section>h2 {
    font-weight: 500;
    font-size: 44px;
}

section#about i {
    font-size: 31px;
    line-height: 0px;
    margin-right: 8px;
}

section#about .bulletpoint {
    color: #690000;
}

section#about span {
    font-size: 24px;
}

.techstack-grid {
    margin: 35px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 2rem 6rem;
}

.card {
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card>img {
    width: 100%;
}

.card>p {
    color: #f1f1f1;
    text-align: center;
    padding: 11px 0 0 0;
}

#downloadResumeBtn,
#form-sendBtn {
    color: #690000;
    padding: 15px 22px 6px;
    float: right;
    border-radius: 4px;
    border-style: none;
    height: 53px;
}


#downloadResumeBtn:hover,
#form-sendBtn:hover {
    transition: background-color 1.3s, color 1.3s;
    background-color: #690000;
    color: white;
    cursor: pointer;
}

#downloadResumeBtn>i,
#form-sendBtn>i {
    font-size: 26px;
}

#downloadResumeBtn>span,
#form-sendBtn>span {
    vertical-align: top;
    font-size: 17px;
    margin-left: 8px;
    font-weight: 600;
}

section#portfolio {
    margin-top: 107px;
}

section#portfolio>div#projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.portfolio-card {
    width: 48%;
    margin: 22px 0;
    padding: 6px;
    background-color: #2e2e2e;
}

.portfolio-card img {
    width: 100%;
}

.portfolio-card p {
    font-size: 19px;
}

#contact-form {
    width: 100%;
    margin: 22px 0;
    padding: 17px;
    background-color: #2e2e2e;
    display: grid;
    gap: 35px 35px;
    grid-template-areas: "name name name email email email"
        "message message message message message button";
    justify-items: stretch;
    align-items: stretch;
}

#contact-form input,
#contact-form textarea {
    padding: 8px 8px;
    width: 100%;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: #690000 solid 4px;
}

#contact-form textarea {
    height: 240px;
}

#form-nameDiv {
    grid-area: name;
}

#form-emailDiv {
    grid-area: email;
}

#form-messageDiv {
    grid-area: message;
}

#form-sendBtn {
    grid-area: button;
}

#socialMediaIconsDiv {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 17px;
}

#socialMediaIconsDiv .contact-icon {
    font-size: 44px;
}

#socialMediaIconsDiv .contact-icon:hover,
#socialMediaIconsDiv a>i:hover {
    transition: color 1.3s;
    color: #690000;
}


/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .sidemenu {
        display: none
    }

    .topmenu {
        display: flex;
        justify-content: space-between;
        background-color: #000;
        position: sticky;
        position: -webkit-sticky;
        position: -moz-sticky;
        position: -o-sticky;
        position: -ms-sticky;
        top: 0;
        z-index: 100;
    }

    .menubar-item {
        border-radius: 4px;
        text-align: center;
        padding: 4px 8px;
        font-size: 15px;
        font-weight: 700;
        width: auto;
    }

    main {
        margin-left: 0;
    }

    hr {
        width: 50%;
    }

    .heading>span {
        font-size: 35px;
    }

    .heading>p {
        font-size: 17px;
    }

    section {
        padding-top: 31px;
    }

    section>h2 {
        font-size: 26px;
    }

    section#about span {
        font-size: 17px
    }

    .techstack-grid {
        gap: 2rem 4rem;
    }

    .card>p {
        font-size: 14px;
        padding: 4px 0 0 0;
    }

    #downloadResumeBtn {
        padding: 13px 11px 0;
        float: left;
    }

    #downloadResumeBtn>span,
    #form-sendBtn>span {
        font-size: 15px;
    }

    section#portfolio {
        margin: 88px 0 0;
    }

    section#portfolio>div#projects {
        display: block;
    }

    .portfolio-card {
        width: 100%;
        margin: 22px 0;
        padding: 6px;
        background-color: #2e2e2e;
    }

    div.portfolio-card>p {
        font-size: 15px;
        height: auto;
    }

    #contact-form {
        display: block;
    }

    #contact-form div {
        margin-bottom: 17px;
    }

    #contact-form input:focus,
    #contact-form textarea:focus {
        outline: #690000 solid 2px;
    }

    #contact-form textarea {
        height: 130px;
    }

    #socialMediaIconsDiv .contact-icon {
        font-size: 31px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 768px) {
    .sidemenu {
        width: 80px;
    }

    #site-logo {
        border-bottom: none;
        padding: 11px 6px 2px;
    }

    .menubar-item {
        background-color: #2e2e2e;
        font-size: 12px;
        padding: 6px 11px;
        color: #fff;
    }

    .heading {
        padding-top: 11px;
        color: #fff;
        background-color: #000;
    }

    .heading>span {
        font-size: 35px;
        border-bottom: 4px solid #690000;
        padding-bottom: 6px;
    }

    .heading>p {
        font-size: 17px;
        padding: 11px 0;
    }

    section {
        padding-top: 26px;
    }

    section>h2 {
        font-weight: 500;
        font-size: 26px;
    }

    hr {
        border-top: 2px solid #690000;
        width: 33%;
        margin: 4px 0 17px;
    }

    section#about i {
        font-size: 22px;
        margin-right: 8px
    }

    section#about span {
        font-size: 17px;
    }

    .techstack-grid {
        margin: 11px 0 22px 0;
        grid-template-columns: repeat(6, minmax(35px, 1fr));
        gap: 2rem 2.4rem;
    }

    .card>p {
        font-size: 14px;
    }

    #downloadResumeBtn,
    #form-sendBtn {
        padding: 8px 11px 1px;
    }

    .portfolio-card {
        width: 48%;
        margin: 22px 0;
        padding: 6px;
        background-color: #2e2e2e;
    }

    div.portfolio-card>p {
        height: auto;
        font-size: 15px;
    }

    #contact-form {
        display: block;
    }

    #contact-form input:focus,
    #contact-form textarea:focus {
        outline: #690000 solid 2px;
    }

    #contact-form textarea {
        height: 130px;
    }

    #contact-form div {
        margin-bottom: 17px;
    }

    #socialMediaIconsDiv .contact-icon {
        font-size: 31px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
    .sidemenu {
        width: 80px;
    }

    .menubar-item {
        font-size: 11px;
        padding: 8px 11px;
    }

    
    .heading {
        padding-top: 17px;
    }

    .heading>span {
        font-size: 53px;
        border-bottom: 4px solid #690000;
        padding-bottom: 6px;
    }

    .heading>p {
        font-size: 24px;
        padding: 11px 0;
    }

    section {
        padding-top: 19px;
    }

    section>h2 {
        font-size: 26px;
    }

    hr {
        border-top: 3px solid #690000;
        width: 26%;
        margin: 4px 0 17px;
    }

    section#about i {
        font-size: 26px;
    }

    section#about span {
        font-size: 19px;
    }

    .techstack-grid {
        margin: 26px 0 22px 0;
        grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
        gap: 3rem 4rem;
    }

    .portfolio-card p {
        font-size: 17px;
    }

    #downloadResumeBtn,
    #form-sendBtn {
        padding: 8px 11px 1px;
        height: 40px;
    }

    #contact-form input:focus,
    #contact-form textarea:focus {
        outline: #690000 solid 2px;
    }

    #contact-form {
        margin: 17px 0;
        gap: 17px;
    }

    #contact-form textarea {
        height: 190px;
    }

    #socialMediaIconsDiv .contact-icon {
        font-size: 35px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}