/* ============================================
   PREMIUM — Efeitos avancados de modernidade
   Cursor glow, scroll progress, card depth,
   animated borders, glassmorphism depth
   ============================================ */

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: calc(var(--z-nav) + 1);
  transition: width 50ms linear;
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.6);
}

/* CURSOR GLOW — sutil radial que segue o mouse */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: left, top;
}

/* CARD GLOW — brilho que segue o cursor dentro do card */
.card-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}
.card:hover .card-glow,
.pricing-card:hover .card-glow,
.testimonial:hover .card-glow {
  opacity: 1;
}

/* ANIMATED GRADIENT BORDER — for featured cards */
.pricing-card.featured {
  background: var(--color-bg-card);
  position: relative;
  z-index: 1;
}
.pricing-card.featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(
    var(--border-angle, 0deg),
    rgba(108, 92, 231, 0.6),
    rgba(162, 155, 254, 0.2),
    rgba(108, 92, 231, 0.1),
    rgba(162, 155, 254, 0.6)
  );
  -webkit-mask:
    linear-gradient(#fff, #fff) content-box,
    linear-gradient(#fff, #fff);
  mask:
    linear-gradient(#fff, #fff) content-box,
    linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  animation: border-rotate 6s linear infinite;
}

@keyframes border-rotate {
  to {
    --border-angle: 360deg;
  }
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* STAGGER DELAY UTILITIES */
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ANIMATED UNDERLINE on section tags */
.section-tag::before {
  animation: tag-line 2s ease-in-out infinite alternate;
}
@keyframes tag-line {
  from {
    width: 20px;
  }
  to {
    width: 36px;
  }
}

/* HOVER LIFT — universal micro-interaction */
.diff-item,
.footer-social a,
.contact-method,
.maintenance-card {
  transition: all var(--transition-base);
}

/* GLOW PULSE on WhatsApp CTA card */
.whatsapp-cta-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(0, 214, 143, 0.1) 0%,
    transparent 60%
  );
  z-index: -1;
  animation: whatsapp-glow 3s ease-in-out infinite alternate;
}
@keyframes whatsapp-glow {
  from {
    opacity: 0.5;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* SMOOTH IMAGE REVEAL */
.portfolio-card .portfolio-image {
  filter: brightness(0.85) saturate(1.1);
}
.portfolio-card:hover .portfolio-image {
  filter: brightness(0.5) saturate(1.2);
}

/* BADGE SHIMMER */
.pricing-badge {
  position: relative;
  overflow: hidden;
}
.pricing-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: badge-shine 3s ease-in-out infinite;
}
@keyframes badge-shine {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 150%;
  }
}

/* CTA BOX — animated mesh */
.cta-box::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(162, 155, 254, 0.08),
    transparent 70%
  );
  pointer-events: none;
  animation: cta-float 8s ease-in-out infinite alternate;
}
@keyframes cta-float {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-40px, -60px);
  }
}

/* STAT NUMBERS — count up glow */
.hero-stat-number {
  position: relative;
}

/* SMOOTH PAGE TRANSITIONS */
main {
  animation: page-in 0.6s ease-out;
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAVBAR glass intensification on scroll */
.navbar.scrolled {
  border-bottom: 1px solid rgba(162, 155, 254, 0.04);
}

/* LINKS — subtle glow on hover */
.footer-col a:hover,
.contact-method-text span:hover {
  text-shadow: 0 0 12px rgba(108, 92, 231, 0.3);
}

/* HERO GRID — animated pulse */
.hero-grid {
  animation: grid-pulse 12s ease-in-out infinite alternate;
}
@keyframes grid-pulse {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 0.8;
  }
}
