/* High-Performance Custom Styles & Smooth Acceleration for K-Pharma Ayurtech */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* GPU Acceleration & Performance Optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle, hardware-accelerated animations (no heavy repaints) */
@keyframes floatSubtle {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.animate-float-slow {
  animation: floatSubtle 6s ease-in-out infinite;
  will-change: transform;
}

.animate-pulse-dot {
  animation: pulseDot 2.5s infinite;
}

/* Crisp, lightweight panels without expensive dynamic blur calculation on scroll */
.glass-panel {
  background: rgba(10, 32, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.glass-header {
  background: rgba(6, 24, 18, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle glowing helpers */
.glow-emerald {
  box-shadow: 0 4px 30px rgba(16, 185, 129, 0.25);
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #061812;
}

::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}

/* ==========================================================================
   High-Performance Micro-Interactions (GPU-Accelerated, Zero Scroll Lag)
   ========================================================================== */

/* 1. Interactive Card Lift & Border Glow */
.card-interactive {
  transform: translate3d(0, 0, 0);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  will-change: transform;
}

.card-interactive:hover {
  transform: translate3d(0, -5px, 0);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 32px -10px rgba(16, 185, 129, 0.16);
}

/* 2. Button Shimmer & Press Feedback */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s ease,
    background-color 0.18s ease;
  will-change: transform;
}

.btn-shimmer:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.35);
}

.btn-shimmer:active {
  transform: translate3d(0, 1px, 0) scale(0.98);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-shimmer:hover::after {
  left: 150%;
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Navigation Link Dynamic Underline */
.nav-link-item {
  position: relative;
  transition: color 0.15s ease;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #10b981;
  border-radius: 9999px;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), left 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-item:hover::after {
  width: 100%;
  left: 0;
}

/* 4. Ultra-Smooth, Zero-Lag Scroll Entrance (Auto-unobserved) */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger transition delay utilities */
.delay-100 {
  transition-delay: 80ms;
}

.delay-200 {
  transition-delay: 160ms;
}

.delay-300 {
  transition-delay: 240ms;
}

.delay-400 {
  transition-delay: 320ms;
}

.delay-500 {
  transition-delay: 400ms;
}

/* 5. Smooth Tab Transition for Discovery Engine */
.tab-smooth-fade {
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-smooth-fade.is-switching {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

/* 6. Copy-to-Clipboard Micro-Badge & Tooltip */
.copy-badge {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.copy-badge:hover {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
}

.copy-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translate3d(-50%, 6px, 0);
  background: #10b981;
  color: #030d0a;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.copy-tooltip.show {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

/* 7. Comparison Table Interactive Row Hover */
.table-row-hover {
  transition: background-color 0.15s ease;
}

.table-row-hover:hover {
  background-color: rgba(16, 185, 129, 0.08) !important;
}

/* 8. Micro Icon Zoom & Nudge */
.group:hover .icon-hover-zoom {
  transform: scale(1.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .arrow-hover-nudge {
  transform: translate3d(4px, 0, 0);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   9. Rock-Solid Fully Opaque Mobile Navigation Drawer
   ========================================================================== */
#mobile-drawer {
  background-color: #030d0a !important;
  background: linear-gradient(180deg, #071c15 0%, #030d0a 100%) !important;
  border-top: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  z-index: 99999 !important;
  position: fixed !important;
  top: 5rem !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: calc(100vh - 5rem) !important;
  height: calc(100dvh - 5rem) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

#mobile-drawer.is-active {
  display: flex !important;
}

body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}