/*animations for title part*/
@keyframes homeFadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes dividerScale {
  from {
    transform: rotate(45deg) scale(0);
    opacity: 0;
  }
  to {
    transform: rotate(45deg) scale(1);
    opacity: 1;
  }
}
@keyframes dividerBeforeExtend {
  to {
    transform: rotate(135deg) translateY(-50%) scale(1, 1);
  }
}
@keyframes dividerAfterExtend {
  to {
    transform: translateX(100%) rotate(-45deg) translateY(-50%) scale(1, 1);
  }
}

/*title part*/
#homepage-title {
  position: relative;
  width: 100%;
  padding-bottom: 18vw;
  background: linear-gradient(rgba(var(--dark-bg-rgb), 0.9), rgba(var(--dark-bg-rgb), 0.5)), url('../media/homepage-launch-background.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: 25% 5%;
  color: white;
}
#homepage-title::before {
  display: none;
}
#homepage-title h1 {
  position: relative;
  padding-bottom: 0;
  font-size: 4em;
  margin-bottom: 0.5em;
  opacity: 0;
  transform: translateY(120px);
  animation: 1.5s homeFadeUp ease forwards;
}
#homepage-title #subtitle {
  margin: 2em auto;
  margin-top: 4.5em;
  font-size: 1.25em;
  max-width: 25em;
  opacity: 0;
  transform: translateY(50px);
  animation: 1s 0.75s homeFadeUp ease forwards;
}
#homepage-title .divider {
  transform: rotate(45deg) scale(0);
  animation: 0.75s 0.25s dividerScale ease forwards;
}
#homepage-title .divider::before {
  transform: rotate(135deg) translateY(-50%) scale(0, 1);
  animation: 1s 0.5s dividerBeforeExtend ease forwards;
}
#homepage-title .divider::after {
  transform: translateX(100%) rotate(-45deg) translateY(-50%) scale(0, 1);
  animation: 1s 0.5s dividerAfterExtend ease forwards;
}
@media (max-width: 40em) {
  #homepage-title {
    padding-bottom: 25vw;
  }
  #homepage-title h1 {
    font-size: 3.5em;
    margin-bottom: 0.57em;
  }
}

/*second section styling*/
#homepage-title + div::before {
  display: none;
}
#homepage-title + div { /*for the stages div that'll be separated below*/
  padding-bottom: 0;
  padding-top: 0;
}
@media (min-width: 45em) {
  #homepage-title + div > h2 {
    margin-top: 1em;
  }
}
@media (min-width: 60em) {
  #homepage-title + div > h2 {
    margin-top: 0.5em;
  }
}

/*stats styling*/
#stats-cont {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 1em;
}
.stat {
  position: relative;
  text-align: center;
}
.stat:nth-child(2n + 1)::after {
  content: "";
  position: absolute;
  right: -0.5em;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--light-bg);
}
.stat:first-child::before, .stat:nth-child(2)::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.5em;
  width: 100%;
  height: 2px;
  background: var(--light-bg);
}
.stat-icon .material-icons {
  font-size: 2.5em;
  text-shadow: 0em 5px var(--shadow);
}
.stat-number {
  margin: 0;
  margin-top: 0.3em;
  font-weight: bold;
  font-size: 1.25em;
  font-family: "Exo 2", sans-serif;
  display: inline-block;
}
.stat-number + p {
  margin: 0 auto;
  margin-bottom: 1em;
  max-width: 10em;
}
@media (min-width: 50em){ /*flex styling on larger screens*/
  #stats-cont {
    display: flex;
    gap: 0;
  }
  .stat:first-child::before, .stat:nth-child(2)::before {
    display: none;
  }
  .stat:nth-child(2n + 1)::after {
    display: none;
  }
  .stat {
    flex: 1 1 0;
    padding: 1em 0.5em;
  }
}
@media (min-width: 65em){
  .stat {
    padding-left: 1em;
    padding-right: 1em;
  }
  .stat:first-child::before, .stat:nth-child(2)::before {
    display: none;
  }
  .stat::after, .stat:nth-child(2n + 1)::after {
    content: "";
    position: absolute;
    display: block;
    right: -1px;
    top: 50%;
    width: 2px;
    height: 80%;
    background: var(--light-bg);
    transform: translateY(-50%);
  }
  .stat:last-child::after {
    display: none;
  }
}

/*trip stages styling*/
#stages-cont {
  padding-top: 0;
}
.stage {
  display: flex;
  align-items: flex-start;
  margin: 0.5em 0;
}
.stage .number {
  position: relative;
  font-size: 1.25em;
  height: 2em;
  flex: 0 0 2em;
  font-weight: bold;
  color: white;
  margin-right: 1.25em;
}
.stage .number span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.stage .number::before, .stage .number::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2em;
  height: 2em;
  background: var(--item-gradient);
  box-shadow: 0.5em 0.5em var(--shadow);
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 0;
}
.stage .number::after {
  width: 1.7em;
  height: 1.7em;
  background: transparent;
  box-shadow: none;
  border: 1px solid white;
}
.stage .stage-title {
  font-size: 1.25em;
  margin-top: 0.25em;
  margin-bottom: 0;
  display: inline-block;
  font-weight: bold;
  font-family: "Exo 2", sans-serif;
}
.stage .stage-title + p {
  margin-top: 0.25em;
}
.stage-img {
  display: none;
}

