/* ============================================================
   POP-IN ANIMATION SYSTEM
   Optimized for low-end devices with GPU-accelerated transforms.
   All animations use only transform + opacity (composite-only).
   ============================================================ */

/* ---- Reduced motion: disable all pop-in animations ---- */
@media (prefers-reduced-motion: reduce) {

  .pop-in,
  .pop-in-up,
  .pop-in-down,
  .pop-in-left,
  .pop-in-right,
  .pop-in-scale,
  .pop-in-rotate,
  .pop-in-flip,
  .pop-in-zoom,
  .pop-in-bounce,
  .pop-in-swing,
  .pop-in-drop,
  .pop-in-spiral,
  .pop-in-elastic,
  .pop-in-blur,
  .pop-in-skew-left,
  .pop-in-skew-right,
  .pop-in-rise,
  .pop-in-expand,
  .pop-in-slide-fade,
  .pop-in-tilt,
  .pop-in-pop,
  .pop-in-unfold,
  .pop-in-cascade,
  [data-pop] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }
}

/* ---- Base hidden state (before intersection) ---- */
.pop-in,
.pop-in-up,
.pop-in-down,
.pop-in-left,
.pop-in-right,
.pop-in-scale,
.pop-in-rotate,
.pop-in-flip,
.pop-in-zoom,
.pop-in-bounce,
.pop-in-swing,
.pop-in-drop,
.pop-in-spiral,
.pop-in-elastic,
.pop-in-blur,
.pop-in-skew-left,
.pop-in-skew-right,
.pop-in-rise,
.pop-in-expand,
.pop-in-slide-fade,
.pop-in-tilt,
.pop-in-pop,
.pop-in-unfold,
.pop-in-cascade,
[data-pop] {
  opacity: 0;
  will-change: transform, opacity;
}

