/* ==========================================================================
   GLOBAL PLATFORM & TYPOGRAPHY STYLES
   ========================================================================== */
:root {
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Bengali', sans-serif;
}

html, body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Bengali', sans-serif;
}

p {
  font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
}

/* ==========================================================================
   GLOBAL ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes autoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes autoRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes autoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@keyframes autoFloatRocket {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -8px) rotate(8deg); }
}

@keyframes autoBarsRise {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.22); }
}

@keyframes messageSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 90%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -24; }
}

@keyframes soundWave {
  0%, 100% { height: 12px; }
  50% { height: 48px; }
}

@keyframes badgePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes badgeFloatFast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* ==========================================================================
   ANIMATION CLASS BINDINGS
   ========================================================================== */
.anim-build {
  animation: autoBounce 2.2s ease-in-out infinite;
}
.anim-theme {
  animation: autoRotate 8s linear infinite;
}
.anim-manage {
  animation: autoPulse 2s ease-in-out infinite;
}
.anim-analytics {
  animation: autoBarsRise 1.8s ease-in-out infinite;
  transform-origin: bottom center;
}
.anim-grow {
  animation: autoFloatRocket 2.4s ease-in-out infinite;
}

.animate-msg {
  animation: messageSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float-device {
  animation: subtleFloat 5s ease-in-out infinite;
}
.animate-badge-1 {
  animation: badgeFloatFast 4s ease-in-out infinite 0.2s;
}
.animate-badge-2 {
  animation: badgeFloatFast 4.5s ease-in-out infinite 1.2s;
}
.animate-badge-3 {
  animation: badgeFloatFast 3.8s ease-in-out infinite 0.7s;
}

.pulse-tag {
  animation: badgePulse 2s ease-in-out infinite;
}

/* ==========================================================================
   SWIPER & THEME SLIDER STYLES
   ========================================================================== */
.vertical-theme-swiper {
  height: 310px;
  width: 100%;
  overflow: hidden;
}
.vertical-theme-swiper .swiper-slide {
  height: auto !important;
}

/* ==========================================================================
   SCROLLBAR STYLES
   ========================================================================== */
.custom-mini-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-mini-scrollbar::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 10px;
}
.custom-mini-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.custom-mini-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.chat-box-scroll::-webkit-scrollbar,
.chat-scroll::-webkit-scrollbar {
  width: 3px;
}
.chat-box-scroll::-webkit-scrollbar-thumb,
.chat-scroll::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.custom-feed-scrollbar::-webkit-scrollbar {
  width: 3px;
}
.custom-feed-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

/* ==========================================================================
   EFFECTS & COMPONENTS STYLES
   ========================================================================== */
.scan-effect {
  position: relative;
  overflow: hidden;
}
.scan-effect::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, #E85A14);
  box-shadow: 0 0 8px var(--accent, #E85A14);
  animation: scanLaser 1.5s ease-in-out infinite;
}

.circuit-line {
  stroke: #e2e8f0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 4;
}