/*mobile styling*/
@media (max-width: 50em) {
  .stage {
    position: relative;
    flex-direction: column;
    text-align: center;
    margin: 2em 0;
  }
  .stage:last-child {
    margin-bottom: 0;
  }
  .stage::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--light-bg);
  }
  .stage:last-child::after {
    display: none;
  }
  .stage-title + p {
    text-align: justify;
  }
  .stage .number {
    margin: 0.75em auto;
  }
  .stage .number::before {
    box-shadow: 0.35em 0.35em var(--shadow);
  }
  .stage-img {
    display: block;
    margin: 0 auto;
    margin-bottom: 1.5em;
    max-width: 15em;
    width: 100%;
  }
  #stages-img-cont { /*hide larger image*/
    display: none;
  }
}

/*slightly larger styling*/
@media (max-width: 65em) {
  #stages-img-cont {
    position: relative;
    left: 50%;
    width: 110%;
    transform: translateX(-50%);
  }
  #stages-img-cont picture > * {
    width: 100%;
  }
}

/*largest screen styling*/
@media (min-width: 65em) {
  #stages-cont {
    padding-right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #trip-stages-cont {
    margin-right: 2em;
    max-width: 55em;
  }
  #stages-img-cont {
    flex: 0 0 45%;
    max-width: 22em;
    width: 100%;
  }
  #stages-img-cont picture > * {
    width: 100%;
  }
}

/*trips styling*/
#trips-cont {
  margin: 2em 0;
}
.trip {
  position: relative;
  padding: 1em 1.25em;
  padding: 1em calc(0.75em + 4%);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
  margin: 1.5em 0;
  transition: 0.25s ease;
}
.trip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--item-gradient);
}
.trip .diamond-img {
  width: 10em;
  height: 10em;
  margin: 0 auto;
}
.trip .diamond-img img {
  transition: 0.5s ease;
}
.trip .trip-title {
  display: inline-block;
  font-weight: bold;
  font-family: "Exo 2", sans-serif;
  text-shadow: none;
  margin-top: 1.25em;
  margin-bottom: 0;
  font-size: 1.1em;
}
.trip .divider {
  opacity: 0.25;
}
.trip .duration {
  margin: 0.5em 0;
  color: var(--blue);
  opacity: 0.75;
}
.trip .duration .material-icons-outlined {
  font-size: 1.25em;
  line-height: inherit;
  vertical-align: middle;
  transform: translateY(-0.1em);
  margin-right: 0.3em;
}
.trip .duration ~ p {
  margin-top: 2em;
}
@media (min-width: 30em) and (max-width: 40em) {
  .trip {
    padding-left: 10%;
    padding-right: 10%;
  }
}
@media (min-width: 40em) {
  #trips-cont {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
    gap: 1em;
  }
  .trip {
    margin: 0;
  }
}
.trip:hover {
  background: rgba(255, 255, 255, 1);
}
.trip:hover .diamond-img > img {
  transform: rotate(-45deg) scale(1.75);
}
@media (max-width: 50em){
  #trips-cont ~ .center {
    padding-bottom: 1.5em;
  }
}
/*REMOVE AFTER TRIPS PAGE IS ADDED (needed for slant to work w/o button)*/
#trips-cont ~ .center {
  padding-bottom: 2em;
}

/*tech styling*/
#carousel-cont { /*carousel styling*/
  margin: 1.5em -0.5em; /*-0.5em to offset margins on carousel content*/
  margin-bottom: 2em;
  position: relative;
}
.carousel-arrows {
  position: absolute;
  top: 0.25em;
  right: 0.5em;
  font-size: 1.25em;
  transition: 0.2s ease;
}
.carousel-arrows span {
  display: block;
}
.carousel-arrows#back {
  right: 1.25em;
  transform: translateX(-100%);
}
.carousel-arrows.disabled {
  opacity: 0.25;
  pointer-events: none;
}
.carousel-arrows::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25em;
  height: 1.25em;
  border: 1px solid white;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transition: inherit;
}
.carousel-arrows:hover {
  cursor: pointer;
  opacity: 1;
}
.carousel-arrows:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}
.carousel-arrows.disabled:hover { /*to apply disabled styling even on hover when cursor is still over it*/
  cursor: default;
  opacity: 0.25;
}
.carousel-arrows.disabled:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
}
#tech-overflow-cont {
  width: 100%;
  overflow: hidden;
}
#tech-cont {
  position: relative;
  width: 400%; /*change depending on # of slides*/
  display: flex;
  align-items: flex-start;
  transition: 0.25s ease;
}
.tech {
  flex: 1 1 0; /*equal sizing*/
  margin: 0 0.5em;
}
.tech-title {
  font-size: 1.25em;
  font-family: "Exo 2", sans-serif;
  margin: 0.25em 0;
}
.tech .description {
  margin-top: 0.25em;
  margin-bottom: 1.5em;
}
.tech-table {
  display: table;
  width: 100%;
}
.tech-table .row {
  display: table-row;
}
.tech-table .row p {
  display: table-cell;
  padding: 0.5em 0;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}
