@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

/* Utility Classes */
.animate {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate-infinte {
  animation-iteration-count: infinite;
}

.animate-delay-1s {
  animation-delay: 1s;
}

.animate-fast {
  animation-duration: 0.6s;
}

.animate-slow {
  animation-duration: 3s;
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-300px);
  }

  to {
    transform: translateX(0px);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(300px);
  }

  to {
    transform: translateX(0px);
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-300px);
  }

  to {
    transform: translateY(0px);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(300px);
  }

  to {
    transform: translateY(0px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-30px);
  }

  60% {
    transform: translateY(-15px);
  }
}

/* Animation Classes */
.slideInLeft {
  animation-name: slideInLeft;
  animation-timing-function: ease-in;
}

.slideInRight {
  animation-name: slideInRight;
  animation-timing-function: ease-in;
}

.slideInUp {
  animation-name: slideInUp;
  animation-timing-function: ease-in;
}

.slideInDown {
  animation-name: slideInDown;
  animation-timing-function: ease-in;
}

.rotate {
  animation-name: rotate;
  animation-timing-function: linear;
}

.bounce {
  animation-name: bounce;
}

.prequalify-slide-in {
  animation-name: slideInLeft;
  animation-duration: 0.9s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

:root {
  --primary-color: #172445;
  --accent-color: #32b0e6;
  --text-dark: #333;
  --text-light: #fff;
}

/* Main CSS */

* {
  /* outline: 1px solid red; */
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: block;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  background-color: #1c1f26;
}

nav {
  background-color: #000;
  padding: 5px 5%;
  height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 1;
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  /* height: 40px; */
  width: 250px;
  margin-right: 10px;
}

/* MOBILE DEFAULT: hide nav links, show hamburger */
nav ul {
  display: none;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 95%;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
}

nav ul li a.active {
    border-bottom: 2px solid var(--text-light); /* Example color */
    padding-bottom: 4px; /* Optional spacing */
}

nav ul li a:hover {
  background-color: var(--accent-color); /*#f5f5f5;*/
  border-color: var(--accent-color);
}

.hamburger {
  display: block;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 1px;
  background-color: #fff;
  display: block;
  margin: 7px auto;
  transition: all 0.3s ease-in-out;
}

.hamburger-active {
  transition: all 0.3s ease-in-out;
  transition-delay: 0.6s;
  transform: rotate(45deg);
  z-index: 10;
}

.hamburger-active .line:nth-child(2) {
  width: 0px;
}

.hamburger-active .line:nth-child(1),
.hamburger-active .line:nth-child(3) {
  background-color: #fff;
  transition-delay: 0.3s;
}

.hamburger-active .line:nth-child(1) {
  transform: translateY(12px);
}

.hamburger-active .line:nth-child(3) {
  transform: translateY(-5px) rotate(90deg);
}

.menubar {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 75vw;
  height: 100vh;
  padding: 10% 0;
  background: var(--primary-color);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.6s ease-in;
  z-index: 9;
}

.menubar.active {
  transform: translateX(0%);
}



/* .active {
  transform: translateX(0%);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
} */

.menubar ul {
  padding: 0;
  list-style: none;
  width: 90%;
}

.menubar ul li {
  padding: 10px 20px;
  margin-bottom: 20px;
}

.menubar ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 95%;
  font-weight: 400;
  padding: 5px 0px;
  border-radius: 5px;
}

.menubar ul li:hover {
  background-color: #32b0e6;
}

#menubar_socials {
  margin: 0 auto;
  align-content: center;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Behind overlay and text */
}

.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 85vh;
  text-align: center;
  padding: 0 1.5rem;
  overflow: hidden; /* prevent scrollbars from video overflow */
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-text {
  z-index: 2;
  color: white;
  max-width: 90%;
  margin: 0 auto;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.hero-text p {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  margin: 0;
}

.hero-text button {
  font-size: clamp(1rem, 4vw, 1.3rem);
  margin-top: 2rem;
  padding: 12px 28px;
  color: #fff;
  letter-spacing: 0;
}

.btn-57 {
  all: unset;
  display: block;
  position: relative;
  padding: 20px 60px;
  margin: 0 auto;
  border: 3px solid #fff;
  border-radius: 999px;
  background: none;
  font-weight: 700;
  text-transform: uppercase;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s;
}

.learn_more_button {
  color: #fff;
  text-decoration: none;
}

.btn-57:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000; /*var(--accent-color) */
  border-radius: 999px;
  transform: translate(10px, 10px);
  transition: transform 0.2s;
  z-index: -1;
}

