/* ==========================================================================
   INTELLIUM INFOSERVE - MODERN ENTERPRISE DESIGN SYSTEM & ANIMATIONS
   AI-Powered Website Stylesheet
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.35);
  
  --secondary: #2563eb;
  --accent-cyan: #00f0ff;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --whatsapp-green: #25d366;
  --whatsapp-dark: #128c7e;
  
  --dark-bg: #070d1e;
  --dark-surface: #0c1530;
  --dark-card: rgba(15, 26, 56, 0.75);
  --dark-border: rgba(56, 189, 248, 0.18);
  
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-card: rgba(255, 255, 255, 0.9);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(2, 132, 199, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(2, 132, 199, 0.22), 0 10px 15px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 35px rgba(0, 240, 255, 0.35);
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scroll Progress Bar at very top */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #00f0ff, #8b5cf6);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #00f0ff 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Top Announcement Bar */
.top-announcement-bar {
  background: linear-gradient(90deg, #070d1e 0%, #0c1530 50%, #070d1e 100%);
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-announcement-bar a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.top-announcement-bar a:hover {
  color: var(--accent-cyan);
}

.badge-hp-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-gem {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Modern Sticky Header */
.intellium-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.intellium-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.intellium-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.intellium-header.scrolled .intellium-brand-logo {
  height: 46px;
}

.nav-link-custom {
  font-size: 0.925rem;
  font-weight: 600;
  color: #334155;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary);
  background-color: rgba(2, 132, 199, 0.06);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Modern Mega Dropdown */
.custom-dropdown-menu {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  padding: 12px;
  min-width: 280px;
  background: #ffffff;
  animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.custom-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
}

.custom-dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary);
  transform: translateX(4px);
}

.custom-dropdown-item i {
  font-size: 1.1rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
}

/* Custom Modern Buttons */
.btn-modern-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-modern-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
}

.btn-modern-outline {
  background: transparent;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-modern-outline:hover {
  background: #f8fafc;
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-modern-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.btn-modern-whatsapp:hover {
  background: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
}

/* HERO SECTION WITH INTERACTIVE PARTICLE CANVAS */
.hero-tech-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, #11224d 0%, #070d1e 65%, #050814 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 80px 0 100px;
}

#hero-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 35px;
}

/* Floating 3D Tech Card in Hero */
.hero-visual-card {
  position: relative;
  background: rgba(15, 26, 56, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: heroFloat 6s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-14px) rotate(0.5deg); }
}

.hero-stat-pill {
  position: absolute;
  background: rgba(7, 13, 30, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.hero-stat-pill.pill-1 {
  top: -24px;
  right: -20px;
}

.hero-stat-pill.pill-2 {
  bottom: -24px;
  left: -20px;
}

/* Infinite Marquee for OEM Partners */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #ffffff;
  padding: 30px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

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

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

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 35px;
  height: 60px;
}

.partner-logo-item img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(85%) opacity(0.85);
  transition: var(--transition);
}

.partner-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* SECTION TITLES */
.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(2, 132, 199, 0.08);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 15px;
}

.section-desc {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* MODERN SOLUTION CARDS WITH 3D TILT EFFECT */
.modern-solution-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.modern-solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #00f0ff);
  opacity: 0;
  transition: var(--transition);
}

.modern-solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
}

.modern-solution-card:hover::before {
  opacity: 1;
}

