/* ==========================================================================
   ORIGO CREATIVE AGENCY — STYLES & DYNAMIC ANIMATIONS
   Updated: 3-Phone Hero Cycling + About Analytics Bar Animations
   Calibrated under @design-taste-frontend directives:
   - DESIGN_VARIANCE: 8 (Dynamic asymmetry & modern layout)
   - MOTION_INTENSITY: 6 (Spring micro-physics & tactile feedback)
   - VISUAL_DENSITY: 4 (Editorial breathing room & liquid glass refraction)
   ========================================================================== */

/* 1. Tactile Press Feedback (Physical simulation on click) */
button,
.btn,
a[class*="rounded-full"],
.portfolio-trigger,
.nav-item {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}

button:active,
.btn:active,
a[class*="rounded-full"]:active,
.portfolio-trigger:active {
  transform: scale(0.97) translateY(1px) !important;
}

/* 2. Hero Phone Floating Physics (Natural anti-phase float) */
@keyframes floatPhone1 {
  0%, 100% {
    transform: translateY(0px) rotate(-5deg);
  }
  50% {
    transform: translateY(-12px) rotate(-3.5deg);
  }
}

@keyframes floatPhone2 {
  0%, 100% {
    transform: translateY(0px) rotate(7deg);
  }
  50% {
    transform: translateY(-8px) rotate(8.5deg);
  }
}

.animate-float-phone1 {
  animation: floatPhone1 5.2s ease-in-out infinite;
}

.animate-float-phone2 {
  animation: floatPhone2 6.4s ease-in-out infinite;
}

/* 3. Slow Bounce for Floating Pill Badges */
@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-bounce-slow {
  animation: bounceSlow 3.8s ease-in-out infinite;
}

/* 4. Scroll Reveal Waterfall Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }
.delay-350 { transition-delay: 350ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* 5. Custom Warm Canvas Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #E5E1D8;
  border-radius: 9999px;
  border: 2px solid #FAF7F2;
}

::-webkit-scrollbar-thumb:hover {
  background: #E85025;
}

/* 6. Active Nav Item Indicator */
.nav-item.active {
  color: #111625;
  border-bottom: 2px solid #111625;
}

/* 7. Phone Mockup Shadow & Realistic Elevation */
.shadow-phone {
  box-shadow: 0 25px 60px -15px rgba(17, 22, 37, 0.22);
}

/* 8. Phone Inner Slide Transitions */
.phone-slide {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.phone-slide.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}

/* 9. Portfolio Filter Card Fade */
.portfolio-card {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card.filter-hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  display: none;
}

/* 10. Liquid Glass Refraction Utilities */
.liquid-glass-light {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 40px -10px rgba(17, 22, 37, 0.08);
}

.liquid-glass-dark {
  background: rgba(17, 22, 37, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* 11. Lightbox Modal Spring Fade-In Animation */
#portfolioModal.flex {
  animation: modalFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 12. Accordion Transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 240px;
  opacity: 1;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}
