@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');
/* main styles */
html {
    scroll-behavior: smooth;
}
:root {
    --white: #FFF;
    --black: #24292f;
    --gray: #8F91A4;
    --dark-gray: #5B5A6D;
    color-scheme: light;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    justify-content: center;
    align-items: center;
    font-family: 'Questrial', sans-serif;
    font-weight: 400;
    color: var(--black);
}
::selection {
    background-color: var(--black);
    color: var(--white);
}
/* width */
::-webkit-scrollbar {
    width: 11px;
}
/* Track */
::-webkit-scrollbar-track {
    border-radius: 0px;
    background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
    background: var(--dark-gray); 
    border-radius: 15px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: black; 
}

/* tag styles */
a {
    color: var(--black);
    text-decoration: none !important;
}
h1 {
    font-size: 30px;
}
h2 {
    font-size: 55px;
}
h4 {
    font-size: 24px;
    color: var(--dark-gray);
}
ul {
    list-style-type: none;
}
button {
    cursor: pointer;
    border: none !important;
    font-size: 16px;
    font-weight: bolder;
    color: var(--white);
    background-color: var(--black);
    border-radius: 10px;
    padding: 0.8rem 2.5em;
    transition: .3s;
    outline: 2px solid var(--black);
    outline-offset: -2px;
}
button:hover {
    background: transparent;
    color: var(--black);
}
svg {
    fill: #000;
    font-size: 34px;
    margin-right: 1rem;
}
svg:hover {
    fill: var(--gray);
}
span:hover {
    display: inline;
    border-bottom: 3px solid #8f91a420;
}
i {
    font-size: 75px;
}
.container {
    max-width: 1344px;
    margin: auto;
    position: static;
    align-items: center;
}

