/* ==========================================================================
   DS BIO - LANDING PAGE STYLESHEET
   Biology Tuition Class - Deshapriya Senevirathne
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & DESIGN SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --color-dark-bg: #040806;
  --color-dark-surface: #0a140f;
  --color-forest-dark: #022415;
  --color-forest-mid: #064026;
  --color-forest-light: #0d5f3a;
  
  --color-green-primary: #16a34a;
  --color-green-bright: #22c55e;
  --color-green-lime: #4ade80;
  --color-green-neon: #86efac;
  --color-green-dark: #15803d;
  
  --color-red-primary: #dc2626;
  --color-red-bright: #ef4444;
  --color-red-dark: #991b1b;
  --color-red-glow: rgba(220, 38, 38, 0.45);
  
  --color-gold-primary: #f59e0b;
  --color-gold-bright: #fbbf24;
  --color-gold-dark: #d97706;
  
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-700: #334155;
  --color-gray-900: #0f172a;
  
  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fredoka', 'Outfit', 'Poppins', sans-serif;
  --font-sinhala: 'Noto Sans Sinhala', 'Abhaya Libre', 'FMAbhaya', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.25);
  --shadow-glow-green: 0 0 25px rgba(34, 197, 94, 0.45);
  --shadow-glow-red: 0 0 35px rgba(220, 38, 38, 0.4);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-gray-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-pill-badge {
  display: inline-block;
  padding: 8px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   2. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(3, 8, 6, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(2, 6, 4, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(109, 175, 65, 0.3));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 14px rgba(218, 153, 11, 0.45));
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--color-white);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  user-select: none;
}

.brand-logo-accent {
  color: var(--color-gold-bright);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.8px;
  color: var(--color-white);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-green-lime);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-green-lime);
}

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

.nav-link-lms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: var(--color-green-lime);
  font-weight: 800;
  transition: var(--transition-fast);
}

.nav-link-lms::after {
  display: none !important;
}

.nav-link-lms:hover {
  background: var(--color-green-primary);
  color: var(--color-white);
  border-color: var(--color-green-bright);
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.external-link-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.header-cta-btn:hover {
  background: var(--color-green-primary);
  border-color: var(--color-green-bright);
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-2px);
}

.phone-icon-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile Hamburger Toggle */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.mobile-toggle-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.mobile-toggle-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   3. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background-color: #020905;
  background-image: 
    radial-gradient(circle at 18% 45%, rgba(220, 38, 38, 0.32) 0%, transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(245, 158, 11, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(4, 120, 87, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(1, 6, 4, 0.75) 100%);
  color: var(--color-white);
  padding-top: 14px;
  padding-bottom: 0px;
  overflow: hidden;
}

/* Specimen Stage Micro-Grid Backdrop */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(239, 68, 68, 0.09) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 25%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Soft-Focus Foreground Biological Depth Blur Spheres */
.hero-depth-bokeh {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
}

.hero-depth-bokeh.bokeh-left {
  bottom: 6%;
  left: 2%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, rgba(185, 28, 28, 0.05) 50%, transparent 70%);
  filter: blur(24px);
  animation: floatBokeh 11s ease-in-out infinite alternate;
}

.hero-depth-bokeh.bokeh-right {
  top: 14%;
  right: 3%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, rgba(4, 120, 87, 0.04) 50%, transparent 70%);
  filter: blur(28px);
  animation: floatBokeh 13s ease-in-out infinite alternate-reverse;
}

@keyframes floatBokeh {
  0% { transform: translate(0, 0) scale(0.92); opacity: 0.7; }
  100% { transform: translate(16px, -20px) scale(1.1); opacity: 1; }
}

/* Background Biological Watermark */
.hero-dna-bg {
  position: absolute;
  top: 10px;
  left: -40px;
  width: 280px;
  height: 600px;
  pointer-events: none;
  opacity: 0.22;
  z-index: 1;
}

.hero-cell-glow {
  position: absolute;
  top: 12%;
  left: 36%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, rgba(185, 28, 28, 0.2) 65%, transparent 100%);
  filter: blur(8px);
  pointer-events: none;
  animation: pulseCell 6s ease-in-out infinite alternate;
}

@keyframes pulseCell {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.15) translate(8px, -5px); opacity: 0.9; }
}

.hero-cell-right {
  position: absolute;
  top: 55%;
  right: -50px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 45% 45%, rgba(255, 60, 60, 0.5) 0%, rgba(220, 38, 38, 0.35) 30%, rgba(153, 27, 27, 0.18) 60%, transparent 80%),
    radial-gradient(circle at 60% 60%, rgba(239, 68, 68, 0.25) 0%, transparent 65%);
  filter: blur(40px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* Decorative Foliage */
.hero-leaves-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  animation: swayLeaves 7s ease-in-out infinite;
}

@keyframes swayLeaves {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(3.5deg) translateY(-5px); }
}

/* Atmospheric 3D Biological Hero Elements with Complex Red Glow */
.hero-brain-img {
  position: absolute;
  top: 60%;
  right: 0;
  transform: translateY(-50%) translateX(50%);
  width: 560px;
  max-width: 44vw;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  opacity: 0.88;
  filter: 
    drop-shadow(0 0 15px rgba(255, 68, 68, 0.75))
    drop-shadow(0 0 35px rgba(239, 68, 68, 0.55))
    drop-shadow(0 0 70px rgba(220, 38, 38, 0.4))
    drop-shadow(0 0 120px rgba(153, 27, 27, 0.3));
  animation: floatBrain 9s ease-in-out infinite;
  transition: var(--transition-normal);
}

@keyframes floatBrain {
  0%, 100% {
    transform: translateY(-50%) translateX(50%) scale(1);
  }
  50% {
    transform: translateY(-53%) translateX(49%) scale(1.025);
  }
}

.hero-organic-img {
  position: absolute;
  top: 10px;
  left: 45%;
  transform: translateX(-50%);
  width: 170px;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
  filter: 
    drop-shadow(0 0 10px rgba(255, 75, 75, 0.8))
    drop-shadow(0 0 25px rgba(239, 68, 68, 0.6))
    drop-shadow(0 0 50px rgba(220, 38, 38, 0.4))
    drop-shadow(0 0 90px rgba(185, 28, 28, 0.25));
  animation: floatOrganic 6.5s ease-in-out infinite;
  transition: var(--transition-normal);
}

