/* CSS Variables - Design System */
:root {
  --primary-color: #1a5c3a;
  --secondary-color: #0f766e;
  --accent-color: #84cc16;
  --light-primary: #e9f5ee;
  --light-secondary: #f0fdfa;
  --white: #ffffff;
  --text-dark: #1f2937;
  --text-medium: #6b7280;
  --error-color: #dc2626;
  --success-color: #059669;
  
  /* Additional utility colors */
  --border-color: #e5e7eb;
  --shadow-light: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-large: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Typography scale */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.25rem;
  --font-5xl: 3rem;
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-base: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border radius */
  --radius-sm: 0.5rem;
  --radius-base: 0.75rem;
  --radius-lg: 1rem;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-base);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-base);
}

h1 {
  font-size: var(--font-4xl);
}

h2 {
  font-size: var(--font-3xl);
}

h3 {
  font-size: var(--font-xl);
}

p {
  margin-bottom: var(--space-base);
  color: var(--text-medium);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-base) var(--space-xl);
  border-radius: var(--radius-base);
  font-weight: 600;
  font-size: var(--font-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
  background-color: #0d6961;
  transform: translateY(-1px);
  box-shadow: var(--shadow-large);
}

.cta-button.primary:active {
  transform: translateY(0);
}

/* Sticky Navigation */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo a {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  font-family: 'Nunito Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.2s ease;
}

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

.nav-cta {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  padding: var(--space-sm) var(--space-base) !important;
  border-radius: var(--radius-base);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: #155231 !important;
  transform: translateY(-1px);
}

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

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1001;
  padding: 8px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Section styling */
section {
  padding: var(--space-2xl) 0;
}

section:first-of-type {
  padding-top: var(--space-4xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-base);
}

.section-subtitle {
  font-size: var(--font-lg);
  color: var(--text-medium);
  font-weight: 400;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #0d9488 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 70px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(15, 118, 110, 0.85), rgba(13, 148, 136, 0.85)),
    url('image_assets/holdinghands.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="100" cy="100" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1000" height="1000" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: var(--font-5xl);
  font-weight: 700;
  margin-bottom: var(--space-base);
  background: linear-gradient(45deg, var(--white), var(--light-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Nunito Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
  font-size: var(--font-2xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--light-secondary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: var(--font-lg);
  margin-bottom: var(--space-2xl);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .cta-button.primary {
  background-color: var(--accent-color);
}

.hero .cta-button.primary:hover {
  background-color: #65a30d;
}

/* Problem Section */
.problem-section {
  background-color: var(--light-primary);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.problem-card {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.problem-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-radius: 50%;
  box-shadow: 
    0 6px 20px rgba(220, 38, 38, 0.2),
    0 3px 10px rgba(220, 38, 38, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid rgba(220, 38, 38, 0.1);
}

.problem-icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), rgba(239, 68, 68, 0.2));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problem-card:hover .problem-icon {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 
    0 10px 30px rgba(220, 38, 38, 0.3),
    0 5px 15px rgba(220, 38, 38, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.problem-card:hover .problem-icon::before {
  opacity: 1;
}

.icon-placeholder {
  font-size: var(--font-2xl);
}

.problem-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-base);
  font-size: var(--font-xl);
}

.problem-card p {
  color: var(--text-medium);
  font-size: var(--font-base);
}

/* Healthcare Settings Section */
.settings-section {
  background-color: var(--light-primary);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.setting-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.setting-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.setting-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cce7e2 0%, #99d5ca 100%);
  border-radius: 50%;
  box-shadow: 
    0 4px 15px rgba(15, 118, 110, 0.25),
    0 2px 8px rgba(15, 118, 110, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid rgba(15, 118, 110, 0.2);
}

.setting-icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.3), rgba(20, 184, 166, 0.2));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.setting-card:hover .setting-icon {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 
    0 8px 25px rgba(15, 118, 110, 0.3),
    0 4px 12px rgba(15, 118, 110, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.setting-card:hover .setting-icon::before {
  opacity: 1;
}

.setting-card h3 {
  color: var(--text-dark);
  font-size: var(--font-lg);
  margin-bottom: 0;
}

/* Solution Section */
.solution-section {
  background-color: var(--light-secondary);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  padding: var(--space-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.solution-stat {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #65a30d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto var(--space-base);
  box-shadow: 
    0 8px 25px rgba(132, 204, 22, 0.3),
    0 4px 12px rgba(132, 204, 22, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.2;
}

.solution-stat::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.4), rgba(101, 163, 13, 0.4));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover .solution-stat {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 12px 35px rgba(132, 204, 22, 0.4),
    0 6px 16px rgba(132, 204, 22, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

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

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

.solution-content h3 {
  font-size: var(--font-xl);
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.solution-content p {
  color: var(--text-medium);
  line-height: 1.6;
}


/* How It Works Section */
.steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: var(--space-xl);
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #65a30d 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
  font-weight: 700;
  margin-right: var(--space-xl);
  flex-shrink: 0;
  box-shadow: 
    0 8px 25px rgba(132, 204, 22, 0.3),
    0 4px 12px rgba(132, 204, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.step-number::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.4), rgba(101, 163, 13, 0.4));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step:hover .step-number {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 12px 35px rgba(132, 204, 22, 0.4),
    0 6px 16px rgba(132, 204, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

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

.step-content h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-size: var(--font-xl);
}

.step-content p {
  color: var(--text-medium);
  margin-bottom: 0;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: var(--border-color);
  margin: 0 29px var(--space-xl);
}

.step:last-child .step-connector {
  display: none;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d9488 100%);
  color: var(--white);
}

.contact-section .section-title {
  color: var(--white);
}

.contact-section .section-subtitle {
  color: var(--white);
  opacity: 0.9;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-large);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-size: var(--font-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-base);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-base);
  font-size: var(--font-base);
  font-family: inherit;
  transition: border-color 0.2s ease;
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-group label {
  margin: 0;
  font-size: var(--font-sm);
  line-height: 1.5;
}

.error-message {
  color: var(--error-color);
  font-size: var(--font-sm);
  margin-top: var(--space-xs);
  display: none;
}

.error-message.show {
  display: block;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error-color);
}

.form-messages {
  margin-top: var(--space-lg);
}

.success-message {
  background: var(--light-secondary);
  color: var(--success-color);
  padding: var(--space-base);
  border-radius: var(--radius-base);
  border: 1px solid var(--success-color);
}

.success-message p {
  margin: 0;
  color: var(--success-color);
}

.form-messages .error-message {
  background: #fef2f2;
  color: var(--error-color);
  padding: var(--space-base);
  border-radius: var(--radius-base);
  border: 1px solid var(--error-color);
  display: none;
}

.form-messages .error-message.show {
  display: block;
}

.form-messages .error-message p {
  margin: 0;
  color: var(--error-color);
}

.button-loading {
  display: none;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-xl);
    box-shadow: var(--shadow-medium);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (min-width: 768px) {
  .nav-container {
    padding: 0 var(--space-xl);
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-3xl);
  }
  
  .section-title {
    font-size: var(--font-4xl);
  }
  
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .settings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .steps-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    width: auto;
    margin-bottom: 0;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: var(--space-lg);
  }
  
  .step-connector {
    width: 100px;
    height: 2px;
    margin: 0;
    position: relative;
    order: -1;
    margin-top: 30px;
  }
  
  .step:first-child .step-connector {
    display: none;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-2xl);
  }
  
  section {
    padding: var(--space-4xl) 0;
  }
  
  .hero-title {
    font-size: 5rem;
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

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