

header{
    height: 100svh;
    background: var(--soft-gradient);
}

.btn-primary{
  background-color: var( --gold-yellow);
  border-radius: 2rem;
  padding: .6em 1.2em;
  color: var(--dark-blue);
  margin-top: 4em;
}

section{
  padding: 3.5em 3em;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem); /* Between 32px and 48px */
}

.container{
   max-width: 1500px;
   margin: 0 auto;
}

header nav{
  display:flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5em;
}

.disclaimer-container{
  background: var(--stone-white);
  padding: 1em 1.5em;
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 1em;
}

.nav-menu-container{
  display: flex;
  flex: 1;
}

header nav ul{
  list-style: none;
}
.nav-links{
  margin: 0 auto;
}


.nav-btn-container li{
  margin: 0 .3em;
  border-radius: 2rem;
}
.nav-btn-container li a{
  padding-inline:  1.5em;
  transition: all 300ms ease;
}

.nav-btn-container li a:hover{
  color: var(--white);
  opacity: .8;
}
.nav-btn-container li a:active{
   opacity: 1;
}
.nav-btn-container li a svg{
    transition: all 300ms ease;
}

.nav-btn-container li a:hover svg{
  transform: scale(1.2);
}

.into-content-container{
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
 overflow: auto;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.into-content-container::-webkit-scrollbar {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* Internet Explorer 10+ */
  overflow: auto;                 /* Enable scrolling */
}

.into-content-container::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari */
}

.side-bar-btn{
 display: none;
}
.side-bar-btn svg{
  fill: var(--dark-blue);
}


.hide-side-bar-icon{
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: all 250ms ease;
}

header button{
  border-radius: 2rem;
  padding: 0;

}

header button a{
   border-radius: inherit;
   font-size: 1rem;
   padding: .8em 1.2em;
}

header button a:hover,
header button:hover{
  color: var(--white);
  transform: scale(1.01);
}


/* WHY choose us styles */

.why-choose-us-content-container{
  padding: 6em 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
}

.why-choose-us-content-container >*{
  max-width:350px;
  text-align: center;
 margin: 0 1em;
}

.why-choose-us-content-container span{
  font-weight: bolder;
  font-size: 1.5rem;
   margin: 1em 0;
   display: grid;
}

.why-choose-us-section{
  position: relative;
  overflow: hidden;
}

.why-choose-us-male-illustration-container{
  position: absolute;
  width: 250px;
  top: 0;
  left: -2rem;
   width:250px;
}

.why-choose-us-female-illustration-container{
  position: absolute;
  width: 250px;
  bottom: -2rem;
  right: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.slide-in-left, .slide-in-right {
  opacity: 0;
  transition: all 0.8s ease;
}

.slide-in-left {
  transform: translateX(-50px);
}

.slide-in-right {
  transform: translateX(50px);
}

.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}



/* steps to purchase a house space */
.how-it-works {
  padding: 4rem 1rem;
  background: #f9f9f9;
  text-align: center;
}

.how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1E90FF;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #1E90FF;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

/* Step layout */
.step {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.step.right {
  left: 50%;
  text-align: left;
}

.step.left {
  left: 0;
  text-align: right;
}

/* Glow Dot */
.step::before {
  content: '';
  position: absolute;
  top: 1rem;
  width: 20px;
  height: 20px;
  background-color: #1E90FF;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 rgba(30,144,255, 0);
  transition: box-shadow 0.4s ease;
}

.step.right::before {
  left: -10px;
}

.step.left::before {
  right: -10px;
}

/* Animate In */
.step.in-view {
  opacity: 1;
  transform: translateY(0);
}

.step.in-view::before {
  box-shadow: 0 0 10px rgba(30,144,255, 0.8);
}

/* Stagger with nth-child */
.step:nth-child(1) {
  transition-delay: 0s;
}
.step:nth-child(2) {
  transition-delay: 0.3s;
}
.step:nth-child(3) {
  transition-delay: 0.6s;
}




/* testimonial section styling  comment section*/
.comment-card-container{
   display: flex;
   justify-content: space-evenly;
   padding: 4em 0;
   flex-wrap: wrap;
}



.comment-card-container .comment-card{
  position: relative;
  max-width: 300px;
  padding: 1em 1.5em;
  padding-top: 3em;
  margin: 2.5em 1em;/*its so hign because when it wraps i dont want it toughing each other*/
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: var(--white);
}

.comment-card::before{
  content: '';
  position: absolute;
  width: 50%;
  height: 50%;
    z-index: -1;
  top: -.5em;
  left: -.5em;
  border-radius: inherit;
  background-color: var(--dark-blue);
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);

  transform: translate(30px, 30px);
  opacity: 0;
  transition: all 2.5s ease-in-out;
}

.comment-card::after{
  content: '';
  position: absolute;
  width: 50%;
  height: 50%;
  z-index: -1;
  bottom: -.5em;
  right: -.5em;
  background-color: var(--dark-blue);
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);

   transform: translate(-30px, -30px);
  opacity: 0;
  transition: all 2.5s ease-in-out;
}

.comment-card.in-view::before,
.comment-card.in-view::after {
  transform: translate(0, 0);
  opacity: 1;
}

.comment-card hr{
  margin: 1.5em 0;
}

