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

:root {
  --bg-color: #07090E;
  --bg-darker: #040508;
  
  --panel-bg: rgba(10, 16, 28, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-glow: rgba(0, 242, 254, 0.3);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-dim: #6B7280;
  
  --accent-cyan: #00F2FE;
  --accent-emerald: #10B981;
  --accent-blue: #3B82F6;
  --accent-red: #EF4444;
  
  --gradient-cyan: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  --gradient-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-medical: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(16, 185, 129, 0.04) 50%, rgba(0, 0, 0, 0) 100%);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-glow: 0 0 40px rgba(0, 242, 254, 0.15);
  --shadow-panel: 0 30px 70px rgba(0, 0, 0, 0.6);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow: hidden; /* Prevent all page scrolling */
  height: 100vh;
  width: 100%;
  line-height: 1.5;
  position: relative;
}

/* Background Glowing Breathing System */
.bg-glow-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -2;
  pointer-events: none;
  animation: glowBreath1 12s ease-in-out infinite;
}

.bg-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -2;
  pointer-events: none;
  animation: glowBreath2 15s ease-in-out infinite;
}

.bg-medical-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: var(--gradient-medical);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  animation: medicalBreath 10s ease-in-out infinite;
}

/* Water ripples spreading from center */
.ripple-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vmax;
  height: 100vmax;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.1);
}

.ring-1 {
  background: radial-gradient(circle, transparent 40%, rgba(0, 242, 254, 0.05) 65%, transparent 75%);
  animation: rippleOutward 14s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  animation-delay: 0s;
}

.ring-2 {
  background: radial-gradient(circle, transparent 40%, rgba(16, 185, 129, 0.04) 65%, transparent 75%);
  animation: rippleOutward 14s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  animation-delay: 4.6s;
}

.ring-3 {
  background: radial-gradient(circle, transparent 40%, rgba(59, 130, 246, 0.03) 65%, transparent 75%);
  animation: rippleOutward 14s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  animation-delay: 9.2s;
}

@keyframes rippleOutward {
  0% {
    transform: translate(-50%, -50%) scale(0.05);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.0);
    opacity: 0;
  }
}

@keyframes glowBreath1 {
  0%, 100% { opacity: 0.5; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.9; transform: scale(1.1) translate(-20px, 20px); }
}

@keyframes glowBreath2 {
  0%, 100% { opacity: 0.4; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.8; transform: scale(1.15) translate(30px, -30px); }
}

@keyframes medicalBreath {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pageBreath {
  0%, 100% { opacity: 0.96; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.002); }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
}

.grad-text {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 10, 16, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--panel-border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3rem;
}

.logo svg {
  display: block;
  height: 44px;
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: scale(1.02);
}

nav {
  display: flex;
  gap: 5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.30rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* SPA Tabs Container */
.main-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  padding-top: 85px; /* header offset */
  animation: pageBreath 10s ease-in-out infinite;
}

.tab-content {
  position: absolute;
  top: 85px;
  left: 0;
  width: 100%;
  height: calc(100vh - 85px);
  padding: 3rem 0;
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.tab-content::-webkit-scrollbar {
  width: 6px;
}
.tab-content::-webkit-scrollbar-track {
  background: transparent;
}
.tab-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* General Layout helpers */
.container-full {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

/* Tab 1: Solutions / Landing View */
.solutions-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 4rem;
  width: 100%;
  height: 100%;
  align-items: center;
}

.solutions-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  z-index: 5;
}

.solutions-left h1 {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.solutions-left p {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 540px;
}

.ctas-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #040508;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 0.6rem 1.35rem;
  font-size: 0.85rem;
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Center DNA Helix Illustration */
.solutions-right {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

.dna-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 24px;
}

.rotating-helix {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen; /* strip black background */
  animation: dnaGlowAnim 8s ease-in-out infinite;
}

.dna-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes dnaGlowAnim {
  0%, 100% {
    filter: brightness(0.9) contrast(1) drop-shadow(0 0 15px rgba(0, 242, 254, 0.2));
  }
  50% {
    filter: brightness(1.25) contrast(1.1) drop-shadow(0 0 35px rgba(16, 185, 129, 0.45));
  }
}

/* BI Slide-out Panel Overlay */

/* BI Dashboard Panel (Embedded at bottom) */
.bi-panel-container {
  background: rgba(7, 10, 16, 0.45);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  backdrop-filter: blur(25px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  margin: 4rem auto 2rem auto;
  width: 100%;
  box-sizing: border-box;
  scroll-margin-top: 40px;
}

.bi-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--panel-border);
}

