/* ===========================================
   VOXA — Digital Business Card SaaS
   Custom Styles (extends Tailwind CSS)
   =========================================== */

/* ---- Custom Properties ---- */
:root {
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-smooth),
    transform 0.7s var(--ease-smooth);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ---- Hero Word Reveal ---- */
.hero-word {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  animation: wordReveal 0.6s var(--ease-smooth) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---- Floating Phone ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(0.5deg); }
}

.phone-float {
  animation: float 4s ease-in-out infinite;
}

/* ---- Gradient Orbs ---- */
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1);           opacity: 0.5; }
  33%      { transform: translate(40px, -30px) scale(1.1);   opacity: 0.7; }
  66%      { transform: translate(-20px, 20px) scale(0.9);   opacity: 0.4; }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1);           opacity: 0.4; }
  33%      { transform: translate(-30px, 20px) scale(1.05);  opacity: 0.6; }
  66%      { transform: translate(25px, -15px) scale(0.95);  opacity: 0.3; }
}

.orb-1 { animation: drift1 10s ease-in-out infinite; }
.orb-2 { animation: drift2 12s ease-in-out infinite; }

/* ---- Navbar ---- */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

/* ---- CTA Pulse Glow ---- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 24, 27, 0.4); }
  50%      { box-shadow: 0 0 20px 4px rgba(24, 24, 27, 0.15); }
}

.cta-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ---- Phone Screen Crossfade ---- */
.phone-screen {
  transition: opacity 0.6s ease;
  position: absolute;
  inset: 0;
}

/* ---- FAQ Accordion ---- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s var(--ease-smooth),
    padding 0.3s ease;
}

.faq-icon {
  transition: transform 0.3s var(--ease-smooth);
}

.faq-icon.open {
  transform: rotate(45deg);
}

/* ---- Feature Card Hover ---- */
.feature-card {
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
}

/* ---- Pricing Highlight ---- */
.pricing-popular {
  background: linear-gradient(135deg, #18181B 0%, #09090B 100%);
  box-shadow: 0 20px 60px rgba(24, 24, 27, 0.4);
}

/* ---- Logo Cloud Scrolling Animation ---- */
.logo-scroll-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logo-scroll-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: logoScroll 40s linear infinite;
  width: max-content;
}

.logo-scroll-track:hover {
  animation-play-state: paused;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 90px;
  padding: 16px;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-smooth);
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: all 0.4s var(--ease-smooth);
}

.logo-container:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .logo-scroll-track {
    animation: none !important;
  }
}