@keyframes floatOrganic {
  0%, 100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-12px) rotate(-3deg);
  }
}

.hero-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 2vw, 20px);
  padding-right: clamp(12px, 2vw, 20px);
}

.hero-dna-img {
  position: absolute;
  top: -85px;
  left: -140px;
  width: 1260px;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  filter: 
    drop-shadow(0 0 15px rgba(255, 60, 60, 0.8))
    drop-shadow(0 0 35px rgba(239, 68, 68, 0.6))
    drop-shadow(0 0 75px rgba(220, 38, 38, 0.45))
    drop-shadow(0 0 130px rgba(153, 27, 27, 0.3));
  animation: floatDna 8.5s ease-in-out infinite;
  transition: var(--transition-normal);
}

@keyframes floatDna {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: flex-end;
  gap: 24px;
  position: relative;
  z-index: 2;
  min-height: 540px;
}

/* Hero Left (Teacher Cutout - Dominates Entire Left Side) */
.hero-teacher-col {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-teacher-wrapper {
  position: relative;
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.hero-teacher-glow {
  position: absolute;
  top: 48%;
  left: 42%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 45% 45%, rgba(255, 60, 60, 0.65) 0%, rgba(239, 68, 68, 0.5) 25%, rgba(220, 38, 38, 0.35) 50%, rgba(153, 27, 27, 0.18) 70%, transparent 85%),
    radial-gradient(circle at 65% 35%, rgba(255, 100, 100, 0.4) 0%, rgba(220, 38, 38, 0.25) 40%, transparent 68%),
    radial-gradient(circle at 35% 65%, rgba(185, 28, 28, 0.45) 0%, transparent 60%);
  filter: blur(40px);
  mix-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
  animation: complexBioGlow 7s ease-in-out infinite alternate;
}

@keyframes complexBioGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.75;
    filter: blur(28px);
  }
  50% {
    transform: translate(-48%, -52%) scale(1.08);
    opacity: 0.95;
    filter: blur(38px);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.75;
    filter: blur(28px);
  }
}

/* Rotating Specimen Orbital Reticle behind Teacher */
.hero-specimen-ring {
  position: absolute;
  top: 48%;
  left: 42%;
  transform: translate(-50%, -50%);
  width: 530px;
  height: 530px;
  border-radius: 50%;
  border: 1px dashed rgba(239, 68, 68, 0.26);
  box-shadow: 
    inset 0 0 40px rgba(22, 163, 74, 0.08),
    0 0 50px rgba(239, 68, 68, 0.12);
  z-index: 1;
  pointer-events: none;
  animation: spinSpecimenRing 50s linear infinite;
}

.hero-specimen-ring::before {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.hero-specimen-ring::after {
  content: '';
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  border: 1px dotted rgba(255, 255, 255, 0.15);
}

@keyframes spinSpecimenRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ring-reticle-line {
  position: absolute;
  background: rgba(239, 68, 68, 0.35);
  pointer-events: none;
}

.ring-reticle-line.h-line {
  top: 50%;
  left: -20px;
  right: -20px;
  height: 1px;
  transform: translateY(-50%);
}

.ring-reticle-line.v-line {
  left: 50%;
  top: -20px;
  bottom: -20px;
  width: 1px;
  transform: translateX(-50%);
}

.ring-degree-mark {
  position: absolute;
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(239, 68, 68, 0.45);
  letter-spacing: 0.5px;
}

.ring-degree-mark.deg-0 { top: -16px; left: 50%; transform: translateX(-50%); }
.ring-degree-mark.deg-90 { right: -24px; top: 50%; transform: translateY(-50%); }
.ring-degree-mark.deg-180 { bottom: -16px; left: 50%; transform: translateX(-50%); }
.ring-degree-mark.deg-270 { left: -28px; top: 50%; transform: translateY(-50%); }

/* Soft Floor Contact Shadow for Teacher Cutout */
.hero-teacher-floor-shadow {
  position: absolute;
  bottom: -15px;
  left: 10%;
  width: 80%;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 75%);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

.hero-teacher-img {
  position: relative;
  top: 0;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  height: auto;
  max-height: clamp(540px, 78vh, 690px);
  object-fit: contain;
  object-position: bottom left;
  margin-bottom: -15px;
  filter: 
    drop-shadow(0 15px 30px rgba(0, 0, 0, 0.85))
    drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 25px rgba(239, 68, 68, 0.4))
    drop-shadow(0 0 70px rgba(220, 38, 38, 0.25));
}

/* Hero Right (Content - Shifted to More Right) */
.hero-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  width: 100%;
  max-width: 560px;
  padding-left: 10px;
  padding-bottom: 20px;
}

/* Scientific Micro Telemetry HUD */
.hero-micro-hud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  letter-spacing: 1.4px;
  color: rgba(134, 239, 172, 0.8);
  background: rgba(10, 24, 16, 0.65);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  margin-bottom: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hud-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseBioRadar 2s infinite;
}

.hud-divider {
  color: rgba(255, 255, 255, 0.25);
}

.hud-stat {
  color: rgba(254, 240, 138, 0.85);
  font-weight: 700;
}

/* Gold Sinhala Ribbon Badge */
.hero-sinhala-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(90deg, #d97706, #fbbf24, #f59e0b);
  color: #1a1003;
  padding: 7px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-sinhala);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.35px;
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 
    inset 0 -1.5px 2px rgba(180, 83, 9, 0.6), 
    0 6px 20px rgba(245, 158, 11, 0.38);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.hero-sinhala-ribbon::before,
.hero-sinhala-ribbon::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #b45309;
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-sinhala-ribbon::before { left: 7px; }
.hero-sinhala-ribbon::after { right: 7px; }

.ribbon-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #15803d;
  box-shadow: 0 0 6px #16a34a;
  flex-shrink: 0;
  animation: pulseBioRadar 1.8s infinite;
}

/* Main Hero Typography / Brand Mark */
.hero-main-title {
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 4px;
  width: 100%;
}

