﻿/* ==========================================================================
   SERENE LIFEWORLD & SKINOPTIX PHARMACEUTICAL AMBIENT WAVE THEME
   Logo-Derived Color System · Complements White Surfaces · Interactive Ink Fluid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Luminous Pharma Background Architecture & Flowing Waves
   -------------------------------------------------------------------------- */
html {
  min-height: 100%;
  background-color: #FAFAF8 !important;
  background-image: 
    radial-gradient(ellipse 75% 65% at 8% 12%, rgba(46, 48, 146, 0.14) 0%, rgba(46, 48, 146, 0.02) 52%, transparent 68%),
    radial-gradient(ellipse 70% 60% at 92% 25%, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.02) 50%, transparent 66%),
    radial-gradient(ellipse 75% 65% at 50% 82%, rgba(147, 111, 174, 0.10) 0%, rgba(46, 48, 146, 0.03) 48%, transparent 66%),
    radial-gradient(circle at 86% 86%, rgba(46, 48, 146, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 14% 76%, rgba(37, 99, 235, 0.08) 0%, transparent 42%),
    linear-gradient(150deg, #E8EDF8 0%, #FAFAF8 38%, #FAFAF8 72%, #E8EDF8 100%) !important;
  background-attachment: fixed !important;
}

body {
  background-color: transparent !important;
  position: relative;
  min-height: 100vh;
}

/* Layer 1: Ambient Multi-Point Radiant Gradients (Logo Spectrum) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  pointer-events: none !important;
  background-color: #E8EDF8;
  background-image:
    radial-gradient(ellipse at 88% 12%, rgba(147, 111, 174, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 12% 44%, rgba(46, 48, 146, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 82%, rgba(37, 99, 235, 0.09) 0%, transparent 48%),
    radial-gradient(ellipse at 20% 92%, rgba(15, 166, 216, 0.14) 0%, transparent 45%);
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Layer 2: Flowing Vector Wave Ribbons & Ambient Sheen */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none !important;
  opacity: 0.82;
  background-image:
    url('../images/medific-wave-1.svg'),
    url('../images/medific-grad-1.svg'),
    url('../images/medific-wave-2.svg');
  background-position: center 4%, right 22%, center 78%;
  background-repeat: no-repeat;
  background-size: cover, auto, cover;
  mix-blend-mode: normal;
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

@keyframes pharmaWaveFloat {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.012);
  }
  100% {
    transform: translateY(10px) scale(0.992);
  }
}

/* --------------------------------------------------------------------------
   2. Interactive Background Ink Fluid Simulation Canvas
   -------------------------------------------------------------------------- */
#fluidCanvas,
.fluid-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: -1;
  opacity: 0.85;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Custom Cursor & Interactive Tooltip System
   -------------------------------------------------------------------------- */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  background: transparent !important;
  border: none !important;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 99999;
  mix-blend-mode: normal !important;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  box-shadow: none !important;
}

.cursor-dot-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

#cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  margin-top: -60px;
  margin-left: -60px;
  border-radius: 50%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  z-index: 99998;
  mix-blend-mode: normal !important;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.cursor-follower-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.cursor-link-text {
  font-family: 'Plus Jakarta Sans', var(--font-sans, system-ui, -apple-system, sans-serif);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  fill: #ffffff !important;
  user-select: none;
  pointer-events: none;
}

#cursor-dot.is-active,
#cursor-follower.is-active {
  opacity: 1;
}

#cursor-follower.is-hovering,
#cursor-follower.is-card-hover,
#cursor-follower.is-clicking {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#cursor-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none !important;
  z-index: 100000;
  padding: 7px 16px;
  background: #20222A;
  color: #ffffff;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(22, 25, 46, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: scale(0);
  transform-origin: top left;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   4. Oaksun Studio Typography Animation Architecture (Non-Shifting)
   -------------------------------------------------------------------------- */
/* Word Masking Container - Padded to prevent descender cut-off */
.oaksun-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: inherit;
  margin-right: 0.28em;
  padding-bottom: 0.28em;
  margin-bottom: -0.28em;
  padding-top: 0.08em;
  margin-top: -0.08em;
}

