/*
 * =========================================
 * MAIN STYLESHEET
 *
 * 1. General & Typography
 * 2. Header & Navigation
 * 3. Buttons
 * 4. Page Sections
 * 5. Footer
 * 6. Responsive Adjustments
 * =========================================
 */

/*
 * -------------------------
 * 1. General & Typography
 * -------------------------
 */
:root {
  --bs-body-font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bs-heading-color);
  font-weight: 700;
}

.section-padding {
  padding: 100px 0; /* Increased from 80px */
}

/*
 * -------------------------
 * 2. Header & Navigation
 * -------------------------
 */
.fixed-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1320px;
  z-index: 1030;
}

.navbar {
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 35px;
}

.tagline {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--bs-body-color);
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--bs-border-color);
}

.nav-link {
  color: var(--bs-body-color);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--link-color);
}

/*
 * -------------------------
 * 3. Buttons
 * -------------------------
 */

/* 3.1 Header Download Buttons (Fused Style) */
.download-buttons.btn-group {
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.download-buttons .btn {
  padding: 0.4rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 0;
  border: none;
  transition: background-color 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-buttons .btn i {
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

.download-buttons .btn-app-store {
  background-color: #0d6efd;
  color: white;
}

.download-buttons .btn-app-store:hover {
  background-color: #0b5ed7;
  color: white !important; /* Ensures text stays white on hover */
}

.download-buttons .btn-google-play {
  background-color: var(--bs-secondary-bg);
  color: var(--bs-heading-color);
}

.download-buttons .btn-google-play:hover {
  background-color: var(--bs-tertiary-bg);
}

/* Add this to main.css inside section 3.1 */

/* Colorful icon for the header Google Play button */
.download-buttons .btn-google-play .bi-google-play {
  background: linear-gradient(to right, #4285F4, #3DDC84, #F4B400, #DB4437);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* 3.2 Hero Section Buttons (Separate Style) */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* On desktop, align buttons to the left */
@media (min-width: 992px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

/* On tablets and mobile, center the buttons */
@media (max-width: 991.98px) {
  .hero-buttons {
    justify-content: center;
  }
}

/* Base style for each individual button in the hero */
.hero-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* App Store button in Hero (Separate) */
.hero-buttons .btn-app-store {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.hero-buttons .btn-app-store:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

/* Google Play button in Hero (Separate) */
.hero-buttons .btn-google-play {
  background-color: var(--bs-secondary-bg);
  color: var(--bs-heading-color);
  border-color: var(--bs-border-color);
}

.hero-buttons .btn-google-play:hover {
  background-color: var(--bs-tertiary-bg);
}

/* Colorful icon for Google Play button */
.hero-buttons .btn-google-play .bi-google-play {
  background: linear-gradient(to right, #4285F4, #3DDC84, #F4B400, #DB4437);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-buttons .btn i {
  font-size: 1.3rem;
  margin-right: 0.75rem;
}


/*
 * -------------------------
 * 4. Page Sections
 * -------------------------
 */

/* 4.1 Hero Section */
#hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 148px 0 60px;
  background-image: linear-gradient(
    135deg,
    rgba(110, 72, 170, 0.05),
    rgba(148, 102, 255, 0.05)
  );
}

[data-bs-theme="dark"] #hero {
  background-image: linear-gradient(
    135deg,
    rgba(110, 72, 170, 0.1),
    rgba(148, 102, 255, 0.1)
  );
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-content .lead {
  font-size: 1.25rem;
  margin: 1.5rem 0;
}

.app-mockup {
  background-color: var(--bs-secondary-bg);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--bs-border-color);
}

.mockup-header {
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background-color: #f87171;
}
.dot.yellow {
  background-color: #fbbf24;
}
.dot.green {
  background-color: #34d399;
}

.mockup-header .title {
  color: var(--bs-heading-color);
  font-weight: 600;
  margin-left: 1rem;
}

.task-item {
  background-color: var(--bs-tertiary-bg);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--bs-body-color);
}

.task-item:last-child {
  margin-bottom: 0;
}

.task-item i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.task-item .bi-check-circle-fill {
  color: #34d399;
}
.task-item .bi-geo-alt-fill {
  color: #60a5fa;
}
.task-item .bi-bell-fill {
  color: #fbbf24;
}

/* 4.2 Features Section */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 1.5rem; /* Increased from 1.25rem */
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--link-color);
  font-weight: bold;
}

.feature-grid-card {
  background-color: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  padding: 2.5rem; /* Increased from 1.5rem */
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-grid-card h5 {
  font-weight: 600;
}

.feature-grid-card p {
  flex-grow: 1;
}

.feature-grid-card .learn-more {
  font-weight: 600;
  color: var(--link-color);
  text-decoration: none;
}

.feature-grid-card .learn-more:hover {
  text-decoration: underline;
}

.feature-grid-card h5 i {
  color: var(--link-color);
}


/* 4.3 Pricing Section */
.pricing-card {
  background-color: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  padding: 1rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card .plan-title {
  font-weight: 600;
}

.pricing-card .price-tag {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bs-heading-color);
  margin-bottom: 0.25rem;
}

.pricing-card .price-meta {
  font-size: 1rem;
  font-weight: 500;
  color: var(--bs-body-color);
}

.pricing-card .plan-description {
    color: var(--bs-body-color);
    min-height: 40px; /* Ensures consistent height */
}

.pricing-card .btn {
    padding: 0.75rem;
    font-weight: 600;
}

.feature-list-pricing {
    margin-top: 1.5rem;
    text-align: left;
    flex-grow: 1; /* Pushes footer content down */
}

.feature-list-pricing li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.feature-list-pricing li i {
  color: var(--link-color);
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.feature-list-pricing li.text-muted i {
    color: inherit;
}


/* Styles for the "Popular" card */
.pricing-card.popular {
  border-width: 2px;
  border-color: var(--link-color);
  transform: scale(1.05); /* Makes it slightly larger */
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px); /* Keeps the size on hover */
}

.popular-badge {
  background-color: var(--link-color);
  color: white;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.popular .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.popular .btn-primary:hover {
    background: var(--gradient-primary-hover);
}

.best-value-tag {
    background-color: hsla(265, 100%, 70%, 0.15);
    color: var(--link-color);
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* -- Responsive Carousel to Grid Transformation -- */

/* On large screens (desktops), override carousel behavior to show a grid */
@media (min-width: 992px) {
  #pricingCarousel .carousel-inner {
    display: flex;
  }

  #pricingCarousel .carousel-item {
    display: block;
    margin-right: 0;
    flex: 1 0 33.3333%; /* Each item takes up 1/3 of the space */
    padding: 0 0.75rem; /* Simulates Bootstrap's gutter */
  }

  /* Make the "popular" card maintain its larger size in the grid */
  #pricingCarousel .carousel-item .popular {
    transform: scale(1.05);
  }
}

/* On smaller screens, add some padding so cards don't touch the edges */
@media (max-width: 991.98px) {
  #pricingCarousel .carousel-item {
    padding: 0 1rem 1rem;
  }

  .carousel-indicators {
    bottom: -30px; /* Position indicators below the cards */
  }
}


/* -- Themed Carousel Controls -- */
.carousel-indicators [data-bs-target] {
  background-color: var(--link-color);
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--link-color);
  border-radius: 50%;
  padding: 1.2rem;
  background-size: 50% 50%;
}

/* Fix for the popular card being clipped inside the carousel container */
#pricingCarousel .carousel-inner {
  /* Adds vertical space to prevent the scaled card from being cut off */
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Add this to main.css */

/* 4.6 FAQ Section */
.accordion-item {
  background-color: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem !important; /* Use !important to override Bootstrap's default */
  margin-bottom: 1rem;
}

.accordion-button {
  font-weight: 600;
  padding: 1.5rem;
  color: var(--bs-heading-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--link-color);
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--link-color);
  box-shadow: none;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.6;
}

