/* =========================================
   SmartHeal Interactive - Enhanced Design System
========================================= */

:root {
  /* Enhanced Color Palette with better contrast */
  --primary-navy: #1e40af;
  --primary-teal: #0891b2;
  --accent-coral: #dc2626;
  --accent-purple: #6366f1;
  --accent-light-blue: #0ea5e9;
  --success-green: #059669;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(0, 180, 216, 0.1) 0%, transparent 70%), 
                   linear-gradient(135deg, var(--primary-navy) 0%, #2563eb 100%);
  --gradient-coral: linear-gradient(135deg, var(--accent-coral) 0%, var(--primary-teal) 100%);
  --gradient-cta: linear-gradient(135deg, #17207B 0%, #2B0876 50%, #C22540 100%);
  --gradient-icon: linear-gradient(135deg, var(--accent-light-blue) 0%, #17207B 100%);
  --gradient-light-blue: linear-gradient(135deg, var(--accent-light-blue) 0%, var(--primary-teal) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-light-blue) 0%, var(--primary-navy) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Animations */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =========================================
   Base Styles
========================================= */

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

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

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

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

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

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

/* =========================================
   Utility Classes
========================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition-normal), transform 0.6s var(--transition-normal);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Header
========================================= */
.logo-image {
  height: 40px; /* adjust as needed */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: var(--font-size-xl);
  color: var(--primary-navy);
  transition: transform var(--transition-fast);
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.logo:hover .logo-icon {
  transform: rotateY(180deg);
}

/* Navigation */
.nav-desktop {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: var(--font-size-base);
  color: var(--gray-700);
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

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

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

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

/* Header Actions */
.header-actions {
  display: none;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--white);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.btn-cta:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px; /* Increased for better touch target */
  height: 44px; /* Increased for better touch target */
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px 6px; /* Better padding for touch */
  border-radius: 8px;
  transition: background-color var(--transition-fast);
  z-index: 1001;
  position: relative;
  /* iOS Safari touch optimization */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background-color: rgba(30, 64, 175, 0.1);
  outline: none;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-navy); /* Better contrast */
  border-radius: 2px;
  transition: all var(--transition-normal);
  opacity: 1;
  position: relative;
  /* Add shadow for better visibility */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 12px 12px;
  z-index: 1000;
}

.nav-mobile.active {
  display: flex;
}

.nav-link-mobile {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
  border-radius: 8px;
  margin: 0 1rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav-link-mobile:hover,
.nav-link-mobile.active {
  color: var(--primary-navy);
  background: rgba(74, 144, 226, 0.1);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 1rem;
}

.mobile-actions .btn-secondary,
.mobile-actions .btn-primary {
  min-height: 48px;
  font-size: var(--font-size-base);
}

/* =========================================
   Hero Section
========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #707adc;
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-text h2 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-text p {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

/* Hero Image */
.hero-image {
  position: relative;
}

.mockup-container {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.hero-mockup {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: var(--shadow-3d);
  transform: perspective(800px) rotateY(-8deg) rotateX(5deg);
  transition: transform var(--transition-slow);
  margin: 0 auto;
}

.hero-mockup:hover {
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg) translateY(-10px);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-800);
  font-weight: 600;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-lg);
  animation: floatCard 6s ease-in-out infinite;
}

  color: var(--accent-light-blue);
  font-size: 1.25rem;
}

.card-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 40%;
  left: 5%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 15%;
  right: 5%;
  animation-delay: 4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* =========================================
   Metrics Section
========================================= */

.metrics-section {
  padding: 6rem 0;
  background: var(--gray-50);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.metrics-section .section-header h2 {
  color: #2E3192;
}

.team-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 3rem;
}section-header p {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

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

.metric-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  transform: perspective(1000px) rotateX(5deg);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-light-blue);
}

.metric-card:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-10px);
  box-shadow: var(--shadow-3d);
}

.metric-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-icon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.metric-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1;
  display: inline-block;
}

.metric-unit {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-coral);
  display: inline-block;
  margin-left: 0.25rem;
}

.metric-description {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-top: 1rem;
  font-weight: 500;
}

/* =========================================
   How It Works Section
========================================= */

.how-it-works {
  padding: 6rem 0;
  background: var(--white);
}

.how-it-works .section-header h2 {
  color: #2E3192;
}

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

