@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,200;0,300;0,400;0;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500&display=swap');

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

:root {
    --neutral: #eeeeee;
    --gray: #757575;
    --neutralDark: #575B60;
    --black: #333333;
    --offset: 60px;
    --boxShadow: 0 4px 0.5em rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 10px;
}

body {
    font-family: "Roboto", Arial, Helvetica, sans-serif;

}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--gray);
    color: var(--neutral);
    height: calc(100vh - var(--offset));
}

.hero___text {
    display: grid;
    gap: 2rem;
}

.hero___text > * {
    box-shadow: var(--boxShadow);
    color: var(--neutralDark);
}

.hero___text h1 {
    display: grid;
    place-items: center;
    margin: auto;
    padding: 1rem;
    width: fit-content;
    aspect-ratio: 1/1;
    background-color: var(--neutral);
    font-size: 5rem;
    border-radius: 50%;
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

.hero___text a {
    padding: 10px 15px;
    border-radius: 25px;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    background-color: var(--neutral);
    pointer-events: all;
    cursor: pointer;
    text-decoration: none;
}

nav {
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: var(--offset);
    background-color: var(--neutral);
    box-shadow: 0px -1px 1px 1px rgba(0, 0, 0, .1);
    z-index: 2;
    font-family: "Raleway", Arial, Helvetica, sans-serif;
}

nav a {
    min-width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.25rem;
}

nav a:visited, nav a:link {
    color: black;
    text-decoration: none;
}

.flex {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    width: fit-content;
    margin: auto auto var(--offset);
}

#about img:first-child {
    display: block;
    width: 85%;
    margin: 0 auto 1rem;
    max-width: 250px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    box-shadow: var(--boxShadow);
    object-fit: cover;
}

#about, #projects, #contact {
    width: 100%;
    max-width: 600px;
    margin: auto;
}

#contact {
    margin-top: 1rem;   
}

#contact .card___body {
    max-width: 56ch;
    margin: 1rem auto 2rem auto;
}

#contact .card___body h3:nth-of-type(2) {
    margin-top: 0.75rem;
}

#contact .card___body > * {
    margin-left: 1rem;
}

.card {
    background-color: var(--neutral);
    box-shadow: var(--boxShadow);
    overflow: hidden;
}

.card___head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--neutralDark);
    padding: 0.5em;
    color: white;
}

.card___head h2 {
    height: 30px;    
    font-weight: 400;
    font-family: "Raleway", Arial, Helvetica, sans-serif;
}

.card___body {
    margin: 1rem 1rem 2rem;
}

.card___body-top {
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}

.card___body-bottom.full.hide,
.card___body-bottom.tldr.hide,
#about img.hide,
.hide {
    display: none;
}

.card___body-bottom.full img {
    width: 150px;
}

.card___body-top h3 {
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
}

.card___body-top h4 {
    margin-bottom: 2em;
    font-size: 0.925rem;
    letter-spacing: 1px;
    color: var(--neutralDark);
    font-weight: 700;
    font-style: italic;
    text-transform: lowercase;
    text-align: center;
    font-family: "Raleway", Arial, Helvetica, sans-serif;
}

.anim {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slider {
	position: relative;
	display: block;
	width: 3.3rem;
    height: 1.1rem;
	background: white;
	border-radius: 100px;
	cursor: pointer;
}

.slider___ball {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 0.9rem;
    height: 0.9rem;
    background: var(--black);
    border-radius: 50%;
    transition: 0.3s;
    transform: translateY(-50%);
}

@media (pointer: fine) {
    .slider:active .slider___ball {
        width: 1rem;
    }
}

.slide {
    left: calc(100% - 3px);
    transform: translate(-100%, -50%);
}

.slider___text {
    position: absolute;
    top: 50%;
    left: 75%;
    color: black;
    transition: opacity 0.4s ease-in;
    transform: translate(-75%, -50%);
    opacity: 1;
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    visibility: visible;
    user-select: none;
}

.to-right {
    position: absolute;
    top: 50%;
    left: 20%;
    color: black;
    transform: translate(-20%, -50%);
}

.card___body-bottom {
    margin: unset;
    width: fit-content;
}

.card___body-bottom.full {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
}

.card___body-bottom.tldr h3{
    margin-top: 1.05rem
}

.card___body-bottom p:not(.greeting),
.card___body-bottom ul {
    display: block;
    max-width: 56ch;
    line-height: 1.75em;
    font-size: 1rem;
}

ul {
    margin: 0.1em 0 0.7em 1em;
    list-style: none;
}

li + li {
    margin-top: 0.2em;
}

.emph {
    font-weight: 500;
    font-style: italic;
}

.contact {
    margin-bottom: 85px;
}

.contact-h4 {
    margin-bottom: -0.25em;
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
}

.contact___top {
    position: relative;
    font-size: 8rem;
    text-align: center;
    z-index: 0;
}

.no-wrap {
    white-space: nowrap;
}

@media (prefers-reduced-motion) {
    @keyframes fadeIn {
        from {
            opacity: 1;
        }
    }
    
}

@media (min-width: 576px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .hero {
        height: 275px;
    }

    .hero___text {
        gap: 1rem;
    }

    nav {
        display: flex;
        position: sticky;
        top: 0;
        justify-content: center;
        align-items: center;
        height: 60px;
        gap: 4rem;
        box-shadow: var(--boxShadow);
    }

    .flex {
        padding: 2rem 1rem 1rem;
        margin-bottom: 2rem;
    }

    nav a {
        position: relative;
        min-width: unset;
        font-size: 1.3rem;
    }

    nav a::after {
        content: "";
        position: absolute;
        width: 0;
        left: 50%;
        transform: translateX(-50%);
        bottom: -6px;
        height: 3px;
        border-radius: 5px;
        background-color: var(--neutralDark);
        transition: width 0.15s ease-in-out;
    }

    nav a:hover::after {
        width: 80%;
    }
}

@media (min-width: 1200px) {
    nav {
        display: none;
    }

    .flex {
        gap: 2rem;
        padding: 1.5rem 2rem;
        max-width: 1300px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    #about {
        margin: 0;
    }

    #contact {
        margin-top: 2rem;
    }
}