.oaksun-word-inner {
  display: inline-block;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  padding-bottom: 0.04em;
}

/* 3D Perspective Title Reveal - Padded for descenders */
.oaksun-title-3d-wrap {
  perspective: 1000px;
  transform-style: preserve-3d;
  display: block;
  overflow: visible !important;
}

.oaksun-3d-word {
  display: inline-block;
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  overflow: hidden;
  vertical-align: baseline;
  margin-right: 0.28em;
  padding-bottom: 0.32em;
  margin-bottom: -0.32em;
  padding-top: 0.08em;
  margin-top: -0.08em;
}

.oaksun-3d-word-inner {
  display: inline-block;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
  padding-bottom: 0.04em;
}

/* Line Masking Container */
.oaksun-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.oaksun-line-inner {
  display: block;
  will-change: transform, opacity;
  padding-bottom: 0.04em;
}

/* Permanent release of overflow once revealed so no text is ever clipped */
.is-revealed .oaksun-word-mask,
.is-revealed .oaksun-3d-word,
.is-revealed .oaksun-line-mask,
.is-revealed.oaksun-word-mask,
.is-revealed.oaksun-3d-word,
.is-revealed.oaksun-line-mask,
.oaksun-title-3d-wrap.is-revealed,
.oaksun-title-3d-wrap.is-revealed .oaksun-3d-word {
  overflow: visible !important;
}

/* Safety: Preserve gradient text rendering across WebKit browsers */
.creative-hero h1 em,
[data-slide-accent],
.hero-accent {
  display: inline-block;
  opacity: 1 !important;
  visibility: visible !important;
}

em .oaksun-word-inner,
.hero-accent .oaksun-word-inner,
[data-slide-accent] .oaksun-word-inner {
  background: linear-gradient(135deg, #6C2FA8 0%, #462D94 50%, #2D3490 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* --------------------------------------------------------------------------
   5. Oaksun Studio Directional Entering / Exiting Underline (.underline-text)
   -------------------------------------------------------------------------- */
.underline-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: fit-content;
  text-decoration: none !important;
}

.underline-text .underline-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--pink, #6C2FA8);
  pointer-events: none !important;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   6. Premium Eyebrow & Kicker Micro-Interaction (Strictly zero shift)
   -------------------------------------------------------------------------- */
.creative-eyebrow,
.section-kicker,
.eyebrow {
  cursor: default;
  transition: filter 0.3s ease, letter-spacing 0.3s ease;
  will-change: filter;
}

.creative-eyebrow:hover,
.section-kicker:hover,
.eyebrow:hover {
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.40));
  letter-spacing: 0.16em;
}

.creative-eyebrow:hover > span:first-child,
.section-kicker:hover > span:first-child,
.eyebrow:hover > span:first-child {
  transform: scaleX(1.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   7. Directional Link Underline Highlight
   -------------------------------------------------------------------------- */
.desktop-nav a {
  position: relative;
  padding: 20px 0 18px;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  width: auto;
  height: 2px;
  border-radius: 999px;
  background-color: var(--pink, #6C2FA8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
  transform-origin: center;
}

/* --------------------------------------------------------------------------
   8. Reduced Motion & Mobile / Touch Safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .oaksun-word-mask,
  .oaksun-word-inner,
  .oaksun-title-3d-wrap,
  .oaksun-3d-word,
  .oaksun-3d-word-inner,
  .oaksun-line-mask,
  .oaksun-line-inner {
    transform: none !important;
    opacity: 1 !important;
    perspective: none !important;
    overflow: visible !important;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 768px) {
  #cursor-dot,
  #cursor-follower,
  #cursor-tooltip {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   Seamless Static Background & Instant Scroll Continuity
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.capabilities-section,
.visual-journey-section,
.quality-section,
.footprint-section,
.contact-section,
.about-section,
.purpose-section,
.values-section,
.inner-section,
.about-locations,
.partner-section,
.promotional-section,
.document-section,
.office-section,
.catalog-intro,
.catalog-group,
.product-note,
.quality-framework,
.quality-locations {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.visual-journey-section::before,
.visual-journey-section::after {
  display: none !important;
}