.step-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(168, 225, 251, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.step-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-15px);
  box-shadow: var(--shadow-3d);
}

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

.step-number {
  position: absolute;
  top: -10px;
  right: 2rem;
  font-size: 4rem;
  font-weight: 900;
  color: var(--gray-100);
  z-index: 1;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-icon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--white);
  font-size: 2rem;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.step-card:hover .step-icon {
  transform: scale(1.1) rotateY(360deg);
}

.step-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.step-description {
  font-size: var(--font-size-base);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.step-visual {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-element {
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.visual-element::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* =========================================
   Demo Section
========================================= */

.demo-section {
  padding: 6rem 0;
  background: #707adc;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 30s linear infinite;
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.demo-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.demo-text p {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-demo {
  background: var(--white);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  border-radius: 16px;
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.btn-demo:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
}

.demo-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: flex-start;
}

.feature-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: var(--font-size-base);
}

.feature-text i {
  color: var(--success-green);
  font-size: var(--font-size-sm);
}

.demo-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-3d);
 /* transform: perspective(800px) rotateY(8deg) rotateX(-5deg); */
 /* transition: transform var(--transition-slow); */
  max-width: 700px;
  margin: 0 auto;
}


.demo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 0;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;

  /* important fix: don’t block clicks on video */
  pointer-events: none;
}

.demo-visual:hover .demo-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--gradient-coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  transition: transform var(--transition-normal);

  /* allow clicks on the button */
  pointer-events: auto;
}

.play-button:hover {
  transform: scale(1.1);
}


/* =========================================
   Partners Section
========================================= */

.partners-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

.partners-section .section-header h2 {
  color: #2E3192;
}

.partners-carousel {
  overflow: hidden;
  margin-top: 3rem;
}

.partner-track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 4rem;
}

.partner-item {
  flex-shrink: 0;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%) opacity(0.7);
  transition: all var(--transition-normal);
}

.partner-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

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

/* =========================================
   Footer
========================================= */

/* ===== Footer base ===== */
.footer {
  background: linear-gradient(205deg, #1e40af 20%, #707adc 80%);
  color: var(--white);
}

.footer .container {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr; }
}

/* Brand area */
.footer-logo {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gradient-primary);
  font-weight: 800;
}
.logo-text { font-weight: 700; font-size: 1.125rem; }

.footer-brand p {
  color: rgba(255,255,255,0.9);
  margin: 1rem 0 1.5rem;
}

/* Social links */
.social-links {
  display: flex; gap: 1rem; align-items: center;
}
.social-links a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.15);
  color: #fff; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.social-links a:hover { transform: translateY(-2px); background: #DC2626; }
.social-links i { font-size: 1rem; line-height: 1; }

/* ===== Newsletter section ===== */
.footer-newsletter h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-newsletter p {
  color: #fefefe;
  margin-bottom: 1.5rem;
}

/* Pill group */
.newsletter-form {
  display: flex; align-items: stretch; gap: 0;
  max-width: 640px; width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 9999px;
  overflow: hidden;
}

.newsletter-form input {
  flex: 1 1 auto;
  padding: 0.9rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--gray-800);
  font-size: var(--font-size-base);
  min-height: 48px;
}
.newsletter-form input::placeholder { color: var(--gray-500); }

.newsletter-form button {
  flex: 0 0 auto;
  padding: 0 1.1rem;
  min-width: 56px;
  border-left: 1px solid var(--gray-200);
  background: var(--primary-navy);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
}
.newsletter-form button i { font-size: 0.95rem; line-height: 1; }
.newsletter-form button:hover { transform: translateY(-2px); }

/* Focus ring around the whole control */
.newsletter-form:focus-within {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  border-color: var(--primary-navy);
}

