/* ==========================================================================
   DeccanIDentity Enterprise Design System
   Modern, Ultra-Polished, Responsive & High-Trust Styling
   ========================================================================== */

:root {
  /* Core Color Palette - Enterprise Trust & Precision */
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-dark: #172554;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.28);
  
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --secondary-light: #f0f9ff;
  
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-indigo: #4f46e5;
  --accent-violet: #7c3aed;

  /* Surfaces & Backgrounds */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  
  --dark-bg: #090d16;
  --dark-surface: #0f172a;
  --dark-card: #1e293b;
  --dark-border: rgba(255, 255, 255, 0.08);

  /* Typography Colors */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #3b82f6;
  --light-border: #e2e8f0;

  /* Typography Stacks */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.25);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.7;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.8vw, 3.5rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; letter-spacing: -0.015em; }

p {
  margin-bottom: 1.15rem;
  line-height: 1.72;
  letter-spacing: -0.011em;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.container-modern {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-modern-primary {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-modern-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
}

.btn-modern-outline {
  background: #ffffff;
  color: var(--text-main) !important;
  border: 1px solid var(--border-medium);
}

.btn-modern-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-modern-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-modern-cyan:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-modern-purple {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-modern-purple:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-modern-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  gap: 0.45rem;
}

.btn-modern-pill {
  border-radius: var(--radius-full);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   Header & Navigation — Enterprise Flagship Model (Compact & Precision-Tuned)
   ========================================================================== */

/* Reading Scroll Progress Indicator */
.site-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-cyan) 50%, var(--accent-violet) 100%);
  z-index: 1050;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
  pointer-events: none;
}

/* Sticky Enterprise Glass Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-bottom-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  position: relative;
  gap: 0.75rem;
  transition: height 0.25s ease;
}

.site-header.scrolled .nav-container {
  height: 60px;
}

/* Brand Identity */
.brand-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  flex-shrink: 0;
  min-width: 0;
  transition: transform 0.2s ease;
}

.brand-wrapper:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-name-img {
  height: 24px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Desktop Navigation Links */
.nav-navigation {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-item {
  position: relative;
  list-style: none;
}

.nav-link-item > a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 550;
  color: #334155;
  padding: 0.42rem 0.72rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative;
}

.nav-link-item > a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.nav-link-item.active > a {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.09);
  font-weight: 600;
}

.nav-link-item.active > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

/* Nav Dropdown Trigger Chevrons */
.nav-chevron {
  font-size: 0.65rem;
  color: #94a3b8;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  margin-left: 0.15rem;
}

.nav-link-item.has-dropdown:hover > a .nav-chevron,
.nav-link-item.has-dropdown.dropdown-open > a .nav-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* ==========================================================================
   Flagship Mega-Dropdowns (Precision Sized - 25% Reduced)
   ========================================================================== */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 3px 10px rgba(15, 23, 42, 0.03);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  z-index: 1050;
  padding: 0.8rem;
}

/* Invisible hover bridge */
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-link-item.has-dropdown:hover > .mega-dropdown,
.nav-link-item.has-dropdown:focus-within > .mega-dropdown,
.nav-link-item.has-dropdown.dropdown-open > .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown Sizing (Harmonious & User-Friendly Scale) */
.solutions-dropdown {
  width: 560px;
}

.tech-dropdown {
  width: 550px;
}

.skills-dropdown {
  width: 540px;
}

.mega-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0.95rem;
}

.mega-group-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.mega-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.mega-item:hover {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(226, 232, 240, 0.9);
  transform: translateX(3px);
}

.mega-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.mega-item:hover .mega-icon-box {
  transform: scale(1.06);
}

