/* ============================================================
   PRECISION ALLELE.DX — Light Theme Redesign (Brochure)
   ============================================================ */

/* ---- 1. CSS CUSTOM PROPERTIES (Tokens) ---- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F7FB;
  --color-bg-white: #FFFFFF;
  --color-text-main: #1A2238;
  --color-text-muted: #5B6A82;
  
  --color-primary: #0066FF;
  --color-secondary: #7B2FBE;
  --color-accent: #00C8BE;
  --color-dark: #0D1B2A;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0088FF 0%, #7B2FBE 100%);
  --grad-text: linear-gradient(90deg, #0088FF 0%, #7B2FBE 50%, #D62BC7 100%);
  --grad-text-purple: linear-gradient(180deg, #7B2FBE, #5A1E9E);
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Shadows & Glass */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
}

/* ---- 2. RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 4%;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.text-gradient-purple {
  background: var(--grad-text-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.bg-light { background-color: var(--color-bg-white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-gradient {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(123, 47, 190, 0.3);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 47, 190, 0.4);
}

.btn-white {
  background: #fff;
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E7EB;
}

.btn-white:hover {
  background: #F9FAFB;
  transform: translateY(-2px);
}

/* ---- 3. HEADER ---- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-container {
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 72px;
  height: 90px;
  display: flex;
  align-items: flex-start;
  margin-top: -6px;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}

.logo-main-text {
  font-family: 'Poppins', sans-serif;
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.text-recision {
  color: #1E2F7A;
}

.text-allele-dx {
  background: linear-gradient(90deg, #00E5FF, #0066FF, #7B2FBE, #D62BC7, #F5861F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-divider {
  height: 1px;
  background: rgba(0,0,0,0.2);
  margin: 0.4rem 0 0.3rem 0;
  width: 100%;
}

.logo-subtext {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  background: linear-gradient(90deg, #00C8BE, #2B44C4, #D62BC7, #F5861F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- 4. HERO SECTION ---- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><radialGradient id="grad" cx="70%" cy="50%" r="50%"><stop offset="0%" stop-color="%23e0efff"/><stop offset="100%" stop-color="%23f4f7fb"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23grad)"/></svg>') no-repeat center center;
  background-size: cover;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(255,255,255,0) 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .line {
  width: 32px;
  height: 2px;
  background: var(--color-primary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 4.4vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #101828;
  letter-spacing: -0.03em; /* Tighter letter spacing */
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* Features */
.hero-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

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

.feature-text strong {
  font-size: 0.9rem;
  color: var(--color-text-main);
  font-weight: 600;
}

.feature-text span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

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

.stat strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.stat span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Hero Right Visuals */
.hero-visual {
  flex: 1;
  position: relative;
  height: clamp(620px, 76vh, 740px);
}

.visual-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.dna-model {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  max-width: clamp(420px, 36vw, 540px);
  height: 95%;
  max-height: clamp(540px, 68vh, 660px);
  z-index: 1;
  /* Feathered mask to seamlessly dissolve DNA edges into the hero background */
  -webkit-mask-image: radial-gradient(ellipse 48% 49% at 50% 50%, black 18%, rgba(0,0,0,0.95) 36%, rgba(0,0,0,0.55) 64%, rgba(0,0,0,0.15) 84%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 49% at 50% 50%, black 18%, rgba(0,0,0,0.95) 36%, rgba(0,0,0,0.55) 64%, rgba(0,0,0,0.15) 84%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* DNA HUD Annotations (replacing boxes) */
.glass-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: auto;
}

.glass-card::before {
  display: none;
}

/* For cards on the LEFT of the DNA, node should be on the RIGHT */
.card-tl, .card-bl {
  flex-direction: row-reverse;
  text-align: right;
}

/* For cards on the RIGHT of the DNA, node should be on the LEFT */
.card-tr, .card-mr, .card-br {
  flex-direction: row;
  text-align: left;
}

.glass-card:hover {
  transform: scale(1.05);
}

.card-icon {
  width: 24px;
  height: 24px;
  background: #00E5FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent; /* hide the icon itself to just show the glowing orb */
  box-shadow: 0 0 20px #00E5FF, 0 0 40px #7B2FBE;
  flex-shrink: 0;
  position: relative;
}

.card-icon::after {
  content: '';
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border: 1px solid rgba(0, 229, 255, 0.8);
  border-radius: 50%;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.card-text {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0, 102, 255, 0.15);
  z-index: 20;
}

.card-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #1A2238;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.card-text p {
  font-size: 0.8rem;
  color: #5B6A82;
  line-height: 1.4;
  margin: 0;
}

