/* ==========================================================================
   DIGITAL BOOST AGENCY - PREMIUM ANIMATED STYLESHEET
   Theme: White (#FFFFFF), Warm White (#F8F5F1), Light Beige (#EDE3D9),
          Accent Brown (#8B5E46), Chocolate Brown (#4A2C20), Deep Brown (#2D1B14)
   ========================================================================== */

:root {
  --color-white: #FFFFFF;
  --color-warm-white: #F8F5F1;
  --color-light-beige: #EDE3D9;
  --color-accent-brown: #8B5E46;
  --color-chocolate-brown: #4A2C20;
  --color-deep-brown: #2D1B14;
  --color-text-muted: #5C4B43;
  --color-border-beige: #EDE3D9;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-deep-brown);
  background-color: var(--color-white);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--color-white);
  color: var(--color-deep-brown);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--color-warm-white);
}
::-webkit-scrollbar-thumb {
  background: #C4AE9F;
  border-radius: 9999px;
  border: 2px solid var(--color-warm-white);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-brown);
}

/* Selection color */
::selection {
  background: var(--color-chocolate-brown);
  color: var(--color-white);
}

/* HERO SECTION LUXURY BROWN BACKGROUND */
.hero-luxury-bg {
  position: relative;
  background:
    radial-gradient(circle at 82% 35%, rgba(139, 94, 70, 0.14) 0%, rgba(74, 44, 32, 0.06) 38%, transparent 68%),
    radial-gradient(circle at 18% 65%, rgba(237, 227, 217, 0.75) 0%, rgba(248, 245, 241, 0.85) 45%, transparent 70%),
    radial-gradient(circle at 50% 10%, rgba(139, 94, 70, 0.08) 0%, transparent 50%),
    #F8F5F1;
}

.hero-luxury-grid {
  background-size: 54px 54px;
  background-image:
    linear-gradient(to right, rgba(74, 44, 32, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 44, 32, 0.05) 1px, transparent 1px);
}

/* Ambient glow orb animation */
@keyframes orbPulse {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.07) translate(-10px, 10px);
    opacity: 1;
  }
}

.animate-orb-pulse {
  animation: orbPulse 8s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text-brown {
  background: linear-gradient(135deg, #2D1B14 0%, #4A2C20 45%, #8B5E46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #EDE3D9;
}

/* Shadows */
.shadow-premium {
  box-shadow: 0 14px 36px -8px rgba(45, 27, 20, 0.12), 0 4px 12px -2px rgba(74, 44, 32, 0.06);
}

.shadow-glow-brown {
  box-shadow: 0 0 50px rgba(139, 94, 70, 0.22);
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-0.8deg);
  }
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

/* Pulse Animation for WhatsApp */
@keyframes pulseWhatsApp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.48);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-btn {
  animation: pulseWhatsApp 2.8s infinite;
}

/* Reveal on Scroll Transitions */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Category Filter active pill */
.filter-btn.active {
  background-color: var(--color-chocolate-brown);
  color: #FFFFFF;
  border-color: var(--color-chocolate-brown);
}

/* ==========================================================================
   CURVED SERVICES CAROUSEL (Reelmark-Inspired Architecture)
   ========================================================================== */
.curved-carousel-stage {
  position: relative;
  width: 100%;
  height: 575px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  perspective: 1400px;
}

.curved-carousel-stage.is-dragging {
  cursor: grabbing;
}

.curved-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Outer slot controlled purely by JS transforms for zero conflict with hover */
.carousel-slot {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 340px;
  height: 490px;
  margin-left: -170px;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

/* Inner card handles visual design + smooth independent hover interactions */
.service-arc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #EDE3D9;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px -16px rgba(45, 27, 20, 0.14), 0 6px 16px -4px rgba(74, 44, 32, 0.07);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  text-decoration: none;
}

.service-arc-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: #8B5E46;
  box-shadow: 0 30px 60px -18px rgba(45, 27, 20, 0.24), 0 10px 24px -6px rgba(139, 94, 70, 0.14);
}

/* Card Preview Visual Stage */
.arc-visual-box {
  position: relative;
  height: 245px;
  background: #F8F5F1;
  overflow: hidden;
  border-bottom: 1px solid #EDE3D9;
}

.arc-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-arc-card:hover .arc-visual-img {
  transform: scale(1.06);
}

/* Subtle Card-Specific Micro Animations */
@keyframes floatCardUi {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes slideLoop {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(10px); }
}

@keyframes barPulseSoft {
  0%, 100% { transform: scaleY(0.78); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes pulseRingSoft {
  0% { transform: scale(0.92); opacity: 0.65; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(0.92); opacity: 0; }
}

@keyframes webCrossfade {
  0%, 42% { opacity: 1; transform: scale(1); }
  50%, 92% { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

.anim-ui-float {
  animation: floatCardUi 4.6s ease-in-out infinite;
}

.anim-ui-slide {
  animation: slideLoop 5.2s ease-in-out infinite;
}

.anim-bar-1 { transform-origin: bottom; animation: barPulseSoft 2.4s ease-in-out infinite 0s; }
.anim-bar-2 { transform-origin: bottom; animation: barPulseSoft 2.4s ease-in-out infinite 0.3s; }
.anim-bar-3 { transform-origin: bottom; animation: barPulseSoft 2.4s ease-in-out infinite 0.6s; }
.anim-bar-4 { transform-origin: bottom; animation: barPulseSoft 2.4s ease-in-out infinite 0.9s; }

.anim-target-ring {
  animation: pulseRingSoft 3s ease-out infinite;
}

.anim-web-layer {
  animation: webCrossfade 8s ease-in-out infinite;
}

/* Responsive Sizing for Curved Carousel */
@media (max-width: 1024px) {
  .curved-carousel-stage {
    height: 550px;
  }
  .carousel-slot {
    width: 310px;
    height: 465px;
    margin-left: -155px;
  }
}

@media (max-width: 640px) {
  .curved-carousel-stage {
    height: 505px;
  }
  .carousel-slot {
    width: 272px;
    height: 430px;
    margin-left: -136px;
    top: 20px;
  }
  .arc-visual-box {
    height: 200px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .animate-orb-pulse,
  .animate-float-slow,
  .animate-float-reverse,
  .whatsapp-float-btn,
  .anim-ui-float,
  .anim-ui-slide,
  .anim-bar-1,
  .anim-bar-2,
  .anim-bar-3,
  .anim-bar-4,
  .anim-target-ring,
  .anim-web-layer {
    animation: none !important;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
