:root {
  --bg-1: #E3E3E3;
  --bg-2: #DBDBDB;
  --card-bg: rgba(214, 214, 213, 0.6);
  /* #D6D6D5 with opacity for glassmorphism */
  --card-border: rgba(255, 255, 255, 0.4);
  --text-dark: #040003;
  --text-muted: #555353;
  --accent-yellow: #FFFF78;
  --accent-yellow-trans: rgba(255, 255, 120, 0.25);

  --font-main: 'Aeonik Fono', 'Inter', sans-serif;
  --border-radius-lg: 40px;
  --border-radius-md: 40px;
  --border-radius-sm: 40px;

  --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-med: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  background-color: var(--bg-1);
  color: var(--text-dark);
  font-family: var(--font-main);
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-weight: 300;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise overlay to eliminate gradient banding/pixelation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  will-change: transform, opacity;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Ambient Backgrounds */
@keyframes floatGlow1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-5vw, 10vh) scale(1.1);
  }

  66% {
    transform: translate(10vw, 5vh) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes floatGlow2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  20% {
    transform: translate(30vw, -40vh) scale(1.1);
  }

  40% {
    transform: translate(70vw, -80vh) scale(0.9);
  }

  60% {
    transform: translate(20vw, -10vh) scale(1.05);
  }

  80% {
    transform: translate(-10vw, -60vh) scale(0.95);
  }

  100% {
    transform: translate(80vw, -100vh) scale(1.1);
  }
}

.ambient-glow-1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-yellow-trans) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  transform: translate(calc(var(--mouse-client-x, 50vw) - 50%), calc(var(--mouse-client-y, 50vh) - 50%));
  transition: transform 0.1s cubic-bezier(0.1, 0.7, 0.1, 1);
  will-change: transform, filter;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -20vh;
  left: -10vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: floatGlow2 60s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate-reverse;
  will-change: transform, filter;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 124px;
  z-index: 100;
  background: transparent;
  transition: var(--transition-med);
}

.navbar.scrolled {
  height: 92px;
  background: transparent;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 32px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 400;
  transition: var(--transition-med);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-pill::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-yellow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.nav-pill:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 12px rgba(255, 255, 120, 0.3);
}

.nav-pill:hover::before {
  opacity: 1;
}

.nav-pill.active {
  background: #040003;
  color: var(--accent-yellow);
  border-color: #040003;
}

.nav-pill.active::before {
  background: radial-gradient(circle at center, rgba(255, 255, 120, 0.2) 0%, transparent 60%);
}

.nav-pill.active:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 120, 0.5);
}

.nav-pill.cta {
  background: #FFFF78;
  border-color: #FFFF78;
  font-weight: 500;
  color: var(--text-dark);
}

.nav-pill.cta:hover {
  background: #e8e85a;
  box-shadow: 0 4px 12px rgba(255, 255, 120, 0.5);
}

