/* ──────────────────────────────────────────────────────────
   ENHANCEMENTS — Scroll progress, glow trails,
   enhanced hover effects, stagger opacity helpers.
   ───────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-amber));
  box-shadow: 0 0 8px rgba(232, 160, 52, 0.6);
  z-index: 9998;
  transition: width 0.05s linear;
}


/* ══════════════════════════════════════════════════════════
   NAV DARK MODE OVERRIDE — When over dark sections
   ══════════════════════════════════════════════════════════ */
.navbar.nav-dark-mode.scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.navbar.nav-dark-mode .nav-logo-text {
  color: #f3f3f1;
}

.navbar.nav-dark-mode .nav-link {
  color: rgba(243, 243, 241, 0.65);
}

.navbar.nav-dark-mode .nav-link:hover,
.navbar.nav-dark-mode .nav-link.active {
  color: #f3f3f1;
  background: rgba(255, 255, 255, 0.06);
}

.navbar.nav-dark-mode:not(.scrolled) .nav-cta-desktop,
.navbar.scrolled.nav-dark-mode .nav-cta-desktop {
  background: #f3f3f1;
  color: #0a0a0a;
}

.navbar.nav-dark-mode:not(.scrolled) .nav-cta-desktop:hover,
.navbar.scrolled.nav-dark-mode .nav-cta-desktop:hover {
  background: var(--accent);
  color: #fff;
}

.navbar.nav-dark-mode .nav-toggle span {
  background: #f3f3f1;
}

/* ══════════════════════════════════════════════════════════
   SECTION LABEL ANIMATION
   ══════════════════════════════════════════════════════════ */
.section-label {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ══════════════════════════════════════════════════════════
   ENHANCED SERVICE ACCORDION — Electric blue glow on hover
   ══════════════════════════════════════════════════════════ */
.service-accordion-item {
  position: relative;
}

.service-accordion-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.service-accordion-item {
  position: relative;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.service-accordion-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent); /* Framer Cherry Red */
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.service-accordion-item.active::before {
  transform: scaleY(1);
}

.service-accordion-item:hover {
  background-color: rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04),
              0 8px 30px rgba(0, 0, 0, 0.4);
}

.service-accordion-item.active {
  background: linear-gradient(90deg, rgba(232, 160, 52, 0.07) 0%, rgba(212, 67, 26, 0.02) 50%, rgba(13, 11, 20, 0) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.service-accordion-item.active .service-title {
  color: var(--text-primary) !important;
  text-shadow: 0 0 12px rgba(232, 160, 52, 0.3);
}

/* ══════════════════════════════════════════════════════════
   ENHANCED PROJECT CARDS — Glow overlay + tilt
   ══════════════════════════════════════════════════════════ */
.project-item {
  transition: transform 0.15s ease-out,
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  will-change: transform;
}

.project-item:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.project-overlay {
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════
   ENHANCED PROCESS CARDS — Glow border on hover
   ══════════════════════════════════════════════════════════ */
.process-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  background: #121212;
}

/* ══════════════════════════════════════════════════════════
   ENHANCED PRICING — Spotlight gradient on hover
   ══════════════════════════════════════════════════════════ */
.pricing-tier {
  position: relative;
  overflow: hidden;
}

.pricing-tier:hover {
  border-color: var(--border-default);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
}

.pricing-tier.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 48px rgba(232, 160, 52, 0.04),
              0 12px 24px rgba(0, 0, 0, 0.02);
}

/* ══════════════════════════════════════════════════════════
   ENHANCED TESTIMONIALS — Subtle glow lift
   ══════════════════════════════════════════════════════════ */
.testimonial-item:hover {
  border-color: var(--border-default);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.03);
}

/* ══════════════════════════════════════════════════════════
   ENHANCED FAQ — Active glow
   ══════════════════════════════════════════════════════════ */
.faq-item.open {
  border-color: var(--border-default);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
}

/* ══════════════════════════════════════════════════════════
   STAGGER OPACITY HELPERS — Children start hidden
   ══════════════════════════════════════════════════════════ */
.reveal .stat-item,
.reveal .process-card,
.reveal .testimonial-item,
.reveal .project-item,
.reveal .pricing-tier,
.reveal .faq-item,
.reveal .service-accordion-item {
  opacity: 0;
}

.reveal.visible .stat-item,
.reveal.visible .process-card,
.reveal.visible .testimonial-item,
.reveal.visible .project-item,
.reveal.visible .pricing-tier,
.reveal.visible .faq-item,
.reveal.visible .service-accordion-item {
  /* CSS-only fallback if anime.js fails to load or fire */
  opacity: 1;
  transition: opacity 0.6s ease 0.1s;
}

/* ══════════════════════════════════════════════════════════
   CTA BANNER — Gradient glow pulse
   ══════════════════════════════════════════════════════════ */
.cta-banner-btn {
  position: relative;
  overflow: hidden;
}

.cta-banner-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-amber), var(--accent));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

.cta-banner-btn:hover::before {
  opacity: 0.8;
}

/* ══════════════════════════════════════════════════════════
   HERO WAVY CARD — Float removed; parallax via JS handles
   the transform. CSS animation + JS inline transform both
   write to the same property, causing the animation to be
   overridden on every scroll frame.
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   FORM INPUTS — Focus glow
   ══════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════
   FOOTER SOCIAL — Glow pulse on hover
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   FORM INPUTS — Focus glow
   ══════════════════════════════════════════════════════════ */
.form-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* ══════════════════════════════════════════════════════════
   FOOTER SOCIAL — Glow pulse on hover
   ══════════════════════════════════════════════════════════ */
.footer-social-link:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════════════
   REDUCED MOTION — Disable all enhancements
   ══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none !important;
  }
  .reveal.visible .stat-item,
  .reveal.visible .process-card,
  .reveal.visible .testimonial-item,
  .reveal.visible .project-item,
  .reveal.visible .pricing-tier,
  .reveal.visible .faq-item,
  .reveal.visible .service-accordion-item {
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   TASTEMAX PLATINUM POLISH & MOBILE ALIGNMENT OVERRIDES
   ══════════════════════════════════════════════════════════ */

/* Mathematically centered flex-based trigger icon (P0 Mobile Align Fix) */
.service-trigger .trigger-icon {
  position: relative !important;
  width: 14px !important;
  height: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

.service-trigger .trigger-icon::before,
.service-trigger .trigger-icon::after {
  content: '' !important;
  position: absolute !important;
  background: currentColor !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  border-radius: 1px !important;
}

.service-trigger .trigger-icon::before {
  width: 14px !important;
  height: 1.5px !important;
}

.service-trigger .trigger-icon::after {
  width: 1.5px !important;
  height: 14px !important;
}

/* Glassy background pop for active accordion item */
.service-accordion-item.active {
  background: linear-gradient(90deg, rgba(232, 160, 52, 0.12) 0%, rgba(212, 67, 26, 0.03) 60%, rgba(13, 11, 20, 0.98) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(232, 160, 52, 0.15),
              0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Hardware-accelerated hover effects for cards & testimonials (resolves mobile JS jank) */
.process-card,
.testimonial-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform !important;
}

.process-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
  background-color: #121212 !important;
}

.testimonial-item:hover {
  transform: translateY(-6px) scale(1.015) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
  background-color: var(--bg-dark-card) !important;
}

/* Fix mobile active nav item hover contrast */
.navbar.nav-dark-mode .nav-cta-desktop {
  transition: background 0.3s ease, color 0.3s ease !important;
}
