/* ============================================
   Pravio Landing Page - Custom Styles
   ============================================ */

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Hero Floating Shapes ---------- */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float-drift 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  background: #7C3AED;
  top: -100px;
  right: -100px;
  animation-duration: 25s;
}

.floating-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  background: #3B82F6;
  bottom: -80px;
  left: -80px;
  animation-duration: 20s;
  animation-delay: -5s;
}

.floating-shape:nth-child(3) {
  width: 200px;
  height: 200px;
  background: #1E40AF;
  top: 40%;
  left: 20%;
  animation-duration: 18s;
  animation-delay: -10s;
}

.floating-shape:nth-child(4) {
  width: 150px;
  height: 150px;
  background: #7C3AED;
  bottom: 20%;
  right: 15%;
  animation-duration: 22s;
  animation-delay: -8s;
}

@keyframes float-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ---------- Navbar ---------- */
.navbar {
  transition: background-color 0.3s ease,
              backdrop-filter 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
  color: #334155 !important;
}

.navbar.scrolled .nav-link:hover {
  color: #1E40AF !important;
}

.navbar.scrolled .nav-cta {
  background: linear-gradient(135deg, #1E40AF, #3B82F6) !important;
  color: white !important;
}

.navbar.scrolled .navbar-logo-text {
  color: #0F172A !important;
}

.navbar.scrolled #menu-toggle {
  color: #334155 !important;
}

.navbar.scrolled .mobile-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.navbar.scrolled .mobile-menu a {
  color: #334155 !important;
}

.navbar.scrolled .mobile-menu .border-t {
  border-color: rgba(0, 0, 0, 0.05) !important;
}

/* ---------- Hero Gradient ---------- */
.hero-gradient {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #7C3AED 100%);
}

/* ---------- Feature Cards ---------- */
.feature-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #1E40AF, #7C3AED);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(30, 64, 175, 0.15),
              0 8px 16px -8px rgba(0, 0, 0, 0.06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .icon-wrap {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 8px 24px -6px rgba(30, 64, 175, 0.2);
}

/* ---------- Kanban Mockup ---------- */
.kanban-card {
  animation: kanban-float 4s ease-in-out infinite;
}

.kanban-card:nth-child(2) { animation-delay: -1.3s; }
.kanban-card:nth-child(3) { animation-delay: -2.6s; }

@keyframes kanban-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- Steps Connector ---------- */
.step-connector {
  position: absolute;
  top: 36px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #CBD5E1 0px,
    #CBD5E1 6px,
    transparent 6px,
    transparent 12px
  );
}

/* ---------- AI Section Particles ---------- */
.ai-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ai-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  animation: particle-float 12s ease-in-out infinite;
}

.ai-particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.ai-particle:nth-child(2) { top: 25%; left: 80%; animation-delay: -2s; }
.ai-particle:nth-child(3) { top: 60%; left: 25%; animation-delay: -4s; }
.ai-particle:nth-child(4) { top: 70%; left: 70%; animation-delay: -6s; }
.ai-particle:nth-child(5) { top: 40%; left: 50%; animation-delay: -8s; }
.ai-particle:nth-child(6) { top: 85%; left: 15%; animation-delay: -3s; }
.ai-particle:nth-child(7) { top: 10%; left: 60%; animation-delay: -7s; }
.ai-particle:nth-child(8) { top: 50%; left: 90%; animation-delay: -1s; }

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translate(40px, -60px); opacity: 0.3; }
  90% { opacity: 0.6; }
}

/* ---------- AI Glow ---------- */
.ai-glow {
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------- CTA Section ---------- */
.cta-gradient {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 40%, #7C3AED 100%);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
}

/* ---------- Social Proof Logos ---------- */
.logo-placeholder {
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-placeholder:hover {
  opacity: 0.7;
  filter: grayscale(0%);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

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

/* ---------- Badge Shimmer ---------- */
.badge-shimmer {
  position: relative;
  overflow: hidden;
}

.badge-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ---------- Kanban Stage Header Accent ---------- */
.kanban-stage-accent {
  height: 3px;
  border-radius: 3px 3px 0 0;
}

/* ---------- Metric Counter Pulse ---------- */
.metric-pulse {
  animation: pulse-subtle 3s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ---------- Link Underline Effect ---------- */
.link-hover {
  position: relative;
}

.link-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1E40AF, #7C3AED);
  transition: width 0.3s ease;
}

.link-hover:hover::after {
  width: 100%;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .floating-shape:nth-child(1) {
    width: 200px;
    height: 200px;
  }
  .floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
  }
  .floating-shape:nth-child(3),
  .floating-shape:nth-child(4) {
    display: none;
  }
  .step-connector {
    display: none;
  }
}

/* ---------- Selection Color ---------- */
::selection {
  background: rgba(30, 64, 175, 0.2);
  color: #0F172A;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}
