/* ============================================
   CSS VARIABLES & BASE STYLES
   ============================================ */
:root {
  /* MeritEdge Brand Colors - Navy & Teal */
  --primary-teal: #14B8A6;
  --teal-light: #2DD4BF;
  --teal-pale: #5EEAD4;
  --pale-teal: #CCFBF1;
  --deep-teal: #0D9488;
  --navy: #0C2340;
  --navy-light: #1E3A5F;
  --navy-dark: #061526;
  
  /* Accent colors */
  --accent-orange: #F97316;
  --accent-green: #22C55E;
  
  /* Neutrals */
  --white: #FFFFFF;
  --cream: #F0FDFA;
  --light-gray: #E2E8F0;
  --gray: #94A3B8;
  --dark-gray: #475569;
  --charcoal: #1E293B;
  
  /* Gradients */
  --gradient-teal: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #2DD4BF 100%);
  --gradient-hero: linear-gradient(160deg, #0C2340 0%, #1E3A5F 40%, #0D9488 100%);
  --gradient-light: linear-gradient(180deg, #CCFBF1 0%, #F0FDFA 100%);
  --gradient-navy: linear-gradient(135deg, #0C2340 0%, #1E3A5F 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--pale-teal);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-teal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--deep-teal);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(3deg); }
  75% { transform: translateY(8px) rotate(-3deg); }
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.nav-logo .logo-icon {
  font-size: 1.8rem;
}

.nav-logo .logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-teal);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-teal);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 800px;
  height: 800px;
  background: var(--teal-light);
  top: -400px;
  right: -200px;
  opacity: 0.1;
  filter: blur(80px);
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--teal-pale);
  bottom: -200px;
  left: -100px;
  opacity: 0.15;
  filter: blur(60px);
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: white;
  top: 50%;
  left: 30%;
  opacity: 0.05;
  filter: blur(50px);
}

.floating-elements {
  position: absolute;
  inset: 0;
}

.float-el {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.el-1 { top: 15%; left: 8%; animation-delay: 0s; }
.el-2 { top: 25%; right: 12%; animation-delay: 1.5s; }
.el-3 { bottom: 35%; left: 15%; animation-delay: 3s; }
.el-4 { top: 60%; right: 20%; animation-delay: 4.5s; }
.el-5 { bottom: 20%; right: 8%; animation-delay: 2s; }

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
  margin-left: 10%;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  color: white;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--teal-pale), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > p,
