/* ==============================
   Base Styles
============================== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ==============================
   Header & Navigation
============================== */
.header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.nav-link {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: #3b82f6;
  transform: translateY(-1px);
}

/* ==============================
   Hero Section
============================== */
.hero-video {
  position: relative;
  overflow: hidden;
}

.hero-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ==============================
   Cards & Buttons
============================== */
.card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-outline {
  border: 1px solid #3b82f6;
  color: #3b82f6;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

/* ==============================
   Features Section
============================== */
.features-wave {
  position: relative;
  overflow: hidden;
}

.features-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: wave 3s ease-in-out infinite;
}

.feature-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-card {
  perspective: 1000px;
}

.feature-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.feature-card:hover .feature-inner {
  transform: rotateY(5deg) rotateX(5deg);
}

.feature-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

/* ==============================
   Map Section
============================== */
.map-container {
  max-width: 800px;
  margin: 0 auto;
}

.map-embed {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==============================
   Animations & Effects
============================== */
@keyframes gentle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-gentle-pulse {
  animation: gentle-pulse 2s infinite;
}

@keyframes wave {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   Misc
============================== */
.stat-counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3b82f6;
}

.testimonial-slide {
  transition: transform 0.5s ease;
}

/* ==============================
   Chatbot Styles
============================== */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.05);
}

.chat-modal {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 380px;
  max-height: 70vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  z-index: 50;
  display: none;
  flex-direction: column;
}

.chat-modal.show {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-header {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow: auto;
  background: #f8fafc;
}

.chat-bubble {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.chat-bubble.user {
  background: #3b82f6;
  color: white;
  margin-left: auto;
  text-align: right;
}

.chat-bubble.bot {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
  max-width: 100%;
}

.chat-input-container {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: white;
  display: flex;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  outline: none;
}

.chat-send {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  margin-left: 8px;
  cursor: pointer;
}

.typing-indicator {
  display: flex;
  align-items: center;
  opacity: 0.7;
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 4px;
  margin-right: 8px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

/* TAP TO ZOOM – KAMAY CURSOR + BUMP EFFECT */
        .cursor-pointer {
            cursor: pointer !important;
        }
        #cleanZoomModal {
            animation: fadeIn 0.3s ease-out;
        }
        #cleanZoomModal.hidden {
            animation: fadeOut 0.3s ease-out forwards;
            pointer-events: none;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        #cleanZoomImage {
            max-height: 90vh;
            object-fit: contain;
        }

/* IMPROVEMENTS FOR TABLES IN CHAT BUBBLES */
.chat-bubble table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

.chat-bubble th,
.chat-bubble td {
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 13px;
  border: 1px solid #e5e7eb;
  padding: 10px 8px;
  vertical-align: top;
}

.chat-bubble thead th {
  background: #4a90e2;
  color: white;
  font-weight: 600;
  border: 1px solid #4a90e2;
  text-align: left;
}

.chat-bubble tbody tr:nth-child(even) {
  background: #f8fafc;
}

.chat-bubble tbody tr:nth-child(odd) {
  background: #ffffff;
}

.chat-bubble div[style*="background:#f9f9f9"] {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