/* ---- Default pop-in (scale up + fade) ---- */
.pop-in,
[data-pop="in"] {
  transform: scale(0.85) translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in from bottom ---- */
.pop-in-up,
[data-pop="up"] {
  transform: translateY(40px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in from top ---- */
.pop-in-down,
[data-pop="down"] {
  transform: translateY(-40px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in from left ---- */
.pop-in-left,
[data-pop="left"] {
  transform: translateX(-50px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in from right ---- */
.pop-in-right,
[data-pop="right"] {
  transform: translateX(50px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in with big scale ---- */
.pop-in-scale,
[data-pop="scale"] {
  transform: scale(0.5);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Pop-in with rotation ---- */
.pop-in-rotate,
[data-pop="rotate"] {
  transform: rotate(-8deg) scale(0.9) translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in with 3D flip ---- */
.pop-in-flip,
[data-pop="flip"] {
  transform: perspective(800px) rotateX(-15deg) translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in zoom (from center, dramatic) ---- */
.pop-in-zoom,
[data-pop="zoom"] {
  transform: scale(0.3);
  transition: opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Pop-in bounce ---- */
.pop-in-bounce,
[data-pop="bounce"] {
  transform: translateY(50px) scale(0.9);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Pop-in swing (slight arc) ---- */
.pop-in-swing,
[data-pop="swing"] {
  transform: translateY(30px) rotate(-5deg) scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in drop (from above with gravity) ---- */
.pop-in-drop,
[data-pop="drop"] {
  transform: translateY(-60px) scale(0.9);
  transition: opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============== NEW ANIMATION TYPES =============== */

/* ---- Pop-in spiral (rotate + scale from center) ---- */
.pop-in-spiral,
[data-pop="spiral"] {
  transform: rotate(-180deg) scale(0.4);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in elastic (overshoot bounce) ---- */
.pop-in-elastic,
[data-pop="elastic"] {
  transform: scale(0.6) translateY(30px);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.65s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ---- Pop-in blur (blur + fade) ---- */
.pop-in-blur,
[data-pop="blur"] {
  transform: scale(0.95) translateY(15px);
  filter: blur(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in skew from left ---- */
.pop-in-skew-left,
[data-pop="skew-left"] {
  transform: skewX(12deg) translateX(-40px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in skew from right ---- */
.pop-in-skew-right,
[data-pop="skew-right"] {
  transform: skewX(-12deg) translateX(40px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in rise (subtle float up with scale) ---- */
.pop-in-rise,
[data-pop="rise"] {
  transform: translateY(25px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in expand (grow from nothing) ---- */
.pop-in-expand,
[data-pop="expand"] {
  transform: scale(0);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Pop-in slide-fade (long horizontal slide) ---- */
.pop-in-slide-fade,
[data-pop="slide-fade"] {
  transform: translateX(-80px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in tilt (3D perspective tilt) ---- */
.pop-in-tilt,
[data-pop="tilt"] {
  transform: perspective(600px) rotateY(-8deg) translateX(-20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in pop (fast overshoot scale) ---- */
.pop-in-pop,
[data-pop="pop"] {
  transform: scale(0.7);
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Pop-in unfold (3D unfold from top) ---- */
.pop-in-unfold,
[data-pop="unfold"] {
  transform: perspective(800px) rotateX(-20deg) translateY(-15px) scale(0.95);
  transform-origin: top center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Pop-in cascade (diagonal slide) ---- */
.pop-in-cascade,
[data-pop="cascade"] {
  transform: translate(-30px, 30px) scale(0.92);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Visible state (applied by IntersectionObserver) ---- */
.pop-in.pop-visible,
.pop-in-up.pop-visible,
.pop-in-down.pop-visible,
.pop-in-left.pop-visible,
.pop-in-right.pop-visible,
.pop-in-scale.pop-visible,
.pop-in-rotate.pop-visible,
.pop-in-flip.pop-visible,
.pop-in-zoom.pop-visible,
.pop-in-bounce.pop-visible,
.pop-in-swing.pop-visible,
.pop-in-drop.pop-visible,
.pop-in-spiral.pop-visible,
.pop-in-elastic.pop-visible,
.pop-in-skew-left.pop-visible,
.pop-in-skew-right.pop-visible,
.pop-in-rise.pop-visible,
.pop-in-expand.pop-visible,
.pop-in-slide-fade.pop-visible,
.pop-in-tilt.pop-visible,
.pop-in-pop.pop-visible,
.pop-in-unfold.pop-visible,
.pop-in-cascade.pop-visible,
[data-pop].pop-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.pop-in-blur.pop-visible {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

/* ---- Stagger delay classes (for sequential pop-ins) ---- */
.pop-delay-1 {
  transition-delay: 0.05s !important;
}

.pop-delay-2 {
  transition-delay: 0.1s !important;
}

.pop-delay-3 {
  transition-delay: 0.15s !important;
}

.pop-delay-4 {
  transition-delay: 0.2s !important;
}

.pop-delay-5 {
  transition-delay: 0.25s !important;
}

.pop-delay-6 {
  transition-delay: 0.3s !important;
}

.pop-delay-7 {
  transition-delay: 0.35s !important;
}

.pop-delay-8 {
  transition-delay: 0.4s !important;
}

.pop-delay-9 {
  transition-delay: 0.45s !important;
}

.pop-delay-10 {
  transition-delay: 0.5s !important;
}

.pop-delay-11 {
  transition-delay: 0.55s !important;
}

.pop-delay-12 {
  transition-delay: 0.6s !important;
}

.pop-delay-13 {
  transition-delay: 0.65s !important;
}

.pop-delay-14 {
  transition-delay: 0.7s !important;
}

.pop-delay-15 {
  transition-delay: 0.75s !important;
}

.pop-delay-16 {
  transition-delay: 0.8s !important;
}

.pop-delay-17 {
  transition-delay: 0.85s !important;
}

.pop-delay-18 {
  transition-delay: 0.9s !important;
}

.pop-delay-19 {
  transition-delay: 0.95s !important;
}

.pop-delay-20 {
  transition-delay: 1.0s !important;
}

/* ---- Navbar pop-in (load animation, not scroll) ---- */
@keyframes nav-pop-in {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  animation: nav-pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.navbar .logo {
  animation: nav-pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.navbar .desktop-links a,
.navbar .desktop-links .big-red-button {
  animation: nav-pop-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.navbar .desktop-links a:nth-child(1) {
  animation-delay: 0.15s;
}

.navbar .desktop-links a:nth-child(2) {
  animation-delay: 0.2s;
}

.navbar .desktop-links a:nth-child(3) {
  animation-delay: 0.25s;
}

.navbar .desktop-links a:nth-child(4) {
  animation-delay: 0.3s;
}

.navbar .desktop-links a:nth-child(5) {
  animation-delay: 0.35s;
}

.navbar .desktop-links a:nth-child(6) {
  animation-delay: 0.4s;
}

.navbar .desktop-links a:nth-child(7) {
  animation-delay: 0.45s;
}

/* ---- Quick bar pop-in (load animation) ---- */
@keyframes quickbar-pop {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

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

.sl-quick-bar {
  animation: quickbar-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

.sl-quick-link {
  animation: quickbar-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.sl-quick-link:nth-child(1) {
  animation-delay: 0.7s;
}

.sl-quick-link:nth-child(2) {
  animation-delay: 0.8s;
}

.sl-quick-link:nth-child(3) {
  animation-delay: 0.9s;
}

.sl-quick-link:nth-child(4) {
  animation-delay: 1.0s;
}

/* ---- Construction banner slide-in ---- */
@keyframes banner-slide-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.construction-banner {
  animation: banner-slide-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ---- Footer section staggered pop-in ---- */
.dark-footer .footer-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-footer .footer-section.pop-visible {
  opacity: 1;
  transform: none;
}

.dark-footer .footer-section:nth-child(1) {
  transition-delay: 0s;
}

.dark-footer .footer-section:nth-child(2) {
  transition-delay: 0.1s;
}

.dark-footer .footer-section:nth-child(3) {
  transition-delay: 0.2s;
}

.dark-footer .footer-bottom {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.dark-footer .footer-bottom.pop-visible {
  opacity: 1;
  transform: none;
}

/* ---- Mobile menu pop-in ---- */
.mobile-menu.active a {
  animation: nav-pop-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mobile-menu.active a:nth-child(1) {
  animation-delay: 0.05s;
}

.mobile-menu.active a:nth-child(2) {
  animation-delay: 0.1s;
}

.mobile-menu.active a:nth-child(3) {
  animation-delay: 0.15s;
}

.mobile-menu.active a:nth-child(4) {
  animation-delay: 0.2s;
}

.mobile-menu.active a:nth-child(5) {
  animation-delay: 0.25s;
}

.mobile-menu.active a:nth-child(6) {
  animation-delay: 0.3s;
}

.mobile-menu.active a:nth-child(7) {
  animation-delay: 0.35s;
}

/* ---- Hover micro-interactions (pop feel) ---- */
.pop-hover {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pop-hover:hover {
  transform: scale(1.05);
}

.pop-hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.pop-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* ---- Hover pop-bounce (springy scale) ---- */
.pop-hover-bounce {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pop-hover-bounce:hover {
  transform: scale(1.08);
}

/* ---- Hover glow pulse ---- */
.pop-hover-glow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.pop-hover-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ---- Hover tilt 3D ---- */
.pop-hover-tilt {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pop-hover-tilt:hover {
  transform: perspective(500px) rotateY(-3deg) rotateX(2deg) scale(1.02);
}

/* =============== CONTINUOUS ANIMATIONS =============== */

/* ---- Floating animation (subtle vertical bob) ---- */
@keyframes pop-float {

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

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

.pop-float {
  animation: pop-float 3s ease-in-out infinite;
}

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

  0%,
  100% {
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
  }
}

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

/* ---- Shimmer effect (gradient sweep) ---- */
@keyframes pop-shimmer {
  0% {
    background-position: -200% center;
  }

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

.pop-shimmer {
  background-size: 200% auto;
  animation: pop-shimmer 3s linear infinite;
}

/* ---- Icon spin on scroll ---- */
@keyframes pop-icon-spin {
  from {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }

  to {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

/* ---- Gentle breathing scale ---- */
@keyframes pop-breathe {

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

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

.pop-breathe {
  animation: pop-breathe 4s ease-in-out infinite;
}

/* ---- Border glow animation ---- */
@keyframes pop-border-glow {

  0%,
  100% {
    border-color: rgba(139, 92, 246, 0.2);
  }

  50% {
    border-color: rgba(139, 92, 246, 0.6);
  }
}

.pop-border-glow {
  animation: pop-border-glow 3s ease-in-out infinite;
}

/* ---- Typewriter cursor blink ---- */
@keyframes pop-cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* =============== SECTION-SPECIFIC ANIMATIONS =============== */

/* ---- Bento card hover animations ---- */
.sl-bento-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.sl-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(139, 92, 246, 0.1);
}

/* ---- Bento icon pop animation ---- */
@keyframes bento-icon-pop {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.15) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.sl-bento-card.pop-visible .sl-bento-icon {
  animation: bento-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

/* ---- Bento stat counter animation ---- */
@keyframes stat-count-pop {
  0% {
    transform: scale(0.5) translateY(10px);
    opacity: 0;
  }

  100% {
    transform: none;
    opacity: 1;
  }
}

.sl-bento-stat {
  opacity: 0;
  transform: scale(0.5) translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sl-bento-wide.pop-visible .sl-bento-stat:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

.sl-bento-wide.pop-visible .sl-bento-stat:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}

.sl-bento-wide.pop-visible .sl-bento-stat:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.6s;
}

/* ---- Offering card number animation ---- */
@keyframes offering-num-pop {
  0% {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
  }

  100% {
    transform: none;
    opacity: 1;
  }
}

.sl-offering-card.pop-visible .sl-offering-num {
  animation: offering-num-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

/* ---- Offering image parallax reveal ---- */
@keyframes offering-img-reveal {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.sl-offering-image.pop-visible img {
  animation: offering-img-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- FAQ chevron rotate on open ---- */
.sl-faq-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-faq-item.active .sl-faq-chevron {
  transform: rotate(180deg);
}

/* ---- FAQ item hover ---- */
.sl-faq-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sl-faq-item:hover {
  transform: translateX(4px);
}

/* ---- Location detail items stagger ---- */
.sl-location-detail {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-location-layout.pop-visible .sl-location-detail:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

.sl-location-layout.pop-visible .sl-location-detail:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

.sl-location-layout.pop-visible .sl-location-detail:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

.sl-location-layout.pop-visible .sl-location-detail:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.sl-location-layout.pop-visible .sl-location-detail:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.5s;
}

/* ---- Map iframe reveal ---- */
.sl-location-map {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-location-layout.pop-visible .sl-location-map {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

/* ---- Divider line expand ---- */
@keyframes divider-expand {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }

  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.sl-divider.pop-visible {
  animation: divider-expand 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- Newsletter form elements pop ---- */
.newsletter-form input,
.newsletter-form button {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
}

.newsletter-form input:focus {
  transform: scale(1.02);
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

/* =============== CONTACT PAGE ANIMATIONS =============== */

/* ---- Contact info items cascade ---- */
.contact-info-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card.pop-visible .contact-info-item:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}

.contact-card.pop-visible .contact-info-item:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

.contact-card.pop-visible .contact-info-item:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.contact-card.pop-visible .contact-info-item:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

.contact-card.pop-visible .contact-info-item:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

/* =============== FORM ANIMATIONS =============== */

/* ---- Form input focus effects ---- */
.form-group input,
.form-group textarea,
.form-group select,
.input-group input {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.input-group input:focus {
  transform: scale(1.01);
}

/* ---- Submit button press animation ---- */
.form-group button[type="submit"],
.contact-form button[type="submit"],
.newsletter-form button[type="submit"] {
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-group button[type="submit"]:active,
.contact-form button[type="submit"]:active,
.newsletter-form button[type="submit"]:active {
  transform: scale(0.96);
}

/* =============== ICON ANIMATIONS =============== */

/* ---- Font Awesome icon pop on card visibility ---- */
.pop-visible .fas,
.pop-visible .fab,
.pop-visible .far {
  animation: bento-icon-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

/* ---- Social link icon hover ---- */
.social-links a {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.25) translateY(-2px);
}

/* =============== LINK & BUTTON ANIMATIONS =============== */

/* ---- Footer links slide-in on hover ---- */
.footer-section ul li a {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease;
}

.footer-section ul li a:hover {
  transform: translateX(6px);
}

/* ---- CTA button hover (exclude hero) ---- */
.glow-button,
.service-cta a {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}

.glow-button:hover,
.service-cta a:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glow-button:active,
.service-cta a:active {
  transform: translateY(0) scale(0.98);
}

/* ---- Big red button pop ---- */
.big-red-button {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
}

.big-red-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.big-red-button:active {
  transform: scale(0.95);
}

/* =============== STORAGE CARD ANIMATIONS =============== */

/* ---- Storage unit cards hover lift ---- */
.storage-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.storage-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ---- Area card pop hover ---- */
.area-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
}

/* ---- Blog card hover ---- */
.blog-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

/* =============== DASHBOARD ANIMATIONS =============== */

/* ---- Sidebar menu item hover ---- */
.sidebar-menu-button {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease;
}

.sidebar-menu-button:hover {
  transform: translateX(4px);
}

/* ---- Dashboard stat cards ---- */
.dashboard-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* =============== ABOUT PAGE ANIMATIONS =============== */

/* ---- About logo spin entrance ---- */
@keyframes about-logo-spin {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.1) rotate(10deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.about-logo.pop-visible img {
  animation: about-logo-spin 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ---- About card stagger with different directions ---- */
.about-card:nth-child(odd) {
  transform: translateX(-40px);
}

.about-card:nth-child(even) {
  transform: translateX(40px);
}

.about-card.pop-visible {
  opacity: 1;
  transform: none;
}

/* =============== AUTH PAGE ANIMATIONS =============== */

/* ---- Login/Register card entrance ---- */
@keyframes auth-card-entrance {
  0% {
    opacity: 0;
    transform: perspective(800px) rotateX(-5deg) translateY(40px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.auth-card.pop-visible,
.login-card.pop-visible,
.register-card.pop-visible {
  animation: auth-card-entrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- OAuth buttons cascade pop ---- */
.oauth-buttons a,
.social-login-btn,
.oauth-btn {
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pop-visible .oauth-buttons a:nth-child(1),
.pop-visible .social-login-btn:nth-child(1),
.pop-visible .oauth-btn:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

.pop-visible .oauth-buttons a:nth-child(2),
.pop-visible .social-login-btn:nth-child(2),
.pop-visible .oauth-btn:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.pop-visible .oauth-buttons a:nth-child(3),
.pop-visible .social-login-btn:nth-child(3),
.pop-visible .oauth-btn:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.5s;
}

/* =============== NOTIFICATION & BADGE ANIMATIONS =============== */

/* ---- Notification badge bounce ---- */
@keyframes badge-bounce {

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

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(0.9);
  }

  75% {
    transform: scale(1.1);
  }
}

.notification-badge,
.new-badge {
  animation: badge-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ---- Chat link "New" badge shimmer ---- */
.chat-link-new::after {
  animation: badge-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

/* =============== SCROLL PROGRESS INDICATOR =============== */

@keyframes progress-slide {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

/* =============== SERVICE PILL ANIMATIONS =============== */

.service-pill {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease,
    border-color 0.2s ease;
}

.service-pill:hover {
  transform: scale(1.08) translateY(-2px);
}

/* =============== MOON LANDING FOOTER ANIMATIONS =============== */

@keyframes moon-surface-rise {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.sl-moon-surface.pop-visible {
  animation: moon-surface-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- Crater pop-in ---- */
@keyframes crater-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.sl-moon-surface.pop-visible .sl-moon-crater:nth-child(1) {
  animation: crater-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.sl-moon-surface.pop-visible .sl-moon-crater:nth-child(2) {
  animation: crater-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.sl-moon-surface.pop-visible .sl-moon-crater:nth-child(3) {
  animation: crater-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

.sl-moon-surface.pop-visible .sl-moon-crater:nth-child(4) {
  animation: crater-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

/* =============== GRADIENT TEXT SHIMMER =============== */

@keyframes gradient-text-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  background-size: 200% auto;
  animation: gradient-text-shimmer 4s ease infinite;
}

/* =============== CONSTRUCTION BANNER ICON =============== */

@keyframes hard-hat-bob {

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

  25% {
    transform: translateY(-3px) rotate(-5deg);
  }

  75% {
    transform: translateY(-3px) rotate(5deg);
  }
}

.construction-hat {
  animation: hard-hat-bob 2s ease-in-out infinite;
}

/* ---- Coming soon badge pulse ---- */
@keyframes badge-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.construction-badge {
  animation: badge-pulse 2s ease-in-out infinite;
}

/* =============== LOW-END DEVICE OPTIMIZATIONS =============== */

@media (max-width: 768px),
(hover: none) {

  /* Reduce animation durations on mobile */
  .pop-in,
  .pop-in-up,
  .pop-in-down,
  .pop-in-left,
  .pop-in-right,
  .pop-in-scale,
  .pop-in-rotate,
  .pop-in-flip,
  .pop-in-zoom,
  .pop-in-bounce,
  .pop-in-swing,
  .pop-in-drop,
  .pop-in-spiral,
  .pop-in-elastic,
  .pop-in-blur,
  .pop-in-skew-left,
  .pop-in-skew-right,
  .pop-in-rise,
  .pop-in-expand,
  .pop-in-slide-fade,
  .pop-in-tilt,
  .pop-in-pop,
  .pop-in-unfold,
  .pop-in-cascade {
    transition-duration: 0.35s !important;
  }

  /* Disable continuous animations on mobile for battery savings */
  .pop-float,
  .pop-breathe,
  .pop-border-glow {
    animation: none;
  }

  /* Disable blur transitions (expensive on mobile GPUs) */
  .pop-in-blur {
    filter: none;
    transform: translateY(15px);
  }

  /* Simplify hover effects (touch devices) */
  .pop-hover:hover,
  .pop-hover-lift:hover,
  .pop-hover-bounce:hover,
  .pop-hover-glow:hover,
  .pop-hover-tilt:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ---- Page load overlay fade ---- */
@keyframes page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body {
  animation: page-fade-in 0.4s ease both;
}