/* Topiko Site - Custom Styles v2 */

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

/* ===== HERO CAROUSEL HOVER ===== */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused !important;
}
.marquee-track > div {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer;
}
.marquee-track > div:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22) !important;
  z-index: 10;
}
.marquee-track > div::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
}
.marquee-track > div:hover::after {
  opacity: 0;
}

/* ===== FLOATING WHATSAPP ===== */
#floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
#floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
#floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: white;
}
@media (max-width: 640px) {
  #floating-whatsapp {
    bottom: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    height: 56px;
    gap: 8px;
  }
  #floating-whatsapp svg { width: 24px; height: 24px; }
  body { padding-bottom: 56px; }
}

/* ===== SECTION ANIMATIONS ===== */
.section-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CARD HOVER ===== */
.card-hover {
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ===== FEATURE ICON ===== */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== PRICING POPULAR ===== */
.pricing-popular {
  border: 2px solid #F97316;
  position: relative;
}
.pricing-popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #F97316;
  color: white;
  padding: 2px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== COMPARISON BAR ===== */
.comparison-bar {
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
}
.comparison-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

/* ===== NAVBAR ===== */
#navbar {
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* ===== CHAT MOCKUP ===== */
.chat-bubble-left {
  background: #F3F4F6;
  border-radius: 0 16px 16px 16px;
  padding: 12px 16px;
  max-width: 280px;
  font-size: 14px;
  color: #1F2937;
}
.chat-bubble-right {
  background: #1F2937;
  color: white;
  border-radius: 16px 0 16px 16px;
  padding: 12px 16px;
  max-width: 280px;
  font-size: 14px;
  margin-left: auto;
}
.chat-time {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 4px;
}

/* ===== CHECKMARK COLORS ===== */
.check-green { color: #16A34A; }
.check-orange { color: #F97316; }
.check-blue { color: #3B82F6; }

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== MARQUEE SCROLL ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