.card-text strong {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.3;
}

.card-text span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.icon-highlight {
  font-size: 1.5rem;
  color: var(--color-primary);
  background: rgba(0, 102, 255, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
}

.highlight-card .card-text {
  background: rgba(255, 255, 255, 0.6);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: right;
}

.card-list span {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Positioning of cards */
/* Left cards (node is on the right) */
.card-tl { top: 15%; left: calc(50% - 380px); }
.card-bl { top: 50%; left: calc(50% - 380px); }

/* Right cards (node is on the left) */
.card-tr { top: 5%; right: calc(50% - 380px); }
.card-mr { top: 45%; right: calc(50% - 380px); }
.card-br { top: 72%; right: calc(50% - 380px); }

/* Base Carousel */
.visual-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 580px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 100px;
  padding: 1rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  z-index: 5;
}

.base-carousel {
  display: flex;
  justify-content: space-between;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.carousel-item:hover {
  transform: translateY(-3px);
}

.c-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #f3e8ff);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.1);
  transition: all 0.2s;
}

.carousel-item:hover .c-icon {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 15px rgba(123, 47, 190, 0.3);
}

.carousel-item span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.05em;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* ---- 5. VISION SECTION ---- */
.vision-box {
  background: var(--color-bg-white);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.vision-box .lead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

/* ---- 6. SOLUTIONS SECTION ---- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.solution-card {
  background: var(--color-bg-white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F3F4F6;
  transition: all 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 255, 0.2);
}

.card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F3F4F6;
}

.card-body ul {
  list-style: none;
}

.card-body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card-body li::before {
  content: '•';
  color: var(--color-primary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.25rem;
}

/* ---- 7. BIOINFORMATICS BANNER ---- */
.bioinformatics {
  background: var(--color-dark);
  color: #fff;
  padding: 5rem 0;
}

.bio-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.bio-content {
  flex: 1;
  max-width: 500px;
}

.bio-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.bio-content p {
  color: #94A3B8;
  font-size: 1rem;
}

.bio-stats {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.b-stat {
  display: flex;
  flex-direction: column;
}

.b-stat strong {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.b-stat span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #CBD5E1;
}

.bio-stats .divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
}

/* ---- 8. DIAGNOSTIC PANELS TABLE ---- */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: block;
  box-sizing: border-box;
}

.panel-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.panel-table th {
  background: #F8FAFC;
  text-align: left;
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-main);
  border-bottom: 2px solid #E2E8F0;
}

.panel-table td {
  padding: 1.5rem;
  border-bottom: 1px solid #F1F5F9;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.panel-table tr:last-child td {
  border-bottom: none;
}

.panel-table tr:hover td {
  background: #F8FAFC;
}

