/* ============================================
   EvoloWA Marketing Website — Custom Styles
   ============================================ */

/* Font defaults */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* ---- Keyframe Animations ---- */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

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

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---- WhatsApp Chat Button ---- */

#wa-chat-btn {
  animation: waPulse 2s ease-in-out infinite;
}

#wa-chat-btn:hover {
  animation: none;
}

/* ---- Scroll Reveal ---- */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
[data-animate][data-delay="100"] { transition-delay: 0.1s; }
[data-animate][data-delay="200"] { transition-delay: 0.2s; }
[data-animate][data-delay="300"] { transition-delay: 0.3s; }
[data-animate][data-delay="400"] { transition-delay: 0.4s; }
[data-animate][data-delay="500"] { transition-delay: 0.5s; }

/* ---- Accordion (details/summary) ---- */

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
  content: '';
}

details summary .accordion-icon {
  transition: transform 0.3s ease;
}

details[open] summary .accordion-icon {
  transform: rotate(180deg);
}

/* ---- Mobile Menu ---- */

#mobile-menu {
  transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
  transform: translateX(0) !important;
}

/* ---- Card Hover Effects ---- */

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ---- Gradient Text ---- */

.gradient-text {
  background: linear-gradient(135deg, #6366F1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Phone Mockup Chat Bubbles ---- */

.chat-bubble {
  animation: fadeIn 0.5s ease-out forwards;
}

.chat-bubble:nth-child(1) { animation-delay: 0.2s; }
.chat-bubble:nth-child(2) { animation-delay: 0.5s; }
.chat-bubble:nth-child(3) { animation-delay: 0.8s; }

/* ---- Floating Animation ---- */

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

/* ---- Auth Layout Decorative Circles ---- */

.auth-circle-1 {
  position: absolute;
  top: -96px;
  right: -96px;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.auth-circle-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

/* ---- Password Toggle Button ---- */

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #6B7280;
}

/* ---- Pricing Table Styles ---- */

.pricing-table th {
  background: #F9FAFB;
  font-weight: 600;
  text-align: left;
}

.pricing-table td,
.pricing-table th {
  padding: 12px 16px;
  border-bottom: 1px solid #E5E7EB;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ---- Hero Pattern Background ---- */

.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.05) 1px, transparent 1px),
                     radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---- API Docs: Code Block Syntax Coloring ---- */

.code-key { color: #a78bfa; }
.code-string { color: #34d399; }
.code-number { color: #fbbf24; }
.code-boolean { color: #f472b6; }
.code-null { color: #9CA3AF; }
.code-comment { color: #6B7280; font-style: italic; }
.code-block {
  overflow-x: auto;
  white-space: pre;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
}

/* ---- API Docs: Sidebar Active State ---- */

.docs-nav-active {
  border-left: 2px solid #4F46E5;
  background: #EEF2FF;
  color: #4F46E5 !important;
  font-weight: 600;
}

.docs-nav-link {
  display: block;
  padding: 4px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: #6B7280;
  transition: all 0.15s ease;
}

.docs-nav-link:hover {
  color: #4F46E5;
  background: #F9FAFB;
}

/* ---- API Docs: Scroll margin for anchors ---- */

.docs-section {
  scroll-margin-top: 5rem;
}

/* ---- API Docs: Mobile sidebar ---- */

#docs-mobile-sidebar {
  transition: transform 0.3s ease-in-out;
}

#docs-mobile-sidebar.open {
  transform: translateX(0) !important;
}

/* ---- Testimonial infinite marquee ---- */
.testimonial-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 1%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 1%, black 97%, transparent);
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}

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

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
}

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