/* CSS Variables - Medical Theme */
:root {
  /* VitalCells Color Palette (mapped to medical vars) */
  --medical-white: #FFFFFF;
  --medical-light: #f3f3f4;
  --medical-blue-50: #e3f2fb;   /* softer light blue */
  --medical-blue-100: #c6cee0;  /* soft bluish gray */
  --medical-blue-200: #ab9dc5;  /* muted violet */
  --medical-blue-300: #8c74af;  /* lavender purple */
  --medical-blue-400: #7866e2;  /* brand light blue */
  --medical-blue-500: #5b3392;  /* deep purple */

  --medical-teal-50: #f3f3f4;   /* use background gray */
  --medical-teal-100: #c6cee0;
  --medical-teal-200: #ab9dc5;
  --medical-teal-300: #8c74af;
  --medical-teal-400: #8966e2;
  --medical-teal-500: #5b3392;
  --medical-teal-600: #412260;

  --medical-turquoise: #8d66e2;
  --medical-cyan: #8c74af;
  --medical-neon-cyan: #b266e2;
  --medical-neon-green: #ab9dc5;

  --medical-gradient: linear-gradient(
    135deg,
    var(--medical-blue-50) 0%,
    var(--medical-blue-300) 50%,
    var(--medical-white) 100%
  );
  --medical-gradient-accent: linear-gradient(
    135deg,
    var(--medical-blue-500) 0%,
    var(--medical-blue-400) 100%
  );

  /* Text Colors */
  --text-primary: #5b3392;   /* deep purple */
  --text-secondary: #2D3748; /* keep neutral gray */
  --text-muted: #718096;
  --text-light: #A0AEC0;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-backdrop: blur(12px);

  /* Shadows with brand tones */
  --shadow-soft: 0 4px 20px rgba(91, 51, 146, 0.1);
  --shadow-medium: 0 8px 32px rgba(102, 180, 226, 0.15);
  --shadow-strong: 0 16px 64px rgba(91, 51, 146, 0.2);
  --shadow-neon: 0 0 20px rgba(102, 180, 226, 0.3);
}


/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--medical-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.medical-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(79, 209, 197, 0.1);
}

.medical-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--medical-teal-500);
  text-shadow: 0 0 10px rgba(79, 209, 197, 0.3);
}

.logo-pulse {
  position: absolute;
  top: -5px;
  right: -10px;
  width: 8px;
  height: 8px;
  background: var(--medical-neon-cyan);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 5px var(--medical-neon-cyan);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--medical-neon-cyan);
  }
}

/* Enhanced Language Selector */
.language-selector {
  position: relative;
}

.custom-select {
  position: relative;
  min-width: 140px;
}

.select-button {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-backdrop);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.select-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 209, 197, 0.1), transparent);
  transition: left 0.6s ease;
}

.select-button:hover::before {
  left: 100%;
}

.select-button:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--medical-teal-300);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 209, 197, 0.15);
}

.flag-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.chevron.open {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.select-option {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(79, 209, 197, 0.1);
  position: relative;
  overflow: hidden;
}

.select-option:last-child {
  border-bottom: none;
}

.select-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 209, 197, 0.1), transparent);
  transition: left 0.4s ease;
}

.select-option:hover::before {
  left: 100%;
}

.select-option:hover {
  background: rgba(79, 209, 197, 0.08);
  color: var(--medical-teal-600);
}

.select-option.selected {
  background: rgba(79, 209, 197, 0.15);
  color: var(--medical-teal-600);
  font-weight: 500;
}

/* Landing Page Layout */
.landing-page {
  position: relative;
  min-height: 100vh;
  background: var(--medical-gradient);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  background: var(--medical-gradient);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
}

.hero-text {
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-highlight {
  background: var(--medical-gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Button Styles */
.cta-primary, .cta-button {
  background: var(--medical-gradient-accent);
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-primary::before, .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.cta-primary:hover::before, .cta-button:hover::before {
  left: 100%;
}

.cta-primary:hover, .cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-strong), 0 0 30px rgba(79, 209, 197, 0.4);
  filter: brightness(1.1);
}

.cta-primary:active, .cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--medical-teal-300);
  color: var(--medical-teal-500);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-backdrop);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 209, 197, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-secondary:hover::before {
  left: 100%;
}

