/* ===========================
   RESET & THEME
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #1e1e1e;
  --muted: #333;
  --brand-primary: #153d82;
  --bg: #f9fafb;
  --acc-start: #f97316;
  --acc-end: #ff3d3d;
  --card-border: #e5e7eb;
}


/* Loader styles */
#loader {
    position: fixed;
    inset: 0;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.10, 0, 0.14, 1);
    padding: 1rem;
    overflow: hidden;
}

#loader-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 8vw, 4rem);
    font-weight: bold;
    text-align: center;
    background: linear-gradient(90deg, #F48C06, #DC2F02);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    word-break: break-word;
    opacity: 1;
    transition: opacity 0.2s ease;
}

#loader.hidden {
    transform: translateY(-100%);
}

/* --- Fade Section Animation --- */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base + hide scrollbars (cross-browser) */
html,
body {
  height: 100%;
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* ===========================
   UNIVERSAL 5% SIDE GAP (container pattern)
=========================== */
header,
footer {
  padding-left: 5% !important;
  padding-right: 5% !important;
}

.page-container {
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
}

.page-container>* {
  max-width: 1800px;
  margin: 0 auto;
}

/* ===== Header sticky + hide animation ===== */
header.header-sticky-ready {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.35s ease, opacity 0.25s ease;
  will-change: transform, opacity;
}

header.header-sticky-ready.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1 {
  font-size: clamp(2rem, 3vw + 1rem, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 2.2vw + 0.6rem, 3rem);
}

p {
  font-size: clamp(0.95rem, 1.1vw + 0.4rem, 1.25rem);
}

/* Extra tightening for very small screens */
@media (max-width: 480px) {
  :root {
    --tight-scale: 0.9;
  }

  h1 {
    font-size: calc(clamp(2rem, 3vw + 1rem, 4rem) * var(--tight-scale));
  }

  h2 {
    font-size: calc(clamp(1.5rem, 2.2vw + 0.6rem, 3rem) * var(--tight-scale));
  }

  p {
    font-size: calc(clamp(0.95rem, 1.1vw + 0.4rem, 1.25rem) * var(--tight-scale));
  }
}

/* ===========================
   HERO
=========================== */
.firstSection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 10px 0;
  min-height: 75vh;
  background: var(--bg);
}

.leftSection {
  flex: 1;
  max-width: 720px;
  text-align: left;
}

.leftSection h1 {
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 8px;
}

.leftSection h2 {
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 20px;
}

.leftSection p {
  font-family: "Nunito", sans-serif;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 26px;
}