.tech-table .row .row-title {
  font-weight: bold;
}
.tech-table .row p:last-child {
  padding-left: 0.5em;
}
.tech-table .row:last-child p {
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}
.tech-img-cont {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  margin-top: 1.5em;
  overflow: hidden;
}
.tech-img-cont > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
}
@media (min-width: 880px) { /*flex styling with image on larger screens*/
  /*styling carousel*/
  .carousel-arrows { /*updating carousel arrow styling*/
    top: 50%;
    font-size: 1.75em;
    padding: 0 0.25em;
    opacity: 0.8;
  }
  .carousel-arrows#back {
    right: auto;
    left: -0.5em;
    transform: translateX(-100%);
  }
  .carousel-arrows#forward {
    right: -0.5em;
    transform: translateX(100%);
  }
  .carousel-arrows::before {
    width: 1em;
    height: 1em;
  }
  #carousel-dot-cont { /*styling dots that only appear on larger screens*/
    text-align: center;
  }
  .carousel-dot {
    width: 0.75em;
    height: 0.75em;
    display: inline-block;
    margin: 0 0.1em;
    border-radius: 50%;
    border: 1px solid white;
    transition: 0.2s ease;
  }
  .carousel-dot.active, .carousel-dot.active:hover {
    background: white;
  }
  .carousel-dot:hover {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
  }
  #tech-cont { 
    transition-duration: 0.5s;
  }

  /*styling content*/
  .tech {
    display: flex;
    align-items: stretch;
  }
  .tech .tech-description-cont {
    flex: 1 1 50%;
    margin-right: 1.5em;
  }
  .tech .tech-img-cont {
    flex: 0 0 30%;
    min-width: 12.5em;
    max-width: 18em;
    height: auto;
    padding-bottom: 0;
    margin-top: 0;
  }
  .tech .tech-img-cont > img {
    position: relative;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transform: none;
  }
}

/*testimonial styling*/
.testimonial {
  max-width: 30em;
  margin: 2em auto;
}
.testimonial:last-of-type {
  padding-bottom: 2em;
  margin-bottom: 0;
}
.testimonial-text {
  position: relative;
  margin-top: 0;
  margin-bottom: 0.5em;
  padding-bottom: 1em;
  border-bottom: 2px solid var(--light-bg);
}
.testimonial-text::before {
  content: "\201C";
  position: absolute;
  font-size: 6em;
  color: var(--light-bg);
  top: -0.5em;
  left: -0.5em;
}
.testimonial-img-cont {
  display: flex;
  align-items: center;
  padding-bottom: 1.5em;
}
.testimonial-img-cont .diamond-img {
  flex: 0 0 5em;
  width: 5em;
  height: 5em;
  margin-right: 1.5em;
}
.testimonial-person p {
  margin: 0;
}
.testimonial-person .name {
  font-weight: bold;
}
@media (max-width: 40em) { /*adjustments for smaller screens*/
  .testimonial {
    padding: 0 1em;
  }
  .testimonial-text::before {
    font-size: 5em;
  }
  .testimonial-img-cont .diamond-img {
    flex-basis: 4em;
    width: 4em;
    height: 4em;
    margin-right: 1em;
  }
}
@media (min-width: 55em) {
  .testimonial {
    display: flex;
    align-items: stretch;
    max-width: 45em;
    margin-top: 2.5em;
    margin-bottom: 2.5em;
  }
  .testimonial:last-of-type {
    padding-bottom: 0.5em;
  }
  .testimonial-text {
    margin-right: 2em;
  }
  .testimonial-img-cont {
    flex: 0 0 10em;
    display: block;
    text-align: center;
    padding-bottom: 0;
  }
  .testimonial-img-cont .diamond-img {
    margin: 0 auto;
    margin-bottom: 1.5em;
  }
}

/*cta*/
#cta {
  background: linear-gradient(rgba(var(--header-gradient-rgb), 0.6), rgba(var(--dark-bg-rgb), 0.8)), url("../media/homepage-stars.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding-bottom: 7.5em;
}
#cta h2 {
  margin-top: 2.5em;
  margin-bottom: 1em;
}
#cta .styled-button {
  margin: 0.5em 1.25em;
}
@media (max-width: 30em){
  #cta .styled-button {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 15em;
  }
}