.comment-card figure{
  width: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--light-grey);
  position: absolute;
  top: -3rem;
  right: 1em;

    transform: translateX(-50px); /* Push image to the left */
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* When card is in view, animate image into place */
.comment-card.in-view figure {
  transform: translateX(0); /* Move image to original position */
  opacity: 1;
}

.student-comment{
  transform: translateY(50px);
  opacity: 0;
  transition: all 2s ease;
}

.comment-card.in-view .student-comment{
  transform: translateY(0);
  opacity: 1;
}

.rating-container{
  display: flex;
  align-items: center;
}

.rating-container >*{
  width: 10px;
  background-color: var( --teal-green);
  aspect-ratio: 1;
  margin: .2em;
  border-radius: 50%;}
  


  /* FAQ SECTION STYLES */
  .faq-section {
  padding: 4em 2em;
  background-color: var(--lighter-blue); /* or a soft white if you prefer */
  color: var(--dark-blue);
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.faq-subtext {
  font-size: 1.1rem;
  margin-bottom: 2em;
  color: #444;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 1.5em 1em;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 1.5em;

  opacity: 0;
  transform: translateX(-50px); /* Default: slide in from left */
  transition: all 0.4s ease-out;
}

/* Slide from right for alternating items */
.faq-item.slide-in-right {
  transform: translateX(50px);
}

/* When item is in view */
.faq-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
  color: var(--primary-blue);
}

.faq-item p {
  font-size: 1rem;
  color: #333;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ask-a-question-btn{
  width: 70px;
  aspect-ratio: 1;
  font-size: 1.5rem;
  border-radius: 50%;
   animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    background-color: var(--dark-blue);
    animation-timing-function: ease-in;
  }
  30% {
    transform: translateY(-10px);
    background-color: var(--light-blue);
    animation-timing-function: ease-out;
  }
  50% {
    transform: translateY(0);
    animation-timing-function: ease-in;
  }
  70% {
    transform: translateY(-5px);
    background-color: var(--lighter-blue);
    color: var(--dark-blue);
    animation-timing-function: ease-out;
  }
}

/* CONTACT US STYLES */
.contact-us-illustration-container{
  width: 350px;
  height: 350px;
  border-radius: 50%;
}

.contact-section {
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.contact-section form{
   width: 50%;
   display: flex;
   flex-direction: column;
   padding: 4em ;
}

.contact-section form input{
  margin: 1em;
  padding: .6em 1.5em;
  border: none;
  border-bottom: 1px solid var(--light-grey);
  font-size: 1rem;
  transition: all 250ms ease;
}

.contact-section form input:focus{
  outline: none;
  border-color: var(--dark-blue);
}

.contact-section form textarea{
   margin: 1.5em;
     max-width: 500px; /* Prevents it from getting too wide */
  min-width: 250px; 
  height: 200px;
  resize: horizontal;
}

.contact-section figure,
.contact-section form {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

/* Slide image from left */
.contact-section figure {
  transform: translateX(-50px);
}

/* When in view */
.contact-section.in-view figure,
.contact-section.in-view form {
  opacity: 1;
  transform: translateX(0);
}

/* Optional: animate heading and paragraph too */
.contact-section.in-view ~ h2,
.contact-section.in-view ~ p {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-input-error{
  margin-left: 2em;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 250ms ease;
}

.js-input-error.show{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}






/* Mobile */
@media (max-width: 70rem) {

  header{
    height: 100svh;
    overflow: auto;
  }

  .side-bar-btn{
    position: fixed;
    right: 2em;
    border: none;
    background: transparent;/*overide button default styles*/
    box-shadow: none;/*overide button default styles*/
    padding: .5em;
    display: grid;
    place-items: center;
    z-index: 1000;
  }

  .nav-menu-container {
       position: fixed;
     top: 0;
     right: 0;
     flex-direction: column;
     justify-content: space-around;
     z-index: 10;
     background-color: var(--white);
    /* Good fallback + best fit */
        height: 100vh;       /* Fallback for older browsers */
        height: 100dvh;      /* Dynamic height: accounts for browser chrome resizing */ 
     width: 80%;
     align-items: start;
     padding: 2em 1em;
     padding-top: 5em;
     transition: all 350ms ease;
     transform: translateX(100%); 
     overflow-y: scroll;
  }

    .nav-menu-container.show{
           transform: translateX(0%); 
    }



   .nav-menu-container ul{
    margin: 0;
    flex-direction: column;
    width: 100%;
    margin: 1em 0;
   }

   .nav-menu-container ul li{
    margin: .5em 0;
   }

   .nav-links li{
    transition: all 300ms ease-in-out;
    border-bottom: 1px solid transparent;
   }
    .nav-links li:hover{
      border-bottom-color: var(--dark-blue);
    }

  .nav-btn-container li a{
    display: flex;
    justify-content: center;
  }


  .step {
    width: 100%;
    left: 0 !important;
    text-align: left;
  }

  .timeline::after {
    left: 10px;
  }

  .step.left::before,
  .step.right::before {
    left: 0;
  }

  .contact-section{
    flex-direction: column;
  }
  
  .contact-section form{
    width: 100%;
    padding: 2em 0;
  }
  
  .contact-section figure{
    width: 100%;
    max-width: 320px;
    height: auto;
  }
}