.bi-panel-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Widgets */
.widget-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
}

.widget {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Vertical Bar Chart */
.bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding: 0.5rem 0.5rem 0 0.5rem;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.bar-track {
  width: 16px;
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--gradient-cyan);
  border-radius: 99px;
  height: 0%;
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.bar-val {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Live Speed Graph */
.graph-container {
  height: 120px;
  position: relative;
  width: 100%;
}

canvas {
  width: 100%;
  height: 100%;
}

/* Patient Data Scans Grid */
.scan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.scan-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.scan-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.02);
}

.scan-card.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.scan-thumb {
  width: 100%;
  aspect-ratio: 1.2;
  background: #030508;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.anatomy-img, .scan-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  z-index: 2;
}

/* 1. Unactivated (Default) - Raw Anatomy */
.scan-card .anatomy-img {
  opacity: 0.8;
  filter: grayscale(30%) brightness(0.85); /* Slightly muted biological look */
}
.scan-card .scan-img {
  opacity: 0;
}

/* 2. Scanning - Tech overlay on anatomy */
.scan-card.scanning .anatomy-img {
  opacity: 0.7;
  filter: grayscale(80%) sepia(80%) hue-rotate(150deg) brightness(0.6) contrast(1.5); /* Semi-transparent dark blue/green */
}
.scan-card.scanning .scan-img {
  opacity: 0;
}

/* 3. Completed - Full MRI/CT scan */
.scan-card.active:not(.scanning) .anatomy-img {
  opacity: 0;
}
.scan-card.active:not(.scanning) .scan-img {
  opacity: 1;
  filter: grayscale(0%) contrast(1.1); /* Instantly bright MRI scan */
}

.scan-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.scan-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.scan-status {
  font-size: 0.7rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.scan-status::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent-emerald);
  border-radius: 50%;
}

.scan-status.loading {
  color: var(--accent-cyan);
}

.scan-status.loading::before {
  background: var(--accent-cyan);
  animation: pulseGlow 1s ease infinite;
}

.scan-card-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  opacity: 0;
}

.scan-card.scanning .scan-card-line {
  opacity: 1;
  animation: scanLineSmall 1.5s linear infinite;
}

@keyframes scanLineSmall {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* Status Indicator Footer */
.status-indicator-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.status-blink {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
}

.status-right {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Close BI Panel Button */
.close-panel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-panel-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

/* Tab 2: Technology View */
.tech-container {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tech-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.tech-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: var(--shadow-glow);
}

.tech-card:hover::after {
  background: var(--gradient-cyan);
}

.tech-card.highlight {
  border-color: var(--panel-border-glow);
  box-shadow: var(--shadow-glow);
}

.tech-card.highlight::after {
  background: var(--gradient-cyan);
}

.tech-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  border: 1px solid var(--panel-border);
}

.tech-card h3 {
  font-size: 1.3rem;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tab 3: Company View */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 8vh;
  padding-bottom: 8vh;
  gap: 2.5rem;
}

.about-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  backdrop-filter: blur(25px);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.about-license {
  border-left: 1px solid var(--panel-border);
  padding-left: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.license-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.license-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.license-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Tab 4: Contact View */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 10vh;
  padding-bottom: 15vh;
  gap: 2.5rem;
}

.contact-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(25px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  color: #fff;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  color: #fff;
  outline: none;
  resize: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive adjust */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .solutions-right {
    display: none;
  }
  .widget-row {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .about-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-license {
    border-left: none;
    border-top: 1px solid var(--panel-border);
    padding-left: 0;
    padding-top: 2rem;
  }
}
