:root {
  --main-blue: #50ACAF;
  --main-red: #AF5350;
  --main-gray: #4A5765;
}

/* Base rezet */
* {
  margin: 0;
  padding: 0;
}


/* Base styles */
body {
  font-family: 'Nunito', sans-serif;
  color: white;
}

h1 {
  font-size: 10em;
  margin-bottom: -20px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: white;
}

/* nav */
.nav {
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 10;
  background: var(--main-blue);
  box-shadow: 0px 2px 2px black;
}

.nav-list {
  display: flex;
  padding: 20px;
  margin-right: 20px;
}

.nav-list a {
  padding: 20px;
  font-size: 1.3em;
  font-weight: 1000;
}

.nav-list a:hover {
  background: var(--main-red);
}

 /* Intro section */

.intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 575px;
  background-image: linear-gradient(135deg, #313133 0%, #ABACAF 100%);
}

.intro-section p {
  padding-top: 30px;
  font-size: 22px;
  font-style: italic;
  color: var(--main-blue);
}

/* Project section */

.projects-grid {
  font-family: 'Nunito';
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 4rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 6rem;
}

.projects-section {
  padding: 90px 15px;
  text-align: center;
  background: var(--main-red);
}

.projects-section-header {
  max-width: 570px;
  margin: 0 auto 60px auto;
  font-size: 40px;
  border-bottom: 2px solid white;
}

.code {
  color: var(--main-red);
  transition: color 0.3s ease-out;
}

.project:hover .code {
  color: white;
}

.project-image {
  height: calc(100% - 20rem);
  width: 20%;
  object-fit: cover;
}



/* Contact section */

.contact-section {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 300px;
  background: var(--main-gray);
}

.contact-section-header > h2 {
  font-size: 40px;
  margin-bottom: 0px;
}

.contact-section-header > p {
  font-size: 20px;
  font-style: italic;
}

.contact-links {
  display: flex;
  justify-content: center;
  width: 100%;
  max-with: 1000px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contact-details {
  font-size: 26px;
  padding: 0px 30px;
  text-shadow: 2px 2px 1px #1f1f1f;
  transition: transform 0.1s ease-out;
}

.contact-details:hover {
  transform: translateY(2px);
}
