/* === General === */
html {
  scroll-behavior: smooth;
}
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: white;
}
/* Safety rails to prevent accidental horizontal scroll/clipping */
.background, .background_box, .background_overlay, .background_brand {
  max-width: 100%;
  overflow: hidden;
}

.nav_brand_logo {
  height: 40px; /* Match font size of original .brand_text_link */
  width: auto;
  display: block;
}


.nav_brand {
  position: absolute;
  left: 50px;
  top: 12px;
}

.brand_text_link {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #002f5f;
  text-decoration: none;
}


/* === Background Banner === */
.background {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.background_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.background_overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5; /* higher than clouds which are z-index: 1–4 */
  pointer-events: none; /* ensures it doesn’t block clicks */
}

.background_brand {
  position: absolute;
  top: 25vh;      /* Moves based on viewport height */
  left: 7vw;      /* Moves based on viewport width */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4vh;
  z-index: 6;
  pointer-events: none;
}

.background_brand img.brand_logo {
  height: 25vh;    /* Scales with viewport height */
  width: auto;
}

.background_brand img.brand_text {
  height: 10vh;     /* Scales with viewport height */
  width: auto;
}

/* === Cloud Animations === */
.cloud {
  position: absolute;
  opacity: 0.75;
  pointer-events: none;
}

/* Cloud 1: Drifts from right to left and loops */
#Cloud1 {
  width: 40%;
  top: 5%;
  left: 61.11%;
  animation: Cloud1-Drift 40s linear infinite;
}

@keyframes Cloud1-Drift {
  0% { transform: translateX(0); }
  75% { transform: translateX(-350%); }
  75.001% { transform: translateX(100%); }
  100% { transform: translateX(-20%); }
}

/* Cloud 2: Drifts from left to right, then jumps back */
#Cloud2 {
  width: 40%;
  top: 30.16%;
  left: -6.25%;
  z-index: 4;
  animation: Cloud2-Drift 40s linear infinite;
}

@keyframes Cloud2-Drift {
  0% { transform: translateX(0%); }
  25% { transform: translateX(-101%); }
  25.001% { transform: translateX(300%); }
  100% { transform: translateX(15%); }
}

/* Cloud 3: Drifts across */
#Cloud3 {
  width: 40%;
  top: 35.29%;
  left: 52.08%;
  z-index: 3;
  animation: Cloud3-Drift 40s linear infinite;
}

@keyframes Cloud3-Drift {
  0% { transform: translateX(0%); }
  60% { transform: translateX(-300%); }
  60.001% { transform: translateX(200%); }
  100% { transform: translateX(0%); }
}


/* === Nav Bar section === */
.header_section {
  position: absolute;
  top: 80px;
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: flex-end; /* Align entire header content to the right */
  z-index: 10;
}

.nav_container {
  max-width: auto;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  margin-right: 50px;
}
.nav_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 50px;
}
.nav_menu ul li a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
}

.nav_icon {
  height: 40px;
  vertical-align: middle;
  position: relative;
  top: -10px; /* adjust value to move up more */
}

.nav_menu ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: black;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav_menu ul li a:hover::after {
  transform: scaleX(1);
}

/* === Free trial button === */
.free_trial_button {
  position: absolute;
  top: 63%;    /* adjust to place on hill */
  left: 80px;  /* stay left aligned */
  z-index: 7;
}

.free_trial_button img {
  height: 70px;
  width: auto;
  display: block;
}