.solution-icon-box {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(0, 240, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 22px;
  transition: var(--transition);
}

.modern-solution-card:hover .solution-icon-box {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.solution-text {
  font-size: 0.925rem;
  color: #64748b;
  margin-bottom: 20px;
  flex-grow: 1;
}

.solution-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 22px;
}

.solution-features-list li {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.solution-features-list li i {
  color: var(--accent-green);
  font-size: 0.8rem;
}

.solution-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.modern-solution-card:hover .solution-link-arrow {
  color: var(--primary-dark);
  gap: 10px;
}

/* AI SOLUTION RECOMMENDER / WIZARD TOOL */
.ai-recommender-section {
  background: radial-gradient(circle at 50% 50%, #0c1530 0%, #070d1e 100%);
  color: #ffffff;
  padding: 90px 0;
  position: relative;
}

.ai-wizard-box {
  background: rgba(15, 26, 56, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.wizard-step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition);
}

.wizard-step-pill.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(0, 240, 255, 0.2));
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.wizard-option-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.wizard-option-card:hover,
.wizard-option-card.selected {
  background: rgba(2, 132, 199, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15);
}

.wizard-option-card i {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  display: block;
}

.wizard-result-box {
  background: rgba(2, 132, 199, 0.1);
  border: 1px dashed var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 25px;
}

/* HP GOLD PARTNER SPOTLIGHT BANNER */
.hp-gold-banner {
  background: linear-gradient(135deg, #0b152d 0%, #15274d 100%);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hp-gold-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* INTERACTIVE CALCULATOR SECTION */
.calc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.calc-result-display {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.calc-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}

/* STATS COUNTERS */
.stats-banner {
  background: linear-gradient(135deg, #070d1e 0%, #0f1c3f 100%);
  color: #ffffff;
  padding: 70px 0;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 15px;
}

.stat-number {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* DUAL LOCATION HUB */
.office-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.office-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.office-card-header {
  background: linear-gradient(135deg, #0c1530, #1e293b);
  color: #ffffff;
  padding: 24px 28px;
}

.office-card-body {
  padding: 28px;
}

.office-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.office-info-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FOOTER STYLING */
.intellium-footer {
  background: #060b18;
  color: #94a3b8;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-logo {
  height: 52px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 25px 0;
  margin-top: 60px;
  font-size: 0.85rem;
}

/* BACK TO TOP BUTTON WITH CIRCULAR PROGRESS */
#back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-4px);
}

/* ==========================================================================
   WHATSAPP & INTELLIBOT AI FLOATING CHATBOT WIDGET
   ========================================================================== */
.whatsapp-widget-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Pulsating Green Trigger Button */
.whatsapp-trigger-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: var(--transition);
}

.whatsapp-trigger-btn:hover {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Pulse waves animation */
.whatsapp-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  top: 0;
  left: 0;
  animation: pulseRipple 2.2s infinite cubic-bezier(0.25, 0, 0, 1);
  pointer-events: none;
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Tooltip preview pill beside launcher */
.whatsapp-teaser-pill {
  position: absolute;
  right: 76px;
  bottom: 12px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* WhatsApp Main Window Container */
.whatsapp-chat-window {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 36px);
  height: 580px;
  max-height: calc(100vh - 125px);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  border: 1px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  pointer-events: none;
}

.whatsapp-chat-window.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Header */
.wa-chat-header {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wa-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #25d366;
  border: 2px solid #128c7e;
  border-radius: 50%;
}

.wa-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.wa-subtitle {
  font-size: 0.75rem;
  color: #bbf7d0;
}

.wa-header-actions button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.85;
  transition: var(--transition);
}

.wa-header-actions button:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Dual Mode Navigation Tabs */
.wa-nav-tabs {
  display: flex;
  background: #0f766e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: #ccfbf1;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
}

.wa-tab-btn.active {
  color: #ffffff;
  border-bottom-color: #25d366;
  background: rgba(0, 0, 0, 0.1);
}

/* Chat Body (WhatsApp Background Pattern) */
.wa-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #efeae2;
  background-image: radial-gradient(#d1d5db 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chat Messages */
.wa-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  word-break: break-word;
}

.wa-message.incoming {
  background: #ffffff;
  align-self: flex-start;
  border-top-left-radius: 2px;
  color: #1e293b;
}

.wa-message.outgoing {
  background: #d9fdd3;
  align-self: flex-end;
  border-top-right-radius: 2px;
  color: #111827;
}

.wa-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 4px;
}

.wa-double-check {
  color: #38bdf8;
}

/* Typing Indicator Animation */
.wa-typing-indicator {
  display: none;
  align-self: flex-start;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wa-typing-dots {
  display: flex;
  gap: 4px;
}

.wa-typing-dots span {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out both;
}

.wa-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.wa-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Quick Suggestion Chips */
.wa-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wa-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f766e;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.wa-chip-btn:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

/* Chat Footer / Input */
.wa-chat-footer {
  background: #f0f2f5;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
}

.wa-input-field {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
}

.wa-input-field:focus {
  border-color: #128c7e;
}

.wa-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #128c7e;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.wa-send-btn:hover {
  background: #075e54;
  transform: scale(1.08);
}

/* Direct WhatsApp Tab View */
.wa-direct-panel {
  display: none;
  flex-direction: column;
  padding: 24px;
  background: #ffffff;
  flex: 1;
  overflow-y: auto;
  text-align: center;
}

.wa-direct-panel.active {
  display: flex;
}

.wa-direct-icon {
  width: 72px;
  height: 72px;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 16px;
}

.wa-template-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-template-btn:hover {
  background: #f0fdf4;
  border-color: #25d366;
  color: #166534;
  transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE DESIGN FIXES
   ========================================================================== */
@media (max-width: 991px) {
  .hero-tech-section {
    padding: 60px 0 80px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  
  .hero-visual-card {
    margin-top: 50px;
  }
  
  .hero-stat-pill.pill-1 {
    right: 10px;
  }
  
  .hero-stat-pill.pill-2 {
    left: 10px;
  }
}

@media (max-width: 576px) {
  .whatsapp-chat-window {
    right: 12px;
    bottom: 90px;
    width: calc(100vw - 24px);
    height: 520px;
  }
  
  .whatsapp-trigger-btn {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
  
  .whatsapp-widget-launcher {
    bottom: 20px;
    right: 20px;
  }
  
  #back-to-top {
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
  }
}
