@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

section {
  background-color: #c2e0f2;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.mobile-home {
  background-color: #c2e0f2;
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding-top: clamp(8px, 1.5vh, 20px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* Important for flex scrolling */
  min-height: 0;
  /* Smooth scrolling on mobile */
  -webkit-overflow-scrolling: touch;
}
/* =========================================================
   MAIN CONTAINER
========================================================= */

.mobile-home > .container {
  width: 100%;
  max-width: 1100px;
  /* Don't force container to be the scroll area */
  height: auto;
  min-height: 72%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;
}

/* =========================================================
   LOGO
========================================================= */

.mobile-home .logo {
  flex: 0 0 auto;
  min-height: clamp(35px, 7vh, 75px);
  padding: 0;
}

.mobile-home .logo img {
  width: clamp(105px, 21vw, 190px);
  max-height: clamp(50px, 10.2vh, 82px);
  object-fit: contain;
}

/* =========================================================
   SUBTITLE
========================================================= */

.mobile-subtitle {
  font-size: clamp(30px, 7.1vw, 50px);
  font-weight: 400;
  font-family: "Caveat", cursive;
  color: #ed0e47;
  margin: clamp(3px, 1vh, 10px) 0;
  line-height: 1;
  text-align: center;
}

/* =========================================================
   SUBTITLE ROW
========================================================= */

.mobile-home > .container > .row {
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 0;
}

/* =========================================================
   CAROUSEL AREA
========================================================= */

.carousel-cards {
    position: relative;
    width: 100%;
    height: clamp(280px, 30vh, 420px);
    overflow: hidden;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    box-sizing: border-box;
    flex: 0 0 auto;
}

/* =========================================================
   CAROUSEL TRACK
========================================================= */

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* =========================================================
   PROFILE CARD
========================================================= */

.profile-card {
  position: absolute;
  /*
       JS controls the exact dimensions.
    */
  width: var(--card-width, 200px);
  height: var(--card-height, 250px);
  top: 50%;
  left: 50%;
  /*
       JS will center using translateX.
    */
  margin: 0;
  padding: 0;
  border: 1px solid #ed0e47;
  border-radius: clamp(10px, 1.5vw, 16px);
  background: #ffffff;
  opacity: 0.45;
  transform: translate(calc(-50% + var(--initial-x, 0px)), -50%) scale(0.82);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.22, 0.68, 0, 1.01),
    opacity 0.55s ease, box-shadow 0.55s ease;
  will-change: transform, opacity;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  box-sizing: border-box;
}

/* =========================================================
   ACTIVE / CENTER CARD
========================================================= */