.hero-content > p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  padding: 14px 28px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-image {
  position: absolute;
  right: 5%;
  bottom: 10%;
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.truck-illustration {
  position: relative;
}

.truck-body {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.truck-cabin {
  font-size: 8rem;
  line-height: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.truck-cargo {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.road {
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-top: -10px;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  background: var(--pale-teal);
  color: var(--deep-teal);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--dark-gray);
  font-size: 1.1rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: 100px 24px;
  background: var(--gradient-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 100px 24px;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-badge {
  margin-bottom: 16px;
}

.about-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--dark-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--navy);
}

.feature-icon {
  font-size: 1.2rem;
}

.about-card {
  background: var(--gradient-teal);
  padding: 40px;
  border-radius: 24px;
  color: white;
  box-shadow: var(--shadow-xl);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.about-card-header span {
  font-size: 2rem;
}

.about-card-header h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
}

.about-card > p {
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
}

.about-card-footer {
  display: flex;
  gap: 32px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
}

.mini-stat span {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.mini-stat small {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  padding: 100px 24px;
  background: var(--pale-teal);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  color: var(--teal-pale);
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-card > p {
  color: var(--dark-gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  padding-top: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-author strong {
  display: block;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: 100px 24px;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--dark-gray);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--pale-teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
  color: var(--dark-gray);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary-teal);
}

/* Contact Form */
.contact-form-wrapper {
  width: 100%;
}

.contact-form-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-form-card > p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  align-self: flex-end;
  width: 52px;
  height: 52px;
  background: var(--gradient-navy);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-submit svg {
  width: 24px;
  height: 24px;
  color: white;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(12, 35, 64, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-align: center;
}

.form-status.loading {
  background: var(--pale-teal);
  color: var(--deep-teal);
}

.form-status.success {
  background: #dcfce7;
  color: #166534;
}

.form-status.error {
  background: #fee2e2;
  color: #991b1b;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: white;
  padding: 60px 24px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo span:first-child {
  font-size: 2rem;
}

.footer-brand p {
  opacity: 0.7;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  font-family: 'Syne', sans-serif;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ============================================
   FLOATING CHAT BUTTON (FAB)
   ============================================ */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-teal);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}

.chat-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(20, 184, 166, 0.5);
}

.chat-fab.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.fab-icon {
  font-size: 1.4rem;
}

.fab-pulse {
  position: absolute;
  inset: 0;
  background: var(--teal-light);
  border-radius: 50px;
  animation: pulse 2s ease-in-out infinite;
  z-index: -1;
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 550px;
  max-height: calc(100vh - 48px);
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  animation: slideInUp 0.4s ease-out;
}

.chat-header {
  background: var(--gradient-navy);
  padding: 16px 20px;
  flex-shrink: 0;
}

.chat-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-logo-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.chat-logo h3 {
  font-family: 'Syne', sans-serif;
  color: white;
  font-size: 1.1rem;
  margin: 0;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-close svg {
  width: 18px;
  height: 18px;
  color: white;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--cream);
}

.chat-message {
  display: flex;
  gap: 10px;
  animation: slideIn 0.3s ease-out forwards;
  opacity: 0;
}

.chat-message.user {
  flex-direction: row-reverse;
  animation-name: slideInRight;
}

.chat-message.visible {
  opacity: 1;
}

.bot-avatar {
  width: 32px;
  height: 32px;
  background: var(--gradient-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.message-content {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-message.user .message-content {
  align-items: flex-end;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.bot .message-bubble {
  background: white;
  color: var(--charcoal);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-message.user .message-bubble {
  background: var(--gradient-teal);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-bubble p {
  margin: 0;
}

.message-bubble p:not(:last-child) {
  margin-bottom: 6px;
}

.message-bubble p:empty {
  height: 6px;
}

.message-time {
  font-size: 0.65rem;
  color: var(--gray);
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.source-badge {
  font-size: 0.75rem;
  cursor: help;
}

/* Typing indicator */
.message-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
}

.message-bubble.typing .dot {
  width: 8px;
  height: 8px;
  background: var(--primary-teal);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}

.message-bubble.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.message-bubble.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Quick questions */
.quick-questions {
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--cream);
}

.quick-btn {
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--deep-teal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-btn:hover {
  background: var(--primary-teal);
  color: white;
  border-color: var(--primary-teal);
}

/* Chat input */
.chat-input-form {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid var(--light-gray);
}

.chat-input-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--charcoal);
  transition: all 0.2s ease;
}

.chat-input-form input:focus {
  outline: none;
  border-color: var(--primary-teal);
  background: white;
}

.chat-input-form input::placeholder {
  color: var(--gray);
}

.chat-input-form button {
  width: 44px;
  height: 44px;
  background: var(--gradient-teal);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-input-form button svg {
  width: 18px;
  height: 18px;
  color: white;
}

.chat-input-form button:hover:not(:disabled) {
  transform: scale(1.05);
}

.chat-input-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-content {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image {
    display: none;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-main {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 20px 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .section-header h2,
  .about-text h2,
  .contact-info h2 {
    font-size: 1.8rem;
  }
  
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .contact-form-card {
    padding: 24px;
  }
  
  .contact-form-card h3 {
    font-size: 1.3rem;
  }
  
  .chat-widget {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
    height: calc(100vh - 24px);
    max-height: none;
    border-radius: 16px;
  }
  
  .chat-fab {
    bottom: 16px;
    right: 16px;
    padding: 16px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
  }
  
  .fab-text {
    display: none;
  }
}