.bg-blue-subtle { background: #eff6ff; color: #1d4ed8; }
.bg-cyan-subtle { background: #ecfeff; color: #0891b2; }
.bg-purple-subtle { background: #f5f3ff; color: #7c3aed; }
.bg-emerald-subtle { background: #ecfdf5; color: #059669; }

.mega-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mega-item-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
  transition: color 0.18s ease;
}

.mega-item:hover .mega-item-title {
  color: var(--primary);
}

.mega-item-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Featured Column Cards inside Mega Dropdowns */
.mega-featured-card,
.mega-tech-card,
.mega-skills-card {
  height: 100%;
  background: linear-gradient(145deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 99px;
  padding: 0.2rem 0.55rem;
  width: fit-content;
  margin-bottom: 0.4rem;
}

.featured-badge.skills-badge {
  color: #059669;
  background: #dcfce7;
}

.tech-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  border-radius: 99px;
  padding: 0.2rem 0.55rem;
  width: fit-content;
  margin-bottom: 0.4rem;
}

.live-dot-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.featured-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.featured-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.featured-link-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 5px;
  text-decoration: none !important;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.featured-link-pill.cyan {
  background: #ffffff;
  color: #0891b2;
  border-color: #cffafe;
}

.featured-link-pill.cyan:hover {
  background: #ecfeff;
  transform: translateY(-1px);
}

.featured-link-pill.purple {
  background: #ffffff;
  color: #7c3aed;
  border-color: #ede9fe;
}

.featured-link-pill.purple:hover {
  background: #f5f3ff;
  transform: translateY(-1px);
}

.tech-cta-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.tech-cta-link:hover {
  gap: 0.55rem;
}

/* ==========================================================================
   Desktop Nav Action Buttons (Clean Old Style)
   ========================================================================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Morphing Hamburger & Mobile Drawer
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  z-index: 1010;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:hover {
  background: var(--primary-light);
  border-color: #bfdbfe;
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hamburger-box {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  left: 0;
  right: 0;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 4px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background-color 0.2s ease;
}

.hamburger-inner {
  top: 7px;
}

.hamburger-inner::before {
  content: '';
  top: -6px;
}

.hamburger-inner::after {
  content: '';
  top: 6px;
  bottom: auto;
}

/* Morph into 'X' when open */
.mobile-nav-toggle.is-active .hamburger-inner {
  background-color: transparent !important;
}

.mobile-nav-toggle.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--primary);
}

.mobile-nav-toggle.is-active .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: var(--primary);
}

/* Backdrop Scrim Overlay */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-actions {
  display: none;
}

/* ==========================================================================
   Responsive Scaling
   ========================================================================== */

/* Compact Desktop Scaling (1041px to 1240px) */
@media (min-width: 1041px) and (max-width: 1240px) {
  .brand-logo-img {
    height: 32px;
  }
  .brand-name-img {
    height: 22px;
    max-width: 160px;
  }
  .nav-links {
    gap: 0.35rem;
  }
  .nav-link-item > a {
    font-size: 0.88rem;
    padding: 0.38rem 0.58rem;
  }
  .nav-actions .btn-modern-sm {
    padding: 0.38rem 0.7rem;
    font-size: 0.82rem;
    gap: 0.35rem;
  }
  .solutions-dropdown,
  .tech-dropdown,
  .skills-dropdown {
    width: 510px;
  }
  .mega-dropdown-grid {
    grid-template-columns: 1fr 180px;
    gap: 0.85rem;
  }
  .mega-item-title {
    font-size: 0.85rem;
  }
  .mega-item-desc {
    font-size: 0.76rem;
  }
}

@media (min-width: 1041px) and (max-width: 1360px) {
  .skills-dropdown {
    left: auto;
    right: 0;
    transform: translateY(8px) scale(0.98);
  }
  .nav-link-item.has-dropdown:hover > .skills-dropdown,
  .nav-link-item.has-dropdown:focus-within > .skills-dropdown,
  .nav-link-item.has-dropdown.dropdown-open > .skills-dropdown {
    transform: translateY(0) scale(1);
  }
}

