/*
 * ROADMAP PAGE STYLES
 * Page: /roadmap/
 */

/* Hero section */

.hero-section {
  font-weight: 600;
  text-align: center;
  padding-top: 200px;
}

.hero-section h1,
.hero-section p {
  max-width: 1000px;
  margin: 0 auto 24px;
}

.hero-section p {
  font-size: 20px;
}

.contact-form-section .hero-section {
  text-align: left;
  padding-top: 200px;
  margin-bottom: 40px;
}

.contact-form-section .hero-section h1 {
  text-align: left;
  margin: 0 0 16px 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 1px;
  color: rgba(204, 229, 255, 0.95);
  max-width: 800px;
}

.contact-form-section .hero-section .hero-description {
  text-align: left;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1px;
  margin: 0;
  max-width: 800px;
  color: rgba(204, 229, 255, 0.95);
}

/* Override main padding for roadmap */
#main #roadmap {
  padding-top: 0 !important;
}

#roadmap {
  display: flex;
  justify-content: space-between;
  min-height: 800px;
  contain: layout;
}

#roadmap .left-roadmap,
#roadmap .right-roadmap,
#roadmap .center-roadmap {
  flex-basis: 30%;
  padding: 10px;
}

#roadmap .left-roadmap,
#roadmap .right-roadmap {
  width: 600px;
}

/* Shared roadmap header styles (desktop & mobile) */
.roadmap-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light-blue);
  font-weight: 500;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1;
}

.roadmap-header .date,
.roadmap-header h2 {
  color: var(--text-light-blue);
  font-weight: 500;
  margin: 0;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1;
}

.roadmap-header .done {
  background-color: #5cdb95;
  border-radius: 50px;
  padding: 5px 12px;
  color: #05386b;
  font-weight: 600;
}

/* Desktop roadmap header */
#roadmap .roadmap-header {
  margin-left: -8px;
  margin-bottom: 15px;
  font-size: 24px;
}

#roadmap .roadmap-header .date,
#roadmap .roadmap-header h2 {
  font-size: 24px;
}

#roadmap .roadmap-header .done {
  font-size: 14px;
}

#roadmap article {
  margin-bottom: 40px;
  width: 100%;
}

#roadmap .descr,
.roadmap-mobile .descr {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

#roadmap .descr li,
.roadmap-mobile .descr li {
  background: #002345;
  border: 1px solid #05386B;
  border-radius: 12px;
  padding: 16px 24px;
  color: var(--text-light-blue);
  font-size: 16px;
  line-height: 1.2;
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-family: "Source Sans Pro", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
}

@media (hover: hover) {
  #roadmap .descr li:hover,
  .roadmap-mobile .descr li:hover {
    border-color: rgba(0, 221, 141, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 36px rgba(0, 221, 141, 0.1);
  }
}

/* Green button indicator */
#roadmap .descr li::before,
.roadmap-mobile .descr li::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.roadmap-mobile {
  display: none;
  min-height: 1200px;
  contain: layout;
}

#roadmap .right-roadmap {
  padding-top: 6em;
}
#roadmap .center-roadmap {
  position: relative;
}
#roadmap .center-roadmap #roadmap-flag-1 {
  position: absolute;
  top: -10px;
  left: 0;
  transform: scale(0.75);
}
#roadmap .center-roadmap #roadmap-flag-2 {
  position: absolute;
  top: 50px;
  right: 0;
  transform: scale(0.75);
}
#roadmap .center-roadmap #roadmap-flag-3 {
  position: absolute;
  top: 240px;
  left: 0;
  transform: scale(0.75);
}
#roadmap .center-roadmap #roadmap-flag-4 {
  position: absolute;
  top: 420px;
  right: 0;
  transform: scale(0.75);
}
#roadmap .center-roadmap #roadmap-flag-5 {
  position: absolute;
  top: 600px;
  left: 0;
  transform: scale(0.75);
}
#roadmap .center-roadmap #roadmap-flag-6 {
  position: absolute;
  top: 830px;
  right: 0;
  transform: scale(0.75);
}
#roadmap .center-roadmap #roadmap-flag-7 {
  position: absolute;
  top: 1050px;
  left: 0;
  transform: scale(0.75);
}
#roadmap .center-roadmap #roadmap-flag-8 {
  position: absolute;
  top: 1180px;
  right: 0;
  transform: scale(0.75);
}
#roadmap .center-roadmap #lines-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Mobile roadmap */
@media (max-width: 1023px) {
  .hero-section {
    padding-top: 80px;
  }

  .contact-form-section .hero-section {
    padding-top: 32px !important;
    margin-bottom: 24px;
  }

  .roadmap-desktop {
    display: none !important;
  }

  .roadmap-mobile {
    display: block;
    width: 105%;
    padding: 0;
    margin: 32px 0;
    color: var(--text-blue);
  }

  .roadmap-mobile-container {
    position: relative;
    width: 100%;
  }

  #roadmap-mobile article {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
  }

  /* Mobile roadmap header overrides */
  .roadmap-mobile .roadmap-header {
    flex-wrap: wrap;
    font-size: 20px;
    padding-bottom: 0.5em;
  }

  .roadmap-mobile .roadmap-header .date,
  .roadmap-mobile .roadmap-header h2 {
    font-size: 20px;
  }

  .roadmap-mobile .roadmap-header .done {
    font-size: 12px;
  }

  #lines-canvas-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .roadmap-flag {
    transform: scale(0.75);
  }
}
