@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@600&family=Fraunces:wght@700;900&display=swap");

/*GLOBAL RESET*/
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  box-sizing: border-box;
  background-color: #f9f9f9;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
}

html {
  font-size: 62.5%;
}

.container {
  max-width: 144rem;
  margin: 0 auto;
  background-color: #fff;
}

@media only screen and (max-width: 48em) {
  .container {
    max-width: 69.5rem;
  }
}

@media only screen and (max-width: 24em) {
  .container {
    max-width: 37.5rem;
  }
}

/***************************************************************/

/*HEADER SECTION*/
.header {
  height: 80rem;
  background: url(images/image-header-desktop.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4.8rem 4.8rem 9.2rem 4.8rem;
}

.logo {
  width: 17rem;
  height: 3.3rem;
}

.navmenu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4.8rem;
}

.navmenu-link:link,
.navmenu-link:visited {
  text-decoration: none;
  font-size: 1.8rem;
  color: #fff;
}

.navmenu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: #fff;
  width: 14rem;
  height: 5.6rem;
  border-radius: 10rem;

  font-size: 1.5rem;
  font-family: "Fraunces", serif;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;

  transition: all 0.3s;
}

.navmenu-cta:hover {
  background-color: #39b5e4;
  color: #fff;
}

.hamburger {
  display: none;
}