/* Messages */
.newsletter-message {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  min-height: 1.2em;
  line-height: 1.2;
}
.newsletter-message.success { color: #22c55e; }
.newsletter-message.error   { color: #ef4444; }

/* Loading/disabled */
.newsletter-form button[disabled],
.newsletter-form button[aria-busy="true"] {
  opacity: 0.7; cursor: not-allowed; transform: none;
}
.newsletter-form button[aria-busy="true"] i { display: none; }
.newsletter-form button[aria-busy="true"]::after {
  content: ""; display: inline-block; width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: rgba(255,255,255,1);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important; width: 0 !important;
  opacity: 0 !important; pointer-events: none !important;
}

/* Screen-reader only helper */
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Stack on small screens */
@media (max-width: 640px) {
  .newsletter-form { flex-direction: column; border-radius: 16px; overflow: visible; }
  .newsletter-form input { border-bottom: 1px solid var(--gray-200); border-radius: 12px 12px 0 0; }
  .newsletter-form button { width: 100%; border-left: 0; border-radius: 0 0 12px 12px; transform: none !important; }
}

/* ===== Full-width footer bottom ===== */
.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.04); /* subtle contrast strip */
}

.footer-bottom-inner.container {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}

.footer-bottom p { color: #fefefe; margin: 0; }

.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  color: #fefefe; text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--accent-color, #ffd700); }

@media (max-width: 700px) {
  .footer-bottom-inner.container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer-links { gap: 1rem; }
}


/* ---- Accessibility helper ---- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- Mobile: stack if needed ---- */
@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
    border-radius: 16px;                /* look nicer when stacked */
    overflow: visible;
  }
  .newsletter-form input {
    border-bottom: 1px solid var(--gray-200);
    border-radius: 12px 12px 0 0;
  }
  .newsletter-form button {
    width: 100%;
    border-left: 0;
    border-radius: 0 0 12px 12px;
    transform: none !important;
  }
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
  color: #fefefe;
  font-size: var(--font-size-sm);
}

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

.footer-links a {
  color: #fefefe;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-navy);
}

/* =========================================
   Responsive Design
========================================= */

/* Force mobile navigation on small screens */
@media (max-width: 1023px) {
  .nav-desktop {
    display: none !important;
  }
  
  .header-actions {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 1001;
  }
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
  
  .demo-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .demo-features {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex !important;
  }
  
  .header-actions {
    display: flex !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================
   Accessibility & Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
}



/* =========================================
   Wound Care Challenge Section
========================================= */

.wound-challenge-section {
  padding: 6rem 0;
  background: var(--white);
  text-align: center;
}

.wound-challenge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.wound-challenge-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.wound-challenge-text {
  font-size: var(--font-size-lg);
  color: var(--gray-700);
  max-width: 700px;
  margin: 0 auto;
}

.wound-challenge-sources {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .wound-challenge-content {
    flex-direction: column;
  }
}




/* =========================================
   About Page Specific Styles
========================================= */

.page-hero {
    background: #707adc;
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--white) 50%, var(--primary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: var(--font-size-lg);
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

.section {
    padding: 6rem 0;
    background: var(--white);
}
.section h2 {
    color: #2E3192;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

.mvv-section {
    padding: 6rem 0;
    background: var(--gray-50);
    text-align: center;
}

.mvv-section h2 {
    color: #2E3192;
}
.mvv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .mvv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mvv-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: left;
    transition: transform var(--transition-normal);
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mvv-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.mvv-card p {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    line-height: 1.7;
}

.section-title {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.section-title h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-navy);
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.card p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.team-section {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--gray-50);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: left;
    transition: transform var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.team-info h4 {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--accent-light-blue);
    margin-bottom: 1rem;
}

.team-info p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.credential {
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
}




.mvv-card.mission {
    border-left: 5px solid var(--primary-navy);
}

.mvv-card.vision {
    border-left: 5px solid var(--accent-coral);
}



/* Team Grid with Slider */
.team-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

.team-grid::-webkit-scrollbar {
    height: 8px;
}

.team-grid::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.team-grid::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 4px;
}

.team-card {
    flex: 0 0 280px;
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    transform: perspective(1000px) rotateY(5deg);
    overflow: hidden;
}

.team-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: var(--shadow-3d);
}

.team-image {
    width: 100%;
    height: 200px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border: none;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    text-align: left;
}

.team-info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--accent-coral);
    margin-bottom: 1rem;
    text-align: left;
}

.team-info p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
}

