@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap");
/* Custom Styles for a more modern and cohesive feel */
:root {
  --brand-gradient: linear-gradient(
    90deg,
    #f9a825,
    #ef4444,
    #ec4899,
    #8b5cf6,
    #3b82f6
  );
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f7fc;
  /* Fallback background */
  background-image: radial-gradient(
      circle at top left,
      rgba(236, 72, 153, 0.05),
      transparent 40vmax
    ),
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.05),
      transparent 40vmax
    );
  color: #334155;
  /* Using a dark slate gray for text for better readability */
  overflow-x: hidden;
}

.rainbow-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.gradient-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 0.4),
    rgba(239, 68, 68, 0.45),
    rgba(251, 191, 36, 0.39),
    rgba(59, 130, 246, 0.7)
  );
  z-index: 1;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 30px -5px rgb(0 0 0 / 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.1);
}

#mobile-menu {
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 500px;
  /* Adjust as needed */
}

/* Custom animation for hero text */
.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ accordion styles */
.faq-answer {
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    padding 0.3s ease-in-out, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Adjust if answers are longer */
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  opacity: 1;
}

.faq-item .faq-toggle-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(135deg);
  color: #ec4899;
  /* Pink-500 */
}

/* Submenu styles */
#submenu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Decorative background blob */
.background-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -10;
}

/* Hero slider styles */
.hero-slide {
  transition: opacity 1s ease-in-out;
}

/* New CSS for Sticky Social Icons */
.sticky-social {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.sticky-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sticky-social a:hover {
  transform: scale(1.1) translateX(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sticky-social .whatsapp {
  background-color: #25d366;
}
.sticky-social .facebook {
  background-color: #1877f2;
}
.sticky-social .twitter {
  background-color: #14171a;
}
.sticky-social .youtube {
  background-color: #ff0000;
}
/* Custom input field styles with inner shadow */
.form-input {
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
/* CSS for mobile submenu accordion */
.mobile-submenu-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* ======================================================= */
/* CUSTOM SCROLLBAR STYLES                            */
/* ======================================================= */

/* Works on Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ec4899 #e5e7eb; /* thumb-color track-color */
}

/* Works on Chrome, Edge, and Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9; /* A light gray track */
}

::-webkit-scrollbar-thumb {
  background-image: linear-gradient(
    180deg,
    #f9a825,
    #ef4444,
    #ec4899,
    #8b5cf6,
    #3b82f6
  );
  border-radius: 20px;
  border: 3px solid #f1f5f9; /* Creates a padding effect */
}

::-webkit-scrollbar-thumb:hover {
  border: 2px solid #f1f5f9;
}
/* 3. শুধুমাত্র p ট্যাগের জন্য Merriweather ফন্ট সেট করা হলো */
p {
  font-family: "Merriweather", serif;
  line-height: 1.8; /* পড়ার সুবিধার জন্য */
}
/*
 * Navigation Menu Font Change
 * This will apply the Merriweather font to all links and buttons
 * inside the main navigation bar (#navbar).
*/
#navbar a,
#navbar button {
  font-family: "Merriweather", serif;
  /* প্রয়োজনে ফন্টের ওজন পরিবর্তন করতে পারেন, যেমন: */
  /* font-weight: 500; */
}
