/* CSS RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  /* DEBUG */
  /* outline: 2px solid red; */
}

body {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  color: #333;

  background: radial-gradient(
    circle at bottom,
    white,
    hsl(250, 50%, 80%) 35%,
    hsl(280, 50%, 80%) 50%,
    hsl(310, 50%, 80%) 60%,
    white 80%
  );
}

/* Default Tags */
h1,
h2 {
  font-style: italic;
  font-weight: bold;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
}

p {
  font-size: 1.2rem;
}

.shadow {
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
}

.img-shadow {
  filter: drop-shadow(0px 4px 4px hsla(240, 100%, 3%, 0.8));
  -webkit-filter: drop-shadow(0px 4px 4px hsla(240, 100%, 3%, 0.8));
}

.head {
  height: 10dvh;
  max-height: 10dvh;
  min-height: 10dvh;
}

.section {
  position: relative;
  display: flex;
  flex-direction: column;

  justify-content: space-evenly;
  min-height: 100%;
  width: 100%;

  padding: 0 2rem;
  margin-bottom: 3.2em;
}

.content {
  height: 90dvh;
  overflow-y: scroll;
}

.scroll-navigator {
  display: flex;
  justify-content: center;

  align-self: flex-end;

  gap: 0.625em;
  width: 100%;

  padding: 0.625em;

  & button {
    width: 3em;
    height: 3em;
    padding: 0.5rem;

    background-color: hsla(0, 0%, 60%, 0.5);

    border: none;
    border-radius: 100%;

    cursor: pointer;
    transition: all 0.2s ease-in-out;

    & img {
      width: 100%;
      filter: invert(1);
    }
  }

  & button:hover {
    background-color: hsla(260, 40%, 70%, 0.9);
    transform: scale(1.1);
  }
}

.qr {
  width: 8vw;
}

/* HEADER */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);

  width: 100%;
  height: 100%;

  & img {
    height: 100%;
  }
}

/* SECTION 1 */

.section1-container {
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;

  width: 100%;
}

.hero-image {
  object-fit: contain;
  height: 80vh;
}

.section1-content {
  display: flex;
  justify-content: space-between;
  flex-direction: column;

  width: 40%;
  padding: 2rem 0;
  text-align: left;
}

.s1-c {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  width: 100%;

  gap: 1.8em;

  height: max-content;
}

.catch-live-btn {
  font-size: 1.2rem;

  text-decoration: none;

  color: inherit;

  cursor: default;
  pointer-events: none;
}

/* SECTION 2 */

.section2-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: row;
  flex: 1;
  height: 100%;
  width: 100%;
}

.section2-content {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;

  width: 100%;
  height: max-content;
}

.section2-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.get-started-btn {
  padding: 0.5rem 1.25rem;

  text-decoration: none;
  font-size: 1.2rem;

  color: white;
  background-color: #8581a9;

  border-radius: 1em;
  border: none;

  cursor: pointer;
  transition: background-color 0.3s;

  &:hover {
    background-color: #7a6bff;
  }

  &::before {
    text-decoration: none;
  }

  &::after {
    text-decoration: none;
  }
}

.section2-video {
  width: 100%;
  max-width: 600px;

  border-radius: 16px;
  object-fit: cover;
}

/* SECTION 3 */

.section3-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;

  flex-wrap: wrap;
  gap: 1em;
  width: 100%;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1em;
  width: 100%;
}

.step {
  width: 20%;
  min-width: max(20%, 15.625em);
  padding: 0.8em;

  background-color: white;

  border-radius: 1em;
  border: 2px solid gray;

  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;

  &:hover {
    transform: translateY(-5px);
  }

  & img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 1em;
  }

  & h3 {
    text-align: left;
    font-size: 1.2rem;
    margin: 0.5em 0;
    color: #333;
  }

  & p {
    text-align: left;
    color: #555;
  }
}

.tagline {
  font-size: 1.2rem;
  color: #333;
}

.jump-btn {
  display: none;
}

/* SECTION 4 */
.section4 {
  margin-bottom: 0;
}

.section4-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;

  width: 100%;
}

.section4-image {
  max-width: 500px;
  height: 70vh;
  object-fit: contain;
}