.hamburger.active {
  display: block;
}
.bar {
  display: block;
  width: 2.5rem;
  height: 3px;
  background-color: #fff;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.main-heading {
  font-size: 5.6rem;
  text-transform: uppercase;
  font-family: "Fraunces", serif;
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: 0.87rem;
}
.arrow {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media only screen and (max-width: 48em) {
  .hamburger {
    display: block;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navmenu {
    position: absolute;
    top: 50%;
    left: -150%;
    transform: translate(-50%, -50%);
    gap: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    width: 50rem;
    height: 50rem;
    transition: all 0.3s;
    border-radius: 10rem 2rem 10rem 2rem;
    border: solid 1rem #fad400;
  }

  .navmenu-link:link,
  .navmenu-link:visited {
    color: #000;
  }

  .navmenu-cta {
    color: #fff;
    background-color: #000;
  }

  .navmenu.active {
    left: 50%;
    z-index: 1;
  }

  .navmenu-item {
    margin: 1.6rem 0;
  }
}

@media only screen and (max-width: 24em) {
  .header {
    height: 53.8rem;
    background: url(images/image-header.jpg);
    background-size: cover;
    background-position: center;
  }
  .navbar {
    padding: 2.4rem 2.4rem 5.2rem 2.4rem;
  }
  .navmenu {
    left: -100%;
    top: 50%;
    width: 35rem;
    height: 32.9rem;
  }
  .main-heading {
    font-size: 4rem;
  }
  .arrow {
    top: 60%;
  }
}
/***************************************************************/

/*ABOUT SECTION*/
.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 15rem;
}

.text-box {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 15rem;
}
.secondary-header {
  font-size: 4rem;
  color: #24303e;
  font-family: "Fraunces", serif;
  font-weight: 900;
}
.text-box-text {
  font-size: 1.8rem;
  line-height: 3rem;
  color: #808397;
}

.learn-more:link,
.learn-more:visited {
  font-size: 1.5rem;
  color: #24303e;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
}

.learn-more-yellow {
  position: relative;
}

.learn-more-pink {
  position: relative;
}

.learn-more-yellow::after {
  content: "";
  width: 13.7rem;
  height: 1rem;
  display: block;
  background-color: rgba(250, 212, 0, 0.2);
  border-radius: 5px;
  position: absolute;
  top: 1rem;
  left: -1rem;
  transition: all 0.3s;
}
.learn-more-yellow:hover::after {
  background-color: rgba(250, 212, 0, 0.7);
}

.learn-more-pink::after {
  content: "";
  width: 13.7rem;
  height: 1rem;
  display: block;
  background-color: rgba(254, 119, 102, 0.2);
  border-radius: 5px;
  position: absolute;
  top: 1rem;
  left: -1rem;
  transition: all 0.3s;
}

.learn-more-pink:hover::after {
  background-color: rgba(254, 119, 102, 0.7);
}

.img-box {
  height: 60rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 15rem 15rem 5rem 15rem;
  text-align: center;
}

.img-box-transform {
  background-image: url(images/image-transform-desktop.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.img-box-standout {
  background-image: url(images/image-stand-out-desktop.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.graphic-desing-box {
  background: url(images/image-graphic-design-desktop.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.photography-box {
  background: url(images/image-photography-desktop.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.sub-heading {
  font-size: 2.8rem;
  color: #24554a;
  margin-bottom: 4.8rem;
  font-family: "Fraunces", serif;
  font-weight: 900;
}

.graphic-desing-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #24554a;
}

@media only screen and (max-width: 48em) {
  .about {
    grid-template-columns: 50% 50%;
  }
  .img-box {
    height: 50rem;
    width: 100%;
  }
  .img-box-transform {
    background-image: url(images/image-transform-desktop.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  .text-box {
    padding: 3.2rem;
  }
  .secondary-header {
    font-size: 3.2rem;
  }
  .text-box-text {
    font-size: 1.6rem;
  }

  .img-box {
    padding: 1.2rem;
  }
  .img-box-content {
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .sub-heading {
    margin-bottom: 0.5rem;
  }
}

@media only screen and (max-width: 24em) {
  .about {
    display: flex;
    flex-direction: column;
    margin-bottom: 5.2rem;
  }
  .img-box {
    height: 31.2rem;
  }
  .img-box-transform {
    order: -1;
    background: url(images/image-transform.jpg);
    background-size: cover;
    background-position: center;
  }
  .secondary-header {
    font-size: 3.2rem;
  }
  .text-box {
    text-align: center;
    gap: 4.8rem;
  }

  .learn-more-yellow::after {
    left: 10rem;
  }
  .learn-more-pink::after {
    left: 10rem;
  }

  .graphic-desing-box {
    height: 60rem;
    background: url(images/image-graphic-design.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  .photography-box {
    height: 60rem;
    background: url(images/image-photography.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  .sub-heading {
    margin-bottom: 5.2rem;
  }
}

/****************************************************************/

/*TESTIMONIALS SECTION*/

.testimonials-header {
  text-align: center;
  font-size: 2rem;
  color: #a7aaad;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.testimonials {
  padding: 10rem 15rem 15rem 15rem;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.testimonial-img {
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  margin-bottom: 3.2rem;
}

.testimonial-text {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #5b636d;
  margin-bottom: 3.2rem;
}

.testimonial-author {
  font-size: 1.8rem;
  color: #24303e;
  margin-bottom: 1.2rem;
}

.testimonial-role {
  font-size: 1.4rem;
  color: #a7aaad;
}

@media only screen and (max-width: 48em) {
  .testimonials {
    flex-direction: column;
  }
  .testimonial:not(:last-child) {
    margin-bottom: 4.8rem;
  }
}
@media only screen and (max-width: 24em) {
  .testimonial {
    margin-bottom: 9.2rem;
  }
  .testimonials-header {
    margin-bottom: 4.8rem;
  }
  .testimonials {
    padding: 2.4rem;
  }
}

/**********************************************************/

/*GALLERY SECTION*/
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gallery-img-box {
  max-width: 36rem;
  height: 44.7rem;
}
.gallery-img-box:nth-child(1) {
  background: url(images/image-gallery-milkbottles-desktop.jpg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}
.gallery-img-box:nth-child(2) {
  background: url(images/image-gallery-orange-desktop.jpg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}
.gallery-img-box:nth-child(3) {
  background: url(images/image-gallery-cone-desktop.jpg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}
.gallery-img-box:nth-child(4) {
  background: url(images/image-gallery-sugarcubes-desktop.jpg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

@media only screen and (max-width: 48em) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 24em) {
  .gallery-img-box {
    height: 18.8rem;
  }
}

/****************************************************/

/*FOOTER SECTION*/
.footer {
  height: 35rem;
  background-color: #90d4c6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.navmenu-footer {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.social-media-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 3.2rem;
}
.navmenu-link-footer:link,
.navmenu-link-footer:visited {
  color: #458d7e;
  transition: all 0.3s;
}
.navmenu-link-footer:hover {
  color: #fff;
}

.social-media-list-item {
  transition: all 0.4s;
}

.social-media-list-item:hover {
  transform: scale(1.5);
}
