/* ===================================================================
   biolDEx Modern Scientific & Biotech Theme System
   Unified aesthetic for Next-Gen Sequencing, Lab Supply & ViRA Suite
   =================================================================== */

:root {
  --bio-primary: #0284c7;
  --bio-primary-dark: #0369a1;
  --bio-accent: #00d2ff;
  --bio-emerald: #10b981;
  --bio-navy: #070d1e;
  --bio-navy-light: #0f172a;
  --bio-slate: #1e293b;
  --bio-border: #e2e8f0;
  --bio-card-bg: #ffffff;
  --bio-gradient: linear-gradient(135deg, #070d1e 0%, #0c2044 50%, #0a3d62 100%);
  --bio-glow: 0 8px 30px rgba(0, 210, 255, 0.15);
}

/* Base enhancements */
body {
  color: #334155;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Glassmorphism & High-Tech Cards */
.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  border-radius: 12px;
}

.card-dark-glass {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #f8fafc;
  box-shadow: var(--bio-glow);
  border-radius: 12px;
}

/* Header & Navigation Modernization */
.header .navbar-brand img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
  transition: transform 0.2s ease;
}

.header .navbar-brand:hover img {
  transform: scale(1.02);
}

.nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: #475569 !important;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--bio-primary) !important;
}

.badge-pulse {
  position: relative;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bio-accent);
  box-shadow: 0 0 8px var(--bio-accent);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: translateY(-50%) scale(0.9); opacity: 0.7; }
  50% { transform: translateY(-50%) scale(1.4); opacity: 1; }
  100% { transform: translateY(-50%) scale(0.9); opacity: 0.7; }
}

/* Hero Section Modernization */
.hero-scientific {
  background: linear-gradient(135deg, rgba(7, 13, 30, 0.95) 0%, rgba(12, 32, 68, 0.92) 100%), url('../img/technology-6701404.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.hero-scientific::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  background: linear-gradient(to right, #ffffff, #e0f2fe, #bae6fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
}

/* Calculator Tabs & Styling */
.calc-nav .nav-link {
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
  color: #64748b !important;
}

.calc-nav .nav-link.active {
  background: #0284c7;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.calc-result-display {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #38bdf8;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--bio-accent);
}

.calc-result-value {
  font-family: 'JetBrains Mono', monospace, Consolas, Courier;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* ViRA Preset Query Chips */
.vira-preset-chip {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.vira-preset-chip:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

/* Product Cards */
.product-card {
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-xs {
  font-size: 0.75rem;
}

/* Back to top button */
#myGTopBtn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--bio-primary);
  color: white;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#myGTopBtn:hover {
  background-color: var(--bio-primary-dark);
  transform: translateY(-2px);
}