.section4-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 1em;

  & p {
    color: #333;
    max-width: 40ch;
  }
}

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

  padding: 40px 20px 20px;

  text-align: center;
  background-color: #2b2b2b;
  color: white;

  .footer-content {
    display: flex;
    justify-content: space-between !important;
    align-items: start !important;

    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap; /* Ensures mobile/small screens behave better */
    gap: 20px; /* Optional: adds space between logo and contact */
  }

  .footer-company-logo {
    width: 180px;
    /* height: fit-content; */
    /* object-fit: contain; */
    filter: invert(1) grayscale(1);
  }

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

    & h3 {
      margin-bottom: 10px;
    }

    & p {
      text-align: left;
      font-size: 0.95rem;
      margin-bottom: 10px;
    }

    .social-media-icons {
      margin-top: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;

      & a {
        text-decoration: none;

        & img {
          width: 30px;
          margin-right: 10px;
          filter: invert(1);
          transition: transform 0.2s ease-in-out;
        }

        & img:hover {
          transform: translateY(-3px);
        }
      }
    }
  }

  .bottom {
    width: 100%;
    margin-top: 30px;
    padding-top: 15px;

    font-size: 0.85rem;
    border-top: 1px solid #444;
  }
}

.overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14dvw;

  /* z-index: 100; */
}

/* Mobile devices */
@media (max-width: 1080px) {
  body {
    background: radial-gradient(
      circle at bottom,
      white 10%,
      hsl(250, 50%, 80%) 45%,
      hsl(280, 50%, 80%) 60%,
      hsl(310, 50%, 80%) 70%,
      white 100%
    );
  }

  h1 {
    font-size: 1.8rem;
    line-height: 1.1;
  }
  h2 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1rem;
  }

  .overlay {
    display: none;
  }

  /* Buttons */
  .catch-live-btn {
    padding: 12px 24px;
    border-radius: 1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 65%;

    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);

    color: white;
    background-color: hsl(330, 90%, 50%);
    pointer-events: auto;
    cursor: pointer;

    &:hover {
      background-color: #e6005c;
    }
  }

  /* Hides QR */
  .qr {
    display: none;
  }

  .qr-viz {
    display: block;
    width: 30vw;
  }

  .section1-container {
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .section1-content {
    justify-content: center;
    flex: 1;
    padding: 0;
  }

  .hero-image {
    margin: 1em;
    height: 45vh;
    margin-right: 17%;
  }

  .section1-content {
    gap: 2em;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .s1-c {
    align-items: center;
    gap: 1em;
  }

  .section2-video {
    height: 30vh;
    /* width: 100%; */
    object-fit: cover;
    order: 1;
  }

  .section2-content {
    height: 80dvh;
    align-items: center;
    flex-direction: column;
  }

  .get-started-btn {
    padding: 0.7em 1.4em;
    border-radius: 0.6em;
    width: 65%;
  }

  .jump-btn {
    display: block;
    width: 65%;
    padding: 0.5em 1.4em;

    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 0.6em;

    color: white;
    background-color: #8581a9;

    border: none;

    cursor: pointer;
    transition: background-color 0.3s;

    text-align: center;

    margin: 1em 0;

    &:hover {
      background-color: #7a6bff;
    }

    &::before {
      text-decoration: none;
    }

    &::after {
      text-decoration: none;
    }
  }

  .section2-text {
    /* Moves the text below the video */
    order: 2;

    text-align: center;
    align-items: center;
    justify-content: space-between;

    height: 40%;
    width: 100%;
  }

  .step {
    /* height: 80%; */
    min-width: 18em;
    /* width: 80%; */
  }

  .tagline {
    margin-top: 1em;
    font-size: 1.6rem;
    text-align: center;
    max-width: 18ch;
  }

  .section4-container {
    flex-direction: column;
  }

  .section4-content {
    text-align: center;
    align-items: center;

    & h1 {
      font-size: 2rem;
    }
  }

  .section4-image {
    height: 40vh;
  }

  .footer {
    padding: 20px 10px 10px;
  }

  .footer-company-logo {
    max-width: 120px;
  }

  .section4-image {
    max-width: 300px;
  }
}
