/* ========================= RESET & BASE STYLING ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #7f90e3, #f7e8ff);
  overflow-x: hidden;
  overflow-y: auto; /* ✅ Enables vertical scroll */
}

/* ========================= MOBILE CONTAINER ========================= */
.mobile-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh; /* ✅ Allows scrolling if content overflows */
  display: flex;
  flex-direction: column;
  background: #fff;
  margin: 0 auto;
  position: relative;
  padding-bottom: 160px;
}

/* ========================= HEADER ========================= */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 300;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.welcome-text .hi {
  font-size: 12px;
  color: #555;
}

.welcome-text .name {
  font-size: 14px;
  font-weight: 600;
}

/* ✅ Toast - mobile optimized */
.toast {
  position: fixed;
  top: 55px; /* distance from top, adjust as needed */
  left: 50%; /* center horizontally */
  transform: translateX(-50%); /* horizontal centering */
  display: flex;             /* flex to center text */
  justify-content: center;   /* horizontal center inside toast */
  align-items: center;       /* vertical center inside toast */
  text-align: center;        /* fallback for multi-line text */
  color: #28a745;            /* success green */
  font-size: 13px;
  padding: 8px 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  max-width: 90%;
  width: auto;
  word-wrap: break-word;
  background: rgba(0, 0, 0, 0.1); /* optional semi-transparent */
  border-radius: 8px;        /* optional rounded corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.5s ease-in-out;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}

/* ========================= SECTION TITLE ========================= */
.section-title {
  font-size: 14px;
  font-weight: 600;
  padding: 14px;
  color: #222;
}

/* ========================= HERO CAROUSEL ========================= */
.hero-carousel {
  position: relative;
  width: 400px;                 /* Set width */
  height: 193px;                /* Set height */
  overflow: hidden;
  background: linear-gradient(135deg, #7f90e3, #f7e8ff);
  border-radius: 12px;          /* Rounded corners */
  border: 0.5px solid rgba(0,0,0,0.2); /* Border width and light color */
  margin: 10px auto;      /* Align to right */
  transform: rotate(0deg);      /* Angle */
  opacity: 1;                    /* Fully visible */
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;          /* Match carousel */
  border: 0.5px solid rgba(0,0,0,0.2); /* Optional border on image */
  transform: rotate(0deg);      /* Angle */
  opacity: 1;                    /* Fully visible */
}

.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.banner-title {
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  margin-bottom: 10px;
}

.view-menu-btn {
  position: absolute;       /* Positionable within overlay */
  bottom: -44px;             /* Adjust so button is above the carousel dots */
  left: 50%;                /* Center horizontally */
  transform: translateX(-50%);
  width: 182px;
  height: 39px;
  border-radius: 39px;
  background: #FAF300;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
  transition: transform 0.3s;
  text-decoration: none;
  text-align: center;
  line-height: 39px;        /* Vertically center the text */
  z-index: 2;               /* Ensure it’s above carousel dots */
}

.view-menu-btn:hover {
  transform: translateX(-50%) scale(1.05); /* Keep horizontal centering while scaling */
}

/* Carousel controls */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: #333;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-carousel:hover .prev,
.hero-carousel:hover .next {
  opacity: 1;
}

.prev { left: 10px; }
.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(151, 16, 16, 0.5);
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}

.carousel-dots .dot.active {
  background: #FAF300;
  border-color: #FAF300;
}

/* ========================= SERVICE CARDS ========================= */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 14px;
}

.service-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 120px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-wrapper .fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.7));
}

.service-card p {
  position: absolute;
  bottom: 6px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  z-index: 2;
}

/* ========================= CTA BUTTONS ========================= */
.pooja-stable {
  position: fixed;
  bottom: 77px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
  z-index: 250;
}

