/* ============================================
   QUALIVEO — Custom Styles & Animations
   ============================================ */

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

/* Hide scrollbar for testimonials carousel */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================
   ANIMATED GRADIENT BACKGROUND (Hero)
   ============================================ */
.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 25%, #1e40af 50%, #0e7490 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6, #06b6d4);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6, #3b82f6);
  bottom: -80px;
  left: -80px;
  animation-delay: -4s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4, #10b981);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid pattern overlay */
.grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================
   GLASSMORPHISM NAVBAR
   ============================================ */
.glass-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CARD EFFECTS
   ============================================ */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Gradient border on hover */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
  -webkit-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;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ============================================
   ICON CONTAINERS
   ============================================ */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  transition: transform 0.3s ease;
}

.card-hover:hover .icon-box {
  transform: scale(1.1);
}

/* ============================================
   TIMELINE / PROCESS STEPS
   ============================================ */
.timeline-line {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  z-index: 0;
}

@media (max-width: 768px) {
  .timeline-line {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 3px;
    height: auto;
  }
}

/* Step circle */
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
  background: white;
  border: 3px solid #3b82f6;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.step-circle.active,
.step-card:hover .step-circle {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-color: transparent;
  color: white;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.faq-item:hover {
  background-color: #f8fafc;
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

/* ============================================
   CTA GRADIENT SECTION
   ============================================ */
.cta-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #0e7490 50%, #1e40af 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1d4ed8, #0e7490);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: white;
  color: #1e40af;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

/* ============================================
   STAT COUNTER
   ============================================ */
.stat-number {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   TESTIMONIAL STARS
   ============================================ */
.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* ============================================
   BADGE / PILL
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-gradient {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .blob { display: none; }
}

/* Selection color */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: #1e3a8a;
}
