* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

body {
    font-family: "Rubik", sans-serif;
}

header {
    position: fixed;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

#navbar, .projects {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}

#navbar ul li {
    display: inline-block;
}

#navbar a {
    display: block;
    padding: 0.8em;
    font-size: 20px;
    color: black;
}

#welcome-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #8EC5FC;
    background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
}

#welcome-section div {
    padding: 6em 10em;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding .3s ease;
}

#welcome-section h1 {
    font-size: 2em;
}

#projects {
    background-color: #30336b;
    color: white;
}

#projects h1 {
    text-align: center;
    margin-bottom: 2em;
}

.projects {
    padding: 4em 1em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 3rem;
    position: relative;
}

.projects-grid:before, .projects-grid::after {
    content: "";
    position: absolute;
    width: 30vw;
    max-width: 600px;
    height: 4px;
    background-color: white;
}

.projects-grid:before {
    right: 0;
    top: -20px;
}

.projects-grid::after {
    bottom: -20px;
}

.project-tile {
    color: white;
    background-color: #130f40;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-tile img {
    display: block;
    width: 100%;
}

.project-tile p {
    padding: 1em;
    text-align: center;
}

#contact {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact h1 {
    text-align: center;
    margin-bottom: 1em;
}

#contact ul {
    display: flex;
    justify-content: center;
    font-size: 18px;
}

#contact li {
    margin: 0 1em;
}

#contact a {
    color: #000;
}

@media (max-width: 650px) {
    #navbar {
        text-align: center;
    }

    #welcome-section div {
        padding: 3em 5em;
    }

    #welcome-section h1 {
        font-size: 1.5em;
    }
}
