body {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background-image: url('./img/background.png');
  background-size: cover;
}
a {
  outline: none;
  text-decoration: none;
  color: unset;
}
input::placeholder {
  font-family: 'Manrope', sans-serif;
  color: white;
  opacity: 0.6;
}
textarea::placeholder {
  font-family: 'Manrope', sans-serif;
  color: white;
  opacity: 0.6;
}

/* COMMON CLASSES */
.block {
  /* background-color: aquamarine; */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  z-index: 10;
}
.button {
  padding: 13px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  outline: none;
  box-shadow: none;
  border: none;
}
.black {
  background-color: black;
  color: white;
}
.grey {
  background-color: rgb(247, 247, 247);
  color: black;
}
.text-blue {
  color: #0088FF;
}
.text-red {
  color: #FF383C;
}
.text-light-grey {
  color: rgba(255, 255, 255, 0.64);
}
.text-grey {
  color: #626263;
}
.text-white {
  color: #FFFFFF;
}
.text-center {
  text-align: center;
}
.p3-sb {
  font-size: 1rem;
  font-weight: 400;
}
.header-1 {
  font-size: 3rem;
  font-weight: 500;
}
.header-2 {
  font-size: 2.5rem;
  font-weight: 500;
}
.header-3 {
  font-size: 2rem;
  font-weight: 500;
}
.header-4 {
  font-size: 1.8rem;
  font-weight: 500;
}
.header-6 {
  font-size: 1.5rem;
}

/* TAGS */
header {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 150 !important;

  img {
    margin-right: auto;
  }
}
section {

}
footer {
  margin-top: 152px;
  margin-bottom: 20px;

  border-radius: 32px;
  padding: 32px;

  .block-1 {
    display: flex;
    align-items: center;
    gap: 1rem;

    img {
      margin-right: auto;
    }
    .first {
      margin-left: auto;
    }
    .third {
      margin-right: auto;
    }
  }
  hr {
    margin-top: 16px;
    margin-bottom: 16px;
    opacity: 0.16;
  }
}

/* SECTIONS */
.section-1 {
  margin-top: 60px;
  position: relative;
  display: flex;
  /* overflow: hidden; */

  text {
    width: 50%;
  }

  .devices-pic {
    margin-left: auto;
    width: 50%;
    transform: translateY(-100px);
  }
}

.section-2 {
  margin-top: 100px;
  .text-block-1 {
    display: flex;
    justify-content: space-between;
  }
}

.section-3 {
  .cards-block {
    margin-top: 56px;
    display: flex;
    overflow-x: auto;
    gap: 24px;
    justify-content: center;
    align-items: center;

    img {
      flex-basis: 1;
      max-height: 450px;
    }
  }
}

.section-4 {
  margin-top: 200px;

  display: flex;
  justify-content: center;
}

.section-5 {
  margin-top: 24px;

  display: flex;
  justify-content: center;

  text-align: center;
}

.section-6 {
  margin-top: 56px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;

  .pic-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;

    p {
      position: absolute;
      margin: 0;
    }
    p.top {
      left: 1.5rem;
      right: 1.5rem;
      top: 1.5rem;
    }
    p,a.bottom {
      left: 1.5rem;
      right: 1.5rem;
      bottom: 1.5rem;
    }
  }

  .pics-block-1 {
    display: flex;
    gap: 24px;
    align-items: end;

    div {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
  }
  
  .pics-block-2 {
    display: flex;
    gap: 24px;
    align-items: end;

    div {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
  }

  .pics-block-link {
    /* position: relative; */
    /* width: 220px; */
    display: flex;
    margin-top: auto;
    transform: translateY(40%);

    a {
      position: absolute;
    }

    .pic-card {
      display: flex;

      /* .pic-card { */
      /* } */
    }
  }
}

.section-12 {
  margin-top: 200px;
  background-image: url('./img/section-12/section-bg.png');
  background-size: cover;

  border-radius: 32px;
  position: relative;
  padding: 150px 72px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;

  .emoji {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
  }

  .block-3 {
    display: flex;
    grid-row: 1;
    flex-direction: column;
    gap: 8px;

    width: 589px;
    min-width: 279px;

    textarea {
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.06);
      /* opacity: 0.46; */
      padding: 16px;
      outline: none;
      inset: none;
      box-shadow: none;
      border: none;
      color: white;
    }
    input {
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.06);
      /* opacity: 0.46; */
      padding: 16px;
      outline: none;
      inset: none;
      box-shadow: none;
      border: none;
      color: white;
    }
  }
}