.profile-card.active {
  opacity: 1;
  transform: translate(calc(-50% + var(--initial-x, 0px)), -50%) scale(1)
    rotateY(0deg);
  z-index: 10;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   CARD BODY
========================================================= */

.profile-card .card-body {
  width: 100%;
  height: 100%;
  padding: clamp(7px, 1vw, 12px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* =========================================================
   PROFILE IMAGE
========================================================= */

.profile-card .card-body > div:first-child {
  width: 100%;
  /*
       Image gets most of the card height.
    */
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: clamp(7px, 1vw, 10px);
}

.profile-card .card-body > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* =========================================================
   PROFILE INFORMATION
========================================================= */

.profile-card .card-body > div:last-child {
  flex: 0 0 auto;
  min-height: clamp(30px, 6vh, 48px);
  margin-top: clamp(4px, 0.8vh, 8px) !important;
}

/* =========================================================
   PROFILE NAME
========================================================= */

.profile-name {
  margin: 0;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  white-space: nowrap;
  font-family: "Manrope", sans-serif;
  line-height: 1.1;
}

/* =========================================================
   PROFILE ICONS
========================================================= */

.profile-icons {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 8px);
  flex-shrink: 0;
}

.profile-icons img {
  width: clamp(18px, 4vw, 28px);
  height: clamp(18px, 4vw, 28px);
  object-fit: contain;
}

/* =========================================================
   BOTTOM CONTENT AREA
========================================================= */

.mobile-home .d-flex.flex-column.align-items-center {
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  margin-top: auto;
  box-sizing: border-box;
}

/* =========================================================
   LIST
========================================================= */

.mobile-list {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
  margin-top: 10%;
  /* border: 1px solid red; */
  /* margin-bottom: clamp(80px, 14vh, 120px); */
}

/* =========================================================
   LIST ITEM
========================================================= */

.mobile-list-item {
  color: #000000;
  font-family: "Manrope", sans-serif;
  font-size: clamp(12px, 2.2vw, 17px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: clamp(4px, 0.8vh, 9px) !important;
  width: 100%;
}

/* =========================================================
   LIST ICON
========================================================= */

.list-icon-container {
  width: clamp(28px, 6vw, 42px);
  height: clamp(28px, 6vw, 42px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff;
  padding: clamp(5px, 1vw, 8px) !important;
  box-sizing: border-box;
  margin-right: 3%;
}

.list-icon-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   LIST TEXT
========================================================= */

.mobile-list-item p {
  margin: 0 !important;
  padding-right: clamp(5px, 2vw, 15px);
}

/* =========================================================
   DOWNLOAD WRAPPER
========================================================= */

.download-wrapper {
  width: 100%;
  margin-top: clamp(5px, 1.2vh, 14px);
  position: fixed;
  bottom: 2%;
  width: 100%;
  left: 50%;
  z-index: 9;
  transform: translateX(-50%);
}

/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

.download-btn {
  width: min(361px, 92%);
  min-height: clamp(44px, 7vh, 62px);
  padding: clamp(8px, 1.5vh, 14px) 20px;
  background-color: #ed0e47;
  color: #ffffff;
  border: 0;
  border-radius: clamp(13px, 2vw, 18px);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 4vw, 23px);
  line-height: 1;
  box-sizing: border-box;
}

/* =========================================================
   SMALL PHONES
   iPhone SE / 320px - 380px
========================================================= */

@media (max-width: 380px) {
  .mobile-home {
    padding-top: 4px;
  }

  .mobile-home > .container {
    padding-bottom: 6px;
  }

  .mobile-home .logo {
    min-height: 32px;
  }

   .mobile-home .logo img {
    width: 85%;
    max-height: 50px;
  }

  .mobile-subtitle {
    font-size: 30px;
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .carousel-cards {
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .mobile-list-item {
    font-size: 11.5px;
    margin-bottom: 3px !important;
  }

  .list-icon-container {
    width: 27px;
    height: 27px;
    padding: 5px !important;
  }

  /* .download-wrapper {
    margin-top: 4px;
  } */

  .download-btn {
    min-height: 42px;
    font-size: 17px;
    border-radius: 13px;
  }
}

/* =========================================================
   NORMAL PHONES
   381px - 575px
========================================================= */

@media (min-width: 381px) and (max-width: 575px) {
  .mobile-subtitle {
    font-size: clamp(30px, 10.2vw, 40px);
  }

   .mobile-home .logo img {
    width: 180px;
  }
}

/* =========================================================
   LARGE PHONES / SMALL TABLETS
========================================================= */

@media (min-width: 576px) {
  .mobile-home {
    padding-top: 15px;
  }

  .mobile-home > .container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .mobile-subtitle {
    font-size: 40px;
  }

  .mobile-list-item {
    font-size: 16px;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) {
  .mobile-home > .container {
    padding-left: 35px;
    padding-right: 35px;
    min-height: 60%;
  }

  .mobile-home .logo img {
    width: 180px;
  }

  .mobile-subtitle {
    font-size: 44px;
  }

  .mobile-list-item {
    font-size: 17px;
  }

  .download-btn {
    width: 361px;
  }
}

/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 992px) {
  .mobile-home > .container {
    padding-left: 50px;
    padding-right: 50px;
    min-height: 100%;
  }

  .mobile-subtitle {
    font-size: 46px;
  }

  .mobile-home .logo img{
    width: 200px;
  }

  .mobile-list-item {
    font-size: 17px;
  }
  .mobile-list{
    margin-bottom: 10%;
  }
}

/* =========================================================
   VERY SHORT SCREENS
   Prevent vertical overflow
========================================================= */

@media (max-height: 650px) {
  .mobile-home {
    padding-top: 3px;
  }

  .mobile-home .logo {
    min-height: 30px;
  }

  .mobile-home .logo img {
    max-height: 30px;
  }

  .mobile-subtitle {
    font-size: clamp(18px, 6.5vw, 40px);
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .mobile-list-item {
    font-size: 11px;
    margin-bottom: 2px !important;
  }

  .list-icon-container {
    width: 25px;
    height: 25px;
  }

  /* .download-wrapper {
    margin-top: 3px;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 50%;
    bottom: 2%;
    z-index: 9;
    transform: translateX(-50%);
  } */

  .download-btn {
    min-height: 38px;
    font-size: 16px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}

/* =========================================================
   TALL SCREENS
========================================================= */

@media (min-height: 850px) {
  .mobile-list-item {
    margin-bottom: clamp(5px, 1vh, 10px) !important;
  }

  /* .download-wrapper {
    margin-top: clamp(8px, 1.5vh, 16px);
  } */
}
