:root {
  --color-primary: #5ec576;
  --color-secondary: #ffbc03;
  --color-tertiary: #ff585f;
  --color-primary-darker: #4bbb7d;
  --color-secondary-darker: #ffbb00;
  --color-tertiary-darker: #fd424b;
  --color-primary-opacity: #5ec5763a;
  --color-secondary-opacity: #ffcd0331;
  --color-tertiary-opacity: #ff58602d;
  --gradient-primary: linear-gradient(to top left, #39b385, #9be15d);
  --gradient-secondary: linear-gradient(to top left, #ffbb00, #ffcb03);
}

* {
  scroll-behavior: smooth;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: #444;
  line-height: 1.9;
  background-color: #f3f3f3;
  margin: 0px;
  padding: 0px;
}

.button--cta {
  text-decoration: none;
  border: none;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
  background-color: var(--color-primary);
  padding: 10px 15px;
  border-radius: 50px;
}

.button--cta:hover {
  background-color: var(--color-primary-darker);
  cursor: pointer;
}

a {
  color: #444;
}

h4 {
  color: var(--color-primary);
  font-size: 0.8vw;
  font-weight: 600;
}

@media only screen and (max-width: 768px) {
  h4 {
    font-size: 1rem;
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 12vh;
  display: flex;
  justify-content: space-between;

  background-color: #f3f3f3;
  z-index: 100;
}

.nav--list {
  width: 60%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.nav--list a {
  text-decoration: none;
  font-size: 2rem;
}

@media screen and (min-width: 2560px) {
  .nav--list a {
    font-size: 4rem;
  }
}

.hamburger {
  display: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #101010;
}

@media only screen and (max-width: 768px) {
  .nav {
    flex-direction: row-reverse;
  }

  .nav--list {
    position: fixed;
    left: -100%;
    top: 5rem;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav--list.active {
    left: 0;
  }

  .nav__link {
    margin: 2.5rem 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    margin: 1rem;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

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

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

.nav__link {
  transition: all 0.3s;
}

.logo {
  background: none;
  height: 12vh;
}

.section {
  transition: transform 1s, opacity 1s;
}

.section--hidden {
  opacity: 0;
  transform: translateY(8rem);
}

.highlight {
  position: relative;
}

.highlight::after {
  display: block;
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  opacity: 0.7;
  transform: scale(1.07, 1.05) skewX(-15deg);
  background-image: var(--gradient-primary);
}

.green {
  color: var(--color-primary);
}

/* BANER */

.baner {
  height: 100vh;
  display: flex;
}

.baner--left,
.baner--right {
  width: 50%;
  display: flex;
}

.baner--right {
  justify-content: center;
  align-items: center;
}

.baner--left {
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.baner--left > * {
  margin-bottom: 7rem;
}

h1 {
  font-size: 6vw;
}

.baner--left-desc h2 {
  font-size: 1.1vw;
}

.baner--left-desc a {
  font-size: 0.9vw;
  margin-left: 1vw;
  margin-top: 2vh;
}

.baner-picture {
  max-width: 25vw;
}

.button--learn--more {
  border: none;
  background: none;
  text-decoration: none;
  color: var(--color-primary);
}

.button--learn--more:hover {
  cursor: pointer;
  color: var(--color-primary-darker);
}

@media only screen and (max-width: 768px) {
  .baner {
    flex-direction: column;
    height: auto;
  }

  .baner--left,
  .baner--right {
    width: 100vw;
  }

  .baner--left {
    margin-top: 10rem;
  }
  /* 
  .baner--left > * {
    margin-bottom: 7rem;
  } */

  h1 {
    font-size: 4rem;
  }

  .baner--left-desc h2 {
    font-size: 1.3rem;
    max-width: 80vw;
  }

  .baner--left-desc a {
    font-size: 1.2rem;
    margin-left: 0;
    margin-top: 0;
  }

  .baner-picture {
    max-width: 80vw;
  }
}

/* SLIDER */

.showcase {
  margin: 10rem 0;
  padding-top: 10rem;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase h4 {
  margin-right: 2vw !important;
}

.title h3 {
  margin: 0;
}

.slider {
  max-width: 60%;
  height: 75vh;
  margin: 0 auto;
  position: relative;

  /* IN THE END */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  /* THIS creates the animation! */
  transition: transform 0.5s;
}

.slide > img {
  /* Only for images that have different size than slide */
  border-radius: 3px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 10;

  border: none;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  color: #333;
  border-radius: 50%;
  height: 3vw;
  width: 3vw;
  font-size: 1.8vw;
  cursor: pointer;
  transition: 0.3s;
}

.slider__btn:hover {
  background-color: rgba(240, 238, 238, 0.7);
}

.slider__btn--left {
  left: 6%;
  transform: translate(-50%, -50%);
}

.slider__btn--right {
  right: 6%;
  transform: translate(50%, -50%);
}

.dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dots__dot {
  border: none;
  background: var(--gradient-primary);
  opacity: 0.5;
  height: 0.5rem;
  width: 2rem;
  /* border-radius: 50%; */
  margin-right: 1.75rem;
  cursor: pointer;
  transition: all 0.5s;

  /* Only necessary when overlying images */
  /* box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.7); */
}

@media screen and (min-width: 2560px) {
  .dots__dot {
    height: 1.3rem;
    width: 5.2rem;
  }
}

.dots__dot:last-child {
  margin: 0;
}

.dots__dot--active {
  /* background-color: #fff; */
  background-color: #e2e2e2;
  opacity: 1;
}

@media only screen and (max-width: 768px) {
  .showcase {
    margin: 5rem 0;
    padding-top: 0;
  }

  .slider {
    max-width: 90%;
    height: 30vh;
    margin: 0 auto;
    position: relative;

    /* IN THE END */
    overflow: hidden;
  }

  .slider__btn {
    position: absolute;
    top: 50%;
    z-index: 10;

    border: none;
    background: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    color: #333;
    border-radius: 50%;
    height: 2.5rem;
    width: 2.5rem;
    font-size: 1.8vw;
    cursor: pointer;
    transition: 0.3s;
  }

  .dots {
    display: none;
  }
}

/* DESCRIPTION */

.description {
  display: flex;
  margin: 15rem 0;
  padding-top: 10rem;
}

.description--left {
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.description--left--img-container {
  width: 80%;
  overflow: hidden;
}

.description--left img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: 0.4s ease-in-out;
}

.description--left img:hover {
  transform: scale(1.03);
}

.description--right {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

h3 {
  font-size: 2.5vw;
}

.description p {
  font-size: 1.7rem;
}

@media screen and (min-width: 2560px) {
  .description p {
    font-size: 2.7rem;
  }
}

@media only screen and (max-width: 768px) {
  .description {
    flex-direction: column;
    margin: 5rem 0;
    padding-top: 0;
  }

  .description--left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .description--right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  h3 {
    font-size: 3.5rem;
  }

  .description p {
    font-size: 1.3rem;
    width: 85%;
  }
}

/* MODAL */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60rem;
  background-color: #f3f3f3;
  padding: 5rem 6rem;
  box-shadow: 0 4rem 6rem rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: all 0.3s;
}

.modal__header {
  font-size: 3.25rem;
  margin-bottom: 4.5rem;
  line-height: 1.5;
}

.modal__form {
  margin: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 2.5rem;
}

.modal__form label {
  font-size: 1.7rem;
  font-weight: 500;
}

.modal__form input {
  font-size: 1.7rem;
  padding: 1rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.modal__form button {
  grid-column: 1 / span 2;
  justify-self: center;
  margin-top: 1rem;
}

.modal__form textarea {
  padding: 1rem;
  font-size: 1.7rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.btn--close-modal {
  font-family: inherit;
  color: inherit;
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  font-size: 4rem;
  cursor: pointer;
  border: none;
  background: none;
}

.modal .button--cta {
  font-size: 1.7rem;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

textarea {
  resize: none;
}

@media only screen and (max-width: 768px) {
  label {
    display: none;
  }

  .modal {
    max-width: 20rem;
    margin-top: 2rem;
  }

  .modal__header {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    line-height: 1.5;
  }

  .modal__form {
    margin: 0 3rem;
    display: flex;
    flex-direction: column;
  }

  .modal__form label {
    font-size: 1.3rem;
  }

  .modal__form input {
    font-size: 1.3rem;
  }

  .modal__form button {
    justify-self: center;
  }

  .modal__form textarea {
    font-size: 1.3rem;
  }

  .modal .button--cta {
    font-size: 1.7rem;
  }
}

/* FEATURES */

.features--container {
  margin: 10rem 0;
}

.features--container > .title > h4 {
  margin-right: 2vw;
}

.features--container > .title > h3 {
  margin-bottom: 3rem;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5vw;
}

.feature {
  position: relative;
  height: 60vh;
  width: 20vw;
  padding: 1rem;

  /* background-color: rgba(245, 245, 245, 0.5); */
  border: 2px solid #444;
  border-radius: 1rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transform-origin: center;
  transition: 0.5s;

  overflow: hidden;
}

.feature:hover {
  transform: scale(1.02);
}

.feature .button--cta {
  position: absolute;
  bottom: 5%;
  font-size: 1.5rem;
  background: var(--gradient-primary);
}

@media screen and (min-width: 2560px) {
  .feature .button--cta {
    font-size: 4rem;
  }
}

.feature p {
  font-size: 1vw;
}

.feature h4 {
  font-size: 1.5vw;
  color: #444;
}

.feature i {
  font-size: 3vw;
  margin: 1rem 0;
  /* color: var(--color-primary); */
}

@media only screen and (max-width: 768px) {
  .features--container {
    margin: 3rem 0;
  }

  .features--container > .title > h4 {
    margin-right: 0;
  }

  .features--container > .title > h3 {
    margin-bottom: 2rem;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 4vw;
  }

  .feature {
    position: relative;
    height: 60vh;
    width: 70vw;
    padding: 1rem;
  }

  .feature p {
    font-size: 1.7rem;
  }

  .feature h4 {
    font-size: 2.2rem;
  }

  .feature i {
    font-size: 4rem;
  }
}

/* Quality */

.quality {
  margin: 10rem 0;
  padding-top: 10rem;
  height: 100vh;
}

.quality > h5 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10rem;
}

@media screen and (min-width: 2560px) {
  .quality > h5 {
    font-size: 2.6rem;
  }
}

.quality--image-comparison {
  max-width: 50vw;
  max-height: 60vh;
  margin: 0px auto;
  border-radius: 20px;
  overflow: hidden;
}

.quality--image-comparison img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.quality--images-container {
  position: relative;
  display: flex;
}

.good-image {
  position: absolute;
  top: 0;
}

.quality--slider {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.quality--slider-line {
  position: absolute;
  height: 100%;
  width: 1rem;
  background: none;
  left: 50%;
  transform: translateX(-50%);
}

.quality--slider-icon {
  position: absolute;
  left: 50%;
  align-self: center;
  color: white;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%) rotateZ(90deg);
  filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.5));
}

@media only screen and (max-width: 768px) {
  .quality {
    margin: 5rem 0;
    padding-top: 5rem;
    height: auto;
  }

  .quality > h5 {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    padding: 2rem;
  }

  .quality--image-comparison {
    max-width: 90vw;
    margin: 0px auto;
    border-radius: 20px;
    overflow: hidden;
  }

  .quality--slider-icon {
    width: 70px;
    height: 70px;
  }
}

/* PROJECT SHOWCASE */

.project--showcase {
  margin: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project--showcase-section {
  margin: 0 10vw;
  padding-top: 20rem;
  display: flex;
  gap: 15%;
}

.project--showcase-section-first {
  padding-top: 10rem;
}

.project--showcase-section-img {
  width: 40vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.project--showcase-section-img > i {
  font-size: 4rem;
}

.project--showcase-section-img img,
video {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  background: none;
}

.project--showcase-instruction-container {
  position: relative;
}

.project--showcase-instruction-container > .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner i {
  font-size: 6rem;
  color: var(--color-primary);
}

.project--showcase-section-text {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.project--showcase-section-text-right {
  align-items: self-end;
  text-align: right;
}

.project--showcase-section-text h6 {
  font-size: 3.2rem;
  margin: 0;
}

.project--showcase-section-text p {
  font-size: 1.7rem;
}

@media screen and (min-width: 2560px) {
  .project--showcase-section-text h6 {
    font-size: 5.3rem;
    margin: 0;
  }

  .project--showcase-section-text p {
    font-size: 3.1rem;
  }

  .project--showcase-section-text a {
    font-size: 2.3rem;
  }
}

@media only screen and (max-width: 768px) {
  .project--showcase {
    margin: 3rem 0;
  }

  .project--showcase .project--showcase-section:nth-child(2n) {
    flex-direction: column !important;
  }

  .project--showcase-section {
    /* margin: 0 10vw;
    padding-top: 10rem; */
    flex-direction: column-reverse;
    text-align: center;
  }

  .project--showcase-section-first {
    padding-top: 8rem;
  }

  .project--showcase-section-img {
    width: 80vw;
    /* display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; */
  }

  .project--showcase-section-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .project--showcase-section-text-right {
    align-items: center;
    text-align: center;
  }

  .project--showcase-instruction-container {
    margin-top: 2rem;
  }
}

/* OFFERS */

.offers {
  padding-top: 10rem;
  margin: 5rem 0;
  display: flex;
  flex-direction: column;
}

.offer--container {
  margin: 5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10vw;
}

.offer {
  height: 60vh;
  width: 20vw;
  padding: 1rem;

  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;

  background: none;
  border: 2px solid #444;
  border-radius: 1rem;
}

.offer .button--cta {
  position: absolute;
  bottom: 5%;
  font-size: 1vw;
}

.offer .offer-info {
  position: absolute;
  bottom: 15%;
  align-self: center;
}
.offer > .offer-info > p {
  font-size: 0.6vw;
}

.offer h4 {
  border-radius: 8%;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.offer-1 h4 {
  background-color: var(--color-primary-opacity);
}

.offer-2 h4 {
  color: #444;
  background: var(--gradient-primary);
}

.offer-3 h4 {
  background: var(--gradient-secondary);
  color: #444;
}

.offer p {
  font-size: 1.4rem;
  align-self: self-start;
  margin-left: 1rem;
}

@media screen and (min-width: 2560px) {
  .offer p {
    font-size: 2.6rem;
  }
}

.offer i {
  color: var(--color-primary);
  background-color: var(--color-primary-opacity);
  padding: 0.4vw;
  border-radius: 50%;
}

.custom--offer {
  width: 80vw;
  height: 20vh;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
}

.custom--offer > * {
  font-size: 1vw;
}

.custom--offer > a {
  background: var(--gradient-secondary);
  transition: 0.5s;
  transform-origin: center;
}
.custom--offer > a:hover {
  background: var(--gradient-secondary);
  transform: scale(1.1);
}

.border--text {
  border-bottom: 2px solid #444;
  padding: 0.5rem 1rem;
  position: absolute;
  top: -5rem;
  font-size: 2rem;
  border-top-right-radius: 1.5rem;
  border-top-left-radius: 1.5rem;
  font-weight: 600;
}

@media screen and (min-width: 2560px) {
  .border--text {
    top: -6.2rem;
    font-size: 2.6rem;
  }
}

.offer-1 > .border--text {
  background: var(--color-primary-opacity);
}

.offer-2 > .border--text {
  background: var(--gradient-primary);
}

.offer-3 > .border--text {
  background: var(--gradient-secondary);
}

@media only screen and (max-width: 768px) {
  .offers {
    margin: 3rem 0;
  }

  .offer--container {
    flex-direction: column;
    gap: 10rem;
  }

  .offer {
    height: 60vh;
    width: 70vw;
    padding: 1rem;
  }

  .offer .button--cta {
    font-size: 1.5rem;
  }

  .offer > .offer-info > p {
    font-size: 1rem;
  }

  .offer p {
    font-size: 1.2rem;
  }

  .custom--offer {
    width: 80vw;
    height: auto;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
  }

  .custom--offer > * {
    font-size: 1.2rem;
  }
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: #37383d;
  min-height: 20vh;
  color: #e2e2e2;
}

footer h5 {
  font-size: 3rem;
}

@media screen and (min-width: 2560px) {
  footer h5 {
    font-size: 5.5rem;
  }
}

footer p {
  font-size: 1.4rem;
  align-self: center;
}

.contact {
  display: flex;
  gap: 15vw;
  margin-bottom: 10vh;
}

.contact a i {
  color: white;
}

.contact i {
  font-size: 4rem;
}

@media screen and (min-width: 2560px) {
  .contact i {
    font-size: 7rem;
  }
}

@media only screen and (max-width: 768px) {
  .contact {
    flex-direction: column;
    gap: 5vh !important;
    margin-bottom: 5vh;
  }

  footer h5 {
    font-size: 2.5rem;
  }

  .contact {
    gap: 15rem;
  }

  .contact i {
    font-size: 3.6rem;
  }
}

/* VIDEO */

#yt-video {
  display: flex;
  justify-content: center;
  align-items: center;
}

#yt-video iframe {
  width: 50vw;
  height: 50vh;
}

@media only screen and (max-width: 768px) {
  #yt-video iframe {
    width: 80vw;
    height: 50vh;
  }
}
