/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Lato", sans-serif;
  background: #f8f8ff;
  color: #000;
  /* padding: 0 30px; */
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  height: 73px;
  flex-wrap: wrap;
}

.nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  flex-wrap: wrap; /* ✅ prevents overflow on small screens */
  margin: 0;
}

.nav ul li a {
  color: #6237a0 !important;
  font-size: 13px !important;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}

.download-btn {
  position: relative;
  --offset: 3px;
  background: #1c0c33;
  width: 133px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 16px;
  /* outline: 4px solid #8549dc; */
  outline-offset: -4px;
  box-shadow: 0px 0px 31px rgba(170, 113, 255, 0.55);
  overflow: hidden;
}

.download-btn::before {
  content: "";
  background: conic-gradient(transparent 270deg, white, transparent);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  width: 100%;
  animation: rotate 2s linear infinite;
}

.download-btn::after {
  content: "";
  background: inherit;
  border-radius: inherit;
  position: absolute;
  inset: var(--offset);
  height: calc(100% - 2 * var(--offset));
  width: calc(100% - 2 * var(--offset));
}

.download-btn a {
  color: #fff;
  background: transparent;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 700;
  z-index: 10;
  inset: 0;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) scale(1.4) rotate(0turn);
  }
  to {
    transform: translate(-50%, -50%) scale(1.4) rotate(1turn);
  }
}