/* Mobile & Tablet Navigation Drawer (<= 1040px) */
@media (max-width: 1040px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-actions {
    display: none;
  }

  .nav-navigation {
    display: contents;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.75rem;
    gap: 0.4rem;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.14);
    border-bottom: 1px solid var(--border-medium);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.2s ease,
                visibility 0.2s;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links.active .nav-link-item {
    animation: navItemFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .nav-links.active .nav-link-item:nth-child(1) { animation-delay: 0.03s; }
  .nav-links.active .nav-link-item:nth-child(2) { animation-delay: 0.06s; }
  .nav-links.active .nav-link-item:nth-child(3) { animation-delay: 0.09s; }
  .nav-links.active .nav-link-item:nth-child(4) { animation-delay: 0.12s; }
  .nav-links.active .nav-link-item:nth-child(5) { animation-delay: 0.15s; }
  .nav-links.active .nav-link-item:nth-child(6) { animation-delay: 0.18s; }
  .nav-links.active .mobile-drawer-actions { animation-delay: 0.21s; }

  @keyframes navItemFadeIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .nav-link-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.94rem;
    font-weight: 550;
    letter-spacing: -0.01em;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    color: #1e293b;
    line-height: 1.35;
    background: #f8fafc;
    width: 100%;
  }

  .nav-link-item.active > a {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #bfdbfe;
    font-weight: 600;
  }

  .nav-link-item.active > a::after {
    display: none;
  }

  /* Mobile Dropdown Accordion */
  .nav-link-item .mega-dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    padding: 0.25rem 0 0.25rem 0.75rem;
    margin: 0.2rem 0 0.25rem 0.5rem;
    display: none;
    width: auto;
  }

  .nav-link-item.mobile-open .mega-dropdown {
    display: block;
    animation: accordionExpand 0.22s ease;
  }

  .nav-link-item.mobile-open .nav-chevron {
    transform: rotate(180deg);
    color: var(--primary);
  }

  @keyframes accordionExpand {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mega-dropdown-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mega-group-label {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  .mega-item {
    padding: 0.45rem 0.55rem;
  }

  .mega-item-title {
    font-size: 0.88rem;
  }

  .mega-item-desc {
    font-size: 0.78rem;
  }

  .mega-col-featured {
    display: none;
  }
  
  /* Mobile Drawer Actions */
  .mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .mobile-drawer-grid .btn-modern {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
  }

  .mobile-drawer-actions > .btn-modern {
    width: 100%;
    justify-content: center;
    padding: 0.72rem 1rem;
    font-size: 0.90rem;
    font-weight: 600;
  }

  .nav-chevron {
    padding: 8px 12px;
    margin: -8px -12px;
    font-size: 0.92rem;
  }
}

/* Smartphone Header (<= 640px) */
@media (max-width: 640px) {
  .site-header {
    border-bottom-color: rgba(226, 232, 240, 0.95);
  }

  .nav-container {
    height: 60px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header.scrolled .nav-container {
    height: 56px;
  }

  .brand-wrapper {
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 30px;
  }

  .brand-name-img {
    height: 20px;
    max-width: 145px;
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    top: 60px;
    max-height: calc(100vh - 60px);
    padding: 0.85rem 1rem 1.75rem;
  }
}

/* Small Smartphone Header (<= 380px) */
@media (max-width: 380px) {
  .nav-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-logo-img {
    height: 26px;
  }

  .brand-name-img {
    height: 18px;
    max-width: 120px;
  }

  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
  }
}

body.nav-drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 140px 0 90px;
  background: 
    radial-gradient(1200px 500px at 50% 0%, rgba(37, 99, 235, 0.07) 0%, transparent 60%),
    radial-gradient(800px 400px at 90% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  color: #0f172a;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #1d4ed8 20%, #0284c7 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.page-hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

.ecosystem-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.btn-subtext {
  font-size: 0.78rem;
  opacity: 0.88;
  font-weight: 500;
  margin-left: 0.3rem;
}

@media (max-width: 480px) {
  .btn-subtext {
    display: none;
  }
}

.hero-trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.trust-item i {
  color: var(--accent-emerald);
}

/* Hero Terminal / Architecture Mockup Card */
.hero-mockup-card {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px -12px rgba(15, 23, 42, 0.4), 0 0 40px rgba(37, 99, 235, 0.15);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  background: #111827;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.mockup-title {
  font-family: monospace;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mockup-body {
  padding: 1.75rem;
  color: #e2e8f0;
}

.mockup-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #34d399;
  font-weight: 600;
}

.mockup-grid-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.metric-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.metric-box-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.metric-box-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.mockup-footer-action {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-footer-action span {
  font-size: 0.84rem;
  color: #cbd5e1;
}

@media (max-width: 991px) {
  .hero-section {
    padding: 105px 0 55px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-description {
    font-size: 1.05rem;
    line-height: 1.68;
    text-wrap: pretty;
  }
  .page-hero {
    padding: 105px 0 45px;
  }
  .page-hero .hero-title {
    font-size: clamp(1.9rem, 4.5vw, 2.5rem);
    line-height: 1.25;
    text-wrap: balance;
  }
  .page-hero p {
    font-size: 1.05rem !important;
    line-height: 1.68 !important;
    text-wrap: pretty;
  }
}

@media (max-width: 640px) {
  .container-modern {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .hero-section {
    padding: 90px 0 40px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    letter-spacing: -0.025em;
    line-height: 1.22;
    margin-bottom: 1rem;
    text-wrap: balance;
  }
  .hero-description {
    font-size: 0.96rem;
    line-height: 1.65;
    letter-spacing: -0.008em;
    margin-bottom: 1.4rem;
    text-wrap: pretty;
  }
  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }
  .hero-cta-group .btn-modern {
    width: 100%;
    justify-content: center;
    padding: 0.72rem 0.65rem;
    font-size: 0.88rem;
    text-align: center;
  }
  .hero-cta-group .btn-hero-explore {
    grid-column: 1 / -1;
    padding: 0.8rem 1rem;
    font-size: 0.94rem;
  }
  .hero-cta-group .btn-hero-websites,
  .hero-cta-group .btn-hero-apps {
    grid-column: span 1;
    white-space: nowrap;
  }
  .hero-cta-group .btn-hero-wa {
    grid-column: 1 / -1;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }

  .page-hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .page-hero-cta-group .btn-modern {
    width: 100%;
    justify-content: center;
    padding: 0.72rem 0.65rem;
    font-size: 0.88rem;
    text-align: center;
  }
  .page-hero-cta-group .btn-hero-explore {
    grid-column: 1 / -1;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }
  .page-hero-cta-group .btn-hero-websites,
  .page-hero-cta-group .btn-hero-apps {
    grid-column: span 1;
    white-space: nowrap;
  }

  .ecosystem-card-actions {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }
  .ecosystem-card-actions .btn-modern {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .hero-trust-signals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
  }
  .mockup-body {
    padding: 1.25rem;
  }
  .mockup-footer-action {
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
    text-align: center;
  }
  .mockup-footer-action .btn-modern {
    width: 100%;
    justify-content: center;
  }
  .page-hero {
    padding: 90px 0 35px;
  }
  .page-hero .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
    line-height: 1.22;
    text-wrap: balance;
  }
  .page-hero p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    letter-spacing: -0.008em;
    margin-bottom: 1.35rem;
    text-wrap: pretty;
  }
}

@media (max-width: 420px) {
  .hero-trust-signals {
    grid-template-columns: 1fr;
  }
}

/* Page Hero System across all pages */
.page-hero {
  padding: 105px 0 45px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  text-align: center;
}

.page-hero .hero-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.page-hero p {
  font-size: 1.05rem !important;
  line-height: 1.62 !important;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   Stats & Metrics Bar
   ========================================================================== */
.stats-section {
  padding: 3rem 0;
  background: #090d16;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 3.8vw, 3rem);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Infinite Marquee & Technology Banner System (Option 1)
   ========================================================================== */
.marquee-section {
  padding: 3.25rem 0;
  background: #080d1a;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-section .section-header {
  margin-bottom: 2rem;
}

.marquee-section .section-title {
  color: #ffffff;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
}

.marquee-section .section-subtitle {
  color: #94a3b8;
  max-width: 650px;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.5rem 0;
  /* Smooth edge fading mask for seamless infinite flow */
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: max-content;
  will-change: transform;
}

.marquee-track.track-left {
  animation: marqueeScrollLeft 38s linear infinite;
}

.marquee-track.track-right {
  animation: marqueeScrollRight 42s linear infinite;
}

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

@keyframes marqueeScrollLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeScrollRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Individual Marquee Card */
.marquee-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
}

.marquee-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  color: inherit;
}

.marquee-card-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.marquee-card-content {
  display: flex;
  flex-direction: column;
}

.marquee-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.marquee-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.marquee-card-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

.marquee-pill-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}
.marquee-pill-iam {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.marquee-pill-cert {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.marquee-pill-tech {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

@media (max-width: 640px) {
  .marquee-section {
    padding: 2.5rem 0;
  }
  .marquee-wrapper {
    gap: 0.85rem;
  }
  .marquee-card {
    padding: 0.55rem 0.95rem;
    gap: 0.65rem;
  }
  .marquee-card-img {
    width: 32px;
    height: 32px;
  }
  .marquee-card-title {
    font-size: 0.84rem;
  }
  .marquee-card-meta {
    font-size: 0.70rem;
  }
}

/* ==========================================================================
   Section Headers & Utilities
   ========================================================================== */
.section-padding {
  padding: 95px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.25rem;
}

.section-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: #dbeafe;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-title {
  margin-bottom: 1rem;
  line-height: 1.25;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.72;
  letter-spacing: -0.011em;
  text-wrap: pretty;
}

/* ==========================================================================
   Solutions & Services Cards
   ========================================================================== */
.solutions-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.solution-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #090d16;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card-modern:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-content {
  padding: 1.85rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.card-summary {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.68;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.card-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-features-list li {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.55;
  letter-spacing: -0.008em;
}

.card-features-list li i {
  color: var(--accent-emerald);
  margin-top: 0.22rem;
  flex-shrink: 0;
}

.card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  margin-top: auto;
}

.card-footer-link:hover {
  gap: 0.7rem;
}

@media (max-width: 991px) {
  .solutions-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .solutions-grid-modern {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Flagship Showcase Banner (demo.deccanidentity.in + wacrm)
   ========================================================================== */
.ecosystem-section {
  background: #090d16;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.ecosystem-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.ecosystem-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.ecosystem-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.ecosystem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.ecosystem-card.card-websites::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.ecosystem-card.card-apps::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.ecosystem-features-list {
  list-style: none;
  margin: 0 0 1.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ecosystem-features-list li {
  font-size: 0.9rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.55;
  letter-spacing: -0.008em;
}

.ecosystem-features-list li i {
  color: var(--accent-cyan);
  margin-top: 0.22rem;
  flex-shrink: 0;
}

.card-apps .ecosystem-features-list li i {
  color: #a78bfa;
  margin-top: 0.22rem;
  flex-shrink: 0;
}

.ecosystem-title {
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 0.85rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ecosystem-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.card-apps .ecosystem-domain-badge {
  color: #c084fc;
}

.ecosystem-desc {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.72;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.ecosystem-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.ecosystem-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ecosystem-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-feature-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.side-feature-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-3px);
}

.side-feature-card h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.side-feature-card p {
  color: #94a3b8;
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

@media (max-width: 991px) {
  .ecosystem-grid,
  .ecosystem-dual-grid,
  .ecosystem-bottom-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ecosystem-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 640px) {
  .ecosystem-card {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-lg);
  }
  .ecosystem-title {
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .ecosystem-desc {
    font-size: 0.92rem;
    line-height: 1.62;
    letter-spacing: -0.008em;
    margin-bottom: 1.25rem;
    text-wrap: pretty;
  }
  .ecosystem-chips {
    gap: 0.4rem;
  }
  .ecosystem-chip {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }
  .ecosystem-features-list li {
    font-size: 0.86rem;
    line-height: 1.5;
  }
  .side-feature-card {
    padding: 1.4rem 1.15rem;
  }
  .side-feature-card h4 {
    font-size: 1.15rem;
    line-height: 1.3;
  }
  .side-feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: -0.008em;
    text-wrap: pretty;
  }
}

/* ==========================================================================
   Video Showcase Section
   ========================================================================== */
.video-section {
  background: #ffffff;
}

.video-grid-modern {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.video-container-modern {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.15);
  background: #090d16;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px -12px rgba(37, 99, 235, 0.22), 0 0 0 1px rgba(37, 99, 235, 0.28);
}

.video-container-modern iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.quote-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 2rem;
  margin-top: 1.75rem;
}

@media (max-width: 1040px) {
  .video-grid-modern {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .quote-box {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .video-grid-modern {
    gap: 1.75rem;
  }

  .video-container-modern {
    border-radius: var(--radius-md);
  }

  .quote-box {
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
  }
}

.quote-box p {
  font-style: italic;
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   News & Careers Updates
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.news-tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.news-tag.ai { background: #ede9fe; color: #6d28d9; }
.news-tag.internship { background: #dcfce7; color: #15803d; }
.news-tag.security { background: #e0f2fe; color: #0369a1; }

.news-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.news-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Enterprise Footer
   ========================================================================== */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding-top: 85px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #cbd5e1;
}

.footer-contact-list li i {
  color: var(--secondary);
  margin-top: 0.25rem;
  font-size: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.85rem 0;
  font-size: 0.88rem;
  color: #64748b;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 991px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Floating Actions
   ========================================================================== */
/* ==========================================================================
   Floating Actions: WhatsApp (Bottom-Left) & Back To Top
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 999997;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25D366 0%, #1ea952 100%);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow:
    0 8px 22px rgba(37, 211, 102, 0.44),
    0 2px 6px rgba(0, 0, 0, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.58),
    0 4px 10px rgba(0, 0, 0, 0.28);
}

.floating-whatsapp.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
  transform: scale(1.06) !important;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.65);
  z-index: 1000002;
}

.back-to-top {
  position: fixed;
  bottom: 98px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999996;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Global Draggable Animated AI Robot Assistant (Bottom-Right)
   ========================================================================== */
.ask-ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 999998;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(30, 58, 138, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.6),
    0 0 22px rgba(56, 189, 248, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  cursor: grab;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.ask-ai-fab:not(.is-dragging):hover {
  transform: scale(1.1) translateY(-2px);
  border-color: #38bdf8;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.7),
    0 0 32px rgba(56, 189, 248, 0.65),
    inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.ask-ai-fab.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
  transform: scale(1.06) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(56, 189, 248, 0.7);
  z-index: 1000001;
}

.ask-ai-fab:active:not(.is-dragging) {
  transform: scale(0.96);
}

.ask-ai-fab.assistant-open {
  border-color: #38bdf8;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(56, 189, 248, 0.5);
}

.ask-ai-fab__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.28);
  z-index: -1;
  animation: ask-ai-pulse 2.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes ask-ai-pulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  50% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(0.92); opacity: 0; }
}

.ask-ai-fab__signal-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f172a;
  box-shadow: 0 0 8px #22c55e;
  z-index: 2;
}

.ask-ai-robo-character {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  pointer-events: none;
}

.ask-ai-robo-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.25s ease;
}

.ask-ai-fab:not(.is-dragging):hover .ask-ai-robo-svg {
  transform: rotate(-3deg);
}

/* Waving Hand: Default Automatic Greeting Animation */
.ask-ai-robo-hand-assembly {
  transform-origin: 70px 58px;
  transition: transform 0.25s ease;
  animation: robo-greeting-wave 2.8s ease-in-out infinite;
}

@keyframes robo-greeting-wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(26deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(22deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(18deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.ask-ai-fab:not(.is-dragging):hover .ask-ai-robo-hand-assembly {
  animation: robo-greeting-wave 1.1s ease-in-out infinite !important;
}

.ask-ai-fab.assistant-open .ask-ai-robo-hand-assembly {
  animation-play-state: paused !important;
}

.ask-ai-eyes-happy {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ask-ai-eyes-happy.visible {
  opacity: 1;
}

.ask-ai-eyes-normal {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ask-ai-eyes-normal.hidden {
  opacity: 0;
}

.ask-ai-cheeks {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ask-ai-fab:not(.is-dragging):hover .ask-ai-eyes-happy,
.ask-ai-fab.assistant-open .ask-ai-eyes-happy {
  opacity: 1;
}

.ask-ai-fab:not(.is-dragging):hover .ask-ai-eyes-normal,
.ask-ai-fab.assistant-open .ask-ai-eyes-normal {
  opacity: 0;
}

.ask-ai-fab:not(.is-dragging):hover .ask-ai-cheeks,
.ask-ai-fab.assistant-open .ask-ai-cheeks {
  opacity: 1;
}

.ask-ai-antenna-wave {
  opacity: 0;
  transform-origin: 42px 10px;
}

.ask-ai-fab:not(.is-dragging):hover .ask-ai-antenna-wave,
.ask-ai-fab.assistant-open .ask-ai-antenna-wave {
  animation: antenna-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes antenna-ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.ask-ai-fab__tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  left: auto;
  transform: translateY(-50%) translateX(6px) scale(0.92);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 14px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
}

.ask-ai-fab__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.96);
}

.ask-ai-fab__tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.ask-ai-fab:not(.is-dragging):hover .ask-ai-fab__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .ask-ai-fab,
  .ask-ai-fab__pulse,
  .ask-ai-robo-hand-assembly,
  .ask-ai-antenna-wave,
  .floating-whatsapp {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .ask-ai-fab {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  .floating-whatsapp {
    bottom: 18px;
    left: 18px;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
  .back-to-top {
    bottom: 80px;
    right: 22px;
  }
}

/* Interactive AI Assistant Modal */
.ask-ai-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ask-ai-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ask-ai-modal-overlay.align-left {
  justify-content: flex-start;
}

.ask-ai-window {
  width: min(420px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 48px));
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(2, 132, 199, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-ai-modal-overlay.open .ask-ai-window {
  transform: translateY(0) scale(1);
}

.ask-ai-drag-handle {
  display: none;
}

.ask-ai-header {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ask-ai-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ask-ai-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
}

.ask-ai-header__info {
  display: flex;
  flex-direction: column;
}

.ask-ai-header__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ask-ai-header__badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ask-ai-header__sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.ask-ai-header__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.ask-ai-header__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.ask-ai-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.ask-ai-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 88%;
}

.ask-ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ask-ai-msg.assistant {
  align-self: flex-start;
}

.ask-ai-msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
}

.ask-ai-msg__bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  word-break: break-word;
}

.ask-ai-msg.assistant .ask-ai-msg__bubble {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-top-left-radius: 4px;
}

.ask-ai-msg.user .ask-ai-msg__bubble {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 500;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.ask-ai-msg__links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ask-ai-msg__link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ask-ai-msg__link-btn:hover {
  background: rgba(2, 132, 199, 0.3);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.ask-ai-suggestions {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.ask-ai-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ask-ai-chip:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: rgba(6, 182, 212, 0.45);
  color: #38bdf8;
}

.ask-ai-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 22, 0.9);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.ask-ai-input {
  flex: 1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 9999px;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ask-ai-input:focus {
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.ask-ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.ask-ai-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.ask-ai-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

body.ask-ai-open {
  overflow: hidden;
}

/* Mobile Advanced Bottom Sheet Mode (<= 640px) */
@media (max-width: 640px) {
  .ask-ai-modal-overlay {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch !important;
    background: rgba(11, 17, 32, 0.72);
  }

  .ask-ai-window {
    width: 100%;
    height: 82vh;
    height: 82dvh;
    max-height: calc(100dvh - 35px);
    border-radius: 24px 24px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ask-ai-modal-overlay.open .ask-ai-window {
    transform: translateY(0);
  }

  .ask-ai-drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 auto 10px auto;
  }

  .ask-ai-header {
    padding: 10px 16px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ask-ai-header__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .ask-ai-body {
    padding: 12px 14px 6px;
  }

  .ask-ai-msg {
    max-width: 92%;
  }

  .ask-ai-suggestions {
    padding: 0 14px 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ask-ai-suggestions::-webkit-scrollbar {
    display: none;
  }

  .ask-ai-chip {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
  }

  .ask-ai-footer {
    padding: 10px 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
    background: rgba(9, 13, 22, 0.98);
  }

  .ask-ai-input {
    font-size: 16px; /* Prevents iOS Safari auto-zoom */
  }
}