.hero-brand-logo-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  filter: 
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.75)) 
    drop-shadow(0 10px 30px rgba(34, 197, 94, 0.28)) 
    drop-shadow(0 0 35px rgba(220, 38, 38, 0.15));
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.hero-brand-logo-img:hover {
  transform: translateY(-2px) scale(1.02);
  filter: 
    drop-shadow(0 6px 16px rgba(0, 0, 0, 0.85)) 
    drop-shadow(0 14px 40px rgba(245, 158, 11, 0.4)) 
    drop-shadow(0 0 45px rgba(34, 197, 94, 0.35));
}

.hero-subtitle-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 6px;
}

.hero-subtitle-divider::before,
.hero-subtitle-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.hero-subtitle-node {
  font-size: 0.65rem;
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.hero-subtitle-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: var(--color-white);
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-teacher-name-row {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
  margin-bottom: 6px;
  position: relative;
}

.hero-teacher-name {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.5px;
  line-height: 1.15;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 6px 20px rgba(0, 0, 0, 0.65),
    0 0 35px rgba(239, 68, 68, 0.28);
}

.hero-teacher-name-line {
  position: relative;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 35%, #22c55e 70%, transparent 100%);
  margin-top: 4px;
  margin-bottom: 6px;
  overflow: hidden;
}

.line-pulse-bead {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  animation: lineBeadSweep 3.5s ease-in-out infinite;
}

@keyframes lineBeadSweep {
  0% { transform: translateX(-100%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(500%); opacity: 0; }
}

.hero-qualification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(153, 27, 27, 0.95) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.94rem;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 120, 120, 0.45);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(220, 38, 38, 0.45);
  margin-bottom: 14px;
}

.badge-mini-icon {
  width: 14px;
  height: 14px;
  stroke: #fecaca;
}

/* Feature 4-Pills (Two-Line Content, Tactile Bio-Capsule Glass Depth) */
.hero-features-grid {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-width: 590px;
  margin-bottom: 16px;
}

.hero-feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  min-height: 56px;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  font-family: var(--font-heading);
  background: linear-gradient(145deg, rgba(16, 32, 24, 0.88) 0%, rgba(8, 18, 12, 0.95) 100%);
  border: 1.5px solid transparent;
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.18),
    inset 0 -2px 4px rgba(0, 0, 0, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  white-space: normal;
  text-align: left;
  flex: 1 1 0px;
  position: relative;
  overflow: hidden;
}

.hero-feature-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

.hero-feature-pill span {
  display: block;
  line-height: 1.22;
}

.hero-feature-pill:hover {
  transform: translateY(-3px) scale(1.02);
}

.hero-feature-pill.green-pill {
  border-color: rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
}

.hero-feature-pill.green-pill:hover {
  border-color: #22c55e;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(34, 197, 94, 0.4);
}

.hero-feature-pill.orange-pill {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef08a;
}

.hero-feature-pill.orange-pill:hover {
  border-color: #f59e0b;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(245, 158, 11, 0.4);
}

.hero-feature-pill.red-pill {
  border-color: rgba(239, 68, 68, 0.6);
  color: #fecaca;
}

.hero-feature-pill.red-pill:hover {
  border-color: #ef4444;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(239, 68, 68, 0.45);
}

.pill-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px currentColor);
}

/* Hero CTA Buttons */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}

.btn-primary-join {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #042412;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.02rem;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transition: var(--transition-fast);
}

.btn-primary-join:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
}

.btn-hero-lms {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #06381b 0%, #0d5427 50%, #15803d 100%);
  color: #fef08a;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  border: 1.8px solid #f59e0b;
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 8px 25px rgba(245, 158, 11, 0.35),
    0 0 22px rgba(34, 197, 94, 0.25);
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.btn-hero-lms:hover {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  border-color: #fbbf24;
  color: var(--color-white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5),
    0 12px 30px rgba(245, 158, 11, 0.55),
    0 0 28px rgba(34, 197, 94, 0.5);
}

.btn-lms-icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-secondary-learn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.btn-secondary-learn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   4. STATS TRUST BAR
   -------------------------------------------------------------------------- */
.stats-bar-section {
  background-color: #021a0e;
  border-top: 1px solid rgba(34, 197, 94, 0.25);
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
  padding: 14px 0;
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 15px;
}

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

.stat-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-green-bright);
}

.stat-icon.gold {
  color: var(--color-gold-bright);
}

.stat-icon.red {
  color: var(--color-red-bright);
}

.stat-text-group {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--color-white);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-green-neon);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. ABOUT THE TEACHER SECTION
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
  background-color: var(--color-white);
  padding: 38px 0 34px;
  overflow: hidden;
}

.about-dna-bg {
  position: absolute;
  top: 10%;
  right: -30px;
  width: 240px;
  height: 500px;
  pointer-events: none;
  opacity: 0.08;
}

.about-leaves-left {
  position: absolute;
  top: 15%;
  left: 0;
  width: 130px;
  pointer-events: none;
  opacity: 0.95;
}

.about-header-wrapper {
  text-align: center;
  position: relative;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section-badge {
  background: var(--color-white);
  color: #0f172a;
  border: 1.8px solid #0f172a;
}

.about-brand-watermark {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-brand-watermark img,
.about-header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(109, 175, 65, 0.25));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.about-brand-watermark:hover img,
.about-header-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 14px rgba(218, 153, 11, 0.4));
}

.about-brand-text {
  color: #0f172a;
  font-size: 1.35rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* About Left (Teacher Photo & Halo) */
.about-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

/* Red Circular Ring Halo (Reduced Behind Image) */
.about-red-ring {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, #e11d48 0%, #be123c 60%, #881337 100%);
  opacity: 0.92;
  box-shadow: 0 8px 28px rgba(190, 18, 60, 0.4);
  z-index: 1;
}

.about-teacher-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
}

/* About Right (Bio & Credentials) */
.about-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-title-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 6px;
}

.about-title-name .highlight-green {
  color: var(--color-green-primary);
}

.about-degree-badge {
  display: inline-block;
  background-color: #ef4444;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.about-red-accent-line {
  width: 100%;
  max-width: 360px;
  height: 2.5px;
  background: linear-gradient(90deg, #ef4444 0%, rgba(239, 68, 68, 0) 100%);
  margin-bottom: 20px;
}

/* Sinhala Credential List */
.about-credentials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.check-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-green-bright);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.4);
}

.check-icon-svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-white);
  stroke-width: 3;
}