.card-pulse-active {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 30px -6px rgba(232, 90, 20, 0.25);
  border-color: var(--accent, #E85A14) !important;
}

/* ==========================================================================
   SWEETALERT2 CUSTOM POPUP STYLES
   ========================================================================== */
.swal2-popup.ip-swal,
.swal2-popup.premium-swal {
  border-radius: 24px !important;
  padding: 24px !important;
  font-family: inherit !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important;
}

/* ==========================================================================
   SOUND WAVE ANIMATION STYLES
   ========================================================================== */
.wave-bar {
  animation: soundWave 1.4s ease-in-out infinite;
}
.wave-bar:nth-child(2) {
  animation-delay: 0.15s;
}
.wave-bar:nth-child(3) {
  animation-delay: 0.3s;
}
.wave-bar:nth-child(4) {
  animation-delay: 0.45s;
}
.wave-bar:nth-child(5) {
  animation-delay: 0.2s;
}
.wave-bar:nth-child(6) {
  animation-delay: 0.5s;
}
.wave-bar:nth-child(7) {
  animation-delay: 0.35s;
}
.wave-bar:nth-child(8) {
  animation-delay: 0.1s;
}

/* ==========================================================================
   SECTION ODD/EVEN BACKGROUND COLORS — disabled site-wide.
   Sections now carry explicit design-token backgrounds (bg-white / bg-bg-alt);
   forcing nth-of-type colours here hid text on dark accent sections.
   ========================================================================== */

:root {
  --shadow-card: 0 18px 50px -12px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 26px 65px -10px rgba(15, 23, 42, 0.2);
  --shadow-soft: 0 8px 28px -6px rgba(15, 23, 42, 0.1);
  --shadow-soft-hover: 0 14px 40px -8px rgba(15, 23, 42, 0.16);
  --border-card: 1px solid rgba(226, 232, 240, 0.95);
}

main > section .bg-white.rounded-2xl,
main > section .bg-white.rounded-3xl,
main > section .rounded-3xl.backdrop-blur-xs {
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

main > section .bg-white.rounded-2xl:hover,
main > section .bg-white.rounded-3xl:hover,
main > section .rounded-3xl.backdrop-blur-xs:hover {
  box-shadow: var(--shadow-card-hover);
}

main > section .step-card {
  box-shadow: var(--shadow-soft);
  border: var(--border-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

main > section .step-card:hover {
  box-shadow: var(--shadow-soft-hover);
  transform: translateY(-5px);
}

main > section .order-row,
main > section .loc-row {
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

main > section .order-row:hover,
main > section .loc-row:hover {
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

:root {
  --brand: var(--accent, #E85A14);
  --brand-dark: var(--accent-hover, #C2410C);
  --brand-light: var(--icon-tint, #FFF4ED);
  --brand-lighter: #FFF9F5;
  --brand-soft: rgba(232, 90, 20, 0.15);
  --brand-glow: rgba(232, 90, 20, 0.35);
}

:root {
  --color-primary: var(--accent, #E85A14);
}

/* ==========================================================================
   GENTLE SWAY (FLOAT) & LIGHT HOVER MICRO-INTERACTIONS
   ========================================================================== */

/* Floating pill navbar — deeper shadow + solid bg once scrolled */
#floating-nav {
  transition: box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}
#floating-nav.nav-scrolled {
  background-color: rgba(255, 255, 255, .95);
  border-color: rgba(226, 232, 240, 1);
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, .22);
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(0.25deg); }
}

@keyframes floatSoftTilt {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50%      { transform: translateY(-6px) rotate(-0.6deg); }
}

.float-soft,
.float-soft-slow,
.float-soft-d1,
.float-soft-d2 {
  will-change: transform;
}
.float-soft      { animation: floatSoft 7s ease-in-out infinite; }
.float-soft-slow { animation: floatSoft 8.5s ease-in-out infinite; }
.float-soft-d1   { animation: floatSoft 7s ease-in-out infinite 1.3s; }
.float-soft-d2   { animation: floatSoft 7.6s ease-in-out infinite 2.4s; }
.float-soft-tilt { animation: floatSoftTilt 7s ease-in-out infinite; will-change: transform; }

/* Light hover: checklist rows slide slightly */
main > section div.flex.items-center:has(> div.w-4.h-4.rounded-full) {
  transition: transform .25s ease;
}
main > section div.flex.items-center:has(> div.w-4.h-4.rounded-full):hover {
  transform: translateX(5px);
}

/* Light hover: team member rows slide slightly */
#members-list-wrapper > div {
  transition: transform .25s ease, background-color .25s ease;
}
#members-list-wrapper > div:hover {
  transform: translateX(4px);
}

/* Light hover: non-active coverflow slides brighten */
.custom-swiper-section .swiper-slide:hover {
  opacity: 1;
}

/* ==========================================================================
   SNAKE BORDER EFFECT — disabled site-wide (animated ring removed)
   ========================================================================== */

/* Anchor positioning context (only on boxes that are not already positioned) */
.snake-border:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) .bg-white.rounded-2xl:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) .bg-white.rounded-3xl:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) .rounded-3xl.backdrop-blur-xs:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) .step-card:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) .theme-frame:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) .animate-badge-1:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) .animate-badge-2:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) .animate-badge-3:not(.absolute):not(.fixed):not(.sticky),
main > section:not(.no-snake) [class~="rounded-[36px]"]:not(.absolute):not(.fixed):not(.sticky),
#focus-features .grid > div:not(.absolute):not(.fixed):not(.sticky) {
  position: relative;
}

/* The moving light ring itself — disabled: no ::before is generated,
   so no snake border is rendered anywhere on the page. */

/* ==========================================================================
   GLASS SHINE — animated gloss sweep on CTA buttons
   ========================================================================== */
.btn-glass {
  position: relative;
  overflow: hidden;
}

.btn-glass::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.35) 45%,
      rgba(255, 255, 255, 0.65) 50%,
      rgba(255, 255, 255, 0.35) 55%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg) translateX(-160%);
  animation: btnGlassShine 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Light/white buttons get a soft slate sweep instead of white */
.btn-glass.bg-white::after {
  background: linear-gradient(105deg,
      rgba(148, 163, 184, 0) 0%,
      rgba(148, 163, 184, 0.18) 45%,
      rgba(148, 163, 184, 0.35) 50%,
      rgba(148, 163, 184, 0.18) 55%,
      rgba(148, 163, 184, 0) 100%);
}

@keyframes btnGlassShine {
  0%   { transform: skewX(-18deg) translateX(-160%); }
  60%  { transform: skewX(-18deg) translateX(320%); }
  100% { transform: skewX(-18deg) translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-glass::after {
    animation: none;
  }
}