/* ---- 9. TECHNOLOGY ---- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.tech-card {
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #F1F5F9;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 255, 0.2);
}

.tech-icon {
  width: 80px;
  height: 80px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.tech-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.tech-card p {
  color: var(--color-text-muted);
}

/* ---- 10. RESOURCES ---- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-card {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.resource-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.resource-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Fluid vibrant gradients */
.card-vis-1 { background: linear-gradient(135deg, #00E5FF, #0066FF); }
.card-vis-2 { background: linear-gradient(135deg, #7B2FBE, #D62BC7); }
.card-vis-3 { background: linear-gradient(135deg, #F5861F, #FF3366); }

/* Decorative glow behind the icon */
.resource-visual::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  filter: blur(20px);
  transition: transform 0.5s ease;
}

.resource-visual i {
  position: relative;
  z-index: 2;
  opacity: 0.9;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.resource-card:hover .resource-visual i {
  transform: scale(1.15) rotate(5deg);
}

.resource-card:hover .resource-visual::before {
  transform: scale(1.5);
}

.resource-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.resource-tag {
  display: inline-block;
  background: rgba(0, 102, 255, 0.08);
  color: var(--color-primary);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  width: max-content;
  text-transform: uppercase;
}

.resource-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.resource-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  flex: 1;
  line-height: 1.6;
}

.resource-content .btn-link {
  background: #fff;
  border: 1px solid #E2E8F0;
  padding: 1rem;
  border-radius: 50px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
  color: var(--color-text-main);
}

.resource-content .btn-link:hover {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ---- 11. CONTACT ---- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-info {
  padding: 4rem;
  background: var(--color-dark);
  color: #fff;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.2;
}

.contact-info p {
  color: #94A3B8;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #E2E8F0;
  font-size: 1rem;
}

.contact-details i {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.contact-form-container {
  padding: 4rem;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #F8FAFC;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.w-100 {
  width: 100%;
}

/* ---- 12. FOOTER ---- */
.footer {
  background: var(--color-dark);
  color: #fff;
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--color-primary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand-logo .logo-text {
  color: #fff;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-col h4 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  color: #fff;
}

.link-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-col a {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.2s;
}

/* ---- 13. PAPER MODAL ---- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-container {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #1A2238;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #5B6A82;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-body {
  flex: 1;
  background: #E2E8F0; /* Fallback */
}

#paper-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.link-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748B;
  font-size: 0.85rem;
}

/* Hide mobile nav overlay on desktop entirely */
@media (min-width: 769px) {
  .mobile-nav-overlay {
    display: none !important;
  }
}

/* ---- 1. Standard Laptops & Medium Desktops (1025px - 1440px, or height <= 820px) ---- */
@media (min-width: 1025px) and (max-width: 1440px), (min-width: 769px) and (max-height: 820px) {
  .header {
    padding: 0.75rem 0 !important;
  }
  .brand-logo-container {
    gap: 0.15rem !important;
  }
  .logo-icon {
    width: 50px !important;
    height: 64px !important;
    margin-top: -3px !important;
  }
  .logo-icon img {
    width: 50px !important;
    height: 50px !important;
  }
  .logo-text-block {
    padding-top: 7px !important;
  }
  .logo-main-text {
    font-size: 1.65rem !important;
  }
  .logo-subtext {
    font-size: 0.55rem !important;
    letter-spacing: 0.14em !important;
  }
  .main-nav ul {
    gap: 1.25rem !important;
  }
  .main-nav a {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
  }
  .header-actions .btn {
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  .hero {
    padding-top: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
  }
  .hero-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    padding-top: 85px !important;
    padding-bottom: 15px !important;
    text-align: left !important;
  }
  .hero-content {
    flex: 0 0 46% !important;
    max-width: 510px !important;
    text-align: left !important;
    z-index: 2;
  }
  .hero-title {
    font-size: clamp(2.7rem, 3.5vw, 3.5rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 0.8rem !important;
  }
  .hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.1rem !important;
    max-width: 460px !important;
  }
  .hero-features {
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    margin-bottom: 1.15rem !important;
  }
  .feature-item {
    gap: 0.5rem !important;
    padding: 0.3rem 0.5rem !important;
  }
  .feature-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
  }
  .feature-text strong {
    font-size: 0.8rem !important;
  }
  .feature-text span {
    font-size: 0.66rem !important;
  }
  .hero-cta-group {
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1.15rem !important;
  }
  .hero-cta-group .btn {
    padding: 0.5rem 1.1rem !important;
    font-size: 0.85rem !important;
    width: auto !important;
  }
  .hero-stats {
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    padding-top: 0.9rem !important;
  }
  .stat strong {
    font-size: 1rem !important;
  }
  .stat span {
    font-size: 0.66rem !important;
  }

  /* Right Visual on Laptops */
  .hero-visual {
    flex: 0 0 54% !important;
    max-width: 54% !important;
    width: 54% !important;
    height: 520px !important;
    margin-top: 0 !important;
    position: relative !important;
    display: block !important;
  }
  .visual-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  .dna-model {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    width: 100% !important;
    max-width: 370px !important;
    height: 90% !important;
    max-height: 480px !important;
    z-index: 1 !important;
  }
  .visual-base {
    display: block !important;
    width: min(410px, 94%) !important;
    padding: 0.4rem 0.75rem !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .carousel-item span {
    font-size: 0.6rem !important;
  }
  .c-icon {
    font-size: 0.88rem !important;
  }
}

/* ---- 2. Compact Vertical Height (< 720px) on Laptops (e.g. 1366x768 with browser toolbars) ---- */
@media (min-width: 769px) and (max-height: 720px) {
  .header {
    padding: 0.5rem 0 !important;
  }
  .logo-icon {
    width: 44px !important;
    height: 56px !important;
  }
  .logo-icon img {
    width: 44px !important;
    height: 44px !important;
  }
  .logo-main-text {
    font-size: 1.5rem !important;
  }
  .logo-subtext {
    font-size: 0.52rem !important;
  }
  .hero {
    padding-top: 65px !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
  }
  .hero-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .hero-content {
    flex: 0 0 46% !important;
    max-width: 500px !important;
  }
  .hero-title {
    font-size: clamp(2.4rem, 3.1vw, 3.0rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 0.55rem !important;
  }
  .hero-desc {
    font-size: 0.88rem !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.4 !important;
  }
  .hero-features {
    margin-bottom: 0.85rem !important;
    gap: 0.45rem !important;
  }
  .feature-item {
    padding: 0.25rem 0.45rem !important;
  }
  .feature-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
  .feature-text strong {
    font-size: 0.78rem !important;
  }
  .feature-text span {
    font-size: 0.64rem !important;
  }
  .hero-cta-group {
    margin-bottom: 0.85rem !important;
    gap: 0.6rem !important;
  }
  .hero-cta-group .btn {
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem !important;
  }
  .hero-stats {
    padding-top: 0.65rem !important;
    gap: 1.1rem !important;
  }
  .stat strong {
    font-size: 0.95rem !important;
  }
  .stat span {
    font-size: 0.62rem !important;
  }
  .hero-visual {
    flex: 0 0 54% !important;
    max-width: 54% !important;
    width: 54% !important;
    height: 470px !important;
  }
  .dna-model {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    max-height: 430px !important;
    max-width: 340px !important;
  }
  .visual-base {
    width: min(400px, 94%) !important;
    padding: 0.3rem 0.65rem !important;
  }
  .carousel-item span {
    font-size: 0.56rem !important;
  }
  .c-icon {
    font-size: 0.8rem !important;
  }
}

/* ---- 3. Tablets & Mobile in Desktop Mode (769px - 1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .header {
    padding: 0.75rem 0;
  }
  .header-container {
    padding: 0 2%;
    gap: 0.5rem;
  }
  .brand-logo-container {
    gap: 0.1rem;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 44px;
    height: 56px;
    margin-top: -2px;
  }
  .logo-icon img {
    width: 44px;
    height: 44px;
  }
  .logo-main-text {
    font-size: 1.45rem;
  }
  .logo-subtext {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }
  .main-nav {
    flex-shrink: 1;
  }
  .main-nav ul {
    gap: 0.75rem;
  }
  .main-nav a {
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .header-actions {
    flex-shrink: 0;
  }
  .header-actions .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hero {
    padding-top: 85px;
    min-height: auto;
    overflow: hidden;
  }
  .hero-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding-top: 0 !important;
    text-align: left !important;
  }
  .hero-content {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    text-align: left !important;
    z-index: 2;
  }
  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-desc {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.45 !important;
  }
  .hero-features {
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    margin-bottom: 1.1rem !important;
  }
  .feature-item {
    padding: 0.3rem 0.5rem !important;
  }
  .feature-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
  .feature-text strong {
    font-size: 0.74rem !important;
  }
  .feature-text span {
    font-size: 0.58rem !important;
  }
  .hero-cta-group {
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    margin-bottom: 1.2rem !important;
  }
  .hero-cta-group .btn {
    padding: 0.5rem 0.95rem !important;
    font-size: 0.8rem !important;
    width: auto !important;
  }
  .hero-stats {
    justify-content: flex-start !important;
    gap: 0.75rem !important;
  }
  .stat strong {
    font-size: 1rem !important;
  }
  .stat span {
    font-size: 0.62rem !important;
  }

  .hero-visual {
    flex: 0 0 55% !important;
    max-width: 55% !important;
    width: 55% !important;
    height: 520px !important;
    margin-top: 0 !important;
    position: relative !important;
    display: block !important;
  }
  .visual-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  .dna-model {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    width: 100% !important;
    max-width: 280px !important;
    height: 85% !important;
    max-height: 460px !important;
    z-index: 1 !important;
  }
  
  .visual-base {
    display: block !important;
    width: min(390px, 94%) !important;
    padding: 0.45rem 0.75rem !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .carousel-item span {
    font-size: 0.58rem !important;
  }
  .c-icon {
    font-size: 0.85rem !important;
  }
}

/* Tablets & Small Screens Grids (< 1024px) */
@media (max-width: 1024px) {
  .panels-grid, .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bio-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== RESPONSIVE: MOBILE PHONES (< 768px) ==================== */
@media (max-width: 768px) {
  /* Navbar & Header Scaling for Mobile */
  .header {
    padding: 0.8rem 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .header-container {
    padding: 0 4%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand-logo-container {
    display: flex;
    align-items: flex-start;
    gap: 0.15rem;
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100% - 46px);
  }
  .logo-icon {
    width: 36px;
    height: 46px;
    margin-top: -2px;
    flex-shrink: 0;
  }
  .logo-icon img {
    width: 36px;
    height: 36px;
  }
  .logo-text-block {
    padding-top: 5px;
    min-width: 0;
    overflow: hidden;
  }
  .logo-main-text {
    font-size: 1.25rem;
    line-height: 1;
    white-space: nowrap;
  }
  .logo-divider {
    margin: 0.2rem 0;
  }
  .logo-subtext {
    font-size: 0.44rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .main-nav, .header-actions .btn {
    display: none;
  }
  .header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: auto;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1000;
    position: relative;
    padding: 4px;
    width: 36px;
    height: 36px;
  }
  
  /* Mobile Nav Overlay */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
  }
  .mobile-nav-overlay.active {
    opacity: 1 !important;
    pointer-events: all !important;
    visibility: visible !important;
  }
  .mobile-nav-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .mobile-nav-container a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }
  .mobile-nav-container a:hover {
    color: var(--color-primary);
  }

  /* Hero adjustments for mobile */
  .hero-container {
    flex-direction: column;
    padding-top: 60px;
    align-items: center;
    gap: 2rem;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-features {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .hero-cta-group {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    width: 100%;
    height: 400px;
    margin-top: 1rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  
  /* Hide all HUD cards on small mobile to just focus on the 3D DNA */
  .glass-card, .visual-base {
    display: none;
  }

  /* Sections */
  .section-title {
    font-size: 2rem;
  }
  .solutions-grid, .panels-grid, .resources-grid, .tech-grid, .tech-stats {
    grid-template-columns: 1fr;
  }
  .panel-card {
    padding: 1.5rem;
  }
  .bio-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .bio-stats .divider {
    width: 60px;
    height: 1px;
  }
  
  /* Contact / Footer */
  .contact-wrapper {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .contact-info, .contact-form-container {
    padding: 1.5rem;
  }
  .contact-info h2 {
    font-size: 1.8rem;
  }
  .contact-details li {
    align-items: flex-start;
  }
  .contact-details li span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    flex: 1;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 3rem;
  }
}


/* ---- NEW DIAGNOSTIC PANELS & MODAL ---- */
.panel-filters-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--color-bg-white);
  border: 1px solid #E2E8F0;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

.filter-btn .badge {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.filter-btn.active .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.futuristic-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.futuristic-table th {
  background: var(--color-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.futuristic-table th:first-child { border-radius: 12px 0 0 12px; }
.futuristic-table th:last-child { border-radius: 0 12px 12px 0; }

.futuristic-table tbody tr {
  background: var(--color-bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.futuristic-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.futuristic-table td {
  padding: 1.25rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}

.futuristic-table td:first-child { 
  border-left: 1px solid #F1F5F9; 
  border-radius: 12px 0 0 12px;
  font-weight: 600;
  color: var(--color-text-main);
}
.futuristic-table td:last-child { 
  border-right: 1px solid #F1F5F9; 
  border-radius: 0 12px 12px 0; 
  font-weight: 600;
}

.futuristic-table .panel-name {
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.futuristic-table .panel-name i {
  opacity: 0;
  transition: opacity 0.2s;
}

.futuristic-table tr:hover .panel-name i {
  opacity: 1;
}

/* Modal */
.futuristic-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 24px;
  z-index: 1001;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.futuristic-modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 1rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  font-family: var(--font-heading);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-detail {
  margin-bottom: 1.5rem;
}

.detail-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 1.1rem;
  color: var(--color-text-main);
}


/* ---- PAPER MODAL ---- */
#paper-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

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

.modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#paper-modal.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.modal-header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-main);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   ARTISTIC SCROLL-DRIVEN REVEALS & MICRO-INTERACTIONS
   ============================================================ */

/* Base reveal transition settings */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  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-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1) translateX(0);
}

/* Directional and transform variants */
.reveal-slide-up {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-slide-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  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-slide-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(40px);
  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-slide-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  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.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger container for grids, cards, stats */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-stagger.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.08s; }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.18s; }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.28s; }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.38s; }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.58s; }

/* Enhanced Card Micro-Interactions & Hover Elevation */
.solution-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(0, 102, 255, 0.12),
              0 0 0 1px rgba(0, 102, 255, 0.25);
  border-color: rgba(0, 102, 255, 0.3);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover::before {
  opacity: 1;
}

.tech-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease;
  position: relative;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 45px -12px rgba(123, 47, 190, 0.15),
              0 0 0 1px rgba(123, 47, 190, 0.25);
}

.tech-card .tech-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.12) rotate(4deg);
}

.resource-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 45px -12px rgba(13, 27, 42, 0.16);
}

.resource-card .resource-visual i {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.resource-card:hover .resource-visual i {
  transform: scale(1.15);
}

/* Vision Box Glass Elevation */
.vision-box {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.vision-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -15px rgba(0, 102, 255, 0.14);
}

/* Bioinformatics Banner Stats Glow */
.bio-stats .b-stat {
  transition: transform 0.3s ease;
}

.bio-stats .b-stat:hover {
  transform: scale(1.06);
}

/* Button Shimmer Sweeping Light */
.btn-gradient {
  position: relative;
  overflow: hidden;
}

.btn-gradient::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: transform 0.75s ease;
  pointer-events: none;
}

.btn-gradient:hover::after {
  transform: rotate(25deg) translate(400%, 0);
}

/* Table Row Smooth Interaction */
.futuristic-table tbody tr {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.25s ease;
}

.futuristic-table tbody tr:hover {
  transform: translateY(-3px) scale(1.002);
  box-shadow: 0 8px 24px -4px rgba(0, 102, 255, 0.12);
  background-color: #fafcff;
}

.futuristic-table tbody tr:hover td:first-child {
  border-left-color: var(--color-primary);
}

/* Contact Info & Form Hover Elevation */
.contact-wrapper {
  transition: box-shadow 0.4s ease;
}

.contact-wrapper:hover {
  box-shadow: 0 28px 55px -15px rgba(13, 27, 42, 0.12);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-slide-up,
  .reveal-slide-left,
  .reveal-slide-right,
  .reveal-scale,
  .reveal-stagger > *,
  .dna-model,
  .theme-text-block,
  .visual-wrapper::before,
  .holo-node {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}
