* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f5f7fb;
  color: #2b2736;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 2%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  margin: 20px auto;
  width: auto;
  gap: 20px;
}

.logo {
  font-weight: 700;
  font-size: 22px;
}

.logo span {
  color: #6c63ff;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.menu-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  color: white;
}

/* VIDEO */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Dark overlay for readability */
.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.45); */
  z-index: -1;
}

.partner-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: none;
  background: #e6e9ff;
  color: #5e5b67;
  margin-bottom: 20px;
  font-size: 18px;
}

.hero h1 {
  font-size: 65px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #2b2736;
}

.hero p {
  color: #514c5a;
  margin-bottom: 25px;
  font-size: 18px;
}

.cta-btn {
  position: relative;
  padding: 16px 34px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: white;
  background: linear-gradient(135deg, #6c63ff, #503a82, #655393);
  z-index: 1;
  overflow: visible;
}

/* 🔥 BOTTOM GLASS GLOW LAYER */
.cta-btn::before {
  content: "";
  position: absolute;
  inset: -6px; /* makes bottom layer larger */
  border-radius: 50px;
  background: linear-gradient(
    135deg,
    rgb(108 99 255 / 0%),
    rgb(139 92 246 / 0%)
  );
  backdrop-filter: blur(5px);
  z-index: -1;
  box-shadow:
    0 8px 25px rgba(108, 99, 255, 0.4),
    0 0 40px rgba(139, 92, 246, 0.3);
}

.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.05)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.cta-btn:hover {
  transform: translateY(-3px);
}

.cta-btn:hover::before {
  box-shadow:
    0 12px 35px rgb(10 10 10 / 60%),
    0 0 50px rgb(0 0 0 / 40%);
}

/* SECTION WRAPPER */
.showcase {
  position: relative;
  width: 100%;
  margin-top: 60px;
  overflow: hidden;
}

/* VIEWPORT AREA (THIS CONTROLS HOW MANY CARDS SHOW) */
.slider {
  width: 85%; /* keeps it centered like design */
  margin: auto;
  overflow: hidden;
  position: relative;
}

/* MOVING TRACK */
.slide-track {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: scroll 22s linear infinite;
}

/* CARD SIZE — THIS FIXES YOUR ISSUE */
.card {
  /* width: calc((90vw - 50px) / 3); */
  max-width: 453px;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.showcase::before,
.showcase::after {
  content: "";
  position: absolute;
  top: 0;
  width: 140px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.showcase::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75), transparent);
}

.showcase::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.75), transparent);
}

@media (max-width: 900px) {
  .slider {
    width: 90%;
  }
  .card {
    width: calc((239vw - 40px) / 2);
  }
}

@media (max-width: 600px) {
  .card {
    width: 379px;
    height: auto;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 90px;
    right: 20px;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    display: none;
    width: 90%;
  }

  .slider {
    width: 100%;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 25px;
  }
  .hero p {
    font-size: 16px;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    margin: 20px auto;
    width: auto;
    gap: 20px;
  }
}

/* Section 2 */

/* SECTION 2 */
.services {
  padding: 100px 8%;
  text-align: center;
  background: #ffffff;
}

/* Trusted logos */
.trusted p {
  color: #6b6b76;
  margin-bottom: 20px;
}

.logos {
  display: flex;
  justify-content: center;
  gap: 50px;
  font-weight: 600;
  color: #1e1e2f;
  opacity: 0.8;
  margin-bottom: 70px;
}

/* Heading */
.services-heading h2 {
  font-size: 48px;
  color: #2b2736;
  margin-bottom: 10px;
}

.services-heading p {
  color: #6b6b76;
  font-size: 16px;
  margin-bottom: 60px;
}

/* Cards layout */
.service-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Individual card */
.service-card {
  position: relative;
  width: 340px;
  padding: 40px 30px;
  border-radius: 18px;
  background: #f9f8ff;
  border: 1px solid #e9e6ff;
  text-align: center;
  transition: 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #b5b1ff, #bca5ff, #dd63ff);
}

/* Card 1 → top */
.service-card:nth-child(1)::before {
  top: 0;
}