/* Hamburger Icon - Modern Animation */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.hamburger div {
  height: 3px;
  background-color: #000;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Animate hamburger to X */
.hamburger.active .bar1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar2 {
  opacity: 0;
}

.hamburger.active .bar3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Sidebar Styles with Slide Animation */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 250px;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.active {
  left: 0;
}

.close-btn {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Sidebar nav links */
.mobile-sidebar .nav-link {
  color: #000;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.mobile-sidebar .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 50px 80px; */
  flex-wrap: wrap; /* ✅ fixes overlap on small screens */
}

/* .hero .animated-title {
  font-weight: bold;
  font-size: 2.5rem;
  display: inline-block;
  animation: bounceColor 3s ease-in-out infinite;
} */

@keyframes bounceColor {
  0% {
    transform: translateY(30px);
    opacity: 0;
    color: #6237a0; /* First color */
  }
  20% {
    transform: translateY(0);
    opacity: 1;
    color: #6237a0;
  }
  40% {
    transform: translateY(30px);
    opacity: 0;
  }
  50% {
    transform: translateY(0);
    opacity: 1;
    color: #ff6b6b; /* Second color */
  }
  65% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-10px); /* quick up bounce */
  }
  85% {
    transform: translateY(0); /* back down */
  }
  95% {
    transform: translateY(-5px); /* smaller hop */
  }
  100% {
    transform: translateY(0); /* settle */
  }
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.hero .lead {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 20px 0;
}

.hero .dnload {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.hero-left h1 {
  font-size: 48px;
  line-height: 1.3;
  font-weight: 600;
}

.hero-left .gradient {
  background: linear-gradient(90deg, #8549dc, #bb8cff, #8549dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left p {
  font-size: 18px;
  margin: 20px 0;
}

.try-btn {
  background: #1c0c33;
  color: #fff;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  border: 4px solid;
  border-image: linear-gradient(
    180deg,
    #8549dc 0%,
    rgba(133, 73, 220, 0) 49.4%
  );
  border-image-slice: 1;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-right img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Why Section */
.why {
  background: linear-gradient(
    180deg,
    rgba(133, 73, 220, 0.95) 28.78%,
    rgba(71, 39, 118, 0.95) 76.5%
  );
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  border-radius: 36px;
  margin-top: 30px;
}

.why h2 {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 50px; /* 78.125% */
  letter-spacing: 1px;
}

.why p {
  font-size: 20px;
  color: #fff;
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 500;
}

/* Responsive Flex Layout */
.why-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.why-card {
  background: #fff;
  color: #000;
  border-radius: 12px !important;
  border: 4px solid;
  border-image: linear-gradient(
    180deg,
    #8549dc 0%,
    rgba(133, 73, 220, 0) 49.4%
  );
  /* border-image-slice: 1; */
  flex: 1 1 300px;
  max-width: 360px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #020202;
}

.why-card p {
  font-size: 16px;
  color: #333;
  font-weight: 400;
  color: #020202;
  line-height: 28px; /* 158.333% */
  letter-spacing: 0.5;
}

/* 📱 Mobile Adjustments */
@media (max-width: 768px) {
  .why {
    padding: 60px 15px;
  }

  .why-cards {
    gap: 20px;
  }

  .why-card {
    max-width: 100%;
  }
}

/* Features Section */
.features {
  margin-top: 30px;
  border-radius: 8px; /* optional */
  padding: 20px;
}

.features .card-bb {
  border: none;
  padding: 30px 20px;
  background-color: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 40px;
  justify-content: flex-start; /* content at top, keeps spacing */
}

.features .card-bb img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.features .title {
  color: #000;
  font-weight: 500;
  line-height: 50px; /* 147.059% */
  letter-spacing: -1.02px !important;
}

.features .desc {
  color: #000;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.7px !important;
}

/* Text inside card */
.features .card-bb h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #8549dc;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-style: normal;
  font-weight: 700;
}

.features .card-bb p {
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  width: 300px;
}

/* Grid adjustments */
.features .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* How Section - Improved Responsive Design */
/* How Section - Improved Responsive Design */
.how {
  background: rgba(187, 140, 255, 0.3);
  padding: 80px 20px;
  text-align: center;
}

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

.how h2.main-title {
  font-size: 36px;
  margin-bottom: 15px;
  color: #50327c;
}

.how p {
  font-size: 18px;
  color: #000;
  font-weight: 400;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Fixed Grid Layout for Cards - Always 4 cards in desktop */
.how .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
}

/* Card Container */
.how .card-container {
  display: flex;
  justify-content: center;
}

/* Card Flip Container */
.card-flip {
  perspective: 1000px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  height: 360px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: 20px;
}

.card-flip.flipped .card-inner,
.card-flip:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card-front {
  background: #fff;
  border: none;
}

.card-back {
  background: #fff;
  transform: rotateY(180deg);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Front Card Styles */
.card-front .display-5 {
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.card-front .n-1, .card-front .n-3 {
  color: #8549dc;
  background-color: rgba(133, 73, 220, 0.2);
}

.card-front .n-2, .card-front .n-4 {
  color: #ffc700;
  background-color: #fff5d4;
}

.card-front h3 {
  font-family: "Lato", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 15px 0;
}

.card-front .nn-1 {
  color: #8549dc;
}

.card-front .nn-2 {
  color: #ffc700;
}

.card-front img {
  max-width: 120px;
  height: auto;
  margin-top: 10px;
}

/* Back Card Styles */
.card-back .back-img,
.card-back .back-img1 {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  padding: 15px;
  margin-bottom: 20px;
}

.card-back .back-img {
  background: #af88e9;
}

.card-back .back-img1 {
  background: #f5e9bd;
}

.card-back h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
}

.card-back p {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* Back Card Background Colors */
.back-purple {
  background: linear-gradient(135deg, #f8f4ff 0%, #e8deff 100%);
}

.back-yellow {
  background: linear-gradient(135deg, #fffbf0 0%, #fef5d4 100%);
}

/* Remove conflicting Bootstrap column styles */
.how .col-6,
.how .col-md-6,
.how .col-lg-3 {
  width: auto;
  flex: none;
  padding: 0;
}

.how .d-flex.justify-content-center {
  display: block !important;
}

/* How Section Responsive Adjustments */
@media (max-width: 1200px) {
  .how .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .card-flip {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .how {
    padding: 60px 15px;
  }
  
  .how h2.main-title {
    font-size: 28px;
  }
  
  .how p {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .how .row {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .card-flip {
    height: 320px;
    max-width: 100%;
  }
  
  .card-front h3,
  .card-back h3 {
    font-size: 20px;
  }
  
  .card-back p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .how {
    padding: 40px 10px;
  }
  
  .how h2.main-title {
    font-size: 24px;
  }
  
  .how p {
    font-size: 14px;
  }
  
  .card-flip {
    height: 280px;
  }
  
  .card-front .display-5 {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
  
  .card-front h3,
  .card-back h3 {
    font-size: 18px;
  }
  
  .card-front img {
    max-width: 100px;
  }
  
  .card-back .back-img,
  .card-back .back-img1 {
    width: 60px;
    height: 60px;
    padding: 10px;
  }
  
  .card-back p {
    font-size: 12px;
  }
}

/* Quick Setup & Connected */
.quick-setup,
.connected {
  background-color: #f8f8ff;
}
.quick-setup,
.connected {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 100px 40px;
}

.quick-setup .left,
.connected .right {
  flex: 1;
  min-width: 280px;
}

.quick-setup img,
.connected img {
  max-width: 100%;
  height: auto;
}

.quick-setup .tick-1 {
  width: 30px;
}

.quick-setup p {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 20px;
  line-height: 33px;
  letter-spacing: -3%;
  vertical-align: middle;
}

.connected p {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 20px;
  line-height: 33px;
  letter-spacing: -3%;
  vertical-align: middle;
}

.connected .q1 {
  color: #000;
  font-family: "Lato", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 50px; /* 138.889% */
  letter-spacing: -1.08px;
}

.connected ul p {
  color: #000;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 29px; /* 162.5% */
  letter-spacing: -0.72px;
}

.connected .app-img {
  width: 400px;
}

.connected .cont-div {
  width: 100%;
}

.quick-setup ul {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 20px;
  line-height: 50px;
  letter-spacing: -3%;
  vertical-align: middle;
}

/* stay card */

/* ✅ Your existing styles (Desktop) */
.stay-card {
  display: flex;
  padding: 75px 200px 74px 200px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-radius: 36px;
  background: #3e1776;
  box-shadow: 0 12px 10px 0 rgba(0, 0, 0, 0.25);
}

/* ✅ Mobile View (Below 768px) */
@media (max-width: 768px) {
  .stay-card {
    padding: 30px 20px; /* reduce padding for smaller screens */
    border-radius: 20px; /* smaller radius looks better on mobile */
    width: 90%; /* keep card within screen */
    margin: 0 auto; /* center horizontally */
    gap: 16px; /* slightly tighter gap */
  }
  .quick-setup ul {
    line-height: 30px;
  }
}

.stay-card h2 {
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -1.92px;
}

.stay-card p {
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 156.25% */
  letter-spacing: -0.96px;
}

/* ✅ Default (Your existing styles stay as is) */
.stay-card .d-btn-two {
  display: flex;
  width: 300px;
  height: 69px;
  padding: 34px 67px 35px 66px;
  justify-content: center;
  align-items: center;
  border-radius: 23px;
  /* border: 6px solid #8549dc; */
  background: #1c0c33;
  box-shadow: 0 0 31px 0 rgba(133, 73, 220, 0.55);
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: -1.08px;
  position: relative;
  --offset: 3px;
  outline-offset: -4px;
  overflow: hidden;
}

.stay-card .d-btn-two::before {
  content: "";
  background: conic-gradient(transparent 270deg, white, transparent);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  width: 100%;
  animation: rotate 2s linear infinite;
}

.stay-card .d-btn-two::after {
  content: "";
  background: inherit;
  border-radius: inherit;
  position: absolute;
  inset: var(--offset);
  height: calc(100% - 2 * var(--offset));
  width: calc(100% - 2 * var(--offset));
}

.stay-card .d-btn-two a {
  color: #fff;
  background: transparent;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-size: 20px;
  font-weight: 700;
  z-index: 10;
  inset: 0;
}

.stay-card .btns {
  display: flex;
  gap: 20px;
}

/* ✅ Mobile View (Below 768px) */
@media (max-width: 768px) {
  .stay-card .btns {
    flex-direction: column; /* stack buttons vertically */
    gap: 12px;
    align-items: center;
  }

  .stay-card .d-btn-two {
    width: 100%; /* make button full width on mobile */
    max-width: 280px;
    height: 55px; /* slightly shorter */
    font-size: 16px;
    line-height: 1.4;
    padding: 15px 20px;
    border-radius: 18px;
  }
}

.footer {
  background-color: #f5f5fc;
  padding: 40px 0;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  color: #4b4b7c;
}

.footer p {
  color: #020202;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

.footer a {
  color: #4b4b7c;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .footer-logo {
  width: 120px;
  margin-bottom: 20px;
}

.footer .footer-section h6 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #6237a0;
  font-weight: 400;
}

.footer .footer-section {
  padding-left: 120px;
}

.footer .footer-section p a {
  color: #000;
  font-size: 14px;
}

.footer .copyright {
  margin-top: 30px;
  font-size: 12px;
}
/* Responsive Tweaks */
@media (max-width: 992px) {
  header {
    padding: 20px 40px;
  }
  .hero-left h1 {
    font-size: 42px;
  }
  .footer .footer-section {
    padding-left: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-left {
    order: 2;
  }
  .hero-right {
    order: 1;
    margin-bottom: 20px;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero .hero-div {
    gap: 30px;
  }
  .hero .second-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  h2 {
    font-size: 23px !important;
  }
  h3 {
    font-size: 20px !important;
  }
  p {
    font-size: 16px !important;
  }
  .quick-setup ul li {
    font-size: 14px;
  }
  .quick-setup ul li img {
    width: 17px !important;
  }
  .connected .q1 {
    font-size: 18px;
  }
}

/* common */

.main-title {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: Bold;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -3%;
  vertical-align: middle;
  color: #50327c;
}

/* Additional Mobile Responsive Fixes */
@media (max-width: 768px) {
  .quick-setup, .connected {
    padding: 60px 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .quick-setup .left, .connected .right {
    order: 2;
  }
  
  .quick-setup .right, .connected .left {
    order: 1;
    margin-bottom: 30px;
  }
  
  .connected .app-img {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .quick-setup, .connected {
    padding: 40px 15px;
  }
  
  .features .card-bb p {
    width: 100%;
  }
  
  .footer .footer-section {
    padding-left: 20px;
  }
}
/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Optional: Add some padding to sections to account for fixed header */
section {
  scroll-margin-top: 80px; /* Adjust based on your header height */
}

/* Style for active navigation link */
.nav-link.active {
  color: #8549dc !important;
  font-weight: bold;
}