/* Box Model Hack */
* {
    box-sizing: border-box;
}

/* Clear fix hack */
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.clear {
    clear: both;
}

/******************************************
/* BASE STYLES
/*******************************************/

html {
    font-size: 62.5%;
    font-family: 'Manrope', sans-serif;
    scroll-behavior: smooth;
}

.dark {
    background-color: rgb(32, 33, 36);
    color: #bdbddd;
}

/******************************************
/* LAYOUT
/*******************************************/
body {
    background: #fcfcfc;
    color: #292C35;
}
.container {
    width: 100%;
}
header {
    background: inherit;
    margin-bottom: 50px;
    max-width: 667px;
    margin-right: auto;
    margin-left: auto;
}
head {
    background-color: inherit;
}
.mobile-display {
    background-color: inherit !important;
}
main {
    margin: 0 auto 0 auto;
    /* max-width: 667px; */
    padding: 0 20px;
}
.menu {
    background-color: inherit;
    list-style-type: none;
}
.menu a {
    color: inherit;
    text-decoration: none;
}
.menu li {
    padding: 8px;
    border-radius: 10px;
}
.menu li:hover {
    transition: 300ms;
    background: #292C35;
    color: #fcfcfc;
}
main > section {
    padding-bottom: 24px;
}
/*** Night mode toggler ***/
#checkbox {
    display: none;
}
.label {
    border: 1.5px solid #8b8b8b;
    display: flex;
    border-radius: 50px;
    position: fixed;
    top: 30px;
    right: 40px;
    height: 20px;
    width: 45px;
    padding: 5px;
    transform: scale(1.5);
}
.ball {
    background-color: #8b8b8b;
    border: 1.5px solid #8b8b8b;
    border-radius: 50%;
    position: fixed;
    top: 1.25px;
    left: 1.75px;
    height: 14px;
    width: 14px;
    transition: transform 0.2s linear;
}
#checkbox:checked + .label {
    border: 1.5px solid #bdbddd;
}
#checkbox:checked + .label .ball {
    transform: translate(23.5px);
    border: 1.5px solid #bdbddd;
    /* background-color: #292C35 */
}

/************* Welcome/About Me ************/
h1 {
    font-size: 4.5rem;
    margin: 0;
}
h2 {
    margin-top: 8px;
    font-size: 4.25rem;
    text-align: center;
}
.welcome {
    display: flex;
    flex-direction: column;
    max-width: 667px;
    margin-right: auto;
    margin-left: auto;
}
.welcome span {
    font-size: 3rem;
}
.welcome > p {
    font-size: 2.1rem;
    line-height: 1.4;
}
.name-title {
    margin-bottom: 24px;
}
.photo-socials {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
#headshot {
    width: 320px;
    height: auto;
    border-radius: 50%;
}
.socials {
    margin-right: 8px;
    list-style-type: none;
    display: flex;
    justify-content: end;
    gap: 48px;
    padding: 0;
}
.fa-twitter {
    color: rgb(73, 155, 233);
    transform: scale(1.5);
}
.fa-twitter:hover {
    -webkit-filter: brightness(130%);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
    /* transform: translateY(-5px); */
}
.fa-linkedin {
    color: rgb(44, 102, 188);
    transform: scale(1.5);
}
.fa-linkedin:hover {
    -webkit-filter: brightness(150%);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
    /* transform: translateY(5px); */
}
.fa-github {
    color: #292C35;
    transform: scale(1.5);
}
.fa-github:hover {
    -webkit-filter: brightness(180%);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
    /* transform: translateY(-5px); */
}

/*************SECTION: SKILLS ************/

.skills {
    max-width: 667px;
    margin-right: auto;
    margin-left: auto;
}
.skills-list {
    display: flex;
    justify-content: space-around;
}
.skills-list ul {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.skills-list li {
    list-style-type: none;
    font-size: 2.5rem;
}

/*************SECTION: PROJECTS ************/

.project-grid {
    max-width: 960px;
    display: grid;
    grid-template-columns: repeat(auto-fill,  minmax(400px, 1fr));
    gap: 16px;
    margin-right: auto;
    margin-left: auto;
}
.project {
    box-shadow: 0px 3px 16px -4px #292C35;
    transition: transform .2s linear, -webkit-transform .2s linear;
    border-radius: 10px;
    height: 95%;
}

.projects img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.hovercap {
    /* (C1) DIMENSIONS */
    box-sizing: border-box;
    width: 100%;
    padding: 10px;

    /* (C2) PLACE AT BOTTOM */
    position: absolute;
    bottom: 16px; 
    left: 0;

    /* (C3) COLORS */
    color: white;
    font-size: 2.5rem;
}
/* (D) SHOW/HIDE */
.hovercap {
    visibility: none; 
    opacity: 0;
    transition: opacity 0.25s;
}
.project:hover {
    -webkit-filter: brightness(100%);
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    -ms-transition: all 0.25s ease;
    transition: all 0.25s ease;
    transform: translateY(-5px);
    cursor: pointer;
}
.project:hover .hovercap {
    background: #292C35;
    visibility: visible; 
    opacity: 0.85;
}
/* (A) WRAPPER */
.hoverwrap {
    position: relative; 
}
/*************SECTION: CONTACT ************/

.contact {
    max-width: 667px;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 32px;
}
.contact > section {
    display: flex;
    justify-content: center;
}
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 414px;
}
.email {
    color: #8b8b8b;
    padding: 8px;
    font-size: 2.1rem;
    border: 1.5px solid #8b8b8b;
    border-radius: 10px;
    background-color: inherit;
}
.email:focus {
    outline: none;
}
textarea {
    height: 196px;
}
button {
    background-color: inherit;
    color: inherit;
    border: 1.5px solid #8b8b8b;
    border-radius: 8px;
    padding: 8px;
    align-self: center;
    font-size: 2.1rem;
    width: 150px;
}
button:hover {
    transition: 200ms;
    cursor: pointer;
    background-color: #292C35;
    color: #fcfcfc;
}
.darkbutton:hover {
    cursor: pointer;
    background-color: #fcfcfc;
    color: #292C35;
    border: inherit;
}