.credential-text {
  font-family: var(--font-sinhala);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   6. OUR RESULTS SECTION
   -------------------------------------------------------------------------- */
.results-section {
  position: relative;
  background-color: #fafbfc;
  padding: 34px 0 34px;
  border-top: 1px solid var(--color-gray-200);
}

.results-header-wrapper {
  text-align: center;
  margin-bottom: 24px;
}

.results-section-badge {
  background: var(--color-white);
  color: #0f172a;
  border: 1.8px solid #0f172a;
}

/* Results Year Filter Tabs */
.results-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-filter-btn {
  background: var(--color-white);
  color: #475569;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.result-filter-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

.result-filter-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.results-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.result-card-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, opacity 0.3s ease, filter 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.result-card-box.is-hidden {
  display: none !important;
}

.result-card-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
}

.result-card-img-wrapper {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.result-card-box:hover .result-poster-img {
  transform: scale(1.04);
}

.result-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  backdrop-filter: blur(2px);
}

.result-card-box:hover .result-hover-overlay {
  opacity: 1;
}

.zoom-pill-btn {
  background: var(--color-white);
  color: #0f172a;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.result-card-box:hover .zoom-pill-btn {
  transform: translateY(0);
}

.result-card-footer {
  padding: 14px 16px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.result-year-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.result-year-badge {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  color: #0f172a;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.result-year-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.result-card-subtitle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   7. CLASSES SECTION
   -------------------------------------------------------------------------- */
.classes-section {
  position: relative;
  background-color: var(--color-white);
  padding: 34px 0 34px;
}

.classes-header-wrapper {
  text-align: center;
  margin-bottom: 22px;
}

.classes-section-badge {
  background: var(--color-white);
  color: #0f172a;
  border: 1.8px solid #0f172a;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.class-card {
  background: var(--color-white);
  border: 2px solid #14532d;
  border-radius: var(--radius-xl);
  padding: 36px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.18);
  border-color: var(--color-green-bright);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.class-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #15803d;
  transition: var(--transition-fast);
}

.class-card:hover .class-icon-wrapper {
  transform: scale(1.1);
  color: var(--color-green-primary);
}

.class-icon-svg {
  width: 52px;
  height: 52px;
  stroke: currentColor;
  fill: none;
}

.class-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #14532d;
  letter-spacing: 0.5px;
  line-height: 1.25;
  text-transform: uppercase;
}

.class-enroll-btn {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-green-primary);
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-fast);
}

.class-card:hover .class-enroll-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Online Class & LMS Enhancements */
.class-card.class-card-online {
  border-color: #16a34a;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.class-card-online-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.class-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  width: 100%;
}

.class-lms-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  text-decoration: none;
}

.class-lms-action-btn:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

/* LMS Dedicated Student Showcase Card */
.lms-showcase-card {
  margin-top: 48px;
  background: linear-gradient(145deg, #022314 0%, #03140c 100%);
  border: 2px solid rgba(74, 222, 128, 0.35);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(22, 163, 74, 0.15);
}

.lms-showcase-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lms-showcase-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lms-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid #f59e0b;
  color: #fef08a;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.lms-badge-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.lms-showcase-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.highlight-gold {
  color: var(--color-gold-bright);
}

.lms-showcase-description {
  max-width: 780px;
  font-family: var(--font-sinhala);
  font-size: 0.96rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 28px;
}

.lms-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1020px;
  margin-bottom: 32px;
  text-align: left;
}

.lms-feature-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  backdrop-filter: blur(6px);
  transition: var(--transition-fast);
}

.lms-feature-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(74, 222, 128, 0.5);
  transform: translateY(-3px);
}

.lms-feat-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.lms-feat-info h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 4px;
}

.lms-feat-info p {
  font-family: var(--font-sinhala);
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.lms-actions-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-lms-showcase-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #0b1a11;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-lms-showcase-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #fbbf24 0%, #fde68a 100%);
}

.lms-btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-lms-showcase-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-lms-showcase-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. GALLERY & EVENT HIGHLIGHTS SHOWCASE
   -------------------------------------------------------------------------- */
.gallery-section {
  position: relative;
  background-color: #fafbfc;
  padding: 24px 0 24px;
  overflow: hidden;
  border-top: 1px solid var(--color-gray-200);
}

.gallery-leaves-left {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 90px;
  pointer-events: none;
  opacity: 0.9;
}

.gallery-leaves-right {
  position: absolute;
  bottom: 10px;
  right: 0;
  width: 90px;
  transform: scaleX(-1);
  pointer-events: none;
  opacity: 0.9;
}

.gallery-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 10px;
  scrollbar-width: thin;
}

.gallery-card {
  flex: 0 0 190px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-300);
  cursor: pointer;
  transition: var(--transition-normal);
  background: #ffffff;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-green-bright);
}

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

/* --------------------------------------------------------------------------
   9. CONTACT US & FOOTER
   -------------------------------------------------------------------------- */
.footer-section {
  position: relative;
  background: linear-gradient(180deg, #022314 0%, #01150c 100%);
  color: var(--color-white);
  padding: 30px 0 0;
  overflow: hidden;
}

/* Curved Top Wave Transition */
.footer-top-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-top-curve svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 35px;
}

