/* ============================================================
   SanteAfrique Website - Main Styles
   ============================================================ */

:root {
  /* Colors */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary: #3b82f6;
  --accent: #8b5cf6;

  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --info: #06b6d4;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --black: #000000;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-hero: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);

  /* Typography */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

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

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

.hidden {
  display: none !important;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

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

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ============================================================
   Navigation
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 12px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.navbar.scrolled .logo {
  color: var(--gray-900);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-600);
}

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

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

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

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

.nav-links .btn {
  padding: 10px 24px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--gray-900);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--gray-700);
    font-size: 1.2rem;
  }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 120px 0 160px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-buttons .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-buttons .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: var(--gray-900);
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

.floating-card span {
  font-weight: 600;
  color: var(--gray-800);
}

.card-1 { top: 10%; left: -30px; animation-delay: 0s; }
.card-2 { top: 50%; right: -40px; animation-delay: 0.5s; }
.card-3 { bottom: 15%; left: -20px; animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 120px;
  fill: var(--white);
}

/* Hero Responsive */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }
}

/* ============================================================
   Section Styles
   ============================================================ */

section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* ============================================================
   Features Section
   ============================================================ */

.features {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-lg);
  font-size: 2rem;
  color: var(--color, var(--primary));
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

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

.steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.step.reverse {
  direction: rtl;
}

.step.reverse > * {
  direction: ltr;
}

.step-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.step-content h3 {
  margin-bottom: 16px;
}

.step-content p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

.step-image {
  position: relative;
}

.step-image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.step-icon i {
  font-size: 4rem;
  color: var(--white);
}

@media (max-width: 768px) {
  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step.reverse {
    direction: ltr;
  }

  .step-number {
    margin: 0 auto;
  }

  .step-image img {
    margin: 0 auto;
  }
}

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

.emergency-demo {
  background: var(--gray-900);
  color: var(--white);
}

.demo-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.emergency-demo .section-badge {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.emergency-demo h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.emergency-demo > .demo-content > p {
  color: var(--gray-400);
  margin-bottom: 40px;
}

.demo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-xl);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.demo-patient {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.patient-info h4 {
  color: var(--gray-900);
  margin-bottom: 4px;
}

.confidence {
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 500;
}

.blood-type {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--danger);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 1.5rem;
  font-weight: 700;
}

.demo-body {
  padding: 24px;
}

.info-section {
  margin-bottom: 24px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-700);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
}

.tag.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.tag.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.med-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.med-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.med-name {
  font-weight: 600;
  color: var(--gray-800);
}

.med-dose {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.emergency-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: var(--success);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
}

.emergency-contact:hover {
  background: var(--primary-dark);
}

/* ============================================================
   Security Section
   ============================================================ */

.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.security-text .section-badge {
  margin-bottom: 16px;
}

.security-text h2 {
  margin-bottom: 16px;
}

.security-text > p {
  color: var(--gray-500);
  margin-bottom: 40px;
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.security-list li {
  display: flex;
  gap: 20px;
}

.security-list li > i {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.security-list h4 {
  margin-bottom: 4px;
}

.security-list p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

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

.shield-animation {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  position: relative;
  animation: pulse-ring 2s ease-out infinite;
}

.shield-animation i {
  font-size: 8rem;
  color: var(--white);
}

.shield-animation::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-ring 2s ease-out infinite;
}

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

@media (max-width: 768px) {
  .security-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .security-list li {
    flex-direction: column;
    align-items: center;
  }

  .security-image {
    order: -1;
  }

  .shield-animation {
    width: 200px;
    height: 200px;
  }

  .shield-animation i {
    font-size: 5rem;
  }
}

/* ============================================================
   Team Section
   ============================================================ */

.team {
  background: var(--gray-50);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.team-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

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

.team-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-200);
}

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

.team-card h4 {
  margin-bottom: 8px;
}

.team-card .role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.team-card .bio {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.school-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 400px;
  margin: 0 auto;
}

.school-badge img {
  height: 80px;
  width: auto;
}

.school-badge p {
  color: var(--gray-600);
  font-weight: 500;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Download Section
   ============================================================ */

.download {
  background: var(--gradient-hero);
  text-align: center;
  color: var(--white);
}

.download h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.download > .container > .download-content > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  color: var(--gray-900);
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.store-btn i {
  font-size: 2rem;
}

.store-btn div {
  text-align: left;
}

.store-btn span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.store-btn strong {
  font-size: 1.1rem;
  display: block;
}

.qr-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-download img {
  width: 150px;
  height: 150px;
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius);
}

.qr-download p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border-radius: 50%;
  color: var(--gray-400);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.credits {
  display: flex;
  align-items: center;
  gap: 6px;
}

.credits i {
  color: var(--danger);
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   Utilities
   ============================================================ */

@media print {
  .navbar,
  .hero-wave,
  .footer,
  .download-cta {
    display: none;
  }
}