.chat-stable, 
.call-stable {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  background: linear-gradient(to right, #3F0853, #B72BEB);
}

/* Hover effects */
.chat-stable:hover,
.call-stable:hover {
  background: linear-gradient(to right, #4b0a65, #9c1ed6);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(183, 0, 255, 0.4);
}

/* Click/tap feedback */
.chat-stable:active,
.call-stable:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ========================= BOTTOM NAV ========================= */
.bottom-nav {
  position: fixed;
  bottom: 0;                 /* Stick to very bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;               /* Full width for mobile responsiveness */
  max-width: 480px;          /* Limit max width on larger screens */
  background: #fff;
  border-radius: 24px 24px 0 0; /* Rounded top corners only */
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 18px rgba(0,0,0,0.15); /* Shadow above nav */
  z-index: 200;
}

.bottom-nav a {
  color: #555;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.bottom-nav i {
  font-size: 20px;
  margin-bottom: 2px;
}

.bottom-nav a.active {
  color: #8e2de2;
}

/* ========================= HEADER ICONS ========================= */
.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

/* ========================= LOGIN + LOGOUT ========================= */
.login-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.login-btn:hover {
  background: linear-gradient(135deg, #ff5c4d 0%, #d12e2e 100%);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.logout-btn {
  background: linear-gradient(135deg, #555 0%, #333 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.logout-btn:hover {
  background: linear-gradient(135deg, #666 0%, #222 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* ========================= RESET & BASE STYLING ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #7f90e3, #f7e8ff);
  overflow-x: hidden;
  overflow-y: auto; /* ✅ Enables vertical scroll */
}

/* ========================= MOBILE CONTAINER ========================= */
.mobile-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh; /* ✅ Allows scrolling if content overflows */
  display: flex;
  flex-direction: column;
  background: #fff;
  margin: 0 auto;
  position: relative;
  padding-bottom: 160px;
}

/* ========================= HEADER ========================= */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 300;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.welcome-text .hi {
  font-size: 12px;
  color: #555;
}

.welcome-text .name {
  font-size: 14px;
  font-weight: 600;
}

/* ========================= SECTION TITLE ========================= */
.section-title {
  font-size: 14px;
  font-weight: 600;
  padding: 14px;
  color: #222;
}

/* ========================= HERO CAROUSEL ========================= */
.hero-carousel {
  position: relative;
  width: 400px;                 /* Set width */
  height: 193px;                /* Set height */
  overflow: hidden;
  background: linear-gradient(135deg, #7f90e3, #f7e8ff);
  border-radius: 12px;          /* Rounded corners */
  border: 0.5px solid rgba(0,0,0,0.2); /* Border width and light color */
  margin: 10px auto;      /* Align to right */
  transform: rotate(0deg);      /* Angle */
  opacity: 1;                    /* Fully visible */
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;          /* Match carousel */
  border: 0.5px solid rgba(0,0,0,0.2); /* Optional border on image */
  transform: rotate(0deg);      /* Angle */
  opacity: 1;                    /* Fully visible */
}

.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.banner-title {
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  margin-bottom: 10px;
}

.view-menu-btn {
  position: absolute;       /* Positionable within overlay */
  bottom: -44px;             /* Adjust so button is above the carousel dots */
  left: 50%;                /* Center horizontally */
  transform: translateX(-50%);
  width: 182px;
  height: 39px;
  border-radius: 39px;
  background: #FAF300;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
  transition: transform 0.3s;
  text-decoration: none;
  text-align: center;
  line-height: 39px;        /* Vertically center the text */
  z-index: 2;               /* Ensure it’s above carousel dots */
}

.view-menu-btn:hover {
  transform: translateX(-50%) scale(1.05); /* Keep horizontal centering while scaling */
}

/* Carousel controls */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: #333;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-carousel:hover .prev,
.hero-carousel:hover .next {
  opacity: 1;
}

.prev { left: 10px; }
.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(151, 16, 16, 0.5);
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}

.carousel-dots .dot.active {
  background: #FAF300;
  border-color: #FAF300;
}

/* ========================= SERVICE CARDS ========================= */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 14px;
}

.service-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 120px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-wrapper .fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,rgba(0,0,0,0.4),rgba(0,0,0,0.7));
}

.service-card p {
  position: absolute;
  bottom: 6px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  z-index: 2;
}

/* ========================= CTA BUTTONS ========================= */
.pooja-stable {
  position: fixed;
  bottom: 77px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
  z-index: 250;
}

.chat-stable, .call-stable {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: 0.25s;
}

.chat-stable,
.call-stable {
  background: linear-gradient(to right, #3F0853, #B72BEB);
}

.chat-stable:active,
.call-stable:active {
  transform: scale(0.97);
}

/* ========================= BOTTOM NAV ========================= */
.bottom-nav {
  position: fixed;
  bottom: 0;                 /* Stick to very bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;               /* Full width for mobile responsiveness */
  max-width: 480px;          /* Limit max width on larger screens */
  background: #fff;
  border-radius: 24px 24px 0 0; /* Rounded top corners only */
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 18px rgba(0,0,0,0.15); /* Shadow above nav */
  z-index: 200;
}

.bottom-nav a {
  color: #555;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.bottom-nav i {
  font-size: 20px;
  margin-bottom: 2px;
}

.bottom-nav a.active {
  color: #8e2de2;
}

/* ========================= HEADER ICONS ========================= */
.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

/* ========================= LOGIN + LOGOUT ========================= */
.login-btn {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  border-radius: 22px;
  font-weight: 600;
  padding: 8px 18px; /* same as lang-btn */
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.4px;
  transition: all 0.35s ease;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3); /* matched shadow style */
  overflow: hidden; /* For shine effect */
  width: auto; /* remove fixed width to match .lang-btn behavior */
  max-width: none;
  margin: 0 auto;
}

.login-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 14px rgba(231, 76, 60, 0.4);
}

