@import url('colour-scheme.css');

  .video-background {
    position: absolute;
    object-fit: cover;
    width:100%;
    height:100%;
    z-index: -1;
  }

  .fallback-image {
    z-index: -2;
    object-fit: cover;
  }

  .video-element {
      width: 100%;
      display: block;
  }

  .video-element {
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      transition: opacity 1s ease-in-out;
  }

  .hero-logo {
    padding-bottom:2em;
    width:100%;
    max-width:600px;
    opacity: 1;
  }
  
  /* HERO SECTION */
  .hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  .hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: 6em;
    padding-bottom: 6em;
  }
  .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }


/* Video Popup in the Bottom-Right Corner */
.video-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100;
  height: 75px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index:10;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Enlarged video when clicked */
.video-popup.enlarged {
  width:100%;
  max-width:400px;
  height: 225px;
}

.video-popup.enlarged video {
  width: 100%;
  height: 100%;
}

  /* HOW IT WORKS */
  .how-it-works {
    padding: 4rem 1rem;
    background-color: var(--brand-background-primary);
    color: var(--brand-primary-text);
  }
  .how-it-works h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  .hiw-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    margin-top: 2rem;
  }
  .hiw-step {
    max-width: 320px;
    text-align: center;
    background-color: var(--brand-secondary);
    padding:2em;
    border-radius:20px;
  }
  .hiw-step img {
    height: 60px;
    margin-bottom: 1rem;
  }

  /* OUR TECHNOLOGY SECTION */
  .technology-section {
    padding: 4rem 1rem;
    background: var(--brand-background-primary);
  }
  .technology-section h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
  }
  .tech-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }
  .tech-text {
    max-width: 500px;
  }
  .tech-text p {
    line-height: 1.6;
  }
  .tech-visual img {
    max-width: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  
  /* TESTIMONIALS SECTION */
  .testimonials-section {
    background-color: var(--brand-background-secondary);
    padding: 4rem 1rem;
    text-align: center;
  }
  .testimonials-section h2 {
    font-weight: 700;
    margin-bottom: 2rem;
  }
  .testimonial-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
  }
  .testimonial-slide {
    display: none;
    /* Fade effect base */
    animation: fadeIn 0.8s;
  }
  .testimonial-slide.active {
    display: block;
  }
  .testimonial-slide p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--brand-primary-text);
    margin-bottom: 1rem;
  }
  .testimonial-author {
    font-weight: 600;
    color: var(--brand-primary-text);
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .testimonial-nav {
    margin-top: 1rem;
  }
  .testimonial-nav button {
    background: #aaa;
    border: none;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
  }
  .testimonial-nav button.active {
    background: #333;
  }

  /* WHAT WE OFFER */
  .offer-section {
    background-color: var(--brand-background-secondary);
    padding: 4rem 1rem;
  }
  .offer-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
  }
  .offer-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .offer-card {
    background: var(--brand-background-primary);
    width: 280px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
  .offer-card:hover {
    transform: translateY(-4px);
  }
  .offer-card img {
    height: 50px;
    margin-bottom: 1rem;
  }
  .offer-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  .offer-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .offer-card a.btn {
    border-radius: 30px;
    font-weight: 600;
  }

  /* MEET THE TEAM */
  .team-section {
    padding: 4rem 1rem;
    background: url("/static/images/cambridge-bg.jpg") no-repeat center center/cover;
    position: relative;
    color: #fff;
  }
  .team-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1;
  }
  .team-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
  }
  .team-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
  }
  .team-bio {
    margin-bottom: 2rem;
  }
  .founder-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #fff;
  }

  /* FAQ & CONTACT */
  .faq-contact-section {
    padding: 4rem 1rem;
    background: var(--brand-background-primary);
  }
  .faq-contact-section h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 2rem;
  }
  /* FAQ Accordion */
  .accordion-button {
    font-weight: 600;
  }
  .contact-cta {
    text-align: center;
    margin-top: 3rem;
  }
  .contact-cta p {
    margin-bottom: 1rem;
  }

  /* FINAL CTA & BLOG */
  .final-cta-section {
    background-color: #f4f6f8;
    padding: 4rem 1rem;
    text-align: center;
  }
  .final-cta-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
  }
  .final-cta-section p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #555;
    line-height: 1.6;
  }
  .final-cta-section .btn-elo {
    background: #FF5A5F;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: transform 0.2s;
  }
  .final-cta-section .btn-elo:hover {
    transform: translateY(-2px);
  }
  .blog-resources {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .blog-post {
    background: #fff;
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1rem;
    text-align: left;
    transition: transform 0.2s;
  }
  .blog-post:hover {
    transform: scale(1.02);
  }
  .blog-post img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.75rem;
  }
  .blog-post h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  .blog-post p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
  }
  .blog-post a {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
  }

  /* MEDIA QUERIES */
  @media (max-width: 767px) {
    .hero-content h1 {
      font-size: 2.2rem;
    }
    .hero-content p {
      font-size: 1.0rem;
    }
    .tech-content {
      flex-direction: column;
    }
    .tech-visual img {
      margin-top: 2rem;
    }
  }