.roadmap {
  position: relative;
  width: 100%;
  max-width: 1080px; /* flexible max width */
  margin: 100px auto;
  padding: 0 20px;   /* small horizontal padding */
}

/* Timeline */
.timeline {
  position: relative;
  width: 100%;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: left 0.3s ease;
}

/* Each row */
.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 80px 0;
  position: relative;
  flex-wrap: wrap; /* allows stacking */
}

/* Each side */
.timeline-item {
  width: 45%;
  padding: 20px;
  box-sizing: border-box;
}

/* Dot */
.timeline-row .dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #E2F919;
  border-radius: 50%;
  z-index: 2;
}

/* Titles + text */
.title {
  font-family: 'Mansfield', sans-serif;
  font-size: 30px;
  color: #E2F919;
  margin-bottom: 10px;
}
.desc {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #9E9E9E;
}

/* Video card */
 .video-card {
  width: 100%;
  max-width: 300px; 
  height: 200px;
  background: #222;
  border-radius: 12px;
   display: grid;
  place-items: center; 
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto; 
    position: relative;
}
@media (min-width: 769px) {
  .video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(226, 249, 25, 0.6);
  }
}
/* .play-icon {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: white;
} */
 @media (max-width: 768px) {
  .video-card {
    max-width: 100%; 
    aspect-ratio: 16 / 9;
  }

  .play-icon {
    width: 60px; /* make icon slightly larger */
    height: 60px;
  }
}

/* Responsive */
/* Responsive timeline (stacked) */
@media (max-width: 900px) {
  .timeline-row {
    flex-direction: column;
    margin: 60px 0;
    position: relative;
  }

  .timeline-item {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }

  /* Dot positioning: place it before each row */
  .timeline-row .dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    margin: 0;
  }

  /* Vertical line spans full container height */
  .timeline::before {
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
  }

  /* Add spacing above and below each row for vertical alignment */
  .timeline-row + .timeline-row {
    margin-top: 100px;
  }

  /* Video card and text alignment */
  .video-card {
    max-width: 300px;
    margin: 20px auto;
  }
}



.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  box-sizing: border-box;
}
.features-header {
  text-align: center;
  padding: 0 5%;
}

.features-header p {
  font-size: 18px;
  line-height: 1.7;
  color: #ccc;
  margin: 0 auto 60px auto;
  max-width: min(1000px, 90%);
}

.features-header h2 {
  font-family: 'Mansfield', serif;
      font-weight: 600;
      font-size: 36px;
      background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.19) 93%, rgba(255, 255, 255, 0) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 20px;
}

/* .features-header p {
  font-size: 18px;
  line-height: 28px;
  color: #ccc;
  margin-bottom: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
} */

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-items: center;
}

/* Feature cards */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 25px;
  gap: 25px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-content {
  max-width: 600px;
}


.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  background: #E2F919;
  color: #000;
}

/* .feature-card.highlight {
  background: #E2F919;
  color: #000;
} */

/* Icon wrapper */
.icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 30px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card.highlight .icon-wrap {
  background: rgba(0,0,0,0.05);
}

.icon-wrap i {
  font-size: 40px;
  color: inherit;
}

/* Feature content */
.feature-content h3 {
  font-size: 22px;
  margin: 0;
}

.feature-content hr {
  border: 0;
  height: 1px;
  width: 120px;
  background: currentColor;
  margin: 12px 0;
}

.feature-content p {
  
  color: inherit;
  font-family: 'Lato', sans-serif;
  font-weight: 300;           /* Light weight */
  font-style: normal;         /* "Light" in Figma = font-weight:300, not font-style */
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;          /* 0% = no spacing */
  /* text-transform: capitalize;  */
  margin-bottom: 30px;
  text-align: left;
}

/* Tablets */
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .feature-card {
    padding: 25px 20px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .features-header h2 {
    font-size: 28px;
  }

  .features-header p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 40px;
  }

  .icon-wrap {
    width: 60px;
    height: 60px;
  }

  .icon-wrap i {
    font-size: 30px;
  }

  .feature-content hr {
    width: 80px;
  }

  .feature-content h3 {
    font-size: 18px;
  }

  .feature-content p {
    font-size: 14px;
    line-height: 22px;
  }
}


.logo-showcase {
  position: relative;
  width: 100%;
  max-width: 1249px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

.logo-heading h2 {
  font-family: 'Mansfield', serif;
      font-weight: 600;
      font-size: 36px;
      background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.19) 93%, rgba(255, 255, 255, 0) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 20px;
}

.logo-heading p {
  font-size: 16px;
  color: #777;
  margin-bottom: 40px;
}

/* Desktop layout */
.logo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  overflow: hidden; /* hide extra content for smooth scroll on mobile */
}

