
/* Index page only: make header fixed */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
body {
  position: relative;
  background-color: none; /* clear default solid color */
}

/* Only for index page: initially remove the shadow */
body.index-page header {
  box-shadow: 0 7px 5px rgba(210, 180, 140, 0); /* transparent version of the original */
  transition: box-shadow 0.4s ease-in-out;      /* smooth fade */
}

/* When shadow should appear */
body.index-page header.shadow-active {
  box-shadow: 0 7px 5px #d2b48c; /* original color */
}


/* index.css */
body.index-page main::before {
    content: none !important; /* removes the gradient pseudo-element */
}

body.index-page main {
    background-color: #d2b48c; /* plain white */
    color: #1b1e55;
    text-align: center;
    text-transform: uppercase;
    padding-top: 70px;
    padding-bottom: 5px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: xx-large;
}



/* Small logo image */
.jplogoclass img {
  height: 40px; /* adjust size as needed */
  width: auto;
  display: block;
  opacity: 0; /* start hidden */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.jplogoclass {
  position: absolute; /* relative to navbar */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* center horizontally and vertically */
  z-index: 1001;
}

/* Hero section */
#hero {
  height: 110vh;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: opacity 0.3s ease;
  background-color:#1b1e55;
  overflow: hidden;
}
#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allow clicks to pass through */
  z-index: 1;
}

#hero-logo img {
  width: 100vh; /* adjust size */
  height: 100vh;
  display: block;
  z-index: 2;
  margin-bottom: 100px;

}

#hero-logo-container {
  opacity: 0;
  transition: opacity 1.5s ease-out;
}
#hero-logo-container.visible {
  opacity: 1;
}

/* Fade-out overlay at bottom of hero */
#hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30%; /* adjust fade height */
    background: linear-gradient(to bottom, rgba(27, 30, 85, 0) 0%, #d2b48c 100%);
    pointer-events: none; /* so it doesn't block clicks */
    z-index: 2;
}

.start-button {
    display: inline-block;
    background-color: #d2b48c;
    color: #1b1e55;
    padding: 16px 40px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    font-size: 4rem;
    text-transform: uppercase;
    box-shadow: 0 8px 25px 2px #1b1e5525;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 2s ease, opacity 2s ease;
    opacity: 0;
    filter: blur(15px) contrast(300%) saturate(120%);
}

.start-button.show {
    opacity: 1;
    filter: blur(0) contrast(100%) saturate(100%);
}

.start-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px 5px #1b1e55;
}

h3 {
  font-size: 50px;
}
.testimonials-container {
  background-color: #1b1e55;
  border-radius: 25px;
  width: 90%;
  margin: auto;
  margin-bottom: 50px;
  overflow: hidden;
  position: relative;
  height: 350px;
  box-shadow: inset 0 2px 25px 10px rgba(0, 0, 0, 0.858);
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 5px;
  line-height: 2.0;
  width: 100%;
  color: white;
  padding: 20px 30px;
  text-transform: none;
  font-size: 20px;
  opacity: 0;
  transform: translateX(100%); /* start off-screen right */
  transition: transform 2s ease, opacity 1s ease-in-out;
}

.testimonial-author{
  color: #d2b48c;
  position: absolute;
  margin-top: 25%;
  font-size: 27px;
}

/* Active slide (center) */
.testimonial.active {
  opacity: 1;
  transform: translateX(0);
}

/* Slide out left */
.testimonial.exit-left {
  transform: translateX(-100%);
  opacity: 0;
}

@media (max-width: 768px) {
  /* Fix the header so it doesn’t cover content */
  body.index-page main {
      padding-top: 50px;
      font-size: 1.4rem; /* smaller text */
  }

  /* Make the hero section shorter on mobile */
  #hero {
      height: 90vh;
  }

  /* Resize hero particles */
  #hero-particles {
      width: 100%;
      height: 100%;
  }

  /* Make the main hero logo MUCH smaller & centered properly */
  #hero-logo img {
      width: 100vw;     /* 80% of the screen width */
      height: auto;    /* auto keeps aspect ratio perfect */
      margin-bottom: 40px;
  }

  /* Fade overlay softer + shorter */
  #hero::after {
      height: 20%;
  }

  /* Center the floating navbar logo correctly */
  .jplogoclass img {
      height: 28px;
  }
  .jplogoclass {
      top: 50%;
      transform: translate(-50%, -50%);
  }

  /* Responsive START button */
  .start-button {
      font-size: 1.8rem;     /* smaller but still bold */
      padding: 12px 28px;
      border-radius: 12px;
  }

  /* Slightly faster reveal animation on mobile */
  .start-button.show {
      opacity: 1;
      filter: blur(0);
      transition-duration: 1.3s, 1.3s;
  }

  .testimonials-container {
    height: 280px;
    width: 95%;
    margin-bottom: 10px;
  }   

  h3{
    font-size: 50px;
  }


  .testimonial {
    font-size: 13px;
    line-height: 1;
    top: 50%;
    transform: translateX(100%) translateY(-50%);
  }

  .testimonial.active {
    transform: translateX(0) translateY(-50%);
  }

  .testimonial.exit-left {
    transform: translateX(-100%) translateY(-50%);
  }

  .testimonial-author{
    padding-top: 5%;
    margin-top: 50%;
    font-size: 20px;
  }


}

@media (max-width: 1120px) and (min-width: 769px) {
  .testimonials-container {
    height: 240px;
    width: 95%;
  }

  h3{
    font-size: 50px;
  }
  .testimonial {
    font-size: 15px;
    line-height: 1.5;
    text-transform: none;
    top: 0px;
  } 
  .testimonial-author{
    padding-top: 5px;
    margin-top: 30%;
    font-size: 24px;
  }
}