@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Inter:wght@100..900&display=swap');

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-dark: #0B1120;
  --bg-card: #FFFFFF;
  --accent-cyan: #06B6D4;
  --accent-teal: #14B8A6;
  --text-dark: #0B1120;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Albert Sans', 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Typography styles matching clinical precision */
.font-sans-thin {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 300;
}
.font-sans-light {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 400;
}
.font-sans-medium {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 500;
}
.font-sans-bold {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

/* Desktop Split-Screen Hero Video Transition */
@media (min-width: 1024px) {
  .hero-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .hero-pane {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
  }
  
  /* Dim and shrink the unhovered pane */
  .hero-container:hover .hero-pane:not(:hover) {
    width: 35% !important;
    filter: grayscale(30%) brightness(40%);
  }
  
  .hero-container:hover .hero-pane:not(:hover) .pane-overlay {
    background: rgba(11, 17, 32, 0.75);
  }
  
  .hero-container:hover .hero-pane:not(:hover) .pane-content {
    opacity: 0.35;
    transform: scale(0.95);
  }
  
  /* Highlight and expand the hovered pane */
  .hero-container .hero-pane:hover {
    width: 65% !important;
    filter: grayscale(0%) brightness(95%);
  }
  
  .hero-container .hero-pane:hover .pane-overlay {
    background: rgba(11, 17, 32, 0.45);
  }
  
  .hero-container .hero-pane:hover .pane-content {
    opacity: 1;
    transform: scale(1.02);
  }
  
  .pane-content {
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .pane-overlay {
    transition: background-color 0.8s ease;
  }
}

/* Mobile Hero stacked layout */
@media (max-width: 1023px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 120vh; /* Extra height to accommodate both vertically */
  }
  
  .hero-pane {
    position: relative;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
}

/* Infinite Marquee Ribbon for Brands */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

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

/* Glowing text and UI effects for biotech accents */
.text-glow-cyan {
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.border-glow-cyan {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* Custom cards styling with very rounded corners */
.rounded-3xl-custom {
  border-radius: 2rem;
}

/* Fade in class driven by JS Intersection Observer */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
