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

body {
  overflow-x: hidden;
}

/* === Animations === */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes count-up {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out both;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out both;
}

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

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-600 {
  animation-delay: 600ms;
}

/* === Glass Effect === */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* === Gradient Text === */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Hero Pattern === */
.hero-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
}

/* === Card Hover === */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* === Pricing Card Glow === */
.pricing-featured {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  position: relative;
}

.pricing-featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.5;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* === Header === */
.header-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* === WhatsApp Button === */
.whatsapp-float {
  animation: pulse-glow 2s ease-in-out infinite;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* === Article Content Styles === */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #2563eb;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  line-height: 1.9;
  margin-bottom: 1.25rem;
  color: #475569;
}

.article-content ul,
.article-content ol {
  padding-inline-start: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
  color: #475569;
}

.article-content strong {
  color: #0f172a;
  font-weight: 700;
}

.article-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.article-content a:hover {
  color: #1e40af;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.article-content th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: start;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
}

.article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
}

.article-content blockquote {
  border-inline-start: 4px solid #2563eb;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* === RTL Flip === */
[dir="rtl"] .flip-x {
  transform: scaleX(-1);
}

/* === Section Divider === */
.section-divider {
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  height: 1px;
}

/* === Badge Shine === */
.badge-shine {
  position: relative;
  overflow: hidden;
}

.badge-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(30deg);
  animation: gradient-shift 3s ease infinite;
}