.footer-header-wrapper {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.footer-section-badge {
  background: var(--color-white);
  color: #0f172a;
  border: 1.8px solid var(--color-white);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  transition: var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
}

.contact-card:hover .contact-icon-circle {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.contact-icon-circle.phone-color { color: #d97706; }
.contact-icon-circle.fb-color { color: #1877f2; }
.contact-icon-circle.yt-color { color: #ff0000; }
.contact-icon-circle.email-color { color: #f59e0b; }
.contact-icon-circle.lms-color { color: #16a34a; }
.contact-icon-circle.address-color { color: #16a34a; }

.contact-value.lms-portal-link {
  color: var(--color-green-lime);
  font-weight: 700;
  text-decoration: underline;
}

.contact-value.lms-portal-link:hover {
  color: var(--color-gold-bright);
}

.contact-icon-svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.contact-label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.76rem;
  color: #cbd5e1;
  word-break: break-word;
  line-height: 1.4;
}

.contact-value:hover {
  color: var(--color-green-lime);
}

/* Floating Help / Message Banner */
.footer-support-box {
  background: rgba(4, 30, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 14px 28px;
  max-width: 640px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.support-icon {
  width: 32px;
  height: 32px;
  color: var(--color-green-lime);
  flex-shrink: 0;
}

.support-text-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
}

.support-text-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-bright);
}

.footer-lms-tag {
  color: var(--color-green-lime);
  text-decoration: underline;
  font-weight: 700;
  margin-left: 5px;
  display: inline-block;
  transition: var(--transition-fast);
}

.footer-lms-tag:hover {
  color: var(--color-white);
  transform: translateX(2px);
}

/* Footer Bottom Layered Swooshes / Waves */
.footer-waves-container {
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.footer-waves-svg {
  display: block;
  width: 100%;
  height: 60px;
}

.footer-copyright-bar {
  background: #010d07;
  padding: 20px 20px 16px;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand-logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-brand-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-developer-credit {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: -2px;
}

.footer-developer-credit a {
  color: #94a3b8;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer-developer-credit a:hover {
  color: var(--color-green-lime);
}

/* --------------------------------------------------------------------------
   10. LIGHTBOX MODAL (FOR HIGH-RES RESULTS & GALLERY)
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 12px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--color-white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
  color: var(--color-red-bright);
}

/* --------------------------------------------------------------------------
   11. MOBILE STICKY FLOATING ACTION BUTTON
   -------------------------------------------------------------------------- */
.mobile-fab-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: var(--transition-fast);
}

.mobile-fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}

.fab-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATION)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-brain-img {
    width: 480px;
    max-width: 45vw;
    opacity: 0.6;
  }

  .hero-organic-img {
    top: 10px;
    left: 45%;
    width: 170px;
  }

  .hero-dna-img {
    top: -70px;
    left: -115px;
    width: 1050px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
    min-height: auto;
  }

  .hero-teacher-col {
    order: 2;
    justify-content: center;
  }

  .hero-teacher-wrapper {
    max-width: 580px;
    justify-content: center;
  }

  .hero-teacher-glow {
    left: 50%;
    top: 50%;
  }

  .hero-specimen-ring {
    left: 50%;
    top: 50%;
    width: clamp(340px, 65vw, 480px);
    height: clamp(340px, 65vw, 480px);
  }

  .hero-teacher-img {
    top: 0;
    max-height: 520px;
    object-position: bottom center;
    margin-bottom: 0;
  }

  .hero-content-col {
    order: 1;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-bottom: 0;
  }

  .hero-main-title {
    justify-content: center;
  }

  .hero-brand-logo-img {
    max-width: 420px;
  }

  .hero-subtitle-divider {
    justify-content: center;
  }

  .hero-teacher-name-row {
    align-items: center;
  }

  .hero-teacher-name-line {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
  }

  .hero-qualification-badge {
    align-self: center;
  }

  .hero-features-grid {
    justify-content: center;
    max-width: 100%;
  }

  .hero-actions-row {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-content-col {
    align-items: center;
  }

  .about-red-accent-line {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
  }

  .about-credentials-list {
    text-align: left;
    max-width: 580px;
    margin: 0 auto;
  }

  .about-photo-wrapper {
    max-width: 380px;
    height: 460px;
  }

  .about-red-ring {
    width: 280px;
    height: 280px;
    top: 55%;
  }

  .about-teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .results-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 780px;
    gap: 22px;
  }

  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero-brain-img {
    width: 360px;
    max-width: 45vw;
    opacity: 0.5;
  }

  .hero-organic-img {
    top: 8px;
    width: 75px;
  }

  .hero-dna-img {
    top: -55px;
    left: -90px;
    width: 800px;
  }

  .hero-teacher-wrapper {
    max-width: 520px;
    justify-content: center;
  }

  .hero-teacher-img {
    top: 0;
    max-height: 460px;
    object-position: bottom center;
    margin-bottom: 0;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(3, 8, 6, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 24px 0 30px;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta-btn {
    display: none;
  }

  .lms-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .lms-showcase-card {
    padding: 30px 20px;
    margin-top: 36px;
  }

  .hero-features-grid {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 6px 8px;
  }

  .hero-features-grid::-webkit-scrollbar {
    display: none;
  }

  .hero-feature-pill {
    flex: 0 0 auto;
    min-width: 124px;
  }

  .results-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 20px;
  }

  .result-card-img-wrapper {
    height: 420px;
  }

  .classes-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-photo-wrapper {
    max-width: 330px;
    height: 410px;
  }

  .about-red-ring {
    width: 240px;
    height: 240px;
    top: 55%;
  }

  .about-teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .about-header-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .about-brand-watermark {
    position: static;
    transform: none;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
  }

  .about-brand-watermark img,
  .about-header-logo {
    height: 46px;
  }

  .about-section,
  .results-section,
  .classes-section {
    padding: 28px 0;
  }

  .gallery-section {
    padding: 20px 0;
  }

  .footer-section {
    padding: 24px 0 0;
  }
}

@media (max-width: 480px) {
  .hero-brain-img {
    width: 250px;
    opacity: 0.4;
  }

  .hero-organic-img {
    top: 6px;
    width: 60px;
  }

  .hero-dna-img {
    top: -40px;
    left: -65px;
    width: 580px;
  }

  .hero-teacher-wrapper {
    max-width: 400px;
    justify-content: center;
  }

  .hero-teacher-img {
    top: 0;
    max-height: 380px;
    object-position: bottom center;
    margin-bottom: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .results-filter-bar {
    gap: 6px;
  }

  .result-filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .result-card-img-wrapper {
    height: 340px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary-join,
  .btn-secondary-learn,
  .btn-hero-lms {
    width: 100%;
    justify-content: center;
  }

  .lms-features-grid {
    grid-template-columns: 1fr;
  }

  .lms-actions-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .btn-lms-showcase-primary,
  .btn-lms-showcase-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer-support-box {
    border-radius: var(--radius-lg);
    flex-direction: column;
    text-align: center;
  }

  .hero-brand-logo-img {
    max-width: 320px;
  }

  .brand-logo-img {
    height: 38px;
  }

  .brand-logo-text {
    font-size: 1.15rem;
  }

  .about-brand-watermark img,
  .about-header-logo {
    height: 40px;
  }

  .about-photo-wrapper {
    max-width: 280px;
    height: 350px;
  }

  .about-red-ring {
    width: 190px;
    height: 190px;
    top: 55%;
  }

  .about-teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .about-section,
  .results-section,
  .classes-section {
    padding: 22px 0;
  }

  .gallery-section {
    padding: 16px 0;
  }

  .footer-section {
    padding: 20px 0 0;
  }
}

/* --------------------------------------------------------------------------
   13. SCROLL REVEAL & INTERACTIVE MOTION SYSTEM
   -------------------------------------------------------------------------- */

/* Scroll Progress Bar at Top */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
  z-index: 1001;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

/* Scroll-to-Top Floating Button */
.scroll-top-btn {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(8, 18, 12, 0.88);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background: var(--color-green-primary);
  color: #ffffff;
  border-color: var(--color-green-bright);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.55);
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* Hero Section Entrance Animations (Page Load) */
.hero-sinhala-ribbon {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-main-title {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-subtitle-divider {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-teacher-name-row {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-qualification-badge {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-features-grid {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-actions-row {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.hero-teacher-col {
  animation: heroTeacherEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTeacherEntrance {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(28px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active Revealed State */
.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger Delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Enhanced Interactive Hover Effects on Cards & Buttons */
.class-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.class-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.22), 0 0 25px rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
}

.class-card:hover .class-icon-wrapper {
  transform: scale(1.14) rotate(-6deg);
}

.class-icon-wrapper {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card-box {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.result-card-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 50px rgba(220, 38, 38, 0.35);
}

.contact-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.contact-card:hover .contact-icon-circle {
  transform: scale(1.15);
}

.contact-icon-circle {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pulsing radar effect on WhatsApp FAB */
.mobile-fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: fabPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --------------------------------------------------------------------------
   14. RED BIOLOGY BACKGROUND ICONS & INTERACTIVE GIMMICKS SYSTEM
   -------------------------------------------------------------------------- */

/* Ambient Floating Particle Canvas (Immersion Fluid) */
.bio-particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Base Red Biology Background Icon Styling */
.bio-bg-icon {
  position: absolute;
  pointer-events: auto;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease, opacity 0.35s ease;
  cursor: pointer;
  user-select: none;
}

.bio-bg-icon img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.55)) drop-shadow(0 0 35px rgba(220, 38, 38, 0.35));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.bio-bg-icon:hover {
  z-index: 5;
  opacity: 1 !important;
}

.bio-bg-icon:hover img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 25px rgba(255, 75, 75, 0.95)) drop-shadow(0 0 55px rgba(239, 68, 68, 0.75));
}

/* Pulsing Radar Ring on Interactive Biology Nodes */
.bio-icon-pulse-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 10px #ef4444;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bio-bg-icon:hover .bio-icon-pulse-glow {
  opacity: 1;
  animation: pulseBioRadar 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseBioRadar {
  0% { transform: scale(1); opacity: 0.9; box-shadow: 0 0 8px #ef4444; }
  100% { transform: scale(4.5); opacity: 0; box-shadow: 0 0 20px #dc2626; }
}

/* Ambient Biological Floating Animations */
.bio-float-slow {
  animation: bioFloatSlow 8s ease-in-out infinite alternate;
}

.bio-float-reverse {
  animation: bioFloatReverse 9s ease-in-out infinite alternate;
}

.bio-spin-slow {
  animation: bioSpinSlow 12s ease-in-out infinite alternate;
}

@keyframes bioFloatSlow {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
  100% { transform: translateY(6px) rotate(-2deg); }
}

@keyframes bioFloatReverse {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(16px) rotate(-3.5deg); }
  100% { transform: translateY(-8px) rotate(2.5deg); }
}

@keyframes bioSpinSlow {
  0% { transform: rotate(-6deg) scale(0.97); }
  50% { transform: rotate(5deg) scale(1.03); }
  100% { transform: rotate(-4deg) scale(0.98); }
}

/* --- Section-Specific Red Biology Placements --- */

/* Hero Section Biology Elements */
.hero-bio-rbc-1 {
  top: 16%;
  left: 6%;
  width: 90px;
  opacity: 0.85;
}


.hero-bio-chrom {
  top: 64%;
  right: 7%;
  width: 85px;
  opacity: 0.82;
}

.hero-bio-rbc-2 {
  bottom: 8%;
  left: 38%;
  width: 72px;
  opacity: 0.75;
}

/* Stats Bar Red Nucleotide Watermark */
.stats-bar-section {
  position: relative;
  overflow: hidden;
}

.stats-dna-ticker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  opacity: 0.16;
  pointer-events: none;
  font-family: monospace;
  letter-spacing: 5px;
  font-size: 0.74rem;
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  white-space: nowrap;
  animation: dnaTickerSlide 45s linear infinite;
}

.dna-code-line {
  font-weight: 800;
  color: #ff6b6b;
}

.dna-bond-line {
  font-weight: 700;
  color: #dc2626;
  opacity: 0.65;
}

@keyframes dnaTickerSlide {
  0% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(-50%); }
}

/* About Teacher Section Red Biology Elements */
.about-bio-microscope {
  top: 8%;
  left: -25px;
  width: 155px;
  opacity: 0.22;
}

.about-bio-neuron {
  top: 42%;
  right: -35px;
  width: 210px;
  opacity: 0.24;
}

.about-bio-rbc {
  bottom: 4%;
  right: 5%;
  width: 85px;
  opacity: 0.8;
}

/* Results Section Red Biology Elements */
.results-section {
  overflow: hidden;
}

.results-bio-dna {
  top: 15px;
  left: -20px;
  width: 120px;
  opacity: 0.45;
}

.results-bio-petri {
  top: 25px;
  right: -25px;
  width: 145px;
  opacity: 0.42;
}

/* Specimen Reticle Gimmick on Result Cards */
.specimen-reticle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(239, 68, 68, 0.65);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(239, 68, 68, 0.25);
  transition: all 0.3s ease;
}

.result-card-box:hover .specimen-reticle {
  background: rgba(220, 38, 38, 0.9);
  border-color: #fca5a5;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
}

.reticle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseBioDot 1.5s ease-in-out infinite;
}

.result-card-box:hover .reticle-dot {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

@keyframes pulseBioDot {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

.reticle-code {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 800;
  color: #fecaca;
  letter-spacing: 0.8px;
}

.result-card-box:hover .reticle-code {
  color: #ffffff;
}

/* Classes Section Red Biology Elements */
.classes-section {
  overflow: hidden;
}

.classes-bio-mito {
  top: 8%;
  left: -30px;
  width: 175px;
  opacity: 0.28;
}


.classes-bio-chrom {
  bottom: 8px;
  left: 48%;
  width: 95px;
  opacity: 0.24;
}

/* Specimen Reticle on Class Cards */
.card-specimen-reticle {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(254, 242, 242, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.64rem;
  font-weight: 800;
  color: #b91c1c;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.class-card:hover .card-specimen-reticle {
  background: #dc2626;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.reticle-cross {
  font-size: 0.78rem;
  color: #ef4444;
}

.class-card:hover .reticle-cross {
  color: #fef08a;
}

/* Red Biology Watermark Inside Class Cards */
.card-bio-watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 68px;
  height: 68px;
  opacity: 0.08;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
}

.class-card:hover .card-bio-watermark {
  opacity: 0.36;
  transform: scale(1.18) rotate(-6deg);
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.55));
}

/* LMS Showcase Red Biology Elements */
.lms-bio-rbc {
  bottom: 25px;
  left: 20px;
  width: 80px;
  opacity: 0.72;
}

.lms-bio-dna {
  top: -25px;
  right: 35px;
  width: 105px;
  opacity: 0.48;
}

/* Gallery Red Biology Elements */
.gallery-bio-micro {
  top: 15px;
  left: 15px;
  width: 105px;
  opacity: 0.32;
}

.gallery-bio-chrom {
  top: 15px;
  right: 15px;
  width: 90px;
  opacity: 0.32;
}

/* Footer Red Biology Elements */
.footer-bio-neuron {
  top: 35px;
  left: -35px;
  width: 210px;
  opacity: 0.28;
}

.footer-bio-petri {
  top: 45px;
  right: -25px;
  width: 155px;
  opacity: 0.28;
}

/* --------------------------------------------------------------------------
   15. BIO-LAB INTERACTIVE GIMMICK (FLOATING LAUNCHER & FLASHCARDS)
   -------------------------------------------------------------------------- */



/* --- Bio-Lab Modal / Specimen Explorer Overlay --- */
.bio-lab-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bio-lab-modal.active {
  opacity: 1;
  visibility: visible;
}

.bio-lab-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 10, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bio-lab-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  background: linear-gradient(150deg, rgba(6, 22, 14, 0.96) 0%, rgba(3, 12, 8, 0.98) 100%);
  border: 2px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(220, 38, 38, 0.3);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bio-lab-modal.active .bio-lab-card {
  transform: scale(1) translateY(0);
}

.bio-lab-card-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(220, 38, 38, 0.1);
}

.bio-lab-reticle-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ef4444;
  margin-bottom: 2px;
  display: inline-block;
}

.bio-lab-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.highlight-red {
  color: #ef4444;
}

.bio-lab-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bio-lab-close-btn:hover {
  background: #dc2626;
  color: #ffffff;
  transform: scale(1.1);
}

/* Category Filter Tabs */
.bio-lab-topics-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.bio-lab-topics-nav::-webkit-scrollbar {
  display: none;
}

.bio-lab-topic-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.bio-lab-topic-btn:hover,
.bio-lab-topic-btn.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}

/* Card Body Grid */
.bio-lab-card-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
}

.bio-lab-specimen-stage {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, rgba(10, 20, 15, 0.9) 80%);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}

.bio-lab-stage-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(239, 68, 68, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.bio-lab-specimen-img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.8));
  animation: bioFloatSlow 6s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

.bio-lab-zoom-tag {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
  font-family: monospace;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
}

.bio-lab-info-col {
  display: flex;
  flex-direction: column;
}

.bio-lab-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bio-lab-category-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
}

.bio-lab-index-indicator {
  font-family: monospace;
  font-size: 0.72rem;
  color: #94a3b8;
}

.bio-lab-item-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 8px;
}

.bio-lab-sinhala-desc {
  font-family: var(--font-sinhala);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 8px;
}

.bio-lab-english-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.bio-lab-keypoints-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bio-keypoint-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  color: #cbd5e1;
}

.bio-keypoint-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  flex-shrink: 0;
}

