/* ==========================================================================
   STEMSEL MALAYSIA - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Luxury Regenerative Dark Mode with Emerald Glow & Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Professional Light Medical Theme (STEMSEL Red Brand Alignment) */
  --bg-dark: #FFFFFF;
  --bg-card: #F8FAFC;
  --bg-card-hover: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-glass: #E2E8F0;
  --border-glow: rgba(166, 30, 34, 0.15);
  
  --emerald-primary: #A61E22;
  --emerald-light: #A61E22;
  --emerald-glow: rgba(166, 30, 34, 0.1);
  --cyan-accent: #BE1E2D;
  --gold-accent: #D97706;
  
  --text-white: #FFFFFF;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-heading: #0F172A;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions & Shadows */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.25s var(--ease-out);
  --transition-normal: 0.4s var(--ease-out);
  --shadow-glow: 0 10px 30px rgba(166, 30, 34, 0.08);
  --shadow-card: 0 12px 24px -10px rgba(15, 23, 42, 0.08);
  
  /* Layout */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container-max: 1280px;
}

/* Reset & Base Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 90px;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-body);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, a {
  touch-action: manipulation;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(166, 30, 34, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 700;
}

.text-gradient {
  color: #A61E22;
  background: linear-gradient(135deg, #A61E22 0%, #BE1E2D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--gold-accent);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(166, 30, 34, 0.08);
  border: 1px solid rgba(166, 30, 34, 0.2);
  color: var(--emerald-light);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #A61E22 0%, #8A151A 100%);
  color: var(--text-white);
  box-shadow: 0 10px 25px -5px rgba(166, 30, 34, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(166, 30, 34, 0.6);
  color: #fff;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #BE1E2D 0%, #8A151A 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-heading);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #04080D;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.6);
  color: #000;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: max(1.2rem, env(safe-area-inset-top)) 0 1.2rem 0;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  filter: none;
  transition: transform var(--transition-fast);
}

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

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.6rem;
  color: var(--emerald-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  flex-shrink: 1;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-primary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  transition: background var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(166, 30, 34, 0.2);
}

/* ==========================================================================
   HERO SECTION WITH GSAP SCROLL ZOOM-IN EFFECT
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  transform-origin: center center;
  will-change: transform;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
  transform: scale(1.15);
  transition: filter 0.5s ease;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.9) 85%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
  margin-top: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(166, 30, 34, 0.08);
  border: 1px solid rgba(166, 30, 34, 0.25);
  backdrop-filter: blur(16px);
  border-radius: 100px;
  color: var(--emerald-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(166, 30, 34, 0.05);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 0 0 rgba(166, 30, 34, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(166, 30, 34, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(166, 30, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(166, 30, 34, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-description {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Scroll Down Prompt */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-glass);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--emerald-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: scroll-wheel 1.8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Stats Counter Section */
.stats-banner {
  position: relative;
  z-index: 20;
  margin-top: -50px;
  padding-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid var(--border-glass);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--emerald-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
}

/* ==========================================================================
   APPLE-STYLE CANVAS FRAME IMAGE SEQUENCE SECTION
   ========================================================================== */
.sequence-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #020508;
  overflow: hidden;
}

.sequence-pin-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sequence-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.sequence-overlay-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max);
  padding: 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 6rem;
  padding-bottom: 3rem;
  pointer-events: none;
}

.sequence-text-step {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  max-width: 520px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
}

.sequence-text-step.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.sequence-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

.sequence-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

.sequence-progress-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 19, 31, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  padding: 8px 20px;
  border-radius: 50px;
  z-index: 20;
  pointer-events: auto;
}

.seq-frame-count {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-light);
  letter-spacing: 1px;
}

.seq-progress-bar {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.seq-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-primary), var(--cyan-accent));
  transition: width 0.1s linear;
}

/* ==========================================================================
   WHAT IS STEM CELL & VIDEO SECTION
   ========================================================================== */
.section-padding {
  padding: 5rem 0;
  position: relative;
}

.video-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.video-showcase-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(166, 30, 34, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.video-preview-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
  aspect-ratio: 16 / 9;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.video-preview-wrapper:hover .video-thumb {
  transform: scale(1.06);
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A61E22 0%, #BE1E2D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(166, 30, 34, 0.5);
  transition: transform var(--transition-fast);
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Video Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 8, 13, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 50px rgba(166, 30, 34, 0.3);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   BIOLOGICAL PROPERTIES & CARDS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.prop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.prop-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.prop-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(166, 30, 34, 0.08);
  border: 1px solid rgba(166, 30, 34, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--emerald-light);
  margin-bottom: 1.25rem;
}

.prop-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.prop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prop-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.prop-list li::before {
  content: '✓';
  color: var(--emerald-light);
  font-weight: bold;
}

/* ==========================================================================
   POTENTIAL ADVANTAGES & FEATURES
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.advantage-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.advantage-img-wrapper {
  height: 180px;
  overflow: hidden;
}

.advantage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.advantage-card:hover .advantage-img {
  transform: scale(1.08);
}

.advantage-body {
  padding: 1.5rem;
}

.advantage-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.advantage-desc {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ==========================================================================
   WHO MAY BENEFIT & INTERACTIVE HORIZONTAL SLIDER SHOWCASE
   ========================================================================== */
.infographic-interactive-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.infographic-scroll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.scroll-tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--emerald-light);
  background: rgba(166, 30, 34, 0.08);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 500;
}

