/* ============================================================
   CRMHub â€” css/style.css  (animations & utilities only)
   All layout/spacing uses Tailwind utility classes.
   ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

/* Float â€” gentle up / down */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes float-sm {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-lg {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-22px);
  }
}

/* Ticker â€” infinite left scroll */
@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Fade-in from below */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scrolled floating navigation bar */
.scrolled-nav {
  top: 1.5rem !important;
  left: 1.5rem !important;
  right: 1.5rem !important;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: translateY(0);
}

.header-hidden {
  transform: translateY(-150%);
  opacity: 0;
}

/* Pulse glow */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 24px rgba(0, 96, 197, 0.25);
  }

  50% {
    box-shadow: 0 0 48px rgba(0, 96, 197, 0.55);
  }
}

@keyframes pulse-glow-cyan {

  0%,
  100% {
    box-shadow: 0 0 24px rgba(37, 153, 149, 0.25);
  }

  50% {
    box-shadow: 0 0 48px rgba(37, 153, 149, 0.55);
  }
}

/* Slow spin */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Blob morph */
@keyframes blob {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

/* Scale pulse */
@keyframes scale-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

/* Shimmer gradient */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Ripple */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Slide in dots */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   ANIMATION UTILITY CLASSES
   ============================================================ */

.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

.animate-float-sm {
  animation: float-sm 4s ease-in-out infinite;
}

.animate-float-lg {
  animation: float-lg 2.8s ease-in-out infinite;
}

.animate-float-d1 {
  animation: float 3.5s ease-in-out infinite 0.4s;
}

.animate-float-d2 {
  animation: float 3.5s ease-in-out infinite 0.8s;
}

.animate-float-d3 {
  animation: float 4s ease-in-out infinite 1.2s;
}

.animate-float-d4 {
  animation: float 3.8s ease-in-out infinite 1.6s;
}

.animate-float-d5 {
  animation: float-sm 4.5s ease-in-out infinite 0.6s;
}

.animate-float-d6 {
  animation: float-sm 3.2s ease-in-out infinite 2s;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.animate-pulse-glow-cyan {
  animation: pulse-glow-cyan 2.5s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

.animate-blob {
  animation: blob 8s ease-in-out infinite;
}

.animate-scale-pulse {
  animation: scale-pulse 3s ease-in-out infinite;
}

/* Ticker */
.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker 35s linear infinite;
}

.ticker-wrapper:hover .ticker-inner {
  animation-play-state: paused;
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================================ */
.section-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #0060c5 0%, #259995 55%, #259995 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #0060c5 0%, #0060c5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   GLASSMORPHISM
   ============================================================ */
.glass-header {
  background: transparent;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.glass-dark {
  background: rgba(15, 15, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ============================================================
   BLOB BACKGROUND DECORATIONS
   ============================================================ */
.blob-blue {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 96, 197, 0.35) 0%, rgba(0, 96, 197, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
}

.blob-purple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 153, 149, 0.30) 0%, rgba(37, 153, 149, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
}

.blob-cyan {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 153, 149, 0.25) 0%, rgba(37, 153, 149, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
@keyframes btn-shine-anim {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0060c5 0%, #259995 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  /* Fully rounded pill shape */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 96, 197, 0.30), inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: btn-shine-anim 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 96, 197, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #004a99 0%, #259995 100%);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 96, 197, 0.3), inset 0 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid #0060c5;
  color: #0060c5;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: #0060c5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 96, 197, 0.30);
}

/* ============================================================
   CARD HOVER EFFECTS
   ============================================================ */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 56px -10px rgba(0, 96, 197, 0.18);
}

.industry-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.industry-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px -8px rgba(0, 96, 197, 0.22);
  border-color: rgba(0, 96, 197, 0.35) !important;
}

.template-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 60px -10px rgba(0, 96, 197, 0.20);
}

.category-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 48px -8px rgba(0, 96, 197, 0.18);
  border-color: rgba(0, 96, 197, 0.30) !important;
}

.module-icon-wrap {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-icon-wrap:hover {
  transform: translateY(-6px) scale(1.12) rotate(5deg);
}

.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px -10px rgba(0, 96, 197, 0.18);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0060c5, #259995);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-answer.open {
  max-height: 400px;
}

.faq-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-arrow.rotated {
  transform: rotate(180deg);
}

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-featured {
  background: linear-gradient(145deg, #0060c5 0%, #259995 60%, #9B59FF 100%);
}

.pricing-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px -12px rgba(0, 96, 197, 0.22);
}

/* ============================================================
   STATS CARD
   ============================================================ */
.stats-card {
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 96, 197, 0.15);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0060c5, #259995);
}

/* ============================================================
   GRADIENT BORDER CARD
   ============================================================ */
.gradient-border-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
}