/******************************************
/* ADDITIONAL STYLES
/*******************************************/

.container > div {
    width: 8px;
}
.MuiSvgIcon-fontSizeLarge-arrow {
    font-size: 2rem;
}
.MuiSvgIcon-root-arrow {
    position: fixed;
    bottom: 30px;
    right: 15px;
    fill: #292C35;
    width: 2em;
    height: 2em;
    display: inline-block;
    font-size: 1.5rem;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.scroll-arrow {
    display: hidden;
}
footer {
    max-width: 667px;
    margin-right: auto;
    margin-left: auto;
    height: 96px;
    display: flex;
    justify-content: center;
}
.copyright {
    font-size: 1.75rem;
    align-self: center;
}
.bold {
    font-weight: 900;
    font-size: 2rem;
    text-decoration: none;
    color: inherit;
}

@media screen and (min-width: 667px) and (max-width: 900px) {
    .menu {
        transition: 300ms;
        /* display: flex; */
        width: 75% !important;
        justify-content: space-around;
        gap: 40px;
        padding: 0;
    }
}
@media (max-width: 667px) {
    header {
        display: flex;
        justify-content: start;
        align-items: center;
        height: 8rem;
        margin: 0;
    }
    #burger {
        transform: scale(1);
    }
    .darkburger {
        background-color: rgb(32, 33, 36);
    }
    .menu {
        position: fixed;
        inset: -10px 25% 0 0;
        background-color: #fcfcfc;
        height: 100vh;
        opacity: 0.97;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0;
        box-shadow: 0px 3px 16px -4px #292C35;
    }
    .MuiSvgIcon-fontSizeLarge {
        font-size: 1rem;
    }
    .MuiSvgIcon-root {
        /* position: absolute; */
        bottom: 0px;
        right: 15px;
        fill: #8b8b8b;
        width: 1em;
        height: 1em;
        display: inline-block;
        align-self: end;
        margin-top: 8px;
        margin-right: 8px;
        margin-bottom: 200px;
        font-size: 4rem;
        transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    }
    .MuiSvgIcon-root:hover {
        cursor: pointer;
    }
    .menu a {
        width: fit-content;
    }
    .menu li {
        font-size: 3rem;
        text-align: center;
    }
    .menu li:hover {
        transition: 300ms;
        width: 100%;
    }
    .mobile-display {
        display: none;
    }
    .name-title-desktop {
        display: none;
    }
    .name-title {
        text-align: center;
    }
    h2 {
        text-align: center;
    }
    main {
        margin: 0;
    }
    .photo-socials {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
    .project-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }
    .projects img {
        /* -webkit-filter: brightness(70%); */
        width: 100%;
        height: auto;
    }
    .hovercap {
        background: #292C35;
        visibility: visible; 
        opacity: 0.85;
    }
    .reveal {
        position: absolute;
        transform: translateY(25px);
        opacity: 0;
        transition: all 0.5s ease;
    }
    
    .reveal.active{
        transform: translateY(0px);
        opacity: 1;
    }
}
@media (min-width: 667px) { 
    header {
        /* padding-left: 20px; */
        padding-right: 20px;
        display: flex;
        /* justify-content: center; */
        align-items: center;
        height: 8rem;
    }
    #burger {
        display: none;
    }
    .name-title {
        display: none;
    }
    #name-title-socials {
        display: flex;
        flex-direction: column;
        justify-content: end;
    }
    .name-title-desktop {
        text-align: end;
    }
    .name-title-desktop > h1 {
        margin-bottom: 8px;
    }
    .name-title-desktop {
        margin-bottom: 160px;
    }
    .head{
        display: flex;
        width: 100%;
    }
    .MuiSvgIcon-root {
        display: none;
    }
    .menu {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 40px;
        padding: 0;
    }
    .menu li {
        font-size: 2.25rem;
        text-align: center;
    }
    .project-grid {
        grid-template-columns: repeat(374px, 1fr);
        gap: 24px;
    }
    .projects img {
        width: 100%;
        height: auto;
    }
}
