@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;1,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto Mono", monospace;
}

:root {
  --light: #fff;
  --dark: #181b24;
  --grey: #899495;
  --orange: #fc5130;
  --SectionGrey: #f2f2f2;
  --SectionWhite: #fff;
}

/* nav */
.nav {
  background: var(--light);
}

.nav__header {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 1rem;
  border-bottom: 0.5rem solid var(--dark);
}

.nav__btn {
  color: var(--grey);
  font-size: 4rem;
  align-self: center;
  cursor: pointer;
}

.nav__links {
  list-style-type: none;
  background: var(--grey);
  height: 0;
  overflow: hidden;
  transition: all 0.5s linear;
}

.show__links {
  height: 288px;
}

.nav__single-link {
  display: block;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  color: var(--orange);
  text-transform: capitalize;
  font-style: italic;
  transition: all 0.5s linear;
}

.nav__single-link:hover {
  background: var(--light);
  padding-left: 1.5rem;
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 0.5rem solid var(--dark);
  }

  .nav__header {
    border: none;
  }

  .nav__btn {
    display: none;
  }

  .nav__links {
    /* as child */
    background: transparent;
    height: auto;
    flex: 1 0 auto;
    /* as parent */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-self: center;
  }

  .nav__single-link {
    background: transparent;
    flex: 1 0 100px;
  }

  .nav__single-link:hover {
    padding-left: 1rem;
    color: var(--dark);
  }
}
/* end of nav */

/* header */
.header {
  min-height: 100vh;
  background: linear-gradient(
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.4)
    ),
    url(./img/header-bcg.jpeg) center/cover fixed no-repeat;
  display: flex;
  flex-direction: column;
}

/* banner */
.banner {
  /* as a flex child */
  flex: 1 0 auto;
  /* as a parent */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: var(--dark);
  text-align: center;
  padding-bottom: 4rem;
  font-weight: 700;
}

.banner__title {
  font-size: 4rem;
  letter-spacing: 0.1rem;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  font-style: italic;
}

.banner__job {
  letter-spacing: 0.1rem;
  text-transform: capitalize;
  font-size: 1.4rem;
  color: var(--light);
}

/* end of banner */
/* about section */
.about {
  padding: 2rem 0;
  background: var(--SectionWhite);
}

.about__center {
  max-width: 90vw;
  margin: 2rem auto;
}

.about-img {
  margin: 4rem 0;
  position: relative;
}