/* Card Footer Controls */
.bio-lab-card-footer {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.bio-lab-nav-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.bio-lab-nav-btn.prev-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bio-lab-nav-btn.prev-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.bio-lab-nav-btn.random-btn {
  background: rgba(245, 158, 11, 0.15);
  color: #fef08a;
  border: 1px solid #f59e0b;
}

.bio-lab-nav-btn.random-btn:hover {
  background: #f59e0b;
  color: #0b1a11;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.bio-lab-nav-btn.next-btn {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.bio-lab-nav-btn.next-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.6);
  transform: translateY(-2px);
}

/* Floating Specimen HUD Tooltip */
.bio-specimen-tooltip {
  position: fixed;
  z-index: 9998;
  max-width: 280px;
  background: rgba(6, 16, 10, 0.94);
  backdrop-filter: blur(12px);
  border: 1.5px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bio-specimen-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.bio-tooltip-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.bio-tooltip-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.bio-tooltip-desc {
  font-family: var(--font-sinhala);
  font-size: 0.76rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.bio-tooltip-hint {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: #f59e0b;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE OPTIMIZATION FOR BIOLOGY GIMMICKS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .bio-lab-card-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bio-lab-specimen-stage {
    height: 170px;
    margin: 0 auto;
    max-width: 280px;
  }

  .bio-lab-info-col {
    align-items: center;
  }

  .bio-lab-keypoints-box {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-bio-rbc-1 {
    width: 65px;
    left: 4%;
  }


  .hero-bio-chrom {
    width: 65px;
    right: 4%;
  }

  .hero-bio-rbc-2 {
    width: 55px;
  }

  .about-bio-microscope {
    width: 100px;
    left: -15px;
  }

  .about-bio-neuron {
    width: 130px;
    right: -15px;
  }

  .about-bio-rbc {
    width: 60px;
  }

  .results-bio-dna {
    width: 80px;
    left: -10px;
  }

  .results-bio-petri {
    width: 95px;
    right: -15px;
  }

  .classes-bio-mito {
    width: 110px;
    left: -15px;
  }


  .footer-bio-neuron {
    width: 130px;
  }

  .footer-bio-petri {
    width: 100px;
  }

}

@media (max-width: 480px) {
  .bio-lab-card {
    padding: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .bio-lab-card-body {
    padding: 14px 10px;
  }

  .bio-lab-item-title {
    font-size: 1.15rem;
  }

  .bio-lab-card-footer {
    padding: 12px 10px;
    gap: 8px;
  }

  .bio-lab-nav-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   14. DS BIO SCIENTIFIC PRELOADER (BIOLOGY LAB / PULSE THEMED)
   ========================================================================== */
body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none;
}

#dsBioPreloader,
.ds-bio-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 45%, #082115 0%, #040d08 45%, #020604 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

.ds-bio-preloader.preloader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(1.04) !important;
  filter: blur(8px) !important;
}

/* Ambient Biological Background Glows */
.preloader-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  opacity: 0.35;
  will-change: transform, opacity;
}

.preloader-glow-green {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45) 0%, rgba(22, 163, 74, 0.15) 50%, transparent 70%);
  top: 15%;
  left: 20%;
  animation: preloader-ambient-pulse 6s ease-in-out infinite alternate;
}

