/* ==========================================================================
   Roja Blood Bank - Premium Healthcare Design
   ========================================================================== */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #C62828;
  --primary-light: #EF5350;
  --primary-dark: #B71C1C;
  --primary-soft: #FCE4EC;
  --primary-bg: #FFF5F5;
  --secondary: #1565C0;
  --secondary-light: #42A5F5;
  --secondary-soft: #E3F2FD;
  --success: #2E7D32;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE5B;
  --text-dark: #1B1F2A;
  --text-body: #4A5568;
  --text-light: #718096;
  --text-muted: #A0AEC0;
  --border: #E8ECF1;
  --white: #FFFFFF;
  --off-white: #FAFBFD;
  --gradient-primary: linear-gradient(135deg, #C62828 0%, #E53935 100%);
  --gradient-hero: linear-gradient(160deg, #FFFFFF 0%, #FFEBEE 100%);
  --shadow-sm: 0 2px 8px rgba(66, 32, 32, 0.08);
  --shadow-md: 0 6px 24px rgba(66, 32, 32, 0.12);
  --shadow-lg: 0 16px 48px rgba(66, 32, 32, 0.18);
  --shadow-primary: 0 8px 32px rgba(198, 40, 40, 0.28);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --container: 1200px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', 'Inter', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  z-index: 1000;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.45s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(198, 40, 40, 0.4);
}

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

.btn-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(198, 40, 40, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.42);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.btn-emergency {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.btn-emergency:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

.btn-whatsapp-emergency {
  background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-emergency:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.45);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 30px;
  height: 30px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav-link {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-body);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  padding: 12px 20px;
  font-size: 14px;
}

.nav-btn svg {
  width: 15px;
  height: 15px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--primary-soft);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 105;
  transition: all 0.3s ease;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

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

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 139, 148, 0.12) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(21, 101, 192, 0.07) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: rgba(255, 139, 148, 0.06);
  top: 30%;
  left: 12%;
}

.floating-drops {
  position: absolute;
  inset: 0;
}

.drop {
  position: absolute;
  opacity: 0.8;
  animation: floatDrop 6s ease-in-out infinite;
}

.drop svg {
  width: 48px;
  height: 60px;
}

.drop-1 { top: 18%; right: 18%; animation-delay: 0s; }
.drop-2 { top: 62%; left: 10%; animation-delay: 1.5s; width: 40px; }
.drop-3 { top: 40%; right: 8%; animation-delay: 3s; }

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

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(198, 40, 40, 0.12);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0.08); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.title-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 9px;
  background: rgba(198, 40, 40, 0.12);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-cta .btn svg {
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 540px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-card {
  position: relative;
  width: 340px;
  height: 400px;
  background: var(--gradient-primary);
  border-radius: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 32px 80px rgba(198, 40, 40, 0.35);
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.hero-blood-icon {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 180px;
  animation: heartbeat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.pulse-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: pulseExpand 2.4s ease-out infinite;
}

.pulse-ring-2 {
  width: 280px;
  height: 280px;
  animation-delay: 1.2s;
  background: rgba(255, 255, 255, 0.07);
}

@keyframes pulseExpand {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.05); }
  35% { transform: scale(0.98); }
  45% { transform: scale(1.04); }
  55% { transform: scale(1); }
}

.hero-card-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.card-big-text {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-small-text {
  display: block;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 4px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.scroll-mouse {
  width: 28px;
  height: 46px;
  border: 2.5px solid var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.55;
}

.scroll-wheel {
  width: 4px;
  height: 9px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Section Headers ---------- */
.section-label {
  display: inline-block;
  padding: 8px 18px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-accent {
  color: var(--primary);
}

.text-white {
  color: var(--white);
}

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

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ---------- About Section ---------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(198, 40, 40, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.feature-item span {
  font-size: 13px;
  color: var(--text-light);
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

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

.about-card-main {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
}

.about-card-main:hover {
  box-shadow: var(--shadow-primary);
}

.about-card-secondary {
  margin-top: 48px;
}

.about-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.about-card-icon svg {
  width: 100%;
  height: 100%;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.about-card-main h3 {
  color: var(--white);
}

.about-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-light);
}

.about-card-main p {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Services Section ---------- */
.services {
  background: var(--off-white);
}

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

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(198, 40, 40, 0.15);
}

.service-icon-wrap {
  width: 68px;
  height: 68px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
}

.service-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-accent {
  transform: scaleX(1);
}

/* ---------- Blood Types Section ---------- */
.blood-types {
  background: var(--white);
}

.blood-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blood-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.blood-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.critical-card {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--white) 100%);
}

.blood-type-label {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.blood-type-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.blood-demand {
  margin-bottom: 16px;
}

.demand-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demand-badge.critical {
  background: var(--primary);
  color: var(--white);
}

.demand-badge.high {
  background: #FFE0B2;
  color: #E65100;
}

.demand-badge.moderate {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.blood-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-light);
  margin-top: 4px;
}

.critical-pulse {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: criticalPulse 1.5s ease-in-out infinite;
}

@keyframes criticalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(198, 40, 40, 0); }
}

/* ---------- Emergency Section ---------- */
.emergency {
  background: linear-gradient(135deg, #B71C1C 0%, #C62828 45%, #E53935 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.emergency::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.emergency::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.emergency-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.emergency-icon {
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  animation: emergencyPulse 2s ease-in-out infinite;
}

@keyframes emergencyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

.emergency-text {
  font-size: 19px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 24px 0 36px;
}

.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.emergency-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 500;
  max-width: 520px;
}

.emergency-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  position: relative;
}

.emergency-clock {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  position: relative;
}

.clock-face {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-hand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0% 0%;
  border-radius: 4px;
  background: var(--white);
}