/* page styles */
.nf-container {
    max-width: 1500px;
    margin: 0 auto;
    position: static;
}
nav {
    margin: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
}
nav ul{
    display: flex;
}
nav ul .logo a{
    font-size: 32px;
}
nav ul a{
    text-transform: capitalize;
    color: var(--black);
    font-weight: bold;
    font-size: 18px;
    transition: all 0.2s ease-in;
}
nav ul a:hover {
    color: var(--gray);
}
nav li {
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 2rem;
}
/* Hamburger Menu */
.hamburger {
    display: none;
    margin-top: 0.5rem;
    cursor: pointer;
}
.hamburger .bar {
    background-color: var(--black);
    display: block;
    width: 25px;
    height: 3px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
}
@media(max-width: 475px) {
    nav ul .logo a {
        font-size: 28px;
    }
} 
@media(max-width: 1075px) {
    nav {
        margin: 1.5rem 1rem;
    }
}
@media(max-width: 825px) {
    .hamburger {
        display: block !important;
    }
    .hamburger.active .bar:first-child {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .nav-menu {
        margin-top: auto;
        margin-bottom: auto;
        overflow: hidden;
        position: fixed;
        left: -100%;
        top: 100px;
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
    }
    body.nav-menu-active {
        overflow: hidden;
    }
    .nav-menu li {
        padding: 1rem;
        border-bottom: 1px solid var(--gray);
        margin: 1.5rem;
    }
    .nav-link {
        color: var(--black);
    }
    nav .nav-menu.active {
        left: 0;
    }
}
/* home-page */
#home {
    margin-bottom: 10rem !important;
}
.home-container {
    margin-top: 5rem;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
}
.home-container__content {
    margin-top: auto;
    margin-bottom: auto;
}
.home-container__content h2 {
    font-weight: bolder;
    margin-top: 2rem;
    font-size: 58px;
    margin-bottom: 2rem;
}
.home-container__content h4 {
    text-transform: capitalize;
}
.home-container__avatar img {
    height: 500px;
    width: auto;
    border: 20px solid #8f91a420;
    border-radius: 43% 57% 45% 55% / 53% 43% 57% 47% ;
}
.home-container__avatar img:hover {
    opacity: 0.9;
}
@media(max-width: 1175px) {
    .home-container {
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    .home-container__content h2 {
        font-size: 35px;
    }
    .home-container__content h4 {
        margin-top: 2rem;
    }
    .home-container__avatar img {
        height: 300px;
        width: auto;
    }
    .home-container__avatar {
        order: -1; 
    }
}
/* projects and skills heading  */
.headings-projects-skills {
    display: flex;
    align-items: center;
    justify-content: center;
}
.show-page-heading.active {
    color: gray;
}
/* project-page */
#projects {
    align-items: center;
    text-align: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='1' y2='0' gradientTransform='rotate(8,0.5,0.5)'%3E%3Cstop offset='0' stop-color='%238F91A4'/%3E%3Cstop offset='1' stop-color='%238F91A4'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' x2='0' y1='0' y2='1' gradientTransform='rotate(0,0.5,0.5)'%3E%3Cstop offset='0' stop-color='%238F91A4'/%3E%3Cstop offset='1' stop-color='%238F91A4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='%23FFF' fill-opacity='0' stroke-miterlimit='10'%3E%3Cg stroke='url(%23a)' stroke-width='3.3'%3E%3Cpath transform='translate(-40.25 9.2) rotate(5.75 1409 581) scale(1.023)' d='M1409 581 1450.35 511 1490 581z'/%3E%3Ccircle stroke-width='1.1' transform='translate(-23 23) rotate(6.9 800 450) scale(1.012)' cx='500' cy='100' r='40'/%3E%3Cpath transform='translate(20.7 -69) rotate(69 401 736) scale(1.012)' d='M400.86 735.5h-83.73c0-23.12 18.74-41.87 41.87-41.87S400.86 712.38 400.86 735.5z'/%3E%3C/g%3E%3Cg stroke='url(%23b)' stroke-width='1'%3E%3Cpath transform='translate(138 -9.2) rotate(2.3 150 345) scale(0.977)' d='M149.8 345.2 118.4 389.8 149.8 434.4 181.2 389.8z'/%3E%3Crect stroke-width='2.2' transform='translate(-92 -57.5) rotate(82.8 1089 759)' x='1039' y='709' width='100' height='100'/%3E%3Cpath transform='translate(-138 46) rotate(13.8 1400 132)' d='M1426.8 132.4 1405.7 168.8 1363.7 168.8 1342.7 132.4 1363.7 96 1405.7 96z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}
.project-container {
    margin: 1rem;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}
.project-card {
    background-color: var(--white);
    margin-right: 2rem;
    padding: 1rem;
    margin-top: 1rem;
    width: 550px;
}
.project-card__image img {
    transition: transform .3s;
    border-radius: 15px;
    height: 350px;
    width: 100%;
}
.project-card__image img:hover {
    transform: scale(1.05);
    transform-style: preserve-3d;
}
.project-card__icons {
    margin-top: 2rem;
    text-align: left;
}
.project-card__content {
    text-align: left;
}
.project-card__content h3 {
    font-size: x-large;
    margin-top: 2rem;
    margin-bottom: 1rem
}
.project-card__content p {
    color: var(--dark-gray);
    line-height: 1.3em;
    padding-left: 1rem;
    border-left: 3.5px solid var(--gray);
}
/* pre tag */
pre {
    font-family: monospace;
    font-size: 12px;
    margin-top: 1rem;
    background-color: #0000001b;
    color: var(--black);
    display: inline-block;
    margin-right: 0.6em;
    padding: 4px;
    border-radius: 4px;
}
/* greeper ad -> none */
pre .open_grepper_editor {
    display: none !important;
}
@media(max-width: 775px) {
    .project-card {
        margin-right: 0;
        margin-top: 2rem;
    }
    .project-card__image img {
        height: 300px;
    }
}
@media(max-width: 475px) {
    .project-card__image img {
        height: 240px;
    }
}
/* skills */
#skills {
    margin-top: 5rem !important;
    margin: 0 auto;
    display: grid;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='1' y2='0' gradientTransform='rotate(8,0.5,0.5)'%3E%3Cstop offset='0' stop-color='%238F91A4'/%3E%3Cstop offset='1' stop-color='%238F91A4'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' x2='0' y1='0' y2='1' gradientTransform='rotate(0,0.5,0.5)'%3E%3Cstop offset='0' stop-color='%238F91A4'/%3E%3Cstop offset='1' stop-color='%238F91A4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='%23FFF' fill-opacity='0' stroke-miterlimit='10'%3E%3Cg stroke='url(%23a)' stroke-width='3.3'%3E%3Cpath transform='translate(-40.25 9.2) rotate(5.75 1409 581) scale(1.023)' d='M1409 581 1450.35 511 1490 581z'/%3E%3Ccircle stroke-width='1.1' transform='translate(-23 23) rotate(6.9 800 450) scale(1.012)' cx='500' cy='100' r='40'/%3E%3Cpath transform='translate(20.7 -69) rotate(69 401 736) scale(1.012)' d='M400.86 735.5h-83.73c0-23.12 18.74-41.87 41.87-41.87S400.86 712.38 400.86 735.5z'/%3E%3C/g%3E%3Cg stroke='url(%23b)' stroke-width='1'%3E%3Cpath transform='translate(138 -9.2) rotate(2.3 150 345) scale(0.977)' d='M149.8 345.2 118.4 389.8 149.8 434.4 181.2 389.8z'/%3E%3Crect stroke-width='2.2' transform='translate(-92 -57.5) rotate(82.8 1089 759)' x='1039' y='709' width='100' height='100'/%3E%3Cpath transform='translate(-138 46) rotate(13.8 1400 132)' d='M1426.8 132.4 1405.7 168.8 1363.7 168.8 1342.7 132.4 1363.7 96 1405.7 96z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
    max-width: 1344px;
}
#skills .container {
    margin-bottom: 2rem;
    margin-top: 2rem;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    background-color: var(--white);
    border-radius: 10px;
    transition: .3s;
}
#skills h1 {
    font-size: 28px;
    margin-bottom: -0.6rem;
}
.icon {
    cursor: cell;
    margin: 1rem;
}
.icon:hover {
    opacity: .8;
}
.container__languages i {
    color: var(--black);
}
.container__tools i {
    font-size: 65px;
    color: rgb(62, 62, 62);
}
.icon p {
    margin-top: 0.5em;
    font-size: 18px;
    font-weight: bold;
}
@media(max-width: 475px) {
    #skills .container {
        margin: 1rem;
        margin-bottom: 3rem;
    }
    .headings-projects-skills h2 {
        font-size: 40px;
    }
    #skills h1 {
        font-size: 24px;
    }
}
/* about-page */
#about-me {
    margin-top: 10rem !important;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
}
.about-container {
    margin-top: 5rem;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
}
.about-container div {
    margin-top: auto;
    margin-bottom: auto;
}
.about-container__avatar img {
    max-width: 100%;
    height: 400px;
    border-radius: 20px;
}
.about-container__avatar img:hover {
    opacity: 0.9;
}
.about-container__content {
    text-align: left;
    max-width: 600px;
    width: 100%;
}
.about-container__content a {
    text-decoration: underline !important;
    color: var(--dark-gray);
}
.about-container__content a:hover {
    text-decoration: none !important;
}
.about-container__content h2 {
    font-size: 58px;
}
.about-container__content p{
    color: var(--dark-gray);
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 18px;
    line-height: 1.3em;
}
@media(max-width: 775px) {
    .about-container__content p {
        font-size: 16px;
    }
}
@media(max-width: 1175px) {
    .about-container__content h2 {
        font-size: 35px;
    }
}
@media(max-width: 1400px) {
    .about-container {
        display: grid;
        place-items: center;
    }
    .about-container__avatar img {
        height: 300px;
        margin-bottom: 2rem;
    }
    .about-container__content {
        text-align: center;
    }
}
/* footer */
footer {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    border-top: 2px solid #8f91a420;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 0 2rem 0;
    max-width: 2600px;
}
footer .rights a {
    border-bottom: 1px solid var(--black);
}
footer .rights a:hover {
    border-bottom: none;
}
@media(max-width: 675px) {
    footer {
        grid-template-columns: repeat(1, 1fr);
    }
    footer .rights {
        margin-top: 2rem;
    }
}

