:root {
    --white: #f0f0f0;
    --red: #be3144;
    --blue: #45567d;
    --gray: #303841;  
  }
  
  *, ::before, ::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 62.5%;
  }
  
  body {
    margin: 0;
    background-color: #000;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 400;
    scroll-behavior: smooth;
  }
  
  a {
    color: var(--white);
  }
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    background-color: var(--red);
    box-shadow: 0px 1px 5px 0 black;
  }
  
  .header nav {
    display: flex;
  }
  
  .header a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 2.2rem;
  }
  
  .header a:hover {
    background-color: var(--blue);
  }
  
  .welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000;
    background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
    text-align: center;
  }
  
  .welcome h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
  }
  
  .welcome p {
    font-size: 3rem;
    font-weight: 200;
    font-style: italic;
    color: var(--red);
    margin: 0;
    padding: 0;
  }
  
  .projects {
    min-height: 100vh;
    background-color: var(--blue);
    padding: 6rem 1rem;
    text-align: center;
  }
  
  .projects h2 {
    border-bottom: 1px solid var(--white);
  }
  
  .projects-gallery {
    display: flex;
    flex-wrap: wrap;
  }
  
  .project-tile {
    background-color: var(--gray);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    text-decoration: none;
    margin-bottom: 4rem;
  }
  
  .project-tile img {
    max-width: 100%;
    height: auto;
  }
  
  .project-title span {
    opacity: 0;
    color: #ff7f50;
    transition: opacity 0.3s ease-out;
  }
  
  .project-tile:hover .project-title span {
    opacity: 1;
  }
  
  .btn {
    background-color: var(--gray);
    font-size: 2rem;
    transition: background 0.3s ease-out;
    text-decoration: none;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2px;
  }
  
  .btn:hover {
    background-color: var(--red);
  }
  
  .contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    min-height: 80vh;
    background-color: var(--gray);
    text-align: center;
  }
  
  .contacts a {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    transition: 0.2s ease;
  }
  
  .contacts a:hover {
    transform: translateY(10px);
  }
  
  .footer {
    padding: 2rem;
    background-color: var(--gray);
    border-top: 4px solid var(--red);
  }
  
  @media (min-width: 715px) {
    .projects-gallery {
      justify-content: space-between;    
    }
    
    .project-tile {
      width: 48%;
    }
    
    .project-tile:nth-child(odd) {
      margin-right: 4%;
    }
  }