.clock-hour {
  width: 4px;
  height: 58px;
  transform: rotate(210deg) translateY(-8px);
  animation: rotateHour 12s linear infinite;
}

.clock-minute {
  width: 3px;
  height: 78px;
  transform: rotate(120deg) translateY(-12px);
  animation: rotateMinute 60s linear infinite;
}

@keyframes rotateHour {
  from { transform: rotate(210deg) translateY(-8px); }
  to { transform: rotate(570deg) translateY(-8px); }
}

@keyframes rotateMinute {
  from { transform: rotate(120deg) translateY(-12px); }
  to { transform: rotate(480deg) translateY(-12px); }
}

.clock-center {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  z-index: 2;
}

.clock-label {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.emergency-visual-text {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ---------- Location Section ---------- */
.location {
  background: var(--off-white);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(198, 40, 40, 0.15);
}

.location-card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-card-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.location-card-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

.location-card-content a {
  color: var(--primary);
  font-weight: 600;
}

.location-card-content a:hover {
  text-decoration: underline;
}

.location-directions {
  margin-top: 8px;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 500px;
  position: relative;
  border: 1px solid var(--border);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(0.85);
}

.map-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 3s ease-in-out infinite;
}

.map-card-pin {
  width: 40px;
  height: 40px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-overlay-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.4;
}

.map-overlay-card span {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

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

/* ---------- Contact Section ---------- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
}

.contact-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 28px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  flex: 1;
}

.contact-card:hover .contact-card-link {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.contact-card-phone:hover .contact-card-link {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--white) 100%);
  border-color: var(--primary);
}

.contact-card-whatsapp:hover .contact-card-link {
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.1) 0%, var(--white) 100%);
  border-color: var(--whatsapp);
}

.contact-card-email:hover .contact-card-link {
  background: linear-gradient(180deg, var(--secondary-soft) 0%, var(--white) 100%);
  border-color: var(--secondary);
}

.contact-card-location:hover .contact-card-link {
  background: linear-gradient(180deg, #FFF8E1 0%, var(--white) 100%);
  border-color: #F9A825;
}

.contact-card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.contact-card-phone .contact-card-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.contact-card-whatsapp .contact-card-icon {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp-dark);
}

.contact-card-email .contact-card-icon {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.contact-card-location .contact-card-icon {
  background: #FFF8E1;
  color: #F57F17;
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1) rotate(-4deg);
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.contact-card-detail {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  word-break: break-word;
}

.contact-card-action {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.3s ease;
  margin-top: auto;
}

.contact-card:hover .contact-card-action {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--white);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--gradient-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -120%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-content > p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-buttons .btn-whatsapp {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-name {
  color: var(--white);
}

.footer-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

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

.footer-links li a,
.footer-contact li a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact li svg {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.heart {
  color: var(--primary-light);
  display: inline-block;
  animation: heartbeat 1.2s ease-in-out infinite;
}

/* ---------- Floating Action Buttons ---------- */
.fab-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 99;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  position: relative;
}

.fab:hover {
  transform: translateY(-4px) scale(1.05);
}

.fab-call {
  background: var(--gradient-primary);
}

.fab-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
  animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 8px 36px rgba(37, 211, 102, 0.6); }
}

.fab-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--text-dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.fab:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero .animate-on-scroll {
  animation: fadeInUp 0.9s ease forwards;
}

.hero .animate-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.hero .animate-on-scroll:nth-child(2) { animation-delay: 0.25s; }
.hero .animate-on-scroll:nth-child(3) { animation-delay: 0.4s; }
.hero .animate-on-scroll:nth-child(4) { animation-delay: 0.55s; }
.hero .animate-on-scroll:nth-child(5) { animation-delay: 0.7s; }

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

/* ---------- Responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

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

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

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

  .hero-stats {
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

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

  .blood-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .emergency-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .emergency-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .emergency-text,
  .emergency-note {
    margin-left: auto;
    margin-right: auto;
  }

  .emergency-actions {
    justify-content: center;
  }

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

  .location-map {
    min-height: 400px;
  }

  .map-wrapper {
    min-height: 400px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-links,
  .nav-actions {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 85%);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 32px 32px;
    gap: 6px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 104;
  }

  .nav-links.open,
  .nav-links.open ~ .nav-actions,
  .nav-actions.open {
    right: 0;
  }

  .nav-links .nav-link {
    font-size: 17px;
    padding: 14px 18px;
    width: 100%;
  }

  .nav-actions {
    top: auto;
    bottom: 40px;
    height: auto;
    width: min(320px, 85%);
    flex-direction: row;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: none;
    gap: 12px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-container {
    padding: 0 20px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: clamp(38px, 9vw, 52px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px 28px;
    justify-content: center;
    padding: 20px;
  }

  .stat-divider {
    display: none;
  }

  .hero-visual-card {
    width: 280px;
    height: 340px;
  }

  .hero-blood-icon {
    width: 110px;
    height: 140px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-visual {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card-secondary {
    margin-top: 0;
  }

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

  .blood-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    margin-bottom: 48px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .nav-btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .blood-types-grid {
    grid-template-columns: 1fr;
  }

  .emergency-actions {
    flex-direction: column;
    width: 100%;
  }

  .emergency-actions .btn {
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .location-map {
    min-height: 320px;
  }

  .map-wrapper {
    min-height: 320px;
  }

  .map-overlay-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .emergency-clock {
    width: 220px;
    height: 220px;
  }

  .clock-face {
    width: 170px;
    height: 170px;
  }

  .fab-tooltip {
    display: none;
  }

  .stat-number,
  .stat-suffix {
    font-size: 26px;
  }
}