:root {
  --white: #ffffff;
  --light-gray: #f2f2f2;
  --gray: #c8d8e4;
  --blue: #2b6777;
  --green: #52ab98;
}
html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--blue);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}
#navbar {
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: var(--light-gray);
  box-shadow: 0 1px 15px black;
}
#navbar ul {
  display: flex;
  list-style: none;
  width: 40%;
  min-width: 500px;
  justify-content: space-between; 
  margin: 0;
}
#navbar ul li {
  height: 100%;
  overflow: hidden;
}
#navbar ul li a {
  display: block;
  text-decoration: none;
  color: black;
  font-size: 1.5rem;
  text-align: center;
  height: 100%;
  padding: 25px 50px;
  transition: 0.3s;
}
#navbar ul li a:hover {
  background-color: var(--blue);
  color: var(--white);
  transition: 0.3s;
}
#welcome-section {
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#welcome-section h1 {
  font-size: 3.5rem;
  color: var(--white);
}
#welcome-section p {
  font-size: 2rem;
  font-family: italic;
  color: var(--white);
  margin-top: 0;
}
#projects {
  background-color: var(--white);
  height: auto;
  width: 100%;
  padding: 2rem 0;
  color: var(--blue);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
#projects #h1-wrapper {
  width: 100%;
}
#projects #h1-wrapper h1 {
  display: block;
  max-width: 500px;
  height: 2.5rem;
  text-align: center;
  margin: 0 auto;
  font-size: 2rem;
  border-bottom: 3px solid var(--blue);
}
.project-tile {
  width: 40%;
  min-width: 450px;
  height: auto;
  margin-top: 30px;
  box-shadow: 10px 10px 20px var(--blue);
  background-color: var(--blue);
  border-radius: 20px;
}
.projects-preview {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  border: none;
}
.project-link {
  display: block;
  text-decoration: none;
  color: var(--white); 
  width: 100%;
  height: auto;
  font-size: 1.5rem;
  padding: 20px 0;
  text-align: center;
}
.project-link span {
  color: var(--blue);
  transition: 0.5s;
}
.project-link:hover span {
  color: var(--white);
  transition: 0.5s;
}
#contacts {
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#contacts h1 {
  font-size: 3rem;
  color: var(--white);
}
#contacts ul {
  display: flex;
  list-style: none;
  width: 900px;
  justify-content: space-between; 
  margin: 0;
  padding: 0;
}
#contacts ul li {
  font-size: 2rem;
  font-family: italic;
  display: inline-block;
}
#contacts ul li a {
  text-decoration: none;
  color: var(--white);
  transition: 0.5s;
}
#contacts ul li a:hover {
  font-size: 2.2rem;
  transition: 0.5s;
} 
@media (max-width: 950px) {
  .project-tile {
    min-width: 400px;
  }
  .projects-preview {
    height: 300px;
  }
  .project-link {
    padding: 10px 0;
  }
}
@media (max-width: 900px) {
  #contacts ul {
    display: block;
    text-align: center;
  }
  #contacts ul li {
    display: block;
    margin: 20px 0;
  }
}