.login-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Shine animation effect */
.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: skewX(-20deg);
  transition: all 0.7s ease;
}

.login-btn:hover::before {
  left: 110%;
}

/* ========================= LANGUAGE BUTTON ========================= */
.lang-btn {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%);
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.4px;
  transition: all 0.35s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;  /* clip inner shine */
}

.lang-btn:hover {
  background: linear-gradient(135deg, #3F0853 0%, #B72BEB 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.35);
  transform: translateY(-2px) scale(1.05);
  border-color: transparent;
}

.lang-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 80%);
  transform: skewX(-20deg);
  transition: all 0.7s ease;
}

.lang-btn:hover::before { 
  left: 110%;  /* reduced from 130% to stay within container */
}


/* ========================= RESPONSIVE ========================= */
@media (max-width: 480px) {

  /* ✅ Toast - mobile optimized */
  .toast {
    top: 55px;
    font-size: 13px;
    padding: 8px 14px;
    width: 90%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }

  /* ✅ Bottom Nav - fixed full width */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 16px 16px 0 0;
    transform: none !important;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.12);
  }

  /* ✅ Nav Icons and Labels */
  .bottom-nav a {
    font-size: 10px;
  }

  .bottom-nav i {
    font-size: 18px;
    margin-bottom: 1px;
  }

  /* ✅ Pooja Buttons */
  .pooja-stable {
    bottom: 80px;
    width: 92%;
    flex-direction: row;
    gap: 8px;
  }

  .chat-stable, .call-stable {
    padding: 9px;
    font-size: 12px;
  }

  /* ✅ Carousel */
  .hero-carousel {
  width: calc(100vw - 30px); /* adds side spacing (15px each side) */
  max-width: 380px;
  aspect-ratio: 400 / 193;
  margin: 10px auto;
  border-radius: 10px;
  display: block;
}
  .banner-title {
    font-size: 13px;
  }

  .view-menu-btn {
    width: 140px;
    height: 34px;
    font-size: 12px;
    bottom: -30px;
  }

  /* ✅ Top Header */
  .top-header {
    width: 100vw;
    padding: 12px 14px;
  }

  /* ✅ Mobile container fix */
  .mobile-container {
    width: 100vw;
    padding-bottom: 150px; /* allow for bottom nav + pooja-stable */
  }

  /* ✅ Language + Login Buttons */
  .lang-btn, .login-btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 18px;
  }

  /* ✅ Section titles & cards */
  .section-title {
    font-size: 13px;
    padding: 10px 12px;
  }

  .services {
    gap: 8px;
    padding: 0 10px 12px;
  }

  .service-card {
    height: 110px;
  }

  .service-card p {
    font-size: 12px;
  }
}