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

body {
  font-weight: 400;
  line-height: 1.6;
  color: hsla(0, 0%, 84%, 0.969);
  background: hsl(218, 28%, 13%);
  font-family: 'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  font-weight: bold;
  font-family: 'Raleway', sans-serif;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 8rem;
  /* background-color: red; */
}

.nav__items {
  display: flex;
  align-items: center;
}

.nav__item {
  margin: 0 1.5rem;
  list-style: none;
}

.nav__item-link {
  color: inherit;
  text-decoration: none;
  text-transform: capitalize;
  font-size: 1.2rem;
}

.nav__item-link:hover {
  color: white;
  border-bottom: 0.1rem solid white;
}

/* Intro section */
.intro {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro__section {
  width: 100%;
  display: grid;
  place-items: center;
  padding-top: 2rem;
}

.intro__section-img {
  object-fit: cover;
}

.intro__section-about--head {
  color: hsl(0, 0%, 100%);
  font-size: 2rem;
  margin-top: 1.8rem;
}

.intro__section-about--p {
  font-size: 1.5rem;
  margin-top: 1.8rem;
}

.intro__section-about--p,
.intro__section-about--head {
  width: 40%;
  text-align: center;
}

.intro__section-about--btn {
  display: inline-block;
  width: 17rem;
  padding: 0.875rem;
  border: 0;
  color: white;
  text-align: center;
  border-radius: 1.5rem;
  text-decoration: none;
  text-transform: capitalize;
  font-size: 1.2rem;
  margin: 1.8rem 0;
  cursor: pointer;
  background-image: linear-gradient(
    to right,
    hsl(176, 84%, 61%) 0%,
    hsla(198, 60%, 50%) 100%
  );
  transition: 0.3s;
}
.intro__section-about--btn:active {
  transform: scale(0.9);
  background: hsla(198, 60%, 50%, 0.818);
}

/* Two column section */
.two__column-grid {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 4.6875rem;
  padding: 10rem 0;
}

.two__column-grid--item {
  max-width: 43.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.two__column-grid--item-p,
.two__column-grid--item-title {
  text-align: center;
}

.two__column-grid--item-title {
  color: hsl(0, 0%, 100%);
  font-size: 1.4rem;
  font-weight: bold;
}

.two__column-grid--item-p {
  width: 75%;
  font-size: 1.1rem;
}

.two__column-grid--item:nth-child(odd) {
  padding-left: 10rem;
}
.two__column-grid--item:nth-child(even) {
  padding-right: 10rem;
}

/* Section positive */
.section__positive-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5625rem;
}

.section__positive-grid-item {
  flex: 1;
  padding: 0 0.625rem;
  margin: 1.5625rem 0;
}

.section__positive-grid-item:nth-child(1) {
  display: flex;
  justify-content: end;
}

.section__positive-grid-item:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section__positive-grid--head {
  font-size: 2rem;
  font-weight: bold;
  width: 40%;
  color: hsl(0, 0%, 100%);
  padding-left: 1rem;
}

.section__positive-grid--p {
  width: 70%;
  font-size: 1.1rem;
  padding-left: 1rem;
}
.section__positive-grid--link {
  color: hsl(198, 60%, 50%);
  font-size: 1.1rem;
  padding-left: 1rem;
  transition: all 0.4s;
}

.section__positive-grid--link:hover {
  color: hsl(0, 0%, 100%);
}

/* Three column section */
.three__column-grid {
  display: flex;
  align-content: start;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 8rem;
}

.three__column-grid--item {
  flex: 1;
  max-width: 27rem;
  margin: 1.25rem;
  padding: 2rem 1.5rem;
  border-radius: 0.5rem;
  background: hsl(219, 30%, 18%);
  position: relative;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.three__column-grid--item--p {
  font-size: 1.1rem;
}

.three__column-grid--item-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.three__column-grid--item-user .user-prfile img {
  width: 3rem;
  border-radius: 50%;
}

.three__column-grid--item-user-name span {
  font-size: 1rem;
  color: hsl(0, 0%, 100%);
  font-weight: bold;
}

.three__column-grid--item-user-name p {
  font-size: 1rem;
}

.three__column-grid--item .arrow {
  position: absolute;
  top: -2.8125rem;
  left: -0.9375rem;
}

/* Contact section */
.contect-section {
  display: grid;
  align-items: center;
  place-items: center;
  padding: 12rem 3rem;
}

.contact__container {
  max-width: 65rem;
  padding: 2rem 4rem;
  text-align: center;
  border-radius: 0.5rem;
  background-color: hsl(217, 28%, 15%);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  margin-bottom: -21.875rem;
}

.contact__container-head {
  font-size: 2rem;
  color: hsl(0, 0%, 100%);
  font-weight: bold;
  margin-top: 2.5rem;
}

.contact__container-p {
  font-size: 1rem;
  margin-top: 2rem;
}

.contact__container-inputs {
  margin-top: 2rem;
}

.contact__container-inputs input {
  border: 0;
  outline: none;
  border-radius: 1.5rem;
  padding: 1rem;
  font-size: 1rem;
  background: hsl(0, 0%, 100%);
}

.contact__container-inputs input[type='email'] {
  width: 70%;
  margin-right: 1rem;
  padding-left: 2rem;
}

.contact__container-inputs input[type='email']::placeholder {
  color: hsla(0, 0%, 73%, 0.935);
}

.contact__container-inputs input[type='submit'] {
  width: 25%;
  font-weight: bold;
  text-transform: capitalize;
  color: hsl(0, 0%, 100%);
  background-image: linear-gradient(
    to right,
    hsl(176, 84%, 61%) 0%,
    hsla(198, 60%, 50%) 100%
  );
  cursor: pointer;
  transition: 0.3s;
}

.contact__container-inputs input[type='submit']:active {
  transform: scale(0.9);
  background: hsla(198, 60%, 50%, 0.818);
}

.contact__container .message {
  font-size: 1rem;
  float: left;
  padding-left: 2.5rem;
  height: 2rem;
  margin-top: 0.5rem;
}

/* Footer section*/
.footer {
  width: 100%;
  background: hsl(216, 53%, 9%);
}

.footer__container {
  padding-top: 17rem;
  padding-left: 6.5rem;
  padding-right: 6.5rem;
  padding-bottom: 2rem;
  height: 100%;
}

.footer__item {
  display: flex;
  flex-wrap: wrap;
}

.footer__item--links {
  flex: 1;
  margin: 1.25rem;
}

.footer__item--links a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

.footer__item--links a:hover {
  color: hsl(0, 0%, 100%);
}

.footer__item--links .social a:hover {
  color: hsl(198, 60%, 50%);
}

.footer__item--links i {
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
}

.footer__item--links .link-inner {
  display: flex;
  gap: 1rem;
}

.footer__item--links p {
  font-size: 1rem;
}

.footer__item--links .telephone,
.email {
  display: flex;
  gap: 1rem;
  padding-left: 4rem;
  font-size: 1rem;
}

.footer__item--links .email {
  margin-top: 1rem;
  text-decoration: none;
}

.footer__item--links-abou-us,
.footer__item--links-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: start;
}

.footer__item--links-abou-us a,
.footer__item--links-contact a {
  text-transform: capitalize;
}

.footer__item--links-media {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.footer .author {
  text-align: center;
  font-size: 1.2rem;
  padding-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
  /* navigation */
  .nav {
    display: flex;
    align-items: normal;
    padding: 2.5rem 1rem;
    width: 100%;
  }

  .nav__logo img {
    width: 50%;
  }

  .nav__item {
    margin: 0 0.8rem;
  }

  .nav__item-link {
    font-size: 0.8rem;
    text-wrap: nowrap;
  }

  /* Intro section */
  .intro {
    padding-top: 3rem;
  }

  .intro__section-img {
    width: 100%;
    padding: 0 2.8rem;
  }

  .intro__section-img img {
    width: 100%;
    object-fit: cover;
  }

  .intro__section-about--p,
  .intro__section-about--head {
    width: 100%;
    padding: 0 1rem;
  }

  /* Two column section */
  .two__column-grid {
    grid-template-columns: repeat(1, 1fr);
    padding: 6rem 0;
  }

  .two__column-grid--item {
    width: 100%;
  }

  .two__column-grid--item-p {
    width: 85%;
  }

  .two__column-grid--item:nth-child(odd) {
    padding-left: 0;
  }
  .two__column-grid--item:nth-child(even) {
    padding-right: 0;
  }

  /* Section position */
  .section__positive-grid {
    flex-direction: column;
    justify-content: start;
    padding: 1rem 0 2rem 0;
  }

  .section__positive-grid-item {
    padding: 0 0px;
    margin: 0 0;
  }

  .section__positive-grid-item:nth-child(1) {
    padding: 0 2rem;
  }

  .section__positive-grid-item:nth-child(1) img {
    width: 100%;
  }

  .section__positive-grid-item:nth-child(2) {
    align-items: center;
    justify-content: start;
    flex-direction: column;
  }

  .section__positive-grid--head {
    width: 80%;
    padding-left: 0;
  }

  .section__positive-grid--p {
    width: 80%;
    padding-left: 0;
  }

  .section__positive-grid--link {
    color: hsl(198, 60%, 50%);
    font-size: 1.1rem;
    padding-left: 0;
  }

  /* Three column grid secion */
  .three__column-grid {
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    padding: 5.5rem 1.2rem 0 1.2rem;
  }

  .three__column-grid--item {
    max-width: 100%;
  }

  .three__column-grid--item .arrow {
    position: absolute;
    top: -2.8rem;
    left: 0.5rem;
  }

  /* Contact section */
  .contect-section {
    padding: 10rem 0.8rem;
  }

  .contact__container {
    width: 100%;
    padding: 2rem 1.3rem;
    margin-bottom: -25rem;
    text-align: center;
  }

  .contact__container-inputs input[type='email'] {
    width: 100%;
  }

  .contact__container-inputs input[type='submit'] {
    width: 100%;
    margin-top: 1.5rem;
  }

  /* Footer section */
  .footer__container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    padding-bottom: 4rem;
  }

  .footer__item-logo img {
    width: 35%;
  }

  .footer__item {
    flex-direction: column;
  }

  .footer__item--links .telephone,
  .email {
    padding-left: 0rem;
  }

  .footer__item--links-abou-us {
    margin-top: 2.5rem;
  }

  .footer__item--links-abou-us,
  .footer__item--links-contact {
    align-items: start;
    text-align: start;
  }

  .footer .author {
    font-size: small;
    display: block;
  }

  .footer .author a {
    color: hsl(198, 60%, 50%);
  }
}
