/* ================================================================
   ZERO ONE AGENCY - HIGH-PERFORMANCE ANIMATIONS & MICRO-INTERACTIONS
   ================================================================ */

:root {
  --zo-purple-primary: #6a22f0;
  --zo-purple-neon: #a855ff;
  --zo-purple-glow: rgba(106, 34, 240, 0.45);
  --zo-cyan-neon: #06b6d4;
  --zo-bg-dark: #07070b;
  --zo-bg-surface: #0f0f17;
  --zo-glass: rgba(18, 16, 30, 0.72);
  --zo-glass-border: rgba(168, 85, 255, 0.18);
  --zo-glass-border-hover: rgba(168, 85, 255, 0.5);
  --zo-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Ambient Floating Glow Mesh */
body {
  position: relative;
  background-color: var(--zo-bg-dark);
}

body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: 15%;
  width: 55vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(106, 34, 240, 0.16) 0%, rgba(168, 85, 255, 0.05) 50%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(85px);
  animation: zoAmbientGlow 20s ease-in-out infinite alternate;
}

@keyframes zoAmbientGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.65; }
  50% { transform: translate(-10%, 15%) scale(1.15); opacity: 0.85; }
  100% { transform: translate(15%, 8%) scale(0.95); opacity: 0.7; }
}

/* Particle Canvas Background */
#zo-particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* Ensure content sits cleanly above particles */
.site-content, header, footer, .elementor {
  position: relative;
  z-index: 2;
}

/* Sticky Navbar Glassmorphism on Scroll */
.header-area {
  transition: background 0.4s var(--zo-ease), backdrop-filter 0.4s var(--zo-ease), padding 0.4s var(--zo-ease), box-shadow 0.4s var(--zo-ease), border-color 0.4s var(--zo-ease) !important;
}

.header-area.zo-header-scrolled {
  background: rgba(7, 7, 11, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(168, 85, 255, 0.2) !important;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.65), 0 0 20px rgba(106, 34, 240, 0.15) !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Nav Item Hover Underline Micro-interaction */
.header-area .navbar-nav li a {
  position: relative;
  transition: color 0.3s var(--zo-ease) !important;
}

.header-area .navbar-nav li:not(.zo-nav-cta) a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6a22f0, #a855ff);
  transition: width 0.3s var(--zo-ease), left 0.3s var(--zo-ease);
  border-radius: 2px;
  box-shadow: 0 0 8px #a855ff;
}

.header-area .navbar-nav li:not(.zo-nav-cta) a:hover::after,
.header-area .navbar-nav li.current-menu-item:not(.zo-nav-cta) a::after {
  width: 100%;
  left: 0;
}

/* Hero Image Floating Animation with Ambient Purple Drop Shadow */
.hero-3__media img, .banner-image img, .zo-hero-media img {
  animation: zoHeroFloat 7s ease-in-out infinite alternate !important;
  filter: drop-shadow(0 20px 45px rgba(106, 34, 240, 0.4)) !important;
  transition: transform 0.5s var(--zo-ease) !important;
}

@keyframes zoHeroFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
  100% { transform: translateY(-6px) rotate(-0.4deg); }
}

/* Glassmorphism Cards & Interactive Lift */
.services-item, .portfolio-item, .card, .pricing-item, .team-item, .contact-item,
.elementor-widget-container > .services-2, .elementor-widget-container > .portfolio-2,
.elementor-widget-container > .team-2, .zo-glass-card {
  background: var(--zo-glass) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--zo-glass-border) !important;
  border-radius: 18px !important;
  transition: transform 0.45s var(--zo-ease), border-color 0.45s var(--zo-ease), box-shadow 0.45s var(--zo-ease) !important;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

/* Hover Glow & Lift */
.services-item:hover, .portfolio-item:hover, .card:hover, .pricing-item:hover, .team-item:hover, .contact-item:hover,
.elementor-widget-container > .services-2:hover, .elementor-widget-container > .portfolio-2:hover,
.elementor-widget-container > .team-2:hover, .zo-glass-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  border-color: var(--zo-glass-border-hover) !important;
  box-shadow: 0 18px 45px -12px rgba(106, 34, 240, 0.4), 0 0 25px rgba(168, 85, 255, 0.25) !important;
}

/* Card Light Sheen Sweep on Hover */
.services-item::before, .portfolio-item::before, .card::before, .zo-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: left 0.85s var(--zo-ease);
  pointer-events: none;
  z-index: 3;
}

.services-item:hover::before, .portfolio-item:hover::before, .card:hover::before, .zo-glass-card:hover::before {
  left: 140%;
}

/* Button Micro-Interactions */
.zo-btn-primary, .btn-wrapper a, .btn, .button, input[type="submit"], button[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--zo-ease), box-shadow 0.35s var(--zo-ease), filter 0.35s var(--zo-ease) !important;
}

.zo-btn-primary:hover, .btn-wrapper a:hover, input[type="submit"]:hover, button[type="submit"]:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 32px rgba(168, 85, 255, 0.55), 0 0 20px rgba(106, 34, 240, 0.45) !important;
  filter: brightness(1.08);
}

.zo-btn-primary:active, .btn-wrapper a:active, input[type="submit"]:active, button[type="submit"]:active {
  transform: translateY(-1px) scale(0.99) !important;
}

/* Secondary Button Glow */
.zo-btn-secondary {
  transition: all 0.35s var(--zo-ease) !important;
}

.zo-btn-secondary:hover {
  background: rgba(168, 85, 255, 0.12) !important;
  border-color: #a855ff !important;
  box-shadow: 0 0 25px rgba(168, 85, 255, 0.3) !important;
  transform: translateY(-3px) !important;
}

/* Form Inputs Focus Micro-Interaction */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  background: rgba(14, 12, 24, 0.75) !important;
  border: 1px solid rgba(168, 85, 255, 0.22) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  padding: 0.9rem 1.2rem !important;
  transition: border-color 0.3s var(--zo-ease), box-shadow 0.3s var(--zo-ease), background 0.3s var(--zo-ease), transform 0.3s var(--zo-ease) !important;
}

input:focus, textarea:focus, select:focus {
  border-color: #a855ff !important;
  box-shadow: 0 0 25px rgba(168, 85, 255, 0.38), 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  background: rgba(20, 18, 35, 0.95) !important;
  outline: none !important;
  transform: translateY(-2px);
}

/* Scroll-Triggered Reveal Classes */
.zo-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--zo-ease), transform 0.85s var(--zo-ease);
  will-change: opacity, transform;
}

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

.zo-reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(24px);
  transition: opacity 0.85s var(--zo-ease), transform 0.85s var(--zo-ease);
  will-change: opacity, transform;
}

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

/* Stagger Delays */
.zo-delay-1 { transition-delay: 0.12s !important; }
.zo-delay-2 { transition-delay: 0.24s !important; }
.zo-delay-3 { transition-delay: 0.36s !important; }
.zo-delay-4 { transition-delay: 0.48s !important; }

/* Accessible Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #zo-particle-canvas {
    display: none !important;
  }
}