/* Customizing the accordion icon color */
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23868e96'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236e48aa'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

/* Add this to main.css */

/* 4.7 How It Works Section */
.process-step {
  position: relative;
}

.process-icon-box {
  width: 90px;
  height: 90px;
  border-radius: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Colors for each step */
.step-1 .process-icon-box {
  background: linear-gradient(135deg, #8A63D2, #6E48AA);
}
.step-2 .process-icon-box {
  background: linear-gradient(135deg, #38BDF8, #0EA5E9);
}
.step-3 .process-icon-box {
  background: linear-gradient(135deg, #F472B6, #EC4899);
}

/* The connecting dashed line - ONLY ON DESKTOP */
@media (min-width: 992px) {
  .process-step:not(:first-child)::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, var(--bs-border-color) 50%, transparent 50%);
    background-size: 16px 2px;
    background-repeat: repeat-x;
    top: 45px; /* Aligns vertically with the icon center */
    right: 50%;
    margin-right: 45px; /* Half the icon width to connect properly */
    z-index: -1;
  }
}

/* On mobile, add some space between stacked items */
@media (max-width: 991.98px) {
    .process-step:not(:last-child) {
        margin-bottom: 3rem;
    }
}

/*
 * -------------------------
 * 5. Footer
 * -------------------------
 */
footer {
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-secondary-bg);
}

/*
 * -------------------------
 * 6. Responsive Adjustments
 * -------------------------
 */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hero-content {
    text-align: center;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .app-mockup {
    margin-top: 3rem;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

  /* Header */
  .tagline {
    display: none;
  }
  .download-buttons {
    display: none !important;
  }

  /* Hero Section */
  #hero {
    min-height: auto;
    padding: 120px 0 60px;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content .lead {
    font-size: 1.1rem;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    margin-right: 0;
  }
  .app-mockup {
    margin-top: 4rem;
  }

  /* Features Section */
  #features .h1 {
    font-size: 1.75rem;
    text-align: center;
  }
  #features .col-lg-6 {
    text-align: center;
  }
  .feature-list {
    text-align: left;
    display: inline-block;
    margin-top: 1rem;
  }
}