.nav-logo {
  display: block;
  height: 60px;
  width: 60px;
  border-radius: 30px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: var(--transition-med);
  padding: 0;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Glass effect â€” applied on subpages only */
.nav-logo.glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.nav-logo img,
.nav-logo svg {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: contain;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo.glass:hover {
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 255, 255, 0.8);
}

.nav-logo .logo-default {
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.nav-logo .logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-logo:hover .logo-hover {
  opacity: 1;
}

.nav-logo:hover .logo-default {
  opacity: 0;
}

.mobile-nav-logo {
  display: none;
}

.nav-icon {
  width: 60px;
  padding: 0;
  border-radius: 50%;
}

.icon-instagram {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: var(--transition-med);
}

.icon-instagram:hover {
  opacity: 1;
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-med);
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  transition: var(--transition-med);
  cursor: pointer;
}

.btn-pill:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

/* Sections */
section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-branch.left {
  right: calc(50% + 24px);
  /* Increased gap from center line */
  padding-right: 24px;
  flex-direction: row-reverse;
}

.timeline-branch.right {
  left: calc(50% + 24px);
  /* Increased gap from center line */
  padding-left: 24px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 160px;
  padding-bottom: 80px;
}

.hero-tagline {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 60px;
  letter-spacing: -0.03em;
}

.client-logos {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-top: auto;
  opacity: 0.6;
  filter: grayscale(1);
}

.client-logo {
  height: 50px;
  width: auto;
}

/* Video Section */
.video-section {
  padding: 80px 0;
}

.video-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.website-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.website-video:fullscreen,
.website-video:-webkit-full-screen,
.website-video:picture-in-picture {
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* Services */
.services-header {
  font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
  margin-bottom: 60px;
  margin-left: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 48px;
  transition: var(--transition-med);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(255, 255, 120, 0.15);
  border-color: var(--accent-yellow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at right bottom, var(--accent-yellow-trans) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-med);
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.card .icon-arrow {
  margin-top: auto;
  align-self: flex-start;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-med);
}

.card:hover .icon-arrow {
  background: var(--accent-yellow);
  transform: translateX(5px);
}

/* Process Section */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-item {
  display: flex;
  align-items: center;
  padding: 32px 48px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(10px);
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.process-item:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--accent-yellow);
  box-shadow: 0 15px 30px rgba(255, 255, 120, 0.15);
}

.process-number {
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 80px;
  font-family: monospace;
}

.process-title {
  font-size: 1.5rem;
  flex-grow: 1;
}

/* Focus Update */
.focus-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.linked-focus {
  text-decoration: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md);
  padding: 40px 32px;
  min-height: 300px;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.linked-focus::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom right, rgba(255, 255, 120, 0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.linked-focus:hover {
  transform: translateY(-4px);
  color: var(--text-dark);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.linked-focus:hover::before {
  opacity: 1;
}

.focus-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.focus-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.4s ease;
  transform-origin: left center;
}

.linked-focus:hover .focus-card-title {
  transform: scale(1.05);
  color: var(--text-dark);
}

.linked-focus:hover .medtech-arrow {
  color: var(--accent-yellow);
  transform: translateX(4px);
}

.linked-focus:hover .medtech-arrow .arrow-bg {
  fill: var(--text-dark);
}

.focus-card-desc {
  font-size: 1.05rem;
  color: inherit;
}

/* Yellow Focus Cards â€” identical behaviour to medtech-card (Why/How/Who) */
.focus-card-yellow {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md);
  padding: 40px 32px;
  aspect-ratio: 1 / 1;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: var(--text-dark);
}

.focus-card-yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 120, 0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.focus-card-yellow:hover {
  transform: translateY(-4px);
  color: var(--text-dark);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.focus-card-yellow:hover::before {
  opacity: 1;
}

.focus-card-yellow .focus-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-med);
  margin-bottom: 12px;
}

.focus-card-yellow .focus-card-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-nav a {
  opacity: 0.7;
  transition: var(--transition-med);
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ------------- NEW ANIMATIONS & COMPONENTS ------------- */
/* Client Logos Marquee */
.client-logos-wrapper {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: 94px;
  display: flex;
  align-items: center;
  background: #EBEBEB;
  /* soft grey background */
}

.client-logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.client-logo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding-right: 56px;
}

.client-logo-img {
  height: 47px;
  width: 99px;
  object-fit: contain;
  opacity: 0.6;
  filter: brightness(0) saturate(100%) invert(29%) sepia(2%) saturate(0%) hue-rotate(185deg) brightness(97%) contrast(90%);
  transition: opacity 0.3s ease;
}

.client-logo-img:hover {
  opacity: 0.8;
}

@keyframes scrollMarquee {
  to {
    transform: translateX(-50%);
  }
}

/* Service Carousel */
.expertise-carousel-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.carousel-viewport {
  flex-grow: 1;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
  min-width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.carousel-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: 32px;
}

.carousel-title {
  font-size: 2.5rem;
  margin-top: 40px;
  margin-bottom: 24px;
}