/* Card 2 → bottom */
.service-card:nth-child(2)::before {
  bottom: 0;
}

/* Card 3 → top */
.service-card:nth-child(3)::before {
  top: 0;
}

.service-card::before {
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.4);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.15);
}

.service-card img {
  width: 90px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2b2736;
}

.service-card p {
  font-size: 15px;
  color: #6b6b76;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .services-heading h2 {
    font-size: 34px;
  }
  .service-card {
    width: 100%;
    max-width: 400px;
  }
}

.service-card lottie-player {
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .logos {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
}

/* LOTTIE FIX */
.service-card lottie-player {
  width: 160px; /* control size */
  height: 160px;
  margin: 0 auto 20px; /* center horizontally */
  display: block; /* needed for margin auto */
}

.service-card lottie-player {
  transform: scale(1.2);
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1.2);
  }
  50% {
    transform: translateY(-8px) scale(1.2);
  }
  100% {
    transform: translateY(0) scale(1.2);
  }
}

.service-card lottie-player {
  animation: float 4s ease-in-out infinite;
}

/* SECTION 3 */
.why-us {
  /* padding: 120px 8%; */
  text-align: center;
  background: #ffffff;
}

.why-header h2 {
  font-size: 52px;
  margin-bottom: 10px;
  color: #2b2736;
}

.why-header p {
  max-width: 700px;
  margin: auto;
  color: #6b6b76;
  margin-bottom: 80px;
}

/* CARDS LAYOUT */
.why-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* GLASS CARDS */
.why-card {
  position: relative;
  width: 350px;
  padding: 40px;
  /* border-radius: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s; */

  background: linear-gradient(
    180deg,
    var(--token-653fb8e6-ed8b-4fa1-aa7f-80b9b0ef4e78, rgba(246, 241, 252, 0.5))
      0%,
    var(--token-9df5a416-ffb4-48d0-9fdd-336d53256c2b, rgba(255, 255, 255, 0.5))
      100%
  );
  /* width: 100%; */
  border-radius: 16px;
  box-shadow:
    rgba(0, 0, 0, 0.04) 0px 0.796192px 0.796192px -1px,
    rgba(0, 0, 0, 0.04) 0px 2.41451px 2.41451px -2px,
    rgba(0, 0, 0, 0.03) 0px 6.38265px 6.38265px -3px,
    rgba(0, 0, 0, 0.01) 0px 20px 20px -4px,
    rgb(255, 255, 255) 0px 0px 1px 1px inset;
  opacity: 1;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.15);
}

.why-icon {
  font-size: 28px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #f1efff;
  border-radius: 12px;
  margin-bottom: 20px;
}

.step {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1efff;
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: 600;
}

.why-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.why-card p {
  color: #6b6b76;
  line-height: 1.6;
}

/* STATS */
.stats {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.stat-box {
  background: rgb(234 235 249 / 60%);
  padding: 30px 40px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  text-align: center;
}

.stat-box h4 {
  font-size: 32px;
  color: #2b2736;
}

.stat-box p {
  color: #6b6b76;
}

.divider {
  width: 1px;
  height: 60px;
  background: #ddd;
}

@media (max-width: 900px) {
  .why-header h2 {
    font-size: 36px;
  }
  .why-card {
    width: 100%;
    max-width: 420px;
  }
  .stats {
    flex-direction: column;
    gap: 20px;
  }
  .divider {
    display: none;
  }
}

.why-us {
  position: relative;
  /* padding: 120px 8%; */
  text-align: center;
  overflow: hidden;
  background: #ffffff;
}

/* COMMON BLUR STYLE */
.bg-blur {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  z-index: 0;
}

/* VIOLET GLOW */
.bg-violet {
  background: #1400d5;
  top: 25%;
  left: 29%;
}

/* PINK GLOW */
.bg-pink {
  background: #c12190;
  top: 25%;
  right: 29%;
}
@media (max-width: 768px) {
  .bg-pink {
    background: #c12190;
    top: 50%;
    right: 29%;
  }
}

/* Keep content above blur */
.why-us > *:not(.bg-blur) {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .why-card {
    width: 90%;
    max-width: 420px;
  }
}