/* ABSOLUTE IMGS */
.body-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: -2;
}
.screen-1-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1500px;
  max-width: 100%;
  max-height: 80vh;
  object-fit: cover;
  border-radius: 0 0 64px 64px;
  z-index: -1;
}

.screen-1-bg-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  object-fit: cover;
  border-radius: 0 0 64px 64px;
  z-index: -1;
  display: none; /* Hidden by default, shown only when video fails */
}


@media (max-width: 768px) {
  .screen-1-bg {
    width: 100%;
    max-width: 100%;
    max-height: unset;
    height: 90vh;
  }
  .screen-1-bg-fallback {
    display: block !important; /* Show fallback image on mobile */
    height: 60vh; /* Smaller height for mobile */
  }
  .button {
    padding: 8px 12px;
  }
  .block {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-1 {
    font-size: 2rem;
  }
  
  #typing-text {
    height: 2.4em; /* Smaller fixed height for mobile */
    line-height: 1.2em;
  }
  .header-2 {
    font-size: 1.5rem;
  }
  .header-3 {
    font-size: 1.2rem;
  }
  .header-3 {
    font-size: 1.1rem;
  }
  .header-6 {
    font-size: 1rem;
  }
  .p3-sb {
   font-size: 0.8rem;
  }
  header {
    /* flex-direction: column; */
    /* align-items: flex-start; */
    gap: 4px;
    flex-wrap: wrap;

    a:last-child {
      margin-left: auto;
    }
  }
  .section-1 {
    margin-top: 20px;
    flex-direction: column;
    text {
      width: 100%;
    }
    .devices-pic {
      width: 100%;
      transform: none;
      margin-top: 24px;
    }
  }
  .section-2 .text-block-1 {
    flex-direction: column;
    gap: 8px;
  }
  .section-3 .cards-block {
    justify-content: unset;
    overflow-x: auto;
    gap: 16px;

    img {
      width: 80vw;
    }
  }
  .section-4,
  .section-5,
  .section-6,
  .section-12 {
    margin-top: 60px;
    padding: 0 8px;
  }
  .section-5 {
    text-align: left;
  }
  .section-6 {
    gap: 12px;

    .pic-card {
      span.top {
        left: 1rem;
        right: 1rem;
        top: 1rem;
      }
      p,a.bottom {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
      }
    }

    .pics-block-1,
    .pics-block-2 {
      max-width: 100vw;
      overflow: hidden;
      box-sizing: border-box;
      justify-content: space-between;
      gap: 0;

      .pics-inside-block {
        width: 45%;
      }
      .separate {
        width: 50%;
      }
      
    }

    .pics-block-2 {
      align-items: flex-start;
    }

    .pics-block-link {
      transform: none;
      width: 100%;
      display: flex;

      .pics-inside-block {
        width: 100%;

        .pic-card {
          width: 100%;
          height: 30vh;
        }
        .pic-card>img {
          width: calc(100vw - 16px);
        }
      }
    }
  }
  .section-12 {
    padding: 60px 8px;
    .block-3 {
      width: 100%;
      min-width: unset;
    }
  }
  footer {
    margin-top: 60px;
    padding: 16px;
    .block-1 {
      flex-direction: column;
      gap: 8px;
      img {
        margin-right: 0;
      }
      .first,
      .third {
        margin-left: 0;
        margin-right: 0;
      }
    }
  }
}

/* Typing Animation */
#typing-text {
  display: inline-block;
  min-height: 1.2em;
  height: 3.6em; /* Fixed height for 3 lines of text */
  line-height: 1.2em;
  overflow: hidden;
}

/* Form Message Styles */
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success message initially hidden */
#text-success {
  display: none;
}

