/* =========================================================
   NEXUS — Biomedical & Healthcare Page
   Clean, sterile, ultra-professional medical aesthetic
   ========================================================= */

body {
  background: var(--bio-bg);
  color: var(--bio-text);
}

/* Ensure nav links contrast on light bg */
.nav-global .nav-links a { color: rgba(10,22,40,0.7); }
.nav-global.scrolled .nav-links a { color: var(--light-grey); }
.nav-global:not(.scrolled) .nav-logo span { color: var(--bio-text); }
.nav-global:not(.scrolled) .nav-logo { color: var(--bio-text); }

/* ── Bio Hero ────────────────────────────────────────────── */
.bio-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(0,88,204,0.1) 0%, transparent 60%),
    linear-gradient(180deg, #EBF4FF 0%, var(--bio-bg) 100%);
}

.bio-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   rgba(0,88,204,0.04) 0, rgba(0,88,204,0.04) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg,  rgba(0,88,204,0.04) 0, rgba(0,88,204,0.04) 1px, transparent 1px, transparent 60px);
  z-index: 0;
}

.bio-hero-cross {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.06;
}

.bio-hero-cross .cross-h,
.bio-hero-cross .cross-v {
  position: absolute;
  background: var(--bio-blue);
  border-radius: 4px;
}
.bio-hero-cross .cross-h {
  width: 280px; height: 70px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.bio-hero-cross .cross-v {
  width: 70px; height: 280px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.bio-hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + var(--space-4xl)) 0 var(--space-4xl);
  max-width: 700px;
}

.bio-hero-content .section-label { color: var(--bio-blue); }
.bio-hero-content .section-label::before { background: var(--bio-blue); }

.bio-hero-content .section-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--bio-text);
  margin-bottom: var(--space-lg);
}

.bio-hero-content .section-title .accent { color: var(--bio-blue); }

.bio-hero-content .section-body {
  color: var(--bio-muted);
  max-width: 560px;
}

.bio-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.bio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 1rem;
  background: rgba(0,88,204,0.08);
  border: 1px solid rgba(0,88,204,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bio-blue);
}

/* ── Service Sections ────────────────────────────────────── */
.service-section {
  padding: var(--space-5xl) 0;
}

.service-section:nth-child(even) {
  background: rgba(0,88,204,0.03);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.service-header-icon {
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,88,204,0.12), rgba(0,88,204,0.05));
  border: 1.5px solid rgba(0,88,204,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-header-text .section-label { color: var(--bio-blue); }
.service-header-text .section-label::before { background: var(--bio-blue); }
.service-header-text .section-title { font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--bio-text); }
.service-header-text p { color: var(--bio-muted); font-size: 0.95rem; margin-top: var(--space-sm); max-width: 500px; }

/* ── Service Grid ────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: var(--bio-surface);
  border: 1px solid rgba(0,88,204,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.3s var(--ease-bounce),
              box-shadow 0.3s var(--ease-smooth),
              border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--bio-blue), rgba(0,88,204,0.1));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,88,204,0.12);
  border-color: rgba(0,88,204,0.3);
}
.service-card:hover::before { transform: scaleY(1); }

.service-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,88,204,0.1), rgba(0,88,204,0.04));
  border: 1px solid rgba(0,88,204,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  transition: transform 0.3s var(--ease-bounce);
}
.service-card:hover .service-card-icon { transform: scale(1.1) rotate(5deg); }

.service-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bio-text);
  margin-bottom: var(--space-xs);
}

.service-card-detail {
  font-size: 0.85rem;
  color: var(--bio-muted);
  line-height: 1.6;
}

/* ── Brands Section ──────────────────────────────────────── */
.brands-section {
  padding: var(--space-4xl) 0;
  background: var(--bio-surface);
  border-top: 1px solid rgba(0,88,204,0.08);
  border-bottom: 1px solid rgba(0,88,204,0.08);
}

.brands-section .section-title { color: var(--bio-text); font-size: clamp(1.4rem, 3vw, 2rem); }

.brands-marquee-wrap {
  overflow: hidden;
  margin-top: var(--space-2xl);
  position: relative;
}

.brands-marquee-wrap::before,
.brands-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.brands-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bio-surface), transparent);
}
.brands-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bio-surface), transparent);
}

.brands-marquee {
  display: flex;
  gap: var(--space-xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}
.brands-marquee:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-pill {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--bio-blue-light);
  border: 1px solid rgba(0,88,204,0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bio-blue);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.brand-pill:hover {
  background: var(--bio-blue);
  color: white;
  border-color: var(--bio-blue);
}

/* ── Director Section ────────────────────────────────────── */
.director-section {
  padding: var(--space-5xl) 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,88,204,0.06) 0%, transparent 70%),
    var(--bio-bg);
}

.director-card {
  background: var(--bio-surface);
  border: 1px solid rgba(0,88,204,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,88,204,0.08);
  position: relative;
  overflow: hidden;
}

.director-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bio-blue), rgba(0,229,255,0.5), var(--bio-blue));
}

.director-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bio-blue), rgba(0,88,204,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(0,88,204,0.1), 0 12px 40px rgba(0,88,204,0.2);
  position: relative;
}
.director-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(0,88,204,0.3);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.director-info .section-label { color: var(--bio-blue); }
.director-info .section-label::before { background: var(--bio-blue); }

.director-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--bio-text);
  margin-bottom: var(--space-xs);
}
.director-role {
  font-size: 0.95rem;
  color: var(--bio-blue);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}
.director-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--bio-muted);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.director-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.director-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 0.875rem;
}
.director-highlight strong {
  color: var(--bio-text);
  font-weight: 600;
  min-width: 130px;
  flex-shrink: 0;
}
.director-highlight span { color: var(--bio-muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .service-grid { grid-template-columns: 1fr; }
  .director-card { grid-template-columns: 1fr; text-align: center; gap: var(--space-xl); }
  .director-avatar { margin: 0 auto; }
  .director-highlights { align-items: center; }
  .director-highlight { flex-direction: column; gap: 2px; text-align: center; }
  .director-highlight strong { min-width: unset; }
  .service-header { flex-direction: column; gap: var(--space-md); }
}