.carousel-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* New Expertise Vertical Layout */
.expertise-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 120px;
  align-items: center;
}

.expertise-row.row-reverse {
  direction: rtl;
}

.expertise-row.row-reverse>* {
  direction: ltr;
  /* Reset content direction */
}

/* Mini Carousels for Expertise Sections */
.mini-carousel {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #E3E3E3;
  border: none;
  aspect-ratio: 16 / 9;
}

.mini-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.mini-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.mini-slide img,
.mini-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-prev,
.mini-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.mini-prev::before,
.mini-next::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-yellow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.mini-prev:hover,
.mini-next:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 12px rgba(255, 255, 120, 0.3);
}

.mini-prev:hover::before,
.mini-next:hover::before {
  opacity: 1;
}

.mini-prev svg,
.mini-next svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.mini-prev .arrow-bg,
.mini-next .arrow-bg {
  fill: transparent;
}

.mini-prev {
  left: 24px;
}

.mini-next {
  right: 24px;
}

.mini-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-dot.active {
  opacity: 1;
}

/* Process Zig-Zag Details */
.carousel-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px dashed var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-med);
}

.carousel-btn:hover {
  background: var(--accent-yellow);
  border-style: solid;
  border-color: var(--text-dark);
}

/* 4 Column Services Grid */
.medtech-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.medtech-card {
  text-decoration: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md);
  padding: 32px;
  min-height: 280px;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.medtech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 100%) var(--mouse-y, 100%), rgba(255, 255, 120, 0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.medtech-card:hover {
  transform: translateY(-4px);
  color: var(--text-dark);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.medtech-card:hover::before {
  opacity: 1;
}

.medtech-title {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: left;
}

.medtech-arrow {
  align-self: flex-end;
  width: 48px;
  height: 48px;
  color: var(--text-dark);
  transition: var(--transition-med);
}

.medtech-arrow .arrow-bg {
  transition: var(--transition-med);
}

.medtech-card:hover .medtech-arrow {
  color: var(--accent-yellow);
  transform: translateX(4px);
}

.medtech-card:hover .medtech-arrow .arrow-bg {
  fill: var(--text-dark);
}

/* Process Intro Cards */
.process-intro-card {
  background: var(--accent-yellow);
  padding: 48px 40px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.process-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #EBEBEB;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.process-intro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.process-intro-card:hover::before {
  opacity: 1;
}

/* Process Timeline */
.process-timeline {
  position: relative;
  width: calc(100% + 80px); /* 40px overlap on both sides */
  margin-left: -40px;
  padding: 20px 0;
  margin-top: 40px;
}

.process-continuous-line {
  position: absolute;
  top: 60px;
  /* 20px padding + 40px (half 80px circle) */
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  border-top: 2px dotted rgba(85, 83, 83, 0.4);
  /* var(--text-muted) with opacity */
  z-index: 1;
}

.process-continuous-line .line-arrow {
  position: absolute;
  right: -8px;
  top: -15px;
  width: 32px;
  height: 32px;
  color: var(--text-dark);
}

.process-nodes-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.process-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-med);
  flex: 1;
}

.process-node-number {
  font-size: 2rem;
  font-family: monospace;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: var(--transition-med);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.process-node-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 120, 0.8) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.process-node-number span {
  position: relative;
  z-index: 1;
}

.process-node:hover .process-node-number {
  transform: scale(1.1);
  color: var(--text-dark);
}

.process-node:hover .process-node-number::before {
  opacity: 1;
}

.process-node-label {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0 16px;
}

.process-node-label span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-top: 8px;
}

.process-pills {
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: center; /* Center horizontally */
  gap: 4px;
  margin-top: 12px;
}

.process-pill {
  font-size: 0.6rem; /* smaller font size */
  padding: 3px 8px; /* smaller padding */
  border-radius: 20px;
  background: var(--text-dark);
  color: #FFFFFF !important;
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition-med);
  display: inline-block;
  white-space: nowrap;
  margin: 0;
  /* Override the default span margin */
}

