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

:root {
    --primary-color: #020202;
    --secondary-color: #4c91bf;
    --tertiary-color: #f7ece1;
    --quaternary-color: #6d597a;
    --quinary-color: #b56576;
    --border-radius: 0%;
}

html {
  font-size: 21px;
  font-family: Helvetica, sans-serif;
}


nav {
    display: flex;
    justify-content: right;
    align-items: end;
    position: fixed;
    width: 100%;
    top: 0%;
    
    color: var(--secondary-color);
    background-color: var(--primary-color);
    
}

nav a {
    padding: 0 0.5rem;
    text-decoration: none;
    color: var(--tertiary-color);
    font-size: 2rem;
}

nav a:hover {
    color: var(--primary-color);
    background-color: var(--tertiary-color);
}

#welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    
    animation: welcome-background 10s ease-in-out infinite;
}

#projects {
    display: flex;
    height: 100vh;
    background-color: var(--quaternary-color);
    justify-content: center;
    align-items: center;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    text-align: center;
    margin: 0 4rem;
}

.project-tile {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tertiary-color);
    border-radius: var(--border-radius);
    margin: 0 0.5rem;
    width: 400px;
    height: 350px;
}

.project-tile img {
    display: block;
    width: 100%;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.project-tile h2 {
    display: flex;
    align-items: center;
    height: 100%;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.project-tile h2:hover {
    background-color: var(--primary-color);
}

.project-tile a {
    width: 100%;
    text-decoration: none;
    color: var(--tertiary-color);
}

#contact {
    height: 100vh;
    background-color: var(--quinary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact i {
    color: var(--primary-color);
}

.fab, .fas {
    font-size: 4rem;
    padding: 0 1rem;
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
}

@keyframes welcome-background {
    0% {
        background-color: var(--secondary-color);
    }
    50% {
        background-color: var(--quinary-color);
    }
}