.logo-item {
  flex: 0 1 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-item img {
  width: auto;
  max-width: 100%;
  height: 60px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: 0.3s;
}

.logo-item img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}
/* Small screen styles */
@media (max-width: 768px) {
  .timeline::before, 
  .timeline-row .dot {
    display: none; /* hide line + dot */
  }

  .timeline-row {
    flex-direction: column;
    margin: 40px 0;
    text-align: center;
  }

  .timeline-item {
    width: 100%;
    padding: 10px 0;
  }

  /* Order: text first, video second */
  .timeline-item.text {
    order: 1;
  }

  .timeline-item.video {
    order: 2;
    margin-top: 20px;
  }

  .video-card {
    max-width: 100%;
    height: 200px;
  }
}

/* Responsive carousel for tablets and mobile */
@media (max-width: 900px) {
  .logo-container {
    display: flex;
    flex-wrap: nowrap; /* no wrap, horizontal scroll */
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .logo-item {
    flex: 0 0 auto; /* keep original width, don't shrink */
  }

  .logo-heading h2 {
    font-size: 24px;
  }

  .logo-heading p {
    font-size: 14px;
    margin-bottom: 30px;
  }
}

@media (max-width: 600px) {
  .logo-item {
    flex: 0 0 auto;
    width: 80px; /* smaller logos for phones */
  }

  .logo-heading h2 {
    font-size: 20px;
  }

  .logo-heading p {
    font-size: 13px;
    margin-bottom: 20px;
  }
}

/* Optional: hide scrollbar for a cleaner look */
.logo-container::-webkit-scrollbar {
  display: none;
}
.logo-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.graph-container {
  max-width: 938px;
  margin: 50px auto;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(153,153,153,0.08));
  backdrop-filter: blur(60px);
  border-radius: 20px;
}
.graph-container > div {
  display: flex;
  flex-wrap: wrap; /* allow wrapping on small screens */
  align-items: center;
  justify-content: center;
  gap: 10px; /* spacing between filters */
  margin-bottom: 20px;
}

/* Label styling for consistency */
.graph-container label {
  color: #E3F919;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
*,
*::before,
*::after { box-sizing: border-box; }

select {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #E8E8E8;
  font-size: 14px;
  appearance: none;   /* remove default arrow */
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

select:hover {
  border-color: #E2F919; /* neon border on hover */
}

select:focus {
  border-color: #E2F919;
  box-shadow: 0 0 8px rgba(226, 249, 25, 0.4);
}

/* Optional: custom arrow icon */
select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px; /* make space for arrow */
}
select option {
  background: #202020;
  color: #fff;
  padding: 12px;
  font-family: 'Poppins', sans-serif;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.filter-label {
  color: #E3F919;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile fix: stack vertically */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-label {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 420px;
  }

  .filter-label select {
    width: 100%;
  }

  /* .graph-container canvas {
    width: 100%;
    height: auto;
    max-width: 420px;
    display: block;
    margin: 0 auto;
  } */
}


/* --- Mobile: compact stacked order (h3 → video → p) --- */
@media (max-width: 768px) {
  /* Stack all content vertically */
  .timeline-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px 0;
  }

  /* Make text and video same width */
  .timeline-item.text,
  .timeline-item.video {
    width: 90%;
    max-width: 320px;
  }

  /* Hide paragraph initially */
  .timeline-item.text p {
    display: none;
  }

  /* Clone paragraph position visually after video using pseudo-element */
  .timeline-item.video::after {
    content: attr(data-desc);
    display: block;
    color: #9E9E9E;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 22px;
    margin-top: 8px;
    text-align: center;
  }

  /* Compact spacing */
  .timeline-item.text h3 {
    margin-bottom: 8px;
    font-size: 22px;
  }

  /* .timeline-item.video {
    margin: 8px 0;
  } */

  .video-card {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }

  .video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
.video-card img,
  .video-card .play-icon {
    transition: opacity 0.3s ease;
  }

  .video-card:last-child {
    display: grid;
  }
  /* 1. Ensure the modal overlay itself is hidden on small screens */
    #videoModal {
        display: none !important; /* Hide the modal container completely */
    }

    /* 2. Make the card container ready to hold the video */
    .timeline-item.video {
        position: relative; /* Needed for absolute positioning if you change elements */
        overflow: hidden;
    }

    /* 3. Style the video player when it's placed inside the card for mobile */
    /* .video-card .mobile-inline-video {
        width: 100%;
        height: auto;
        display: block;
    } */

    /* 4. Hide the thumbnail and play icon once the video is playing */
    .mobile-inline-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute; /* keep layout stable */
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
}

  