.process-node:hover .process-pill {
  background: var(--accent-yellow);
  color: var(--text-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Focus Update */
.linked-focus {
  text-decoration: none;
  color: inherit;
}

.linked-focus .focus-card-title {
  transition: var(--transition-med);
}

.linked-focus:hover .focus-card-title {
  transform: scale(1.1);
  color: #c9c902;
  /* darker accent equivalent for text */
}

.calendar-booking-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md);
  padding: 40px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cal-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.cal-day-name {
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cal-day {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-med);
}

.cal-day:not(.empty):hover {
  background: rgba(255, 255, 255, 0.5);
}

.cal-day.active {
  background: var(--accent-yellow);
  font-weight: 500;
  border: 1px solid var(--text-dark);
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.time-slot {
  padding: 16px;
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-med);
  text-align: left;
}

.time-slot:hover {
  background: var(--accent-yellow);
  border-color: var(--text-dark);
}

/* Reveal Scroll Animation Update */
.reveal-scroll-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bento Grid (Shared) */
.bento-grid {
  display: grid;
  gap: 24px;
  position: relative;
  min-height: 540px;
}

.bento-item {
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Timeline Wrapper Components */
.timeline-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  /* Animated dynamically by JS on scroll */
  background: var(--accent-yellow);
  z-index: 0;
}

.timeline-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-18px);
  color: var(--accent-yellow);
  width: 24px;
  height: 24px;
  transition: opacity 0.1s ease;
}

.timeline-arrow.hidden {
  opacity: 0;
}

/* Branch Logic */
.timeline-branch {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  z-index: 0;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-branch.right-branch {
  transform: translateX(-100%);
}

.timeline-row.branch-active .timeline-branch {
  width: 30px;
}

/* Bento Box visibility delayed until branch arrives */
.timeline-media {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
  /* Delay for branch animation */
}

.row-reverse .timeline-media {
  transform: translateX(-20px);
}

.timeline-row.branch-active .timeline-media {
  opacity: 1;
  transform: translateX(0);
}

/* Tagline Illumination and Universal Box */
.bottom-tagline-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.bottom-tagline-box h3 {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.8s ease;
}

.bottom-tagline-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(255, 255, 120, 0.5) 0%, rgba(214, 214, 213, 0.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 1s ease-out;
  z-index: -1;
  border-radius: inherit;
}

.bottom-tagline-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
  border-radius: inherit;
}

.bottom-tagline-box.illuminated::after,

.bottom-tagline-box.illuminated::before {
  opacity: 1;
}

.bottom-tagline-box.illuminated h3 {
  color: var(--text-dark) !important;
}

/* Vertical Awards Marquee */
.awards-marquee-container {
  height: 250px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.awards-marquee-track {
  display: flex;
  flex-direction: column;
  animation: scrollMarqueeVertical 20s linear infinite;
}

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

.awards-list {
  display: flex;
  flex-direction: column;
}

.award-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.05rem;
}

.award-title {
  color: var(--text-dark);
  font-weight: 400;
  padding-right: 16px;
}

.award-year {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.95rem;
}

@keyframes scrollMarqueeVertical {
  to {
    transform: translateY(-50%);
  }
}

/* Mobile responsive resets */

