* {
    margin:0;
    padding: 0;
}

body {
    background-color: #FFF6EB;
    font-family: Inter, sans-serif;
    width: 75%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body > * {
    margin-bottom: 100px;
}

h1 {
    font-size:48px;
    font-weight: 900;
}

h2 {
    font-size: 28px;
    font-weight: 700;
}

h1, h2 {
    margin-bottom: 1em;
}

nav {
    width: 33%;
    margin-left: auto;
    margin-right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 5vh;
    margin-bottom: 20vh;
}

main {
    text-align: center;
    font-size: 20px;
}

p {
    margin-bottom: 2em;
    line-height: 1.5em;
}

#projects h2 {
    text-align: center;
}

.project-box {
    margin: 50px 0px;
    background-color: white;
    box-shadow: 7px 7px 25px lightgray;
    border-radius: 5px;
    
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.project-box:last-child {
    margin-bottom: 0px;
}

.project-content {
    padding: 50px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-skills {
    margin-bottom: 1em;
}

.skill {
    display: inline-block;
    padding: 8px;
    margin-right: 1em;
    margin-bottom: 1em;

    border-style: solid;
    border-width: 2px;
    border-color: #30D2FF;
    border-radius: 5px;
}

.project-image {
    width: 250px;
}

.project-image:hover {
    transition: transform 0.3s ease-out;
    transform-origin: 80% 20%;
    transform: scale(2.4);

    box-sizing: border-box;
    border-style: solid;
    border-width: 2px;
    border-color: #30D2FF;
    border-radius: 5px;
}

#contact {
    text-align: center;
    padding-bottom: 100px;
}

#contact h2 {
    margin-bottom: 2em;
}

#contact div {
    width: 60%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

a {
    font-size: 20px;
    color: inherit;
    text-decoration: inherit;
}

a:hover {
    color: #30D2FF;
    transform: translateY(-1px);
}

p > a {
    text-decoration: underline;
    font-size: inherit;
}

.github-logo {
    width: 32px;
    height: 32px;
}

.gradient-text {
    transition: all 0.5s ease, 
                background-position-x 0.4s ease-in-out,
                transformation 0.4s ease-in-out;

    display:inline-block;
    background: #fe8c00;  /* fallback for old browsers */
    background-image: linear-gradient(45deg, #f83600, #fe8c00,#f83600);
    background-size: 200%;
    background-position-y: left;
    background-repeat: repeat;

    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-text-fill-color: transparent;
}

.gradient-text:hover{
    background-position-x: right;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    body {
        width: 90%;
    }

    nav, #contact div {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        justify-content: space-around;
    }

    .project-box {
        display: flex;
        flex-direction: column-reverse;
    }

    .project-content {
        padding: 20px 10px;
    }

    .project-image {
        width: 100%;
    }

    .project-image:hover {
        transform: unset;
        border-style: none;
    }
}