.leftSection a {
  font-weight: 800;
  text-decoration: none;
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.5rem);
  background: linear-gradient(to right, var(--acc-start), var(--acc-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 2px solid transparent;
  transition: 0.25s ease;
}

.leftSection a:hover {
  border-color: var(--acc-end);
  padding-left: 6px;

}

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

.rightSection img {
  width: 110%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
}

/* ===========================
   APK DOWNLOAD SECTION — FIXED
=========================== */
.apk-download {
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  padding: 20px 30px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.apk-download::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(90deg, #f97316, #ff3d3d);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.apk-download p {
  color: #153d82;
  font-size: clamp(1.2rem, 2vw + 0.6rem, 1.8rem);
  margin: 0;
  z-index: 1;
}

.apk-download a {
  text-decoration: none;
  z-index: 1;
}

.apk-download a button {
  background: linear-gradient(to right, #f97316, #ff3d3d);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.apk-download a button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.apk-download a button .material-symbols-outlined {
  font-size: 26px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .apk-download {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 25px 15px;
  }

  .apk-download p {
    font-size: 1.2rem;
  }

  .apk-download a button {
    font-size: 0.95rem;
    padding: 8px 14px;
  }
}


/* ===========================
   CATEGORIES
=========================== */
.category {
  margin: 60px 0;
}

.category h1 {
  font-weight: 900;
  color: var(--brand-primary);
  text-align: left;
  margin-bottom: 40px;
  padding-left: 10px;
}

.typeOfCategory {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.Categorybox {
  color: #000;
  position: relative;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--card-border);
  padding: 1.5rem;
  width: 31%;
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.Categorybox:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  background: linear-gradient(to right, var(--acc-start), var(--acc-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.Categorybox p {
  font-weight: 600;
  font-size: clamp(1rem, 1vw + 0.6rem, 1.4rem);
}

.Categorybox img {
  width: 80px;
  height: 80px;
}

/* ===========================
   SLIDERS
=========================== */
.slider.fade-slider {
  position: relative;
  width: 100%;
  height: 650px;
  margin: 40px 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  background: #000;
}

.fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.fade-slide.active {
  opacity: 1;
  visibility: visible;
}

.fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* ===========================
   IDEA SLIDER (Smooth Fade)
=========================== */
#ideaSlider {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  background: #fff;
  border: 1px solid #153d82;
}

#ideaSlider .fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px;
}

#ideaSlider .fade-slide.active {
  opacity: 1;
  visibility: visible;
}

.idea-slide-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  height: 100%;
}

.idea-text {
  width: 50%;
}

.idea-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #153d82;
  margin-bottom: 10px;
}

.idea-text p {
  color: #333;
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-row {
  display: flex;
  gap: 12px;
}

.btn-row .view-btn {
  background: linear-gradient(to right, var(--acc-start), var(--acc-end));
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-row .view-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-row .saved-btn {
  background: linear-gradient(to right, var(--acc-start), var(--acc-end));
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.save-btn {
  background: linear-gradient(to right, var(--acc-start), var(--acc-end));
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.idea-image {
  width: 50%;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.idea-image img {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(to right, var(--acc-start), var(--acc-end));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
}

/* ===========================
   Idea slides RESPONSIVE DESIGN
=========================== */

/* Tablets (â‰¤1024px) */
@media (max-width: 1024px) {
  #ideaSlider {
    height: auto;
    min-height: 400px;
  }

  #ideaSlider .fade-slide {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .idea-text {
    width: 90%;
  }

  .idea-text h3 {
    font-size: 1.6rem;
  }

  .idea-text p {
    font-size: 1rem;
  }

  .idea-image {
    width: 90%;
    justify-content: center;
  }

  .idea-image img {
    height: 260px;
  }
}

/* Mobiles (â‰¤768px) */
@media (max-width: 768px) {
  #ideaSlider {
    border-radius: 8px;
    height: auto;
  }

  #ideaSlider .fade-slide {
    gap: 20px;
    padding: 20px;
  }

  .idea-slide-content {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .idea-text {
    width: 100%;
    text-align: center;
  }

  .idea-text h3 {
    font-size: 1.4rem;
  }

  .idea-text p {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
  }

  .btn-row {
    justify-content: center;
  }

  .idea-image {
    width: 100%;
    justify-content: center;
  }

  .idea-image img {
    height: 220px;
  }

  .category-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

/* Small Mobiles (â‰¤480px) */
@media (max-width: 480px) {
  #ideaSlider .fade-slide {
    padding: 16px;
    gap: 15px;
  }

  .idea-text h3 {
    font-size: 1.2rem;
  }

  .idea-text p {
    font-size: 0.9rem;
  }

  .idea-image img {
    height: 180px;
  }

  .btn-row .view-btn,
  .btn-row .saved-btn,
  .save-btn {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #323232;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
  font-family: 'Nunito', sans-serif;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background-color: #28a745;
}

.toast.removed {
  background-color: #dc3545;
}

/* ===========================
   FADE-IN / FADE-OUT SCROLL
=========================== */
.fade-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- POPUP MODAL ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  padding: 20px;
  overflow-y: auto;
}

.popup-overlay.show {
  display: flex !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.popup-content {
  background: #fff;
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  font-family: 'Nunito', sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #ddd;
  background: #f8f9fb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.popup-header h2 {
  margin: 0;
  font-size: 20px;
  color: #1f4f7b;
  font-weight: 700;
}

.popup-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  line-height: 1;
}

.popup-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.popup-body img {
  width: 100%;
  border-radius: 10px;
  margin: 12px 0;
  object-fit: cover;
  max-height: 380px;
}

.popup-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 15px;
  color: #111;
}

.popup-body p {
  font-size: 15px;
  line-height: 1.5;
  margin: 1px 0;
}

.budgetBox {
  border: 1px solid black;
  border-radius: 8px;
  padding: 1px 5px;
  margin-top: 10px;
}

.budgetBox h3 {
  text-align: center;
  font-size: 20px;
  font-style: bold;
}

#popupBudget {
  white-space: nowrap;
  overflow-x: auto;
}

.popup-body .material-box {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 10px 30px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

body::-webkit-scrollbar,
.popup-body::-webkit-scrollbar {
  display: none;
}

@media (max-width: 600px) {
  .popup-content {
    max-width: 95%;
    max-height: 85vh;
  }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1280px) {
  .slider.fade-slider {
    height: 540px;
  }
}

@media (max-width: 1024px) {
  .firstSection {
    flex-direction: column;
    padding: 40px 0;
    gap: 36px;
  }

  .leftSection {
    text-align: center;
    max-width: 100%;
  }

  .rightSection {
    order: -1;
    width: 80%;
  }

  .typeOfCategory {
    justify-content: center;
    gap: 1.25rem;
  }

  .Categorybox {
    width: 47%;
    min-height: 110px;
    padding: 1.1rem;
  }

  .slider.fade-slider {
    height: 420px;
  }

  #ideaSlider .fade-slide {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 18px;
  }

  .idea-text,
  .idea-image {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .Categorybox {
    width: 100%;
    min-height: 92px;
    padding: 1rem;
  }

  .Categorybox img {
    width: 56px;
    height: 56px;
  }

  .slider.fade-slider {
    height: 280px;
    margin: 28px 0;
  }

  .category h1 {
    text-align: center;
    padding-left: 0;
  }
}

@media (max-width: 360px) {
  .slider.fade-slider {
    height: 240px;
  }
}

@media (min-width: 1920px) {
  .slider.fade-slider {
    height: 740px;
  }
}

@media (min-width: 2560px) {
  .page-container>* {
    max-width: 2000px;
  }

  .slider.fade-slider {
    height: 820px;
  }
}
/* ===========================
   RESET
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===========================
   FLOATING CONSULTATION BUTTON
   (WhatsApp style)
=========================== */
.support-button {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 56px;
  height: 56px;

  background: #25d366;
  color: #fff;

  border-radius: 50%;
  border: none;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;

  z-index: 20000;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.no{
  filter: grayscale(100%);
}

.support-button:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.support-button .material-symbols-outlined {
  font-size: 30px;
}

/* Mobile adjustment */
@media (max-width: 480px) {
  .support-button {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
  .support-button .material-symbols-outlined {
    font-size: 28px;
  }
}

/* ===========================
   REST OF YOUR ORIGINAL CSS
   (UNCHANGED)
=========================== */

html, body {
  height: 100%;
  font-family: "Roboto", sans-serif;
  background: #f9fafb;
  overflow-y: auto;
}

/* toast */
.toast {
  position: fixed;
  bottom: 90px; /* avoids overlap */
  right: 20px;
  background: #323232;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
}

/* =========================================
   HIDE FLOATING BUTTONS WHILE LOADER IS ACTIVE
========================================= */

body.loading .support-button,
body.loading #chat-toggle-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

/* Smooth reveal after loader */
.support-button,
#chat-toggle-btn {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
