/* Medivo HIS Enterprise Theme - Hospital & Smart EMR */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

i[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-sizing: border-box;
}

:root {
  --his-primary: #0284c7;
  --his-primary-dark: #0369a1;
  --his-teal: #0d9488;
  --his-cyan: #06b6d4;
  --his-navy: #0b1528;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

/* Gradients */
.gradient-text-his {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 45%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  padding-right: 0.05em;
}

.gradient-hero-his {
  background: radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
              #ffffff;
}

/* Glassmorphism */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(241, 245, 249, 1);
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.stagger-1 { transition-delay: 90ms; }
.stagger-2 { transition-delay: 180ms; }
.stagger-3 { transition-delay: 270ms; }
.stagger-4 { transition-delay: 360ms; }

/* Hover Lift */
.hover-lift {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -8px rgba(2, 132, 199, 0.16), 0 10px 18px -6px rgba(15, 23, 42, 0.06);
}

/* Hero Animations */
@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeLeft {
  0% { opacity: 0; transform: translateX(36px); }
  100% { opacity: 1; transform: translateX(0); }
}

.animate-hero-badge { animation: heroFadeDown 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-hero-title { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
.animate-hero-desc { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.animate-hero-cta { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both; }
.animate-hero-badges { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both; }
.animate-hero-card { animation: heroFadeLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.float-slow { animation: floatSlow 5s infinite ease-in-out; }

/* Interactive Tabs for Modules */
.his-tab-btn.active {
  background-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Floating Actions */
.floating-actions-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
}

#backToTopBtn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
}
#backToTopBtn.visible {
  opacity: 1;
  visibility: visible;
}
