@import url("https://fonts.cdnfonts.com/css/segoe-ui-4");
@import url('https://fonts.cdnfonts.com/css/homizio');
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}


.tagline {
  font-size: 18px;
  color: #333;
  margin-top: 10px;
  text-align: center;
}

.loader-bar {
  width: 80%; /* Adjust width of the loader */
  height: 5px;
  margin-top: 20px;
  background-color: #ddd;
  position: relative;
  overflow: hidden;
}

.loader-bar::before {
  content: '';
  position: absolute;
  width: 50%; /* Adjust the percentage of the loader's progress */
  height: 100%;
  background-color: #e0576e;
  animation: loaderAnimation 2s linear infinite;
}

@keyframes loaderAnimation {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}



/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  height: 40px;
  width: fit-content;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 10px;
}

.location-search {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 500px;
  margin: 0 20px;
}

.mob-location-picker {
  display: none;
}

.mob_right {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.btn {
  padding: 8px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}
.coins {
  display: flex;
  align-items: center;
  background-color: #fff8e1;
  padding: 5px 10px;
  border-radius: 20px;
  color: #ffa000;
  font-weight: 500;
  margin-left: 15px;
}

.coin-icon {
  color: #ffc107;
  margin-right: 5px;
}
.btn-primary {
  background-color: #e0576e;
  color: white;
  flex: 1;
  margin-right: 10px;
  margin-left: 10px;
}

.btn-primary:hover {
  background-color: #d04b61;
}



.location-picker {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 14px;
}

.location-picker i {
  margin-right: 5px;
  color: #666;
}

.search-bar {
  display: flex;
  flex-grow: 1;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
}

.search-bar i {
  color: #666;
  margin-right: 10px;
}

.header-icons {
  display: flex;
  align-items: center;
}

.header-icons a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-size: 20px;
}

/* Hero Section */
.hero {
  padding: 40px 20px;
  background-color: white;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Service Categories */
.service-categories {
  background-color: white;
  /* padding: 20px; */
  border-radius: 8px;
  /* height: 50vh;  */
  width: 100%;
  margin: auto;
  /* margin-bottom: 30px; */
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  /* height: 100%; */
  padding: 10px;
  padding: 15px 19px;
  justify-content: center;
}
.category-grid2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  /* height: 100%; */
  padding: 10px;
  padding: 15px 19px;
  justify-content: center;
}
.category-item {
  display: flex;
  align-items: center;
  background-color: #FDF6F0;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative; /* Add this to make absolute positioning work */
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon img {
  /* max-width: 100%;
  max-height: 100%; */
  width: fit-content;
  height: 100%;
}

.category-name {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 0 10px;
}

/* advertisement Section */
.advertisement {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding: 15px 0;
  margin: 0 15px;
}

.ad-item {
  flex: 0 0 auto;
  width: 320px;
  height: 200px;
  scroll-snap-align: start;
}

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
  height: 100%;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.service-card h3 {
  font-size: 14px;
  margin: 10px 12px;
  font-weight: 500;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.new-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #c41e8a;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

/* Hide scrollbar but maintain functionality */
.advertisement::-webkit-scrollbar {
  display: none;
}

/* For Firefox */
.advertisement {
  scrollbar-width: none;
}

/* Section header styling */
.section-header {
  font-size: 22px;
  font-weight: 600;
  margin: 25px 15px 5px;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* How It Works Section */
.how-it-works {
  padding: 40px 20px;
  background-color: white;
  margin-top: 5px;
}

.how-it-works h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  margin-bottom: 20px;
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: #f9e5e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: #e0576e;
  font-size: 30px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.step-description {
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* Featured Services */
.featured-services {
  padding: 0px 20px;
}

.featured-services h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info {
  padding: 15px;
}

.service-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.service-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.service-price {
  font-weight: 600;
  color: #e0576e;
}

/*Refer and Earn Section */
.refer-coins-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  background-color: #f5f5f5;
}

.refer-card,
.coins-card {
  background-color: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.refer-content,
.coins-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.refer-text h3,
.coins-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #222;
}

.refer-text p,
.coins-text p {
  font-size: 13px;
  margin: 0;
  color: #666;
  line-height: 1.4;
}

.refer-icon,
.coins-icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.refer-icon img,
.coins-icon img {
  width: 100%;
  height: auto;
}

.refer-card {
  border-right: 4px solid #e0576e;
}

.coins-card {
  border-left: 4px solid #e0576e;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  width: 250px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #555;
  font-size: 14px;
}

.popup {
  position: absolute;
  display: block;
  /* Change to block for visibility */
  bottom: -160px;
  /* Start offscreen */
  background-color: white;
  padding: 15px 0;
  width: 100%;
  height: 160px;
  align-items: center;
  justify-content: space-around;
  border-radius: 35px 35px 0px 0;
  transition: bottom 0.5s ease-in-out;
  /* Smooth transition */
}

.popup.active {
  bottom: 7%;
  /* Final position on activation */
}

.popup-content {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: stretch;
  font-size: 10px;
}

.popup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  width: 33%;
  border: 1px solid black;
  border-radius: 10px;
  background-color: #f5f5f5d9;
}
.popup-item img{
  margin: 7px 0;
  height: 66%;
  width: fit-content;
}
/* Bottom Navigation (Mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.bottom-nav-menu {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  font-size: 12px;
}

.bottom-nav-item i {
  font-size: 20px;
  margin-bottom: 5px;
}

.bottom-nav-item.active {
  color: #e0576e;
}

/* New Launch Badge */
.new-launch {
  background-color: #17a95b;
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  position: absolute; /* Position it absolutely within the category-item */
  top: 10px;          /* Distance from top */
  right: 10px;        /* Distance from right */
  z-index: 10;        /* Ensure it stays on top */
}

/* Media Queries */
@media (max-width: 768px) {
  .logo {
    /* height: 100px; */
  }

  .category-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }

  .search-bar {
    width: 100%;
    margin: 10px 0px;
  }

  .location-search {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 0;
    width: 97%;
    /* position: fixed; */
  }

  .mob-location-picker {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
  }

  .location-picker {
    display: none;
  }

  .header-icons {
    display: none;
  }

  .hero {
    padding: 0 0;
  }

  .hero h1 {
    display: none;
  }

  .bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
  .category-grid2 {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
  .hero h1 {
    display: none;
  }

  .category-item {
    padding: 10px;
  }

  .category-icon {
    width: 70px;
    height: 70px;

  }

  .category-name {
    font-size: 15px;
    text-align: left;
  }
}