.preloader-glow-red {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(153, 27, 27, 0.1) 50%, transparent 70%);
  bottom: 12%;
  right: 22%;
  animation: preloader-ambient-pulse 5s ease-in-out infinite alternate-reverse;
}

.preloader-backdrop-dna {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloader-dna-drift 30s linear infinite;
}

.preloader-backdrop-dna img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: hue-rotate(90deg) brightness(1.5);
}

/* Central Stage */
.preloader-stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 460px;
  padding: 20px;
}

/* Biological Emblem & Dual Rings */
.preloader-emblem-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.preloader-ring-outer {
  width: 128px;
  height: 128px;
  border: 2px dashed rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25), inset 0 0 15px rgba(34, 197, 94, 0.15);
  animation: preloader-spin 14s linear infinite;
}

.preloader-ring-inner {
  width: 106px;
  height: 106px;
  border: 2px solid transparent;
  border-top-color: #ef4444;
  border-bottom-color: rgba(239, 68, 68, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
  animation: preloader-spin-rev 7s linear infinite;
}

.preloader-pulse-glow {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, rgba(22, 163, 74, 0.15) 60%, transparent 80%);
  animation: preloader-heartbeat 1.8s ease-in-out infinite;
  pointer-events: none;
}

.preloader-logo-card {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(145deg, #071911 0%, #030a07 100%);
  border: 1.5px solid rgba(74, 222, 128, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(34, 197, 94, 0.2);
}

.preloader-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  animation: preloader-logo-breathe 3s ease-in-out infinite alternate;
}

/* Brand Identity Typography */
.preloader-brand {
  margin-bottom: 24px;
}

.preloader-brand-title {
  font-family: var(--font-display), 'Outfit', 'Poppins', sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.preloader-brand-title .brand-accent {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 40%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.45));
}