.btn-57:hover:before {
  transform: translate(0);
}

.btn-57:disabled {
  cursor: default;
}

.btn-57 svg {
  display: block;
}

.btn-57 [hidden] {
  display: none;
}

#contact-us-btn {
  text-decoration: none;
  color: #fff;
}

.card-video {
  width: 100%;
  border-radius: 8px; /* Match card corners */
  display: block;
    margin-bottom: 7rem;
}


.card-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
  border-radius: 18px;
  /* background-color: #2a2f3a; */
  margin: 10px;
  /* box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);  */
  z-index: 3;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(0) scale(0.98);
  transition: opacity 0.6s ease-out,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1); */
}

/* Entering from below (scrolling down) */
.card.from-bottom {
  transform: translateY(60px) scale(0.98); /* From below, slightly smaller */
}

/* Entering from above (scrolling up) */
.card.from-top {
  transform: translateY(-60px) scale(0.98); /* From above, slightly smaller */
}

.card.animate-in-view {
  opacity: 1;
  transform: translateY(0) scale(1); /* To natural size */
}

.card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-btn {
  all: unset;
  padding: 10px 22px;
  background-color: #000;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.card-btn:hover {
  /* background-color: #229ccf; */
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-btn a{
  text-decoration: none;
  color: white;
}

.contact-form-container {
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  width: 100%;
  background-color: #eaeaea; /*#1c1f26*/
}

#lvlup {
  display: block;
  max-width: 90%;  /* Ensures it scales with smaller screens */
  width: 100%;     /* Fills parent width, respecting max-width */
  height: auto;
  margin: 0 auto 4rem auto;
}

.prequalify-section {
  /* background-color: #1c1f26; */
  display: block;
  color: #000;
  width: 100%;
  margin: 20px auto;
  max-width: 600px;
  justify-content: center;
}

.prequalify-section h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.prequalify-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0 auto;
  max-width: 400px;
}

.prequalify-item {
  background-color: #23262e;
  padding: 0 2rem;
  border-radius: 8px;
  opacity: 0;
  color: #fff;
  transform: translateX(-100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.prequalify-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

.prequalify-item:hover {
  transform: translateY(-5px);
}

.prequalify-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.prequalify-item p {
  font-size: 1rem;
  line-height: 1.5;
}

.prequalify-answer {
  display: none;
  margin-top: 0.75rem;
  padding-bottom: 1.7rem;
  text-align: left;
}

.prequalify-item.active .prequalify-answer {
  display: block;
}

.prequalify-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.prequalify-item.active .arrow {
  transform: rotate(90deg);
}

.form-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.form-section {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
}

#contact-form {
  width: 100%;
  /* margin:0 0 0 155px; */
  margin: 0 auto;
  max-width: 500px;
  height: fit-content;
  align-self: center;
  background-color: rgba(255, 255, 255, 0.05); /* soft card-like layer */
  backdrop-filter: blur(6px);
  padding: 30px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  border: 1px solid #000;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
  color: #888;
}

.form-group input:focus {
  outline: none;
  border: 1px solid #32b0e6;
  box-shadow: 0 0 8px rgba(50, 176, 230, 0.4);
}

#btn-contact-form {
  display: block;
  margin: 20px auto 0 auto; /* top auto bottom auto */
  width: 250px;
  padding: 14px 0px;
  border: none;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#btn-contact-form:hover {
  background-color: #269dcf;
  box-shadow: 0 6px 20px rgba(50, 176, 230, 0.5);
}

#phone {
  margin-bottom: 75px;
}

.error-message {
  font-size: 0.8rem;
  color: #e57373;
  margin-top: 4px;
}

.faq-header-text {
  padding: 1rem;
}

.faq-item {
  border-bottom: 1px solid #ccc;
  padding: 1rem;
}

