/*----Video/Engagement Section Styles----*/

#video {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #141b26 25%, rgba(0, 8, 20, 0.95) 75%);
    text-align: center;
    padding: 6rem 0rem 4rem 0rem;
    margin-top: 6rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
  }
  
  .video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4rem;
  }
  
  .video-container iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 15px;
}


  #video-caption {
    margin-top: 1.5rem;
    color: rgb(174 178 183);
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8rem;
    cursor: default;
    z-index: -1;
    width: 500px;
    max-width: 90%;
  }

  .section-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, 
                                           rgba(255, 255, 255, 0.3) 50%, 
                                           rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    margin: 2rem auto;
    margin-top: 1.5rem !important;
}
  
  /*----Model Section Styles----*/
  
  #model #alt-tagline {
    position: absolute;
    top: 5rem; /*Custom spacing from top*/
    left: 10%; /*Custom spacing from left*/
    color: rgb(161, 163, 247);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0px 5px 5px #000;
  }
  
  #model #alt-title {
    position: absolute;
    top: 8rem; /*Custom spacing from top*/
    left: 10%; /*Custom spacing from left*/
    font-size: 3rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0px 5px 5px #000;
  }
  
  #model-caption {
    position: absolute;
    top: 12rem; /*Custom spacing from top*/
    left: 10%; /*Custom spacing from left*/
    font-size: 1.2rem;
    line-height: 1.8rem;
    color: rgb(174 178 183);
    max-width: 500px;
    text-align: left;
    z-index: -1;
  }
  
  #model {
    padding-bottom: 0rem;
    overflow-x: hidden;
    position: relative;
  }
  
  #model #alt-title {
    margin-bottom: 0;
  }
  
  #model-container {
    width: 100%;
    height: 34rem;
    border-radius: 15px;
    overflow: hidden;
  }
  
  /*----FAQ styles----*/
  
  #faq {
    position: relative;
    z-index: 2;
    padding: 0rem 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
  
    padding-top: 6rem;
    cursor: help;
  }
  
  #alt-tagline {
    color: rgb(161, 163, 247);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    text-shadow: 0px 5px 5px #000;
    text-align: center;
    cursor: default;
  }
  
  #alt-title {
    font-size: 3rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
    cursor: default;
  }
  
  #faq #alt-tagline {
    color: rgb(161, 163, 247);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    text-shadow: 0px 5px 5px #000;
    text-align: center;
    cursor: help;
  }
  
  #faq #alt-title {
    font-size: 3rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #fff;
    text-align: center;
    cursor: help;
  }
  
  .faqs-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faqs-container .questions-container {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin: 1.75rem 0rem;
  }
  
  .faqs-container .faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a35;
    color: #fff;
    padding: 1rem 0rem;
    cursor: help;
    border-radius: 8px;
    position: relative;
    transition: background 0.5s ease, color 0.5s ease;
  }

  .faqs-container .faq-header.active {
    background: #141b26; /* Matches the content active background */
    color: rgb(174, 178, 183); /* Matches the content active text color */
    transition: background 0.5s ease, color 0.5s ease;
  }  
  
  .faqs-container .faq-header h3 {
    font-size: 1.2rem;
    margin: 0;
    padding: 0 2rem;
  }
  
  .faqs-container .faq-header .open,
  .faqs-container .faq-header .close {
    position: absolute;
    right: 0;
    padding: 0 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(161, 163, 247);
    transform: translateY(-8px);
    opacity: 0;
    transition: all 500ms;
  }
  
  .faqs-container .faq-header .open.active,
  .faqs-container .faq-header .close.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  .faqs-container .content {
    padding: 0 2rem;
    border-radius: 8px;
    line-height: 1.8rem;
    font-size: 1rem;
    color: rgb(174 178 183);
    max-height: 0;
    overflow: hidden;
    transition: all 500ms;
    cursor: help;
  }
  
  .faqs-container .content.active {
    max-height: 800px;
    opacity: 1;
    padding-bottom: 1rem;
  }
  
  /*----Animations----*/
  
  @keyframes fade-slide-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
  }
  
  .scroll-fade.animate {
    animation: fade-slide-up 2s ease forwards; /* Trigger animation */
  }
  
  /* Default hidden state for scroll-slide elements */
  .scroll-slide {
    opacity: 0;
    transform: translateX(50px); /* Start slightly off-screen */
    transition: opacity 2s ease, transform 2s ease; /* Smooth transition */
  }
  
  /* Slide-in animation when triggered */
  .scroll-slide.slide-in {
    opacity: 1;
    transform: translateX(0); /* Move into place */
  }
  
  /* edge case */
  @media screen and (max-width: 1024px) and (max-height: 600px) {
    #hero {
      height: 90vh;
    }
    #hero .tagline {
      margin-top: 2rem;
      margin-bottom: 2rem;
    }
    #background-container {
      height: 120vh;
    }
  }
  
  /* Responsive Styles */
  @media screen and (max-width: 768px) {
    #model #alt-tagline,
    #model #alt-title,
    #model #model-caption {
      position: static;
    }
  
    #model #alt-tagline {
      margin-top: 2rem;
    }
  
    #model #model-caption {
      margin: 2rem auto;
      text-align: center;
    }
  
    .video-container {
      margin-left: 1.25rem;
      margin-right: 1.25rem;
    }
  
    #hero {
      height: 85vh;
    }
  }
  
  @media screen and (max-width: 540px) {
    #model #model-caption {
      margin: 2rem;
    }
    .video-container iframe {
      height: 320px;
    }
  
    #background-container {
      height: 120vh;
    }
  }
  
  @media screen and (max-width: 440px) {
    #hero {
      height: 85vh;
    }
  }
  
  @media screen and (max-width: 380px) {
    #hero .tagline {
      margin-top: 2rem;
      margin-bottom: 2rem;
    }
  
    #support-valueprop {
      font-size: 1rem;
    }

    #video-caption {
      font-size: 1rem;
    }

    #model-caption {
      font-size: 1rem;
    }
  
    #alt-title {
      font-size: 2.5rem;
      line-height: 2.5rem;
    }
  }
  
  @media screen and (max-width: 380px) {
    #hero {
      height: 90vh;
    }
  }
  