.about-img__photo {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.about-img:before {
  content: "";
  background: var(--grey);
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: -10px;
  left: -10px;
}

.about-info {
  margin: 4rem 0;
}

.about-info__title {
  font-size: 2.815rem;
  text-transform: capitalize;
  letter-spacing: 0.5rem;
  background: url(./img/title-bcg.svg) no-repeat;
}

.about-info__text {
  color: var(--grey);
  line-height: 1.5;
  margin: 3rem 0;
  font-size: 1.4rem;
}

.about-info__single-link {
  display: inline-block;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  text-transform: capitalize;
  border: 3px solid var(--dark);
  margin-right: 1rem;
  transition: all 1s linear;
  letter-spacing: 0.4rem;
}

.dark-btn {
  background: var(--dark);
  color: var(--light);
}

.dark-btn:hover {
  color: var(--dark);
  background: var(--light);
}

.light-btn {
  color: var(--dark);
}

.light-btn:hover {
  background: var(--dark);
  color: var(--light);
}

@media screen and (min-width: 992px) {
  .about__center {
    display: flex;
    justify-content: space-between;
  }

  .about-info,
  .about-img {
    flex: 0 0 calc(50% - 1rem);
  }

  .about-info {
    display: flex;
    align-items: flex-end;
  }
}
/* end of about section */
/* section title */
.section-title {
  text-align: center;
}

.section-title__name {
  font-size: 4rem;
  letter-spacing: 0.5rem;
  flont-weight: 700;
  background: url(./img/title-bcg.svg) center no-repeat;
  text-transform: capitalize;
  font-style: italic;
}
/* end of section title */
/* services section */
.services {
  background: var(--SectionGrey);
  padding: 4rem 0;
}

.services__center {
  max-width: 90vw;
  margin: 2rem auto;
}

.services__single-service {
  margin: 2rem 0;
  text-align: center;
  transition: all 0.5s ease-in;
  padding: 2rem 0;
}

.services__single-service:hover {
  background: var(--light);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.services__single-icon {
  font-size: 4rem;
}

.services__single-title {
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}

.service__single-text {
  width: 80%;
  margin: 0 auto;
  text-align: left;
  line-height: 1.5;
  letter-spacing: 0.2rem;
}

@media screen and (min-width: 768px) {
  .services__center {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .services__single-service {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media screen and (min-width: 992px) {
  .services__single-service {
    flex: 0 0 calc(33.33333333% - 0.25rem);
  }
}
/* end of services section */
/* numbers section */
.numbers {
  padding: 4rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(./img/numbers-bcg.jpeg) center/cover no-repeat fixed;
  color: var(--light);
}

.numbers__center {
  max-width: 90%;
  margin: 2rem auto;
}

.numbers__single-number {
  margin: 2rem 0;
  text-align: center;
}

.numbers__single-number_icon {
  font-size: 4rem;
}

.numbers__single-number-text {
  font-size: 2rem;
  margin: 0.5rem 0;
  letter-spacing: 0.5rem;
}

.numbers__single-number-title {
  letter-spacing: 0.25rem;
  text-transform: uppercase;
}

@media screen and (min-width: 576px) {
  .numbers__center {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .numbers__single-number {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media screen and (min-width: 992px) {
  .numbers__single-number {
    flex: 0 0 calc(25% - 0.5rem);
  }
}
/* end of numbers section */
/* projects section */
.projects {
  padding: 4rem 0;
  background: var(--light);
}

.projects__center {
  max-width: 90vw;
  margin: 2rem auto;
}

.projects__single-project {
  margin: 2rem 0;
  position: relative;
}

.projects__single-project-img {
  display: block;
  width: 100%;
  border-radius: 0.25rem;
}

.projects__single-project::before {
  content: "";
  background: var(--dark);
  width: 100%;
  height: 100%;
  position: absolute;
  transform: scale(0);
  border-radius: 0.25rem;
  transition: all 1s ease;
  opacity: 0;
}

.projects__single-project:hover:before {
  transform: scale(1);
  opacity: 0.5;
}

.projects__single-project-icon {
  color: var(--light);
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 7rem;
  transform: scale(0);
  opacity: 0;
  transition: all 1s ease;
}

.projects__single-project-icon:hover {
  color: var(--grey);
}

.projects__single-project:hover .projects__single-project-icon {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
}

@media screen and (min-width: 768px) {
  .projects__center {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .projects__single-project {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media screen and (min-width: 992px) {
  .projects__single-project {
    flex: 0 0 calc(25% - 0.5rem);
  }
}
/* end of projects section */
/* contact */
.contact {
  background: var(--SectionGrey);
  padding: 4rem 0;
}

.contact__center {
  max-width: 90vw;
  margin: 2rem auto;
}

.contact__header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.contact__name,
.contact__email,
.contact__textarea {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  border-bottom: 2.5px solid var(--dark);
  padding: 0.25rem 0;
  margin: 2rem 0;
}

.contact__name,
.contact__email {
  flex: 0 0 calc(50% - 1rem);
}

.contact__textarea {
  width: 100%;
}

.contact__btn {
  display: block;
  background: var(--dark);
  color: var(--light);
  padding: 0.5rem 1rem;
  margin: 2rem auto;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  transition: all 0.5s linear;
}

.contact__btn:hover {
  color: var(--dark);
  background: var(--light);
  border-color: var(--dark);
}

.contact__icon {
  margin-right: 0.5rem;
}
/* end of contact */
/* footer */
.footer {
  background: var(--dark);
  padding: 4rem 0;
}

.footer__icons {
  display: flex;
  justify-content: space-around;
}

.footer__single-icon {
  font-size: 2rem;
  color: var(--light);
  transition: all 0.5s ease;
}

.footer__single-icon:hover {
  color: var(--grey);
}