.faq-container {
  margin: 1rem auto;
  max-width: 1200px;
  padding: 1rem 1rem 5rem 1rem;
  color: #fff;
  border-bottom: 1px solid #333;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item:hover {
  border: 2px solid #f5f5f5;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0;
}

.faq-answer.open {
  max-height: 500px; /* enough height for most answers */
  padding: 0.5rem 0;
}

#faq_btn {
   margin: 3rem auto 0 auto;
  display: block;
  text-align: center;
  background-color: var(--accent-color);
}

.arrow {
  transition: transform 0.3s ease;
  font-weight: 700;
  font-size: 1.5rem;
}

.arrow.rotate {
  transform: rotate(90deg);
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('assets/soalr-panels-home.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 1rem;
}

.carousel-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* Dark overlay */
  z-index: 0;
}


.carousel-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
}

.mission-statement, .carousel {
  /* background-color: rgba(255, 255, 255, 0.1); */
  padding: 1rem;
  border-radius: 12px;
  flex: 1;
}

.mission-statement {
  /* background-color: rgba(0, 0, 0, 0.7); dark overlay */
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;         /* vertical centering */
  justify-content: center;     /* optional: horizontal centering */
  height: 100%;
  width: 100%;
}

.mission-statement h2 {
  color: var(--accent-color);
  font-size: 3rem;
  margin-bottom: 2rem;
}

.mission-statement p {
  font-size: 1.2rem;
}

.carousel {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-end;
  width: 100%;
  right: 0;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background: #aaa;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: #fff;
}

.carousel-list {
  list-style: none;
  padding: 2rem;
  margin: 0;
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  gap: 2rem;
}

.carousel-list-item {
  min-width: 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
}

.testimonial-card {
  width: 100%;
  background-color: rgba(250, 250, 250, 0.8);
  border-radius: 1rem;
  padding: 2rem 0;
  color: #000;
  /* text-align: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);  */
}

.testimonial-image {
  max-height: 300px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  left: 50%;
}

.testimonial-data {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.testimonial-data td {
  padding: 0.5rem;
}

.testimonial-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.testimonial-card h4 {
  margin: 0 0 1rem;
  font-weight: normal;
}

.content-wrapper {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
}

.footer {
  
  background-color: #1c1f26;
  color: #f5f5f5;
  padding: 2rem 1rem;
}

.footer-container {
  border-top: 1px solid #333;
  padding-top: 2rem;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo img {
  max-width: 150px;
}

.footer-links {
  display: flex;
  /* flex-direction: column; */
  gap: 1.5rem;
}

.footer-links h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 0.3rem 0;
}

.footer-links a {
  text-decoration: none;
  color: #f5f5f5;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00c6a7; /* Accent color */
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #aaaaaa;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.social-icons {
  margin-top: 1rem;
}


.social-icons a:hover {
  color: #f5f5f5;
}

.social-icons a {
  text-decoration: none;
  color: #fff; /* Ensures icon color stays white */
  margin: 0 0.5rem;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  color: #f5f5f5;
}

.success-container {
  
  background-color: #eaeaea;
}

.success-child {
  max-width: 1100px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 5rem;
  color: #000;
}



/* Larger screens: show nav links and hide hamburger */
@media screen and (min-width: 990px) {
  nav ul {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .menubar {
    display: none;
  }

  .contact-form-container {
    flex-direction: row;
    padding: 3rem 1rem;
    gap: 1rem;
  }

  .form-section {
    max-width: 500px;
  }

  .carousel-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .carousel-flex {
    flex-direction: row;
    justify-content: space-between;
  }

    .mission-statement, .carousel {
    max-width: 50%;
    height: 100%;
  }
  /* .carousel {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    padding: 2rem 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  } */
}

@media screen and (min-width: 580px) {
  #contact-form {
    display: block;
    margin: 0 auto;
  }

  nav .logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
  }

  .menubar {
    width: 40vw;
  }

  .form-row {
    flex-direction: row;
    gap: 0.3rem;
  }

  .form-row .form-group {
    flex: 1;
  }

  .footer-links {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media screen and (max-width: 689px) {
  .hero-image {
    height: 85vh;
    padding: 0 1rem;
  }

  #lvlup {
    max-width: 390px;
  }

  button {
    font-size: 14px;
  }

  .carousel-button {
    display: none;
  }
}
