/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans-Regular.woff2");
}
body {
  font-family: "Open Sans", sans-serif;
  color: white;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vh 5vw;
  position: absolute;
  width: 100%;
  background-color: black;
  z-index: 2;
}
.logo {
  width: 100px;
  height: auto;
}
.nav-links a {
  margin-left: 2vw;
  text-decoration: none;
  color: white;
  font-size: 1vw;
  position: relative;
}

/* Hero Section */
.hero {
  width: 100vw;
  height: 100vh;
  background-image: url("images/image.png"); /* replace with actual background */
  background-size: cover;
  background-position: center;
  position: relative;
}
.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 8vw;
}
.hero-content h2 {
  font-size: 2.8vw;
  font-weight: 300;
}
.hero-content h1 {
  font-size: 4.5vw;
  font-weight: 700;
  margin: 1vh 0 4vh;
}
.hero-buttons {
  display: flex;
  gap: 1.5vw;
}
.btn {
  padding: 1vh 2vw;
  font-size: 1vw;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn.red {
  background-color: #c62828;
  color: white;
}
.btn.white {
  background-color: white;
  color: black;
}

/* How It Works */
/* Centered heading for how-it-works */
.how-it-works {
  width: 100vw;
  height: auto;
  padding: 8vh 0;
}
.how-it-works h2 {
  font-size: 2vw;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4vh;
  color: black;
}
.how-cards {
  display: flex;
  justify-content: center;
  gap: 3vw;
  margin-top: 4vh;
  flex-wrap: wrap;
}
.how-card {
  background: #f5f7fd;
  color: #1f1f1f;
  padding: 3vh 2vw;
  border-radius: 12px;
  width: 300px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.how-card .icon {
  font-size: 1.8vw;
  color: #7a87f8;
  margin-bottom: 1vh;
}
.how-card h3 {
  font-size: 1.2vw;
  margin-bottom: 1vh;
}
.how-card p {
  font-size: 0.95vw;
  line-height: 1.5;
}

/* Popular Brands Section (image version) */
.popular-brands {
  width: 100vw;
  height: auto;
  padding: 8vh 0;
}
.popular-brands h2 {
  font-size: 2vw;
  font-weight: 600;
  text-align: center;
  color: #1f1f1f;
  margin-top: 4vh;
  margin-bottom: 4vh;
}

.brands-image-container {
  background: #fff;
  padding: 4vh 2vw;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brands-image-container img {
  max-width: 60vw;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.view-more {
  margin-top: 2vh;
  font-size: 1vw;
  color: #333;
  cursor: pointer;
  text-decoration: underline;
}

/* Testimonials Section */
.testimonials {
  max-width: 60vw;
  margin: 10vh auto;
  text-align: center;
}

.testimonials h2 {
  font-size: 2vw;
  font-weight: 600;
  margin-bottom: 5vh;
  color: #1f1f1f;
}

/* Horizontal Scroll Container */
.testimonial-scroll {
  display: flex;
  overflow-x: auto;
  gap: 2vw;
  padding-bottom: 1vh;
  scrollbar-width: none; /* Firefox */
}
.testimonial-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Individual Cards */
.testimonial-card {
  min-width: 260px;
  max-width: 260px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 2vh 1vw;
  flex-shrink: 0;
  text-align: left;
}

.testimonial-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1vh;
}

.testimonial-card strong {
  display: block;
  font-size: 1vw;
  color: #0a1c44;
  margin-bottom: 0.5vh;
}

.testimonial-card p {
  font-size: 0.9vw;
  color: #6d6e7d;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  max-width: 60vw;
  margin: 8vh auto;
  text-align: center;
}

.faq-section h2 {
  font-size: 2vw;
  font-weight: 600;
  margin-bottom: 5vh;
  color: black;
}

/* FAQ Container */
.faq-container {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

.faq-item {
  border-bottom: 1px solid #e2e2e2;
  padding: 1.5vh 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1vw;
  color: black;
  font-weight: 600;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  padding-right: 2vw;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 1vh;
}

.faq-answer p {
  font-size: 0.95vw;
  color: black;
  line-height: 1.6;
}

.faq-icon {
  transform: rotate(180deg);
  font-size: 1.2vw;
  transition: transform 0.3s ease;
  color: black;
}
.faq-item.active .faq-icon {
  transform: rotate(0deg);
}

/* footer */
.footer {
  background-color: #fdfbee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6vh 5vw;
  font-size: 1vw;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
}
.footer-logo {
  width: 130px;
  height: auto;
}

.footer-center {
  flex: 1;
  text-align: center;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin-bottom: 1vh;
}
.social-icons .dot {
  width: 30px;
  height: 30px;
  background-color: #888;
  border-radius: 50%;
}

.footer-center p {
  margin: 0.5vh 0;
  color: #000;
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2vh;
}
.footer-right a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}
.footer-right a:hover {
  text-decoration: underline;
}
