/* ============================= */
/* 1. GLOBAL STYLES & FONTS */
/* ============================= */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
}

/* ============================= */
/* 2. LAYOUT & SECTIONS */
/* ============================= */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  padding: 32px;
  padding-top: 110px;
}

.vertical-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

/* Alternating Layout for Sections */
.left,
.right {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

/* Ensure text wrapper is centered inside left/right */
.left .text-wrapper,
.right .text-wrapper {
  max-width: 500px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  gap: 24px;
}

@media (max-width: 767px) {
  .section {
    height: 100%;
  }

  .section-content {
    flex-direction: column;
    gap: 48px;
    padding-top: 0px;
    padding-right: 16px;
    padding-left: 16px;
    height: 100%;
  }

  .left .text-wrapper,
  .right .text-wrapper {
    text-align: center;
    gap: 12px;
  }

  .left,
  .right {
    width: 100%;
    max-height: 33%;
  }
}

/* ============================= */
/* 3. TYPOGRAPHY */
/* ============================= */
.big-ass-title {
  /* font-family: 'Rubik', sans-serif; */
  font-size: 64px;
  font-weight: bold;
  color: #272727;
}

.large01 {
  font-family: 'Rubik', sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #272727;
}

.large02 {
  font-size: 28px;
  font-weight: 500;
  text-align: left;
}

.large03 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}

.bodyLarge {
  font-size: 16px;
  font-weight: 400;
  color: #272727;
  opacity: 0.8;
  max-width: 500px;
}

.centered-text {
  text-align: center;
}

@media (max-width: 767px) {
  .big-ass-title {
    font-size: 50px;
  }

  .large01 {
    font-size: 28px;
  }
  
  .large02 {
    font-size: 22px;
  }
  
  .large03 {
    font-size: 18px;
  }

  .large02,
  .large03,
  .bodyLarge {
    text-align: center;
  }
}

/* ============================= */
/* 4. CTA BUTTONS */
/* ============================= */
.cta-button {
  background-color: #272727;
  color: white;
  text-align: center;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Large CTA */
.cta-large {
  font-size: 16px;
  line-height: 24px;
  padding: 8px 24px;
  min-width: 250px;
  max-width: 348px;
  text-transform: uppercase;
}

/* Medium CTA */
.cta-medium {
  font-size: 16px;
  line-height: 24px;
  padding: 4px 16px;
  min-width: 100px;
  max-width: 200px;
  text-transform: uppercase;
}

/* Small CTA */
.cta-small {
  font-size: 13px;
  line-height: 20px;
  padding: 4px 16px;
  max-width: 100px;
}

/* ============================= */
/* 5. FEATURE IMAGE */
/* ============================= */
.landing-mockup {
  width: 50%;
}

.feature-mockup {
  width: auto;
  height: 500px;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .reverse-layout {
    flex-direction: column-reverse;
  }
}

/* ============================= */
/* 6. STICKY BANNER */
/* ============================= */
.sticky-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100px;
  background-color: rgba(244, 244, 244, 0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Ensure logo is on left, login on right */
  padding: 0 16px;
}

/* Sticky Logo */
.sticky-logo img {
  height: 30px;
  max-width: 70px;
  /* Adjust logo height */
  object-fit: contain;
}

/* Login Button */
.sticky-login {
  position: relative;
  /* Remove absolute positioning */
}

@media (max-width: 1023px) {
  .sticky-login {
    display: none;
    /* Hide login button */
  }

  .sticky-banner {
    justify-content: flex-end;
    /* Move toggle switch to the right */
    height: 70px;
  }
}

/* ============================= */
/* SCROLL ANIMATIONS */
/* ============================= */

/* Initial off-screen position */
.left,
.right {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Move right items from the right */
.right {
  transform: translateX(100px);
}

/* When in view, animate to final position */
.section-content.visible .left,
.section-content.visible .right {
  opacity: 1;
  transform: translateX(0);
}

/* When out of view, reset to initial position */
.section-content:not(.visible) .left {
  opacity: 0;
  transform: translateX(-100px);
}

.section-content:not(.visible) .right {
  opacity: 0;
  transform: translateX(100px);
}

/* ============================= */
/* TOGGLE SWITCH - PURE CSS */
/* ============================= */

/* Toggle Container */
.toggle-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(244, 244, 244, 0.5);
  position: relative;
  width: 320px;
  height: 50px;
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 30px;
  padding: 4px;
}

/* Hide the Inputs */
.toggle-switch input {
  display: none;
}

/* Toggle Background (Yellow Slider) */
.toggle-slider {
  position: absolute;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background-color: #FFC107;
  border-radius: 30px;
  transition: transform 0.3s ease-in-out;
}

/* Toggle Option (Labels) */
.toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 2;
  color: #272727;
  height: 100%;
}

/* Move the Slider When Right Side is Selected */
#toggle-right:checked~.toggle-slider {
  transform: translateX(100%);
}

/* Move the Slider Back When Left Side is Selected */
#toggle-left:checked~.toggle-slider {
  transform: translateX(0);
  left: 4px;
  /* Default position */
}

@media (max-width: 1023px) {
  .toggle-switch {
    margin-top: 0px;
    margin-right: 12px;
    /* Add spacing from the right edge */
    width: 250px;
    /* Reduce toggle width */
    height: 40px;
    /* Reduce height */
  }

  .toggle-option {
    font-size: 14px;
    /* Reduce font size */
  }
}

/* ============================= */
/* FOOTER & CONTACT SECTION */
/* ============================= */

#section-five {
  background-color: #272727;
  color: white;
  text-align: center;
  padding-bottom: 16px;
}

.footer-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

/* Logo */
.footer-logo {
  flex: 1;
  width: 180px;
  margin-bottom: 16px;
}

/* Contact Info */
.contact-info {
  flex: 1;
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
  align-content: center;
}

.contact-details {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.big-bold {
  font-size: 28px;
  font-weight: bold;
}

.contact-details .big-bold:hover {
  text-decoration: underline;
}

/* Footer Bottom Section */
.footer-bottom {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  width: 100%;
  font-size: 14px;
  opacity: 0.8;
  margin-top: 32px;
}

.footer-left {
  display: flex;
  gap: 16px;
}

.footer-left a {
  color: white;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-center {
  text-align: center;
}

/* Credits */
.credits {
  font-size: 14px;
  text-align: right;
}

.credits a {
  color: #FFC107;
  text-decoration: none;
  font-weight: bold;
}

.credits a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer-wrapper a {
    text-decoration: underline;
  }
  
  .contact-details {
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-left {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .footer-center {
    margin-top: 8px;
  }

  .credits {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }
}