/* === Content Sections === */
.content_section {
  max-width: 1440px;
  margin: 100px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.content_block.row,
.content_block.row.reverse {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 70%;
  margin: 0 auto;
  gap: 30px;
}
.content_block.row.reverse {
  flex-direction: row-reverse;
}
.text_col h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #002f5f;
  margin-bottom: 12px;
}
.text_col p,
.benefit_list {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}
.benefit_list li {
  margin-bottom: 10px;
  list-style-type: none;
}
.img_col img {
  width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* === Benefits Section === */
.benefits_section {
  background: url('images/jungle.svg') center center no-repeat;
  background-size: cover;
  width: 100%;
  height: 190vh;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.benefits_container {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

/* === Supported By Section === */
.supported_by_section {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
}
.supported_by_section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}
.supported_logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}
.supported_logos img.logo {
  max-height: 40px;
  width: auto;
}

/* === Signup Section === */
signup_section {
  background-color: white;
  text-align: center;
  padding: 60px 20px;
}
.signup_container {
  max-width: 700px;
  margin: 0 auto;
}
.signup_container h2 {
  font-size: 24px;
  font-weight: 700;
  color: #002f5f;
  margin-bottom: 10px;
}
.signup_container p {
  font-size: 18px;
  color: #002f5f;
  margin-bottom: 30px;
}
.signup_form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.signup_form input[type="email"] {
  flex: 1 1 auto;
  min-width: 250px;
  padding: 12px 20px;
  border: 2px solid black;
  border-right: none;
  border-radius: 30px 0 0 30px;
  font-size: 16px;
  outline: none;
}
.signup_form button {
  background-color: black;
  color: white;
  border: 2px solid black;
  border-radius: 0 30px 30px 0;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.signup_form button:hover {
  background-color: transparent;
  color: black;
}

/* === Footer === */
.new_footer {
  background-color: #f2f2f2;
  padding: 40px 20px;
  font-family: 'Roboto', sans-serif;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin: 40px auto 0;
  max-width: 1200px;
}
.footer_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.footer_col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}
.footer_col ul {
  list-style: none;
  padding: 0;
}
.footer_col ul li {
  margin-bottom: 10px;
}
.footer_col ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.footer_col ul li a:hover {
  text-decoration: underline;
}
.footer_col img.app_badge {
  height: 40px;
  margin-bottom: 10px;
  display: block;
}
.footer_col img.logo {
  max-height: 30px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}
.footer_col img {
  max-height: 40px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}
.footer_col .social_icons {
  display: flex;
  gap: 10px;
}
.social_icons img {
  height: 24px;
  width: 24px;
}
.contact_form input,
.contact_form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}
.contact_form textarea {
  min-height: 100px;
  resize: none;
  overflow-y: hidden;
}
.contact_form button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #1da1f2;
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.contact_form button:hover {
  background-color: #0d8ae2;
}
.footer_acknowledgement {
  text-align: center;
  font-size: 13px;
  color: #444;
  margin: 30px auto 10px;
  max-width: 900px;
  line-height: 1.5;
}
.footer_legal {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 30px;
}
.footer_legal div a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
}
.footer_legal div a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 799px) {
  .content_block.row,
  .content_block.row.reverse {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }
  .text_col h3 {
    font-size: 20px;
  }
  .text_col p {
    font-size: 15px;
  }
  .img_col img {
    max-width: 100%;
  }
  .signup_form {
    flex-direction: column;
  }
  .signup_form input,
  .signup_form button {
    border-radius: 30px;
    width: 100%;
    max-width: 400px;
    margin: 5px 0;
    border: 2px solid #8a2c3c;
  }
  .signup_form input[type="email"] {
    border-right: 2px solid #8a2c3c;
  }
  .footer_grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer_legal {
    align-items: flex-end;
  }
  .header_section {
    padding: 10px 15px;
  }
  .nav_container {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 0 10px;
    margin-left: -20px;
  }
  .nav_menu ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-left: 0;
  }
  .nav_menu ul li a {
    font-size: 14px;
  }

    /* === Responsive Cloud Scaling === */
  #Cloud1 {
    width: 30%;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
  }

  #Cloud2 {
    width: 30%;
    top: 12%;
    left: 0%;
  }

  #Cloud3 {
    width: 30%;
    top: 18%;
    left: 30%;
  }

  .background_brand {
  top: 8vh;
  left: 4vw;
  gap: 2vh;
}

.background_brand img.brand_logo {
  height: 10vh;
}

.background_brand img.brand_text {
  height: 5vh;
}

    /* === Responsive Free Trial Button === */
  .free_trial_button {
    top: 60%;        /* Slightly lower for mobile layout */
    left: 20%;       /* Center horizontally */
    transform: translateX(-50%);
    z-index: 5;
  }

  .free_trial_button img {
    height: 50px;    /* Slightly smaller */
    width: auto;
  }

}

img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* --- Mobile hardening (≤430px) --- */
@media (max-width: 430px) {
  .header_section {
    position: sticky;  /* instead of fixed */
    top: 0;
    background: white; /* or transparent */
    z-index: 10;
  }
  body { padding-top: 0; }
  .nav_container {
    margin: 0;
    padding: 0 8px;
    gap: 6px;
    justify-content: flex-end;
  }
  .nav_brand { left: 8px; top: 8px; }
  .nav_brand_logo { height: 28px; }

  .nav_menu ul {
    gap: 12px;
    flex-wrap: wrap;       /* wrap instead of spilling off the edge */
    justify-content: flex-end;
  }
  .nav_icon { height: 28px; top: 0; }

  /* Center and contain clouds & CTA to prevent horizontal overflow */
  .cloud { width: 60vw !important; left: 50% !important; transform: translateX(-50%); }
  #Cloud1, #Cloud2, #Cloud3 { top: auto; } /* let your existing top rules be gentler */
  .free_trial_button {
    top: 62%;
    left: 50%;
    transform: translateX(-50%);  /* center instead of a fixed left offset */
    z-index: 7;
  }

  /* Content blocks: use full width on mobile */
  .content_block.row,
  .content_block.row.reverse {
    width: 100%;           /* override the desktop 70% */
    padding: 0 12px;
  }

  /* Benefits section: avoid 190vh on phones */
  .benefits_section {
    height: auto;          /* was 190vh */
    padding: 48px 16px;
    background-size: cover;
  }

  /* Make all images fluid globally (prevents “capped” sides) */
  img { max-width: 100%; height: auto; }
}