.cta-secondary:hover {
  background: var(--medical-teal-50);
  transform: translateY(-3px) scale(1.02);
  border-color: var(--medical-teal-400);
  color: var(--medical-teal-600);
  box-shadow: 0 8px 25px rgba(79, 209, 197, 0.25);
}

.cta-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}

.hero-cell-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.hero-cell {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--medical-teal-200), var(--medical-blue-400));
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-neon);
}

.main-cell {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}

.sub-cell-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  right: 10%;
  animation-delay: -2s;
}

.sub-cell-2 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 15%;
  animation-delay: -4s;
}

.sub-cell-3 {
  width: 40px;
  height: 40px;
  top: 30%;
  left: 5%;
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(120deg); }
  66% { transform: translate(-15px, 15px) rotate(240deg); }
}

/* Section Styles */
section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  background: var(--medical-teal-100);
  color: var(--medical-teal-600);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Section */
.about-section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Animated Cards with Moving Light */
.animated-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: var(--glass-backdrop);
  transition: all 0.3s ease;
  overflow: hidden;
}

.animated-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(79, 209, 197, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.animated-card:hover::before {
  opacity: 1;
}

.animated-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--medical-teal-400),
    transparent,
    var(--medical-blue-400),
    transparent,
    var(--medical-turquoise),
    transparent
  );
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animated-card:hover::after {
  opacity: 0.6;
}

.animated-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--medical-teal-300);
}

.card-glow-effect {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--medical-teal-400), var(--medical-blue-400), var(--medical-teal-400));
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotate 3s linear infinite;
}

.animated-card:hover .card-glow-effect {
  opacity: 0.3;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.about-card {
  padding: 2rem;
}

.card-content, .feature-content {
  position: relative;
  z-index: 1;
}

.card-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.benefits-list svg {
  color: var(--medical-teal-500);
  margin-right: 0.5rem;
}

.image-card {
  padding: 0;
  min-height: 300px;
}

.card-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--medical-gradient);
  border-radius: 16px;
  position: relative;
}

.medical-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 1rem;
  border-radius: 0 0 16px 16px;
}

.image-text {
  font-weight: 600;
  font-size: 0.875rem;
}

.animated-card:hover .medical-image {
  transform: scale(1.05);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--medical-gradient-accent);
  border-radius: 50%;
  color: white;
  box-shadow: var(--shadow-medium);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Science Section */
.science-section {
  background: var(--medical-blue-50);
  position: relative;
  overflow: hidden;
}

.science-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 209, 197, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

.science-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.science-card-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.science-visual {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.science-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.science-card:hover .science-image {
  transform: scale(1.05);
}

.dna-helix {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.helix-strand {
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--medical-gradient-accent);
  border-radius: 2px;
  animation: dna-rotate 4s ease-in-out infinite;
  transform-origin: center;
}

.strand-1 {
  top: 30%;
  animation-delay: 0s;
}

.strand-2 {
  top: 70%;
  animation-delay: 2s;
}

@keyframes dna-rotate {
  0%, 100% { transform: rotateY(0deg) translateZ(20px); }
  50% { transform: rotateY(180deg) translateZ(-20px); }
}

.science-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.science-info p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.science-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--medical-teal-500);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  background: var(--medical-gradient);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--medical-teal-300);
  margin-bottom: 0.5rem;
  display: block;
}

.footer-tagline {
  color: #A0AEC0;
  font-size: 0.875rem;
}

.footer-contact {
  text-align: center;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  gap: 0.5rem;
}

.footer-email:hover {
  color: var(--medical-teal-300);
}

.footer-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.lang-button {
  background: none;
  border: 1px solid #4A5568;
  color: #A0AEC0;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-button:hover,
.lang-button.active {
  border-color: var(--medical-teal-300);
  color: var(--medical-teal-300);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4A5568;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #A0AEC0;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #A0AEC0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--medical-teal-300);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.whatsapp-button:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-button:active {
  transform: scale(1.05) rotate(-2deg);
}

@keyframes pulse {
  0% { 
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); 
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.1); 
    transform: scale(1.05);
  }
  100% { 
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); 
    transform: scale(1);
  }
}

/* Floating Cells Canvas */
.floating-cells-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 3D Elements Enhancements */
.three-d-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.logo-img{
  height: 60px; /* adjust size as needed */
  width: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .science-card-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .science-stats {
    justify-content: center;
  }
  
  .three-d-elements {
    opacity: 0.5;
  }
}