body {
  margin: 0; 
  padding: 0;
}

a:link {
  text-decoration: none;
}

#navbar {
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgb(190, 49, 68);
  box-sizing: inherit;
}

#navbar ul {
  list-style: none;
  display: flex;
  margin-right: 2rem;
  font-size: 20px;
}

#navbar a {
  display: block;
  padding: 0px 10px;
  color: white;
}

#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #303841;
  height: 100vh;
  box-sizing: inherit;
  margin: 0;
  padding: 0px 32px;
}

.dp {
  padding-top: 10px;
  max-width: 30%;
  max-height: auto;
  border-radius: 50%;
  top: 50;
}

#welcome-section h1{
  font-size: 40px;
  padding-top: 40px;
  margin: -10px;
  color: white;
  background: #303841;
}    

.description {
  color: rgb(190, 49, 68);
  font-size: 24px;
  align-items: center;
  text-align: center;
  line-height: 1 rem;
}


.projects-section {
  text-align: center;
  padding: 10rem 2rem;
  background: rgb(119, 130, 155);
  width: 100%;
}

.projects-section-header {
  max-width: 640px;
  margin: 0 auto 6rem auto;
  border-bottom: 0.2rem solid var(--main-white);
}

@media (max-width: 28.75em) {
  .projects-section-header {
    font-size: 4rem;
  }
}

/* "Automagic" image grid using no media queries */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 4rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  margin-bottom: 6rem;
}

@media (max-width: 30.625em) {
  .projects-section {
    padding: 6rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  background: rgb(138, 173, 226);
}

.code {
  color: rgb(138, 173, 226);
  transition: color 0.3s ease-out;
}

.project:hover .code {
  color: #ff7f50;
}

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

.project-title {
  font-size: 2rem;
  padding: 2rem 0.5rem;
  background: rgb(138, 173, 226);
  color: white;
}

#contact-section {
  background-color: black;
  color: white;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 2px;
}


.btn-show-all:hover {
  background: var(--main-red);
}

.btn-show-all:hover > i {
  transform: translateX(2px);
}

.btn-show-all > i {
  margin-left: 10px;
  transform: translateX(0);
  transition: transform 0.3s ease-out;
}

/* Contact section */

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 80vh;
  padding: 0 2rem;
  background: #303841;
  color: white;
}

.contact-section-header > h2 {
  font-size: 6rem;
}

@media (max-width: 28.75em) {
  .contact-section-header > h2 {
    font-size: 4rem;
  }
}

.contact-links {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.contact-details {
  font-size: 2.4rem;
  text-shadow: 2px 2px 1px #1f1f1f;
  transition: transform 0.3s ease-out;
  color: white;
}

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

/* Footer */

footer {
  font-weight: 300;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgb(190, 49, 68);
  color: white;
  width: 100%;

}

footer > p {
  margin: 0;
  padding: 0
}