/* contact-page */
#contact-me {
    display: grid;
    place-items: center;
    min-height: 100vh;
}
#contact-me .container{
    display: grid;
    margin: 1rem;
    place-items: center;
    min-height: 100vh;
}
#contact-me form {
    display: grid;
    text-align: center;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 700px;
    width: 100%;
    height: 550px;
    padding-left: 1rem;
    padding: 2rem;
    box-sizing: border-box; 
    border: 3px solid var(--black);
}
#contact-me input, .input {
    margin-top: 1rem;
    border-radius: 8px;
    border: 3px solid var(--black);
    margin-right: 1em;
    padding: 2em 3em;
}
#contact-me textarea{
    min-height: 200px;
    min-width: 200px;
    max-height: 220px;
    width: 500px;
    max-width: 500px;
}
.other-mediums {
    display: flex;
    padding: 1rem;
}
.other-mediums__inner {
    align-items: center;
    margin-right: 5rem;
    font-weight: bold;
    font-size: 18px;
}
.other-mediums__inner a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.other-mediums__inner svg:hover {
    fill: var(--black);
}
#contact-me button {
    margin: 0.5rem;
    float: left;
    padding: 0;
}
#contact-me button:hover {
    color: var(--white);
    background: #232323;
}
@media (max-width: 575px) {
    .other-mediums {
        flex-direction: column;
    }
    .other-mediums__inner {
        margin-top: 1.5rem;
    }
}
@media (max-width: 675px) {
    #contact-me .form-row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #contact-me .form-row input {
        margin-right: 0;
    }
    #contact-me textarea {
        width: 100%; 
    }
    #contact-me button {
        padding: 0.8rem 2.5em;
    }
}