@media (max-width: 1024px) {
  .hero-tagline {
    font-size: 3rem;
  }

  .services-header {
    font-size: 2.5rem;
    margin-left: 20px;
  }

  .medtech-services-grid,
  .process-intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .focus-services-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    padding: 40px 0;
  }

  .process-nodes-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .process-node {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .process-node-number {
    margin-bottom: 0;
  }

  .process-continuous-line {
    display: none;
  }

  .timeline-row {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 40px !important;
  }

  .timeline-row.row-reverse {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  .timeline-branch,
  .timeline-branch.right-branch {
    top: 36px !important;
    left: 0 !important;
    transform: none !important;
    margin-top: 0 !important;
  }

  .timeline-center-line {
    display: none;
  }
}

@media (max-width: 768px) {

  .bento-layout-1,
  .bento-layout-2,
  .bento-layout-3,
  .bento-layout-4 {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .bento-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* Why, How, Who Layout Mobile (Vertical Stack) */
  .process-intro-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Expertise Flow: Image above Text */
  .expertise-row,
  .expertise-row.row-reverse {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 40px !important;
  }
}

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

  .about-intro-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
  }

  .about-intro-grid img {
    order: -1;
    width: 100%;
    border-radius: var(--border-radius-md);
  }

  .medtech-services-grid {
    grid-template-columns: 1fr !important;
  }

  .medtech-card {
    aspect-ratio: 16 / 9 !important;
    min-height: unset !important;
  }

  .video-card {
    border-radius: 16px;
  }

  .focus-card-yellow,
  .linked-focus {
    aspect-ratio: 16 / 9 !important;
    min-height: unset !important;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 40px;
  }

  .nav-right {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(227, 227, 227, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 99;
  }

  .mobile-nav-logo {
    display: block;
    margin-bottom: 40px;
  }

  .mobile-nav-logo img {
    height: 60px;
    width: auto;
  }

  .nav-right.mobile-open {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .focus-grid,
  .calendar-booking-ui,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .process-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

}

/* ==========================================================================
   FAQ Accordion Styles
   ========================================================================== */



.faq-category {
  margin-bottom: 48px;
}

.faq-category-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition-med);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 400;
  transition: var(--transition-med);
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-icon span {
  position: absolute;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.horizontal-line {
  width: 100%;
  height: 2px;
}

.vertical-line {
  width: 2px;
  height: 100%;
}

/* Rotate icon into 'X' when active */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .horizontal-line,
.faq-item.active .vertical-line {
  background-color: var(--text-dark);
}

.faq-item.active .faq-question {
  color: #000;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer-inner {
  padding: 0 32px 32px 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.faq-answer-inner p {
  margin-bottom: 16px;
}

.faq-answer-inner ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.faq-answer-inner li {
  margin-bottom: 8px;
}

.faq-answer-inner p:last-child,
.faq-answer-inner ul:last-child {
  margin-bottom: 0;
}

/* Mobile Responsiveness for FAQ */
@media (max-width: 768px) {
  .faq-question {
    padding: 20px;
    font-size: 1.15rem;
  }

  .faq-answer-inner {
    padding: 0 20px 24px 20px;
  }
}

/* =====================
   PROJECT IMAGE CAROUSEL
   ===================== */

.project-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: clamp(300px, 55vw, 640px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-med);
  color: var(--text-dark);
}

.carousel-btn:hover {
  background: rgba(255, 255, 120, 0.35);
  border-color: var(--accent-yellow);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
  cursor: pointer;
  transition: var(--transition-med);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  opacity: 1;
  background: var(--text-dark);
  transform: scale(1.25);
}

/* Slide counter */
.carousel-counter {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .carousel-btn--prev { left: 8px; }
  .carousel-btn--next { right: 8px; }
  .carousel-slide {
    height: clamp(220px, 60vw, 400px);
  }
}

/* ── Parallax Hero Banner ── */
/* Scroll-driven parallax banner: image pans top→bottom as user scrolls */
.parallax-hero {
  width: 100%;
  height: 70vh;
  position: relative;
  overflow: hidden;
  /* Remove old background-image approach — now driven by child <img> */
  background: none !important;
}

.parallax-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160%;            /* taller than container so there's room to pan */
  object-fit: cover;
  object-position: center top;
  will-change: transform;
  pointer-events: none;
  transition: none;        /* no transition — driven by scroll */
}

/* =====================
   IMPACT SECTION CARDS
   ===================== */
.impact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
}

.impact-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(255, 255, 120, 0.2);
  border-color: rgba(255, 255, 120, 0.4);
}

.impact-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-dark);
  transition: color 0.4s ease;
}

.impact-card:hover .impact-number {
  color: var(--accent-yellow);
}

.impact-title {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}