.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: 21.5px;
  background: linear-gradient(135deg, rgba(0, 96, 197, 0.5), rgba(37, 153, 149, 0.5), rgba(37, 153, 149, 0.5));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gradient-border-card:hover::before {
  opacity: 1;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-gradient {
  background: linear-gradient(135deg, #0060c5 0%, #259995 55%, #259995 100%);
  position: relative;
  overflow: hidden;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#0060c5, #259995);
  border-radius: 999px;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================================
   GPU ACCELERATION
   ============================================================ */
.gpu {
  will-change: transform;
  transform: translateZ(0);
}

/* ============================================================
   DASHBOARD PREVIEW
   ============================================================ */
.dashboard-glow {
  filter: drop-shadow(0 40px 100px rgba(0, 96, 197, 0.22));
}

/* ============================================================
   BADGE
   ============================================================ */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(0, 96, 197, 0.1), rgba(37, 153, 149, 0.1));
  border: 1px solid rgba(0, 96, 197, 0.22);
  border-radius: 999px;
  color: #0060c5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============================================================
   GSAP CRM DIAGRAM SECTION
   ============================================================ */

/* Floating Background Particles */
.glass-particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.bg-grid-pattern {
  background-image: linear-gradient(to right, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glass Cards */
.gsap-module-card {
  position: relative;
}

.gsap-module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(135deg, #0060c5, #259995);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gsap-module-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 96, 197, 0.1), rgba(37, 153, 149, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gsap-module-card:hover .gsap-module-icon {
  transform: rotate(15deg) scale(1.1);
}

/* Core Card */
.gsap-core-card {
  position: relative;
}

.gsap-core-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 2px;
  background: linear-gradient(135deg, #0060c5, #259995);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Core Glowing Orb Behind */
.core-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 153, 149, 0.4) 0%, rgba(0, 96, 197, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 5;
  animation: pulse-orb 4s ease-in-out infinite alternate;
}

@keyframes pulse-orb {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* SVG Connection Lines */
.svg-connection-path {
  fill: none;
  stroke: url(#line-gradient);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.svg-connection-path.active {
  opacity: 1;
  stroke-width: 3;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTION 11 â€” FAQ
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Accordion Logic using Swiper active class */
.swiper-slide .faq-body {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.7s ease, opacity 0.7s ease;
}

.swiper-slide-active .faq-body {
  max-height: 500px;
  opacity: 1;
}

.swiper-slide .faq-icon-wrapper svg {
  transform: rotate(0deg);
  transition: transform 0.7s ease;
}

.swiper-slide-active .faq-icon-wrapper svg {
  transform: rotate(180deg);
}

/* Nav Buttons Glow and Rotate on Hover */
.faq-nav-btn:hover {
  box-shadow: 0 0 20px rgba(0, 96, 197, 0.4);
  transform: scale(1.05) rotate(3deg);
}

.faq-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Border Animation */
.faq-card-hover:hover .border-anim {
  /* Using standard tailwind classes in HTML for the border animation, no extra CSS needed for it to work */
}

/* Swiper custom resets */
.faqSwiper .swiper-button-next::after,
.faqSwiper .swiper-button-prev::after {
  display: none;
  /* Hide default swiper arrows */
}

/* ============================================================
   TICKER ANIMATION
   ============================================================ */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* ============================================================
   CUSTOM SCROLLBAR FOR VERTICAL TABS
   ============================================================ */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ============================================================
   DYNAMIC THEME SYSTEM (For Shared Header/Footer)
   ============================================================ */
:root {
  --theme-primary: #0060c5;
  --theme-primary-hover: #0050a5;
  --theme-gradient-start: #0060c5;
  --theme-gradient-end: #0060c5;
  --theme-glow: rgba(0, 96, 197, 0.3);
  --theme-glow-hover: rgba(0, 96, 197, 0.5);
}

body.theme-travel {
  --theme-primary: #EC4899;
  --theme-primary-hover: #F43F5E;
  --theme-gradient-start: #EC4899;
  --theme-gradient-end: #F43F5E;
  --theme-glow: rgba(236, 72, 153, 0.3);
  --theme-glow-hover: rgba(236, 72, 153, 0.5);
}

/* Base Utility Classes */
.theme-text-hover:hover {
  color: var(--theme-primary) !important;
}

.group:hover .group-hover\/item\:theme-text-hover {
  color: var(--theme-primary) !important;
}

.group:hover .group-hover\/item\:theme-bg {
  background-color: var(--theme-primary) !important;
}

.group:hover .group-hover\/item\:theme-border {
  border-color: var(--theme-primary) !important;
}

.theme-btn {
  background: linear-gradient(to right, var(--theme-gradient-start), var(--theme-gradient-end)) !important;
  color: white !important;
  box-shadow: 0 0 15px var(--theme-glow) !important;
  transition: all 0.3s ease !important;
}


/* Nav Link Hover Underline */
.theme-nav-border::after {
  background-color: var(--theme-primary) !important;
}

/* Dark Hero Mode Support for Header */
body.hero-dark #main-header:not(.scrolled-nav) .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.hero-dark #main-header:not(.scrolled-nav) .nav-link:hover {
  color: var(--theme-primary) !important;
}

body.hero-dark #main-header:not(.scrolled-nav) #mobile-menu-btn {
  color: white !important;
}

body.hero-dark #main-header:not(.scrolled-nav) .flex-shrink-0.group img.dark\:hidden {
  display: none !important;
}

body.hero-dark #main-header:not(.scrolled-nav) .flex-shrink-0.group img.dark\:block {
  display: block !important;
}

/* Banking Theme Override */
body.theme-banking {
  --theme-primary: #10B981;
  --theme-primary-hover: #059669;
  --theme-gradient-start: #10B981;
  --theme-gradient-end: #22C55E;
  --theme-glow: rgba(16, 185, 129, 0.3);
  --theme-glow-hover: rgba(16, 185, 129, 0.5);
}

/* ============================================================
   Custom Header Overrides
   ============================================================ */
.custom-dropdown-icon {
  color: white !important;
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}

.custom-dropdown-btn {
  border-radius: 9999px !important;
}

.theme-btn {
  border-radius: 50px;
}

body.theme-education {
  --theme-primary: #8B5CF6;
  --theme-primary-hover: #7C3AED;
  --theme-gradient-start: #A855F7;
  --theme-gradient-end: #7C3AED;
  --theme-glow: rgba(139, 92, 246, 0.3);
  --theme-glow-hover: rgba(139, 92, 246, 0.5);
}

body.theme-realestate {
  --theme-primary: #3B82F6;
  --theme-primary-hover: #2563EB;
  --theme-gradient-start: #3B82F6;
  --theme-gradient-end: #2563EB;
  --theme-glow: rgba(59, 130, 246, 0.3);
  --theme-glow-hover: rgba(59, 130, 246, 0.5);
}

body.theme-healthcare {
  --theme-primary: #14B8A6;
  --theme-primary-hover: #0D9488;
  --theme-gradient-start: #259995;
  --theme-gradient-end: #14B8A6;
  --theme-glow: rgba(20, 184, 166, 0.3);
  --theme-glow-hover: rgba(20, 184, 166, 0.5);
}

#business-enquiries-bar {
  transition: opacity 0.28s ease, visibility 0.28s ease, filter 0.28s ease;
}

#business-enquiries-bar.is-footer-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(3px);
}

/* ============================================================
   Common Back To Top Button
   ============================================================ */
@keyframes backToTopFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.back-to-top-btn {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 9998;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 52%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top-btn::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  background: rgba(59, 130, 246, 0.18);
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top-btn svg {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  /* animation: backToTopFloat 2.4s ease-in-out infinite; */
}

.back-to-top-btn:hover,
.back-to-top-btn:focus-visible {
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  outline: none;
}

.back-to-top-btn:hover::before,
.back-to-top-btn:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.back-to-top-btn:active {
  transform: translateY(2px) scale(0.96);
}

@media (max-width: 640px) {
  .back-to-top-btn {
    width: 2.85rem;
    height: 2.85rem;
  }

  .back-to-top-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .back-to-top-btn,
  .back-to-top-btn.is-visible {
    animation: none;
    transition: none;
  }
}


/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 180px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0060c5 0%, #259995 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
  box-shadow: 0 10px 20px rgba(0, 96, 197, 0.3);
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 96, 197, 0.4);
}

.back-to-top-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-3px);
}


/* Fix for intl-tel-input inline dropdown z-index */
.iti--inline-dropdown .iti__dropdown-content {
  z-index: 10000 !important;
}

/* Custom Bot Float */
@keyframes bot-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.animate-bot-float {
  animation: bot-float 3.5s ease-in-out infinite;
}

/* Shine Sweep for PNG */
@keyframes shine-sweep {
  0% {
    background-position: 200% center;
  }

  20% {
    background-position: -200% center;
  }

  100% {
    background-position: -200% center;
  }
}

.animate-shine-sweep {
  background: linear-gradient(120deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%, transparent 100%);
  background-size: 200% 100%;
  animation: shine-sweep 4s infinite;
}

.bot-mask {
  -webkit-mask-image: url('../assets/img/bot.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../assets/img/bot.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}