.diagram-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.diagram-link-btn:hover {
  color: var(--emerald-light);
}

.infographic-slider-container {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0.5rem 1.5rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 30, 34, 0.4) transparent;
}

.infographic-slider-container::-webkit-scrollbar {
  height: 6px;
}

.infographic-slider-container::-webkit-scrollbar-thumb {
  background: rgba(166, 30, 34, 0.4);
  border-radius: 10px;
}

.infographic-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.pill-card {
  scroll-snap-align: center;
  width: 270px;
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: 40px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.pill-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.pill-badge {
  position: absolute;
  top: 15px;
  background: rgba(166, 30, 34, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--emerald-light);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.pill-img-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 1.75rem 0 1.25rem 0;
  border: 3px solid rgba(166, 30, 34, 0.15);
  box-shadow: none;
}

.pill-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pill-card:hover .pill-img {
  transform: scale(1.1);
}

.pill-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pill-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* ==========================================================================
   WHY CHOOSE US (4 PILLARS)
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: all var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(166, 30, 34, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ==========================================================================
   BENEFITS GRID SECTION
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.benefit-img-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.benefit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.benefit-card:hover .benefit-img {
  transform: scale(1.1);
}

.benefit-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.benefit-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.benefit-desc {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ==========================================================================
   TREATMENTS EXPLORER SECTION (TABS)
   ========================================================================== */
.treatment-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--emerald-primary);
  border-color: var(--emerald-light);
  color: #fff;
  box-shadow: 0 4px 12px rgba(166, 30, 34, 0.25);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.treatment-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.treatment-tag {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  padding: 10px 20px;
  border-radius: 100px;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.treatment-tag::before {
  content: '✦';
  color: var(--emerald-light);
  font-size: 0.8rem;
}

.treatment-tag:hover {
  border-color: var(--emerald-light);
  background: rgba(166, 30, 34, 0.08);
  transform: translateY(-2px);
  color: var(--emerald-light);
}

/* ==========================================================================
   6-STEP REGENERATIVE JOURNEY TIMELINE
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-glass);
  transform: translateX(-50%);
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--emerald-primary), var(--cyan-accent));
  transform: translateX(-50%);
  height: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
  position: relative;
}

.timeline-step:nth-child(even) .step-card {
  grid-column: 2;
}

.timeline-step:nth-child(even) .step-img-box {
  grid-column: 1;
  grid-row: 1;
}

.step-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--emerald-primary);
  color: var(--emerald-light);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  z-index: 5;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.step-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--border-glass);
}

.step-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CLINIC LOCATIONS SECTION
   ========================================================================== */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.clinic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.clinic-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.clinic-img-wrapper {
  height: 190px;
  overflow: hidden;
  position: relative;
}

.clinic-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.clinic-card:hover .clinic-img {
  transform: scale(1.08);
}

.clinic-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.clinic-name {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.clinic-info-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.clinic-info-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.clinic-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   CONTACT FORM & TELEGRAM SECTION
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 10px rgba(166, 30, 34, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.telegram-banner {
  background: linear-gradient(135deg, rgba(166, 30, 34, 0.08), rgba(190, 30, 45, 0.12));
  border: 1px solid rgba(166, 30, 34, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin-top: 4rem;
}

/* Social Icon Row */
.social-icons-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--emerald-primary);
  border-color: var(--emerald-light);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: none;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: max(1.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
  right: max(1.5rem, calc(1.5rem + env(safe-area-inset-right)));
  z-index: 999;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #F8FAFC;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
  text-align: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-cta-item {
  display: none;
}

/* Mobile Navigation Drawer & Responsive Layout */
@media (max-width: 1200px) {
  .mobile-cta-item {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-out);
    z-index: 999;
    box-shadow: var(--shadow-card);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.1rem;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(166, 30, 34, 0.08);
    border: 1px solid var(--border-glow);
    color: var(--emerald-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .mobile-toggle:hover {
    background: rgba(166, 30, 34, 0.2);
    color: var(--emerald-light);
  }

  .video-showcase-card, .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .timeline-line { left: 20px; }
  .timeline-line-progress { left: 20px; }
  .timeline-step { grid-template-columns: 1fr; padding-left: 60px; }
  .timeline-step:nth-child(even) .step-card { grid-column: 1; }
  .timeline-step:nth-child(even) .step-img-box { grid-column: 1; grid-row: auto; }
  .step-node { left: 20px; }
}

@media (max-width: 768px) {
  .header-book-btn {
    display: none;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .sequence-overlay-content {
    padding: 1.25rem 1rem;
    justify-content: flex-end;
  }

  .sequence-text-step {
    top: auto;
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    transform: translateY(15px);
    max-width: none;
    padding: 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }

  .sequence-text-step.active {
    transform: translateY(0);
  }

  .sequence-title {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
  }

  .sequence-desc {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-glass); padding-bottom: 1rem; }
  .stat-item:last-child { border-bottom: none; }
}