.preloader-brand-subtitle {
  font-family: var(--font-heading), 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.preloader-brand-subtitle .bullet {
  color: #ef4444;
  margin: 0 4px;
}

.preloader-credential-tag {
  display: inline-block;
  font-family: var(--font-body), 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Progress Tracking & Metrics */
.preloader-progress-box {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.preloader-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.76rem;
  gap: 12px;
}

.preloader-status-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body), 'Inter', sans-serif;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e, 0 0 18px rgba(34, 197, 94, 0.8);
  animation: preloader-blink 1.2s infinite ease-in-out;
}

.preloader-counter {
  font-family: var(--font-display), 'Outfit', 'Poppins', monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Progress Bar */
.preloader-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.7);
}

.preloader-bar {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 55%, #ef4444 100%);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.75);
  transition: width 0.12s ease-out;
  will-change: width;
}

.preloader-bar-light {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  filter: blur(1px);
}

/* Animated ECG Biosensor Pulse Wave */
.preloader-ecg-container {
  width: 100%;
  height: 26px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ecg-svg {
  width: 100%;
  max-width: 320px;
  height: 26px;
  overflow: visible;
}

.ecg-bg-line {
  opacity: 0.35;
}

.ecg-pulse-line {
  stroke-dasharray: 60 260;
  stroke-dashoffset: 320;
  animation: preloader-ecg-sweep 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Sinhala Motto Subtitle */
.preloader-sinhala-quote {
  margin-top: 14px;
  font-family: var(--font-sinhala), 'Noto Sans Sinhala', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}

/* Keyframe Animations */
@keyframes preloader-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes preloader-spin-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes preloader-heartbeat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  30% {
    transform: scale(1.18);
    opacity: 0.65;
  }
  45% {
    transform: scale(1.08);
    opacity: 0.45;
  }
  60% {
    transform: scale(1.22);
    opacity: 0.8;
  }
}

@keyframes preloader-logo-breathe {
  0% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1.03);
  }
}

@keyframes preloader-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

@keyframes preloader-ecg-sweep {
  0% {
    stroke-dashoffset: 320;
  }
  100% {
    stroke-dashoffset: -60;
  }
}

@keyframes preloader-ambient-pulse {
  0% {
    transform: scale(0.9) translate(0, 0);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.12) translate(15px, -10px);
    opacity: 0.45;
  }
}

@keyframes preloader-dna-drift {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
  .preloader-emblem-wrap {
    width: 108px;
    height: 108px;
    margin-bottom: 18px;
  }
  .preloader-ring-outer {
    width: 108px;
    height: 108px;
  }
  .preloader-ring-inner {
    width: 90px;
    height: 90px;
  }
  .preloader-pulse-glow {
    width: 78px;
    height: 78px;
  }
  .preloader-logo-card {
    width: 72px;
    height: 72px;
  }
  .preloader-logo-img {
    width: 48px;
    height: 48px;
  }
  .preloader-brand-title {
    font-size: 1.85rem;
  }
  .preloader-brand-subtitle {
    font-size: 0.68rem;
    letter-spacing: 1.2px;
  }
  .preloader-credential-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
  .preloader-progress-box {
    max-width: 300px;
  }
  .preloader-status-label {
    font-size: 0.7rem;
  }
  .preloader-counter {
    font-size: 0.95rem;
  }
  .preloader-sinhala-quote {
    font-size: 0.76rem;
  }
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-on-scroll,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .bio-float-slow,
  .bio-float-reverse,
  .bio-spin-slow,
  .stats-dna-ticker {
    animation: none !important;
  }
}