.team-credentials {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.credential {
    background: var(--gray-100);
    color: var(--primary-navy);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .team-grid {
        gap: 1rem;
    }
    
    .team-card {
        flex: 0 0 260px;
        padding: 0;
    }
    
    .team-info {
        padding: 1.5rem;
    }
}



/* =========================================
   Enhanced Mobile Responsiveness
========================================= */

/* Mobile First Approach - Base styles for mobile */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
  
  /* Header mobile improvements */
  .header-content {
    padding: 0.75rem 0;
    height: auto;
    min-height: 60px;
  }

  .logo-image {
    height: 36px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
  }
  
  .logo {
    font-size: var(--font-size-lg);
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 1001;
  }
  
  /* Hide desktop navigation */
  .nav-desktop {
    display: none !important;
  }
  
  .header-actions {
    display: none !important;
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 100vh;
    padding-top: 60px;
    text-align: center;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }
  
  .hero-text h2 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: var(--font-size-base);
    margin-bottom: 1.5rem;
  }
  
  .btn-cta {
    padding: 1rem 1.5rem;
    font-size: var(--font-size-base);
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin: 0 auto;
    display: flex;
  }
  
  .hero-mockup {
    max-width: 280px;
    margin: 0 auto;
  }
  
  /* Floating cards mobile adjustments */
  .floating-card {
    padding: 0.75rem 1rem;
    font-size: var(--font-size-xs);
  }
  
  .floating-card i {
    font-size: 1rem;
  }
  
  /* Metrics section mobile */
  .metrics-section {
    padding: 4rem 0;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .metric-card {
    padding: 2rem 1.5rem;
  }
  
  .metric-number {
    font-size: 2.5rem;
  }
  
  .metric-unit {
    font-size: 1.5rem;
  }
  
  /* How it works mobile */
  .how-it-works {
    padding: 4rem 0;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .step-card {
    padding: 2rem 1.5rem;
  }
  
  .step-number {
    font-size: 3rem;
    top: -5px;
    right: 1.5rem;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .step-title {
    font-size: var(--font-size-xl);
  }
  
  /* Demo section mobile */
  .demo-section {
    padding: 4rem 0;
  }
  
  .demo-content {
    gap: 2rem;
    text-align: center;
  }
  
  .demo-text h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .btn-demo {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .demo-features {
    justify-content: center;
  }
  
  /* Partners section mobile */
  .partners-section {
    padding: 4rem 0;
  }
  
  .partner-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .partner-item {
    flex: 0 0 auto;
    width: 120px;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    gap: 2rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 1rem;
  }
  
  /* Newsletter form mobile */
  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .newsletter-form input {
    width: 100%;
  }
  
  .newsletter-form button {
    align-self: center;
    width: auto;
    padding: 0.75rem 1.5rem;
  }
}
/* Mobile styles */
@media (max-width: 767px) {
  .header-content {
    position: relative;
  }
  
  .nav-desktop {
    display: none !important;
  }
  
  .header-actions {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 1001;
  }
  
  .hero {
    padding-top: 70px;
    min-height: 100vh;
  }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  
  .demo-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .hero-content {
    gap: 5rem;
  }
  
  .demo-content {
    gap: 5rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-secondary,
  .btn-cta,
  .btn-demo {
    min-height: 44px;
    padding: 0.875rem 1.5rem;
  }
  
  .nav-link-mobile {
    padding: 1.25rem 0;
    font-size: var(--font-size-lg);
  }
  
  .mobile-menu-toggle {
    width: 32px;
    height: 24px;
  }
  
  .social-links a {
    width: 48px;
    height: 48px;
  }
}

/* Landscape phone orientation */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .metrics-section,
  .how-it-works,
  .demo-section {
    padding: 3rem 0;
  }
}


  --gradient-icon: linear-gradient(135deg, var(--accent-light-blue) 0%, #17207B 100%);



/* =========================================
   Enhanced Interactive Features
========================================= */

/* Core Values Section Enhancements */
.grid-4 .card {
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.grid-4 .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(168, 225, 251, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.grid-4 .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-3d);
}

.grid-4 .card:hover::before {
  opacity: 1;
}

.grid-4 .card img {
  transition: all var(--transition-normal);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.grid-4 .card:hover img {
  transform: scale(1.1) rotateY(360deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Team Section Enhancements */
.team-card {
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(135, 206, 235, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

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

.team-photo {
  transition: all var(--transition-normal);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.team-card:hover .team-photo {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Interactive Buttons */
.btn-primary,
.btn-secondary,
.btn-cta {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before,
.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-cta:hover::before {
  left: 100%;
}

/* Smooth Scrolling and Page Transitions */
.page-hero {
  background: #707adc;
  color: var(--white);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.page-hero p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Mission, Vision, Values Cards */
.mvv-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--primary-navy);
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(135, 206, 235, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mvv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-left-color: var(--accent-coral);
}

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

.mvv-card h3 {
  color: var(--primary-navy);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.mvv-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Grid Layouts */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

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

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.team-image {
  margin-bottom: 1.5rem;
}

.team-info h3 {
  color: var(--primary-navy);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-info h4 {
  color: var(--accent-coral);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-info p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-credentials {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.credential {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .mvv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .page-hero {
    padding: 6rem 0 3rem;
  }
  
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

/* Loading Animation for Images */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-4 .card img {
  animation: fadeInUp 0.6s ease-out;
}

/* Pulse Animation for Interactive Elements */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.grid-4 .card:hover img {
  animation: pulse 2s infinite;
}



/* =========================================
   Product Tabs Section (Cleaned)
========================================= */

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    background: var(--gray-100);
    color: var(--primary-navy);
    border: 1px solid var(--gray-300);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: var(--font-size-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background: var(--primary-light-blue);
    color: var(--white);
    border-color: var(--primary-light-blue);
}

.tab-button.active {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
    box-shadow: var(--shadow-md);
}

.tab-button.active .fas {
    color: var(--accent-green);
}

.tab-button .fas {
    font-size: 1.2em;
    color: var(--primary-navy);
    transition: color 0.3s ease;
}

.tab-content {
    display: none;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.product-feature {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .product-feature {
        flex-direction: row;
    }
    .product-feature:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.feature-content p {
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    font-size: var(--font-size-md);
    color: var(--gray-600);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.8rem;
}

.feature-list li::before {
    content: '\f00c'; /* Font Awesome check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-green);
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image .screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
}

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


/* Product Benefits Section */
.product-benefits {
    padding: 6rem 0;
    background: var(--gray-50);
}

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

.benefit-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: var(--font-size-xl);
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: var(--font-size-md);
    color: var(--gray-600);
}

/* Integration Section */
.integration-grid {
    display: flex;
    flex-wrap: nowrap; /* Ensure items stay in one row */
    overflow-x: auto; /* Enable horizontal scrolling */
    gap: 2rem;
    padding-bottom: 1rem; /* Space for scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.integration-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.integration-grid .card {
    flex: 0 0 280px; /* Fixed width for cards */
    border-radius: 20px; /* Rounded corners */
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    background: var(--white);
    transition: transform 0.3s ease;
}

.integration-grid .card:hover {
    transform: translateY(-10px);
}

.integration-grid .icon-container {
    font-size: 3rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.integration-grid .card h3 {
    font-size: var(--font-size-xl);
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.integration-grid .card p {
    font-size: var(--font-size-md);
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .integration-grid .card {
        flex: 0 0 250px;
    }
}

@media (max-width: 480px) {
    .integration-grid .card {
        flex: 0 0 220px;
    }
}




/* =========================================
   Technology Page Styles
========================================= */

/* Page Hero Section */
.page-hero {
  background: #707adc;
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tech Section Base */
.tech-section {
  padding: 80px 0;
  position: relative;
}

.tech-section:nth-child(even) {
  background: #f8fafc;
}

.tech-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
  text-align: center;
  margin-bottom: 3rem;
}

/* AI Pipeline Section */
.ai-pipeline .pipeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.pipeline-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 2rem;
}

.pipeline-features {
  display: grid;
  gap: 1.5rem;
}

.feature-item {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #3b82f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.pipeline-diagram {
  position: relative;
}

.tech-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.tech-image:hover {
  transform: scale(1.02);
}

/* Computer Vision Workflow */
.cv-flow {
  background: white;
}

.cv-flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.cv-step {
  text-align: center;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.cv-step:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cv-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.cv-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1rem;
}

.cv-step p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cv-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-tag {
  background: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.cv-arrow {
  font-size: 2rem;
  color: #3b82f6;
  font-weight: bold;
}

/* Platform Architecture */
.architecture-layer {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.architecture-layer:hover {
  transform: translateY(-4px);
}

.architecture-layer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.architecture-layer p {
  opacity: 0.9;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.code-snippet {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-line;
  margin-top: 1rem;
}

/* Security & Compliance Section */
.security-compliance {
  background: #f8fafc;
}

.security-content {
  text-align: center;
}

.section-description {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.center {
  text-align: center;
}

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

.security-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.security-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.security-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1rem;
}

.security-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 60px;
  }
  
  .page-hero h1 {
    font-size: 2.5rem;
  }
  
  .tech-section {
    padding: 60px 0;
  }
  
  .tech-section h2 {
    font-size: 2rem;
  }
  
  .ai-pipeline .pipeline-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cv-flow-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cv-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 80px 0 40px;
  }
  
  .tech-section {
    padding: 40px 0;
  }
  
  .cv-step,
  .security-card,
  .architecture-layer {
    padding: 1.5rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .pipeline-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cv-flow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cv-arrow {
        display: none;
    }
    
    .tech-section {
        padding: 3rem 0;
    }
    
    .tech-section h2 {
        font-size: 2rem;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}



/* Interactive Cursor - Subtle version */
.interactive-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: rgba(30, 64, 175, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.interactive-cursor.active {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1.3);
  background: rgba(30, 64, 175, 0.5);
}

/* ===== SmartHeal Popup (Modal) ===== */
.sh-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6); /* dim backdrop */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.25rem;
}
.sh-modal.is-open { display: flex; }

.sh-modal__dialog {
  width: min(900px, 100%);
  height: min(85vh, 900px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.sh-modal.is-open .sh-modal__dialog {
  transform: translateY(0);
  opacity: 1;
}

.sh-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  z-index: 2;
}

#smartheal-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f9fc; /* matches the email bg */
}

/* optional: prevent body scroll when modal is open */
body.sh-no-scroll { overflow: hidden; }

/* === Mobile/UI Fixes — 2025-08-22 === */

/* 1) Ensure hamburger menu is visible on mobile and high-contrast */
@media (max-width: 767px){
  .mobile-menu-toggle{display:flex;}
}
.mobile-menu-toggle span{
  background: var(--gray-900) !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

/* 2) Partners carousel: keep single row on small screens, hide duplicate clones */
@media (max-width: 1000px){
  .partners-carousel{ overflow-x: auto; }
  .partner-track{
    flex-wrap: nowrap !important;
    animation: none !important;
  }
  .partner-track .partner-item{
    flex: 0 0 auto;
  }
  /* Hide the duplicated items (items 7 and beyond) on mobile */
  .partner-track .partner-item:nth-child(n+7){
    display: none;
  }
}

/* 3) Footer newsletter: keep input and arrow button on one line on mobile */
@media (max-width: 640px){
  .newsletter-form{
    flex-direction: row !important;
    gap: 0;
    border-radius: 999px;
  }
  .newsletter-form input{
    border-radius: 999px 0 0 999px !important;
    border-bottom: none !important;
  }
  .newsletter-form button{
    width: auto !important;
    border-left: 0;
    border-radius: 0 999px 999px 0 !important;
  }
}

/* === IMPROVED MOBILE MENU TOGGLE FOR ALL DEVICES INCLUDING IPHONES === */
/* Show mobile menu toggle on tablets and phones */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none !important;
  }
  
  .header-actions {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 1100;
  }
}

/* Enhanced mobile menu toggle visibility and contrast */
.mobile-menu-toggle span {
  background-color: var(--primary-navy) !important;
  opacity: 1 !important;
  /* Enhanced shadow for better visibility on all backgrounds */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

/* iOS-specific touch improvements */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    /* Ensure minimum touch target size for iOS */
    min-width: 44px;
    min-height: 44px;
    /* Prevent iOS zoom on double tap */
    touch-action: manipulation;
    /* Better tap response on iOS */
    -webkit-tap-highlight-color: rgba(30, 64, 175, 0.2);
  }
  
  .nav-mobile {
    /* Improve mobile menu appearance on iOS */
    -webkit-overflow-scrolling: touch;
    /* Prevent iOS bounce scroll */
    overscroll-behavior: contain;
  }
  
  .nav-link-mobile {
    /* Better touch targets for mobile links */
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(30, 64, 175, 0.1);
  }
}

/* === Partners: bulletproof mobile row (single-line, scrollable) === */
@media (max-width: 768px) {
  /* 1) Enable horizontal scroll on the carousel */
  .partners-carousel {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  /* 2) Force a single row (no wrap), stop desktop animation, add edge padding */
  .partner-track {
    display: flex !important;
    flex-wrap: nowrap !important;        /* keep one line */
    gap: 0.75rem !important;             /* tighter spacing */
    animation: none !important;          /* no auto scroll on mobile */
    padding: 0.5rem 0.75rem !important;  /* room so first/last are fully visible */
    min-width: max-content;              /* allow full horizontal length */
  }

  /* 3) Give each logo a fixed box so none disappears/squeezes */
  .partner-item {
    flex: 0 0 140px !important;          /* each item is 140px wide */
    height: 72px !important;             /* consistent height box */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    scroll-snap-align: center;
  }

  /* 4) Make the actual logos comfortably large but contained */
  .partner-item img {
    max-height: 48px !important;         /* visible, consistent size */
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%) opacity(.9);
    transform: none !important;
  }

  /* 5) Do NOT hide any items on mobile (ensures Melbourne is visible) */
  .partner-track .partner-item:nth-child(n+7) {
    display: flex !important;
  }
}

/* Optional: slightly bigger logos on larger phones */
@media (min-width: 401px) and (max-width: 768px) {
  .partner-item { flex-basis: 160px !important; }
  .partner-item img { max-height: 52px !important; max-width: 130px !important; }
}

/* ===== About Page: Single-row, horizontally scrollable teams ===== */
/* Scope to the About page root if you have one (optional but cleaner) */
.about-page .team-grid,
.about-page .advisory-grid,
.team-section .team-grid,
.advisory-section .team-grid {
  display: flex !important;
  flex-wrap: nowrap !important;         /* keep to one row */
  overflow-x: auto !important;          /* enable horizontal scroll */
  overflow-y: hidden !important;
  gap: 1.25rem !important;
  padding-bottom: 0.75rem;              /* room for scrollbar */
  scroll-snap-type: x mandatory;        /* nice snap on swipe/scroll */
  -webkit-overflow-scrolling: touch;    /* smooth on iOS */
  min-width: 100%;
}

/* Cards: fixed-ish width so many can sit in the row */
.about-page .team-card,
.about-page .advisory-card,
.team-section .team-card,
.advisory-section .team-card {
  flex: 0 0 clamp(240px, 26vw, 320px) !important;  /* responsive width */
  scroll-snap-align: start;                         /* snap per card */
}

/* Images: keep aspect tidy in the horizontal strip */
.about-page .team-image,
.team-section .team-image {
  height: 200px !important;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

/* Optional: subtler scrollbar without hiding accessibility */
.about-page .team-grid::-webkit-scrollbar,
.about-page .advisory-grid::-webkit-scrollbar,
.team-section .team-grid::-webkit-scrollbar,
.advisory-section .team-grid::-webkit-scrollbar {
  height: 8px;
}
.about-page .team-grid::-webkit-scrollbar-thumb,
.about-page .advisory-grid::-webkit-scrollbar-thumb,
.team-section .team-grid::-webkit-scrollbar-thumb,
.advisory-section .team-grid::-webkit-scrollbar-thumb {
  background: rgba(30,64,175,.35);
  border-radius: 8px;
}

/* === Team & Advisory: full-width rounded rectangle images === */
.about-page .team-image,
.about-page .advisory-image,
.team-section .team-image,
.advisory-section .team-image {
  width: 100% !important;               /* span entire card width */
  height: 220px !important;             /* fixed height, adjust as needed */
  margin: 0 0 1rem 0;
  border-radius: 12px !important;       /* rounded rectangle */
  overflow: hidden;
}

.about-page .team-image img,
.about-page .advisory-image img,
.team-section .team-image img,
.advisory-section .team-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;                     /* crop to fill nicely */
  border-radius: 12px !important;        /* match container */
  display: block;
}
/* Body state when mobile menu is open */
body.menu-open {
  overflow: hidden; /* Prevent background scrolling on mobile */
}

/* Additional iPhone-specific fixes */
@media screen and (max-width: 1024px) {
  /* Fix for iPhone Safari address bar height issues */
  .hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
  }
  
  /* Improve button tap targets on mobile */
  .btn-primary,
  .btn-secondary,
  .btn-cta {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(30, 64, 175, 0.2);
  }
  
  /* Fix for iOS input zoom */
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* iPhone X and newer safe area support */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
  
  .container {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

