@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
* { font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d9488 100%);
}
.hero-slideshow {
  position: relative;
}
.slideshow-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slideshow-container .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slideshow-container .slide.active {
  opacity: 1;
}
.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,58,95,0.7) 50%, rgba(13,148,136,0.6) 100%);
}
.gradient-cta {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}
.nav-blur {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.service-card, .feature-card {
  transition: all 0.3s ease;
}
.service-card:hover, .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.testimonial-card {
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.brand-logo-card {
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.5);
}
.brand-logo-card:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Brand Train Animation */
.brand-train-track {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.brand-train-track::before,
.brand-train-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.brand-train-track::before {
  left: 0;
  background: linear-gradient(90deg, #f9fafb, transparent);
}
.brand-train-track::after {
  right: 0;
  background: linear-gradient(270deg, #f9fafb, transparent);
}
.brand-train {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: brandChug 30s linear infinite;
}
.brand-train:hover {
  animation-play-state: paused;
}
.brand-train-item {
  flex-shrink: 0;
  width: 200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.brand-train-item:hover {
  transform: scale(1.08);
}
.brand-train-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes brandChug {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item[open] summary .faq-icon { transform: rotate(180deg); }
.faq-item[open] { background: #f0fdfa; }

.stat-item:hover .stat-icon { transform: scale(1.1); }
.stat-icon { transition: transform 0.3s ease; }

/* Chatbot */
.chatbot-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
}
.chatbot-bubble {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.chatbot-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
.chatbot-bubble svg { width: 26px; height: 26px; }
.chatbot-bubble .close-icon { display: none; }
.chatbot-bubble.open .chat-icon { display: none; }
.chatbot-bubble.open .close-icon { display: block; }
.chatbot-bubble .badge {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2s infinite;
}

.chatbot-popup {
  position: fixed; bottom: 92px; right: 24px;
  width: 360px; max-width: calc(100vw - 48px);
  height: 520px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 20px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  overflow: hidden; opacity: 0; pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: bottom right;
}
.chatbot-popup.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chatbot-header-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.chatbot-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.chatbot-header p { font-size: 11px; opacity: 0.85; margin: 0; }
.chatbot-header-close {
  margin-left: auto; cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.15);
}
.chatbot-header-close:hover { opacity: 1; }
.chatbot-header-close svg { width: 16px; height: 16px; }

.chatbot-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chatbot-body::-webkit-scrollbar { width: 4px; }
.chatbot-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.chatbot-msg {
  max-width: 88%; padding: 12px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.5; word-wrap: break-word;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatbot-msg.bot {
  background: #f0fdfa; color: #1e293b;
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.chatbot-msg.user {
  background: #0d9488; color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}

.chatbot-options {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px; animation: msgIn 0.3s ease;
}
.chatbot-opt {
  background: #fff; border: 1.5px solid #e2e8f0;
  color: #1e293b; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; cursor: pointer; text-align: left;
  transition: all 0.2s; font-weight: 500;
}
.chatbot-opt:hover {
  border-color: #0d9488; background: #f0fdfa;
  transform: translateX(4px);
}

.chatbot-footer {
  padding: 12px 16px; border-top: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 8px;
}
.chatbot-footer-text {
  font-size: 12px; color: #94a3b8; flex: 1; text-align: center;
}
.chatbot-footer a {
  color: #0d9488; font-weight: 600; text-decoration: none;
}

.typing-indicator {
  display: flex; gap: 4px; padding: 12px 16px;
  background: #f0fdfa; border-radius: 16px;
  align-self: flex-start; border-bottom-left-radius: 4px;
  animation: msgIn 0.3s ease;
}
.typing-indicator span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #0d9488; animation: dotBounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 640px) {
  .chatbot-popup {
    right: 12px; bottom: 82px;
    width: calc(100vw - 24px); height: 70vh;
    border-radius: 16px;
  }
  .chatbot-bubble { width: 52px; height: 52px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { padding-bottom: 4px; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 6px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #f0fdfa;
  color: #0d9488;
}
.nav-dropdown-menu .dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 8px;
}
.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 2px solid #6b7280;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  margin-left: 5px;
  margin-bottom: 3px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(-135deg);
  margin-bottom: 0;
}


