html {
    scroll-behavior: smooth;
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(50px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@media(prefers-reduced-motion) {
    .hidden{
        transition: none;
    }
}

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

body {
    background-color: #ECE8E1;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: black;
}

header {
    background-color: #ECE8E1;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3% 20%;
}

li {
    list-style: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.hamburger {
    display: none;
    font-size: 0.75rem;
    font-size: clamp(0.75rem, 0.5096153846153846rem + 1.0256410256410255vw, 1.125rem);
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #324c6c;
}

@media (max-width: 60rem) {
    .hamburger {
        display: block
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navbar {
        position: fixed;
        top: 0;
        left: -1000%;
        width: 100%;
        background-color: #ECE8E1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        transition: 1s ease;
        padding: 5% 0;
    }

    .navbar.active {
        left: 0;

        h1 {
            padding: 400px;
        }
    }
}

.menu-item a{
    color: black;
}
  
.menu-item {
    float: right;
    color: black;
    text-decoration: none;
    font-size: 0.75rem;
    font-size: clamp(0.75rem, 0.5096153846153846rem + 1.0256410256410255vw, 1.125rem);
}

.menu-link {
    position: relative;
}
  
.menu-link:hover {
    transition: 0.7s ease;
    color: #3F5F87;
}

.menu-link.active {
    font-weight: 800;
    color: #324c6c;
}

h1 {
    font-weight: 200;
    text-align: start;
    font-size: 2rem;
    font-size: clamp(2rem, 0.4rem + 3vw, 4rem);
}


#Home {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 0.5rem;
    padding: 5% 20%;
    
    @media (width >= 60rem){
        grid-template-columns: 1fr 2fr;
    }
}

.pfp {
    display: flex;
    justify-content: center;
}

#pfp {
    border-radius: 50%;
    width: 100%;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
}

.biography {
    width: 100%;
    max-width: 1200;
    font-size: clamp(0.75rem, 0.51rem + 1.02vw, 1.125rem);
}

a {
    color: #324c6c;
    text-decoration: none;
}

h2 {
    font-size: 1rem;
    font-size: clamp(1rem, 0.6794871794871795rem + 1.3675213675213675vw, 1.5rem);
    font-weight: 200;
}

#Projects {
    display: grid;
    margin: 5% 20%;
    padding: 5% 0%;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-width: 200px;
    gap: 15%;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tile:hover {
    opacity: 0.5;
}

.tile-text {
    padding-bottom: 10px;
    font-size: clamp(0.75rem, 0.51rem + 1.02vw, 1.125rem);
    text-align: center;
}

#thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-inline-size: 300px;
    height: auto;
}

img {
    max-inline-size: 100%;
    height: auto;
}

#Contact {
    display: flex;
    height: auto;
    width: 100vw;
    align-items: center;
    justify-content: space-evenly;
    margin: 15% 0%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.contact-inputs {
    width: 18.75rem;
    width: clamp(18.75rem, 16.25rem + 12.5vw, 31.25rem);;
    height: 30px;
    border: none;
    outline: none;
    text-align: left;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
}

.contact-form textarea {
    height: 200px;
    padding-top: 10px;
}

.contact-inputs:focus {
    border: 1px solid black;
}

.contact-form button {
    display: flex;
    width: fit-content;
    align-items: right;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
    color: white;
    background-color: #324c6c;
    font-size: 0.75rem;
    font-size: clamp(0.75rem, 0.5096153846153846rem + 1.0256410256410255vw, 1.125rem);
    outline: #162537;
    gap: 15px;
    cursor: pointer;
}
