:root {
  color-scheme: dark light;
  font-family: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --bg: #060a10;
  --bg-alt: radial-gradient(circle at 20% -10%, rgba(88, 241, 255, 0.15), transparent 45%),
            radial-gradient(circle at 80% 10%, rgba(255, 111, 164, 0.12), transparent 50%),
            #060a10;
  --bg-card: rgba(12, 16, 24, 0.85);
  --fg: #f5fbff;
  --muted: rgba(245, 251, 255, 0.7);
  --primary: #ff6fa4;
  --secondary: #58f1ff;
  --success: #45ffb2;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  background-image: var(--bg-alt);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

body.subpage {
  background: var(--bg);
}

/* Custom Medical Cursor */
.medical-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(88, 241, 255, 0.8) 0%, rgba(88, 241, 255, 0.3) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.medical-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursorPulse 2s infinite;
}

@keyframes cursorPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.7;
  }
}

/* Hover states for interactive elements - handled by JavaScript */

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 10vw, 6rem);
  position: relative;
}

.section-header {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 4rem);
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 20px 45px rgba(88, 241, 255, 0.25);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 25px 65px rgba(88, 241, 255, 0.35);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--fg);
}

.btn.ghost:hover,
.btn.ghost:focus {
  background: rgba(255, 255, 255, 0.07);
}

.section-cta {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  display: block;
  width: fit-content;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #060a10;
  display: grid;
  place-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

#preloader.preloader--hide {
  opacity: 0;
  pointer-events: none;
}

.preloader-heartbeat {
  width: 160px;
  height: 80px;
  position: relative;
  background: none;
}

.heartbeat-monitor {
  position: relative;
  width: 100%;
  height: 100%;
}

.ecg-preloader {
  width: 100%;
  height: 60px;
  position: absolute;
  top: 10px;
}

#ecg-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawECG 2s ease-in-out infinite;
}

.heart-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  animation: heartPulse 1s ease-in-out infinite;
  box-shadow: 0 0 20px var(--primary);
}

@keyframes drawECG {
  0% {
    stroke-dashoffset: 300;
  }
  70% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -300;
  }
}

@keyframes heartPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.7;
  }
}

.preloader-logo {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.preloader-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  animation: logoZoom 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(88, 241, 255, 0.3);
}

@keyframes logoZoom {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(88, 241, 255, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(88, 241, 255, 0.6);
  }
}

.preloader-text {
  margin-top: 1.2rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Header */
.site-header {
  position: relative;
  min-height: 100vh;
  padding: 2rem clamp(1.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.2), rgba(6, 10, 16, 0.92));
  z-index: 1;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(88, 241, 255, 0.25), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(255, 111, 164, 0.18), transparent 65%);
  z-index: 1;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.4) brightness(0.6);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  animation: kenBurns 8s ease-out forwards;
}

.hero-slide.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translateX(0) translateY(0);
  }
  100% {
    transform: scale(1.05) translateX(-1%) translateY(-1%);
  }
}

.hero-slide:nth-child(even).active {
  animation: kenBurnsReverse 8s ease-out forwards;
}

@keyframes kenBurnsReverse {
  0% {
    transform: scale(1.05) translateX(1%) translateY(1%);
  }
  100% {
    transform: scale(1) translateX(0) translateY(0);
  }
}

.hero-slider-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
}

.slider-nav {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.slider-nav:hover {
  background: rgba(88, 241, 255, 0.2);
  border-color: var(--secondary);
  transform: scale(1.1);
}

.slider-indicators {
  display: flex;
  gap: 0.5rem;
}

.slider-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-indicator.active {
  background: var(--secondary);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(88, 241, 255, 0.5);
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(88, 241, 255, 0.03) 50%,
    transparent 70%
  );
  z-index: 1;
  animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: translateX(100vw) translateY(100vh) rotate(45deg);
    opacity: 1;
  }
}

.slider-nav:active {
  transform: scale(0.95);
}

.hero-slider-controls:hover .slider-nav {
  background: rgba(255, 255, 255, 0.15);
}

.hero-slider-controls:hover .slider-indicator {
  background: rgba(255, 255, 255, 0.5);
}

.main-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.4rem;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-size: 1.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}

.nav-ecg {
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg, 
    rgba(6, 10, 16, 0.9) 0%, 
    rgba(12, 16, 24, 0.7) 50%, 
    rgba(6, 10, 16, 0.9) 100%);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(88, 241, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.nav-ecg-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

#nav-ecg-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawECGLine 6s ease-in-out infinite;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(90deg, rgba(88, 241, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(88, 241, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 10px;
  opacity: 0.3;
  z-index: 1;
}

@keyframes drawECGLine {
  0% {
    stroke-dashoffset: 400;
    opacity: 0.8;
  }
  20% {
    stroke-dashoffset: 200;
    opacity: 1;
  }
  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -400;
    opacity: 0.8;
  }
}

/* Heartbeat pulse effect on navigation hover */
.nav-links a:hover ~ .nav-ecg #nav-ecg-path {
  animation: heartbeatECG 0.8s ease-in-out;
}

@keyframes heartbeatECG {
  0%, 100% {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 3px rgba(88, 241, 255, 0.8));
  }
  20%, 40% {
    stroke-width: 4;
    filter: drop-shadow(0 0 8px rgba(255, 111, 164, 1));
  }
  30% {
    stroke-width: 3;
    filter: drop-shadow(0 0 6px rgba(69, 255, 178, 0.9));
  }
}

.ecg-beep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #ff6fa4;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.ecg-beep.active {
  animation: beepFlash 0.3s ease-out;
}

@keyframes beepFlash {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

.ecg-monitor-info {
  position: absolute;
  top: 5px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--secondary);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(88, 241, 255, 0.3);
}

.monitor-label {
  color: rgba(255, 255, 255, 0.6);
}

.monitor-value {
  font-weight: bold;
  color: var(--secondary);
  min-width: 20px;
  text-align: center;
}

.monitor-unit {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.ecg-progress {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  box-shadow: 0 0 16px rgba(88, 241, 255, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-top: clamp(6rem, 16vh, 12rem);
}

.hero-eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--secondary);
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  margin: 1rem 0 1.5rem;
  line-height: 1.1;
  position: relative;
}

.heartbeat-text {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
  margin-right: 0.5rem;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14%, 28% {
    transform: scale(1.3);
  }
  21% {
    transform: scale(1.1);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 520px;
}

.vital-signs {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.vital-sign {
  min-width: 160px;
  flex: 1;
}

.vital-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.vital-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.vital-value small {
  font-size: 1rem;
  opacity: 0.8;
}

.vital-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.vital-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--success));
  border-radius: 2px;
  animation: fillVital 2s ease-out;
}

.vital-fill.emergency {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

@keyframes fillVital {
  0% {
    width: 0 !important;
  }
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn.primary {
  position: relative;
  overflow: hidden;
}

.btn-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: inherit;
  transform: translate(-50%, -50%) scale(0);
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 2rem;
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(12, 16, 24, 0.75);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px var(--success);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scroll-down {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
}

.scroll-down svg {
  width: 28px;
  height: 28px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 2.2;
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* About section */
.about-section {
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.85), rgba(6, 10, 16, 0.6));
}

/* AI Assistant Section */
.ai-assistant-section {
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.9), rgba(12, 16, 24, 0.8));
  position: relative;
  overflow: hidden;
}

.ai-assistant-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), var(--primary), var(--secondary), transparent);
  animation: aiSectionGlow 3s ease-in-out infinite;
}

@keyframes aiSectionGlow {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-100%);
  }
  50% {
    opacity: 1;
    transform: translateX(100%);
  }
}

.ai-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ai-features {
  display: grid;
  gap: 1.5rem;
}

.ai-feature-card {
  background: rgba(12, 16, 24, 0.7);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(88, 241, 255, 0.2);
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.ai-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(88, 241, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.ai-feature-card:hover::before {
  left: 100%;
}

.ai-feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(88, 241, 255, 0.4);
  box-shadow: 0 20px 60px rgba(88, 241, 255, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  color: #022f36;
}

.ai-feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--fg);
  position: relative;
  z-index: 1;
}

.ai-feature-card p {
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.ai-demo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.ai-chat-preview {
  width: 100%;
  max-width: 400px;
  background: rgba(6, 10, 16, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(88, 241, 255, 0.3);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.ai-pulse-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(88, 241, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 2s infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.5s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 1s;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.preview-header {
  background: linear-gradient(135deg, rgba(88, 241, 255, 0.15), rgba(255, 111, 164, 0.1));
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  padding: 0.15rem;
  background: rgba(6, 10, 16, 0.8);
}

.preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.preview-info h4 {
  color: var(--fg);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.preview-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--success);
  font-size: 0.8rem;
}

.status-dot-preview {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

.preview-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 180px;
}

.preview-message {
  display: flex;
  gap: 0.5rem;
  animation: messageSlideIn 0.6s ease-out;
}

.preview-message.user-message {
  flex-direction: row-reverse;
  text-align: right;
}

@keyframes messageSlideIn {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.message-avatar-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--secondary);
  padding: 0.1rem;
  flex-shrink: 0;
}

.message-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.message-bubble {
  max-width: 250px;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.ai-message .message-bubble {
  background: rgba(12, 16, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg);
  border-radius: 12px 12px 12px 4px;
}

.user-message .message-bubble {
  background: linear-gradient(135deg, rgba(88, 241, 255, 0.2), rgba(255, 111, 164, 0.15));
  border: 1px solid rgba(88, 241, 255, 0.3);
  color: var(--fg);
  border-radius: 12px 12px 4px 12px;
}

.ai-cta {
  text-align: center;
  max-width: 400px;
}

.ai-cta h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-cta p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.ai-start-chat-btn {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #022f36;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition);
  margin-bottom: 2rem;
  min-width: 200px;
}

.ai-start-chat-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(88, 241, 255, 0.4);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.chat-icon {
  width: 20px;
  height: 20px;
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  border-radius: inherit;
  animation: btnGlowPulse 3s ease-in-out infinite;
}

@keyframes btnGlowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
  }
}

.ai-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.ai-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.ai-stat .stat-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
}

.ai-stat .stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive AI Section */
@media (max-width: 768px) {
  .ai-showcase {
    grid-template-columns: 1fr;
  }
  
  .ai-demo-container {
    order: -1;
  }
  
  .ai-chat-preview {
    max-width: 100%;
  }
  
  .ai-stats {
    gap: 1rem;
  }
  
  .ai-feature-card {
    padding: 1.5rem;
  }
}

/* New AI Assistant Section Styles */
.ai-assistant-container {
  position: relative;
  z-index: 1;
}

.ai-assistant-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(88, 241, 255, 0.2);
  transition: all 0.3s ease;
}

.ai-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(88, 241, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.ai-feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #022f36;
  flex-shrink: 0;
}

.ai-feature-icon svg {
  width: 24px;
  height: 24px;
}

.ai-feature h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--fg);
  font-weight: 600;
}

.ai-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Demo Chat Preview */
.ai-assistant-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.demo-chat-preview {
  width: 100%;
  max-width: 380px;
  background: rgba(6, 10, 16, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(88, 241, 255, 0.3);
}

.demo-header {
  background: linear-gradient(135deg, rgba(88, 241, 255, 0.2), rgba(255, 111, 164, 0.15));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--fg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(88, 241, 255, 0.5);
}

.demo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-status-dot {
  width: 14px;
  height: 14px;
  background: var(--success);
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
  border: 2px solid var(--bg);
  animation: pulse 2s infinite;
}

.demo-info h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

.demo-info span {
  font-size: 0.9rem;
  color: var(--success);
}

.demo-messages {
  padding: 1.5rem;
  min-height: 200px;
}

.demo-message {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.demo-message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.demo-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-message-content {
  background: rgba(88, 241, 255, 0.15);
  padding: 0.8rem 1rem;
  border-radius: 12px 12px 12px 4px;
  color: var(--fg);
  line-height: 1.5;
  position: relative;
  border: 1px solid rgba(88, 241, 255, 0.2);
}

.demo-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.demo-quick-action {
  background: rgba(88, 241, 255, 0.1);
  color: var(--secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(88, 241, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-quick-action:hover {
  background: var(--secondary);
  color: #022f36;
  transform: translateY(-2px);
}

.demo-typing-indicator {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

.demo-typing-dots {
  display: flex;
  gap: 0.2rem;
}

.demo-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
}

.demo-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.demo-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* CTA Container */
.ai-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.btn.ai-chat-start {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #022f36;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 250px;
  justify-content: center;
}

.btn.ai-chat-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(88, 241, 255, 0.4);
}

.btn.ai-chat-start:active,
.btn.ai-chat-start.clicked {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(88, 241, 255, 0.3);
}

.btn.ai-chat-start svg {
  width: 20px;
  height: 20px;
}

.ai-benefits {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.ai-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.benefit-icon {
  font-size: 1.5rem;
}

/* Responsive Design for New AI Section */
@media (max-width: 768px) {
  .ai-assistant-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .ai-features {
    order: 2;
  }
  
  .ai-assistant-demo {
    order: 1;
  }
  
  .demo-chat-preview {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .ai-benefits {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn.ai-chat-start {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ai-feature {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .ai-feature-icon {
    align-self: center;
  }
  
  .demo-messages {
    padding: 1rem;
  }
  
  .demo-header {
    padding: 1rem;
  }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.stat-card {
  background: var(--bg-card);
  padding: 2.2rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.stat-label {
  color: var(--muted);
}

.timeline {
  position: relative;
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

.timeline-track {
  position: absolute;
  inset-inline: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(88, 241, 255, 0.35), transparent);
}

.timeline-item {
  position: relative;
  background: rgba(12, 16, 24, 0.7);
  border-radius: 24px;
  padding: 1.8rem 2.2rem;
  border: 1px solid transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary);
}

.timeline-item--visible {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255, 255, 255, 0.08);
}

.timeline-year {
  font-size: 1rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.45);
}

.timeline-content h3 {
  font-size: 1.6rem;
  margin-top: 1rem;
}

.timeline-content p {
  color: var(--muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(12, 16, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card__media {
  position: relative;
}

.service-card__media img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.service-card__pulse {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.08));
  mix-blend-mode: screen;
  transform: translateX(-100%);
  animation: shimmer 6s linear infinite;
}

.service-card__pulse::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--secondary)), transparent);
  animation: ecgPulse 3s ease-in-out infinite;
}

@keyframes ecgPulse {
  0%, 100% {
    opacity: 0;
    transform: scaleX(0);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

.service-card__body {
  padding: 1.8rem;
}

.service-card__body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.service-card__body p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  min-height: 68px;
}

.service-card__link {
  color: var(--secondary);
  font-weight: 700;
  position: relative;
}

.service-card__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.service-card:hover .service-card__link::after {
  transform: scaleX(1);
}

/* Gallery Section */
.gallery-section {
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.75), rgba(6, 10, 16, 0.4));
  overflow: hidden;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.gallery-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.strip-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.strip-header h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
}

.strip-header h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.8vw, 1.6rem);
  position: relative;
  z-index: 1;
}

.image-source {
  display: none !important;
}

.image-card {
  position: relative;
  perspective: 1400px;
  height: clamp(200px, 32vw, 260px);
}

.image-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(6, 10, 16, 0.45);
}

.image-card::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(88, 241, 255, 0.25), rgba(255, 111, 164, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(18px);
  z-index: 0;
}

.image-card:hover::after {
  opacity: 1;
}

.image-card.is-flipping .image-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: rgba(12, 16, 24, 0.85);
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.78);
  transition: filter var(--transition) ease;
}

.image-card:hover .card-face img {
  filter: brightness(1) saturate(1);
}

.card-back {
  transform: rotateY(180deg);
}

.image-card.no-rotate .image-card-inner {
  transition: transform 0.6s ease;
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .image-grid {
    gap: 1rem;
  }
  
  .image-card {
    height: clamp(180px, 40vw, 220px);
  }
}

/* Old stories styles removed - replaced with gallery */

/* Urgent call */
.urgent-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 111, 164, 0.2), rgba(88, 241, 255, 0.12));
  border-radius: 32px;
  margin: 0 clamp(1.4rem, 8vw, 6rem);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.emergency-indicator {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
}

.emergency-pulse {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 111, 164, 0.6);
  border-radius: 50%;
  animation: emergencyPulse 1.5s infinite;
}

.emergency-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  animation: emergencyBlink 2s infinite;
}

@keyframes emergencyPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes emergencyBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.urgent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 111, 164, 0.2);
  border: 1px solid rgba(255, 111, 164, 0.45);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.2em;
  color: #ffcfe1;
  position: relative;
  overflow: hidden;
}

.badge-blink {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 111, 164, 0.3);
  animation: badgeBlink 2s infinite;
}

@keyframes badgeBlink {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.emergency-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.emergency-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.stat-icon {
  font-size: 1.2rem;
}

.emergency-btn {
  position: relative;
  overflow: hidden;
  animation: emergencyButtonPulse 3s infinite;
}

.emergency-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: inherit;
  transform: translate(-50%, -50%) scale(0);
  animation: emergencyRipple 2s infinite;
}

@keyframes emergencyButtonPulse {
  0%, 100% {
    box-shadow: 0 20px 45px rgba(88, 241, 255, 0.25);
  }
  50% {
    box-shadow: 0 25px 65px rgba(255, 111, 164, 0.35);
  }
}

@keyframes emergencyRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.urgent-call h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 1rem 0;
}

/* Join section */
.join-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
  background: rgba(12, 16, 24, 0.75);
  border-radius: 40px;
  margin: clamp(2rem, 8vw, 6rem);
  padding: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.join-content h2 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  margin-bottom: 1.2rem;
}

.join-content p {
  color: var(--muted);
  font-size: 1.1rem;
}

.join-form {
  display: grid;
  gap: 1.4rem;
}

.form-group {
  display: grid;
  gap: 0.6rem;
}

.form-group label {
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(6, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--fg);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(88, 241, 255, 0.6);
}

.submit-btn {
  background: linear-gradient(135deg, var(--success), var(--secondary));
  border: none;
  color: #04272d;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 60px rgba(69, 255, 178, 0.35);
}

.form-feedback {
  min-height: 1.6rem;
  font-weight: 600;
}

.form-feedback--error {
  color: #ff9fb7;
}

.form-feedback--success {
  color: #45ffb2;
}

/* Contact */
.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.4rem;
  align-items: stretch;
}

.contact-card {
  background: rgba(12, 16, 24, 0.7);
  border-radius: 32px;
  padding: clamp(2.4rem, 6vw, 3.2rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.contact-details span {
  color: var(--fg);
  font-weight: 700;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--fg);
  border: 1px solid transparent;
}

.social-link i {
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.social-link:hover {
  background: rgba(88, 241, 255, 0.15);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 241, 255, 0.2);
}

.social-link:hover i {
  transform: scale(1.1);
  color: var(--secondary);
}

.social-link span {
  font-weight: 500;
}

.map-shell iframe {
  width: 100%;
  min-height: 360px;
  border: none;
  border-radius: 32px;
  filter: grayscale(20%) brightness(0.9);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem clamp(1.6rem, 8vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: center;
  background: rgba(6, 10, 16, 0.85);
}

/* Subpages */
.subpage-header {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 7vw, 4rem);
  background: radial-gradient(circle at 10% 10%, rgba(88, 241, 255, 0.18), transparent 45%),
              radial-gradient(circle at 90% 10%, rgba(255, 111, 164, 0.16), transparent 55%),
              rgba(6, 10, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.subpage-hero {
  margin-top: clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.subpage-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 1rem;
}

.subpage-hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.subpage-main {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 9vw, 6rem);
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.mission-grid article {
  background: rgba(12, 16, 24, 0.78);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.mission-grid ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.team-chart {
  display: grid;
  gap: 2.5rem;
  justify-items: center;
}

.chart-node {
  background: rgba(12, 16, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.chart-node.root {
  font-weight: 800;
  background: linear-gradient(135deg, rgba(88, 241, 255, 0.4), rgba(255, 111, 164, 0.3));
}

.chart-level {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.partner-card {
  padding: 1.8rem;
  background: rgba(12, 16, 24, 0.78);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.partner-card span {
  font-weight: 700;
  color: var(--secondary);
}

.sections-page {
  gap: clamp(2.5rem, 6vw, 4rem);
}

.section-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  background: rgba(12, 16, 24, 0.8);
  border-radius: 36px;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  position: relative;
}

.section-detail::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0.4;
}

.section-detail h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-detail ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.stories-page .story-showcase {
  padding: 0;
}

.feature-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem;
  background: rgba(12, 16, 24, 0.78);
  border-radius: 36px;
  padding: clamp(2.2rem, 6vw, 3.4rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.story-tile {
  background: rgba(12, 16, 24, 0.75);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.story-tile__content {
  padding: 1.6rem;
}

.story-tile__content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.story-tile__content p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .chart-level {
    flex-direction: column;
  }
  .section-detail {
    text-align: center;
  }
  .section-detail::before {
    inset: 8px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.footer-extra {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
  font-size: 0.9rem;
  color: var(--muted);
}

.mode-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--fg);
  cursor: pointer;
}

.mode-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer-brand img {
  width: 68px;
  border-radius: 50%;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
  text-align: right;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--muted);
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  flex-direction: row-reverse;
}

.jedar-link {
  display: flex;
  align-items: center;
  padding: 0.3rem;
  transition: all var(--transition);
  text-decoration: none;
}

.jedar-logo {
  height: auto;
  width: 80px;
  max-width: 120px;
  filter: brightness(0) invert(1);
  transition: all var(--transition);
  object-fit: contain;
  display: block;
}

.jedar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.jedar-link:hover .jedar-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(88, 241, 255, 0.6));
  transform: scale(1.1);
}

.to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  box-shadow: 0 18px 45px rgba(88, 241, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.to-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-6px);
}

.blood-drop {
  position: relative;
  width: 26px;
  height: 26px;
}

.drop-icon {
  width: 100%;
  height: 100%;
  color: #022f36;
  animation: dropFloat 3s ease-in-out infinite;
}

.drop-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 111, 164, 0.6);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translate(-50%, -50%);
  animation: dropRipple 2s infinite;
}

@keyframes dropFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes dropRipple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Floating Medical Elements */
.floating-medical {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.medical-cross {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 60px;
  height: 60px;
  opacity: 0.1;
  animation: floatCross 20s linear infinite;
}

.medical-cross::before,
.medical-cross::after {
  content: '';
  position: absolute;
  background: var(--secondary);
  border-radius: 2px;
}

.medical-cross::before {
  top: 50%;
  left: 20%;
  width: 60%;
  height: 8px;
  transform: translateY(-50%);
}

.medical-cross::after {
  top: 20%;
  left: 50%;
  width: 8px;
  height: 60%;
  transform: translateX(-50%);
}

.stethoscope-wave {
  position: absolute;
  top: 60%;
  left: 5%;
  width: 80px;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(69, 255, 178, 0.1) 3px,
    rgba(69, 255, 178, 0.1) 6px
  );
  animation: floatWave 25s linear infinite;
  border-radius: 20px;
}

.dna-helix {
  position: absolute;
  top: 30%;
  left: 80%;
  width: 6px;
  height: 100px;
  background: linear-gradient(
    180deg,
    rgba(255, 111, 164, 0.1) 0%,
    rgba(88, 241, 255, 0.1) 50%,
    rgba(69, 255, 178, 0.1) 100%
  );
  animation: floatHelix 30s linear infinite;
  border-radius: 3px;
}

@keyframes floatCross {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

@keyframes floatWave {
  0% {
    transform: translateX(-100px) scaleX(1);
  }
  50% {
    transform: translateX(50vw) scaleX(1.2);
  }
  100% {
    transform: translateX(100vw) scaleX(1);
  }
}

@keyframes floatHelix {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }
  100% {
    transform: translateY(-120px) rotate(720deg);
  }
}

/* Night theme */
.theme-night {
  --bg: #020408;
  --bg-alt: radial-gradient(circle at 30% -20%, rgba(69, 255, 178, 0.18), transparent 50%),
             radial-gradient(circle at 70% 20%, rgba(88, 241, 255, 0.18), transparent 60%),
             #020408;
  --bg-card: rgba(4, 8, 16, 0.84);
  --fg: #eafcff;
  --muted: rgba(234, 252, 255, 0.66);
  --border: rgba(255, 255, 255, 0.05);
}

.theme-night body {
  background: var(--bg);
  background-image: var(--bg-alt);
}

/* Responsive */
@media (max-width: 1024px) {
  .stories-track {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .story-card {
    padding: 1.2rem;
  }
  .preloader-logo-img {
    width: 70px;
    height: 70px;
  }
  .social-link {
    padding: 0.7rem 1rem;
  }
  .social-link span {
    display: none;
  }
  .social-link i {
    font-size: 1.4rem;
  }
}

@media (max-width: 920px) {
  .hero-content {
    max-width: 520px;
  }
  .nav-links {
    position: absolute;
    inset-inline: 1.5rem;
    top: 72px;
    flex-direction: column;
    background: rgba(6, 10, 16, 0.96);
    padding: 1.6rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
  }
  .nav-links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: block;
    z-index: 3;
  }
  .nav-ecg {
    display: none;
  }
  .hero-bottom {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .urgent-call {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .section {
    padding-inline: 1.2rem;
  }
  .hero-content h1 {
    font-size: clamp(2.4rem, 8vw, 3rem);
  }
  .cta-group {
    width: 100%;
  }
  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .service-card__body p {
    min-height: auto;
  }
  .join-section,
  .urgent-call,
  .contact-card {
    margin-inline: 0;
  }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-extra {
    align-items: center;
  }
  .footer-copyright {
    align-items: center;
    text-align: center;
  }
  .powered-by {
    justify-content: center;
  }
  
  /* Hero Slider Responsive */
  .hero-slider-controls {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
  
  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .slider-indicator {
    width: 6px;
    height: 6px;
  }
  
  /* Stories Mobile */
  .stories-carousel {
    padding: 1.5rem;
  }
  
  .preloader-logo {
    top: 25%;
  }
  
  .preloader-logo-img {
    width: 60px;
    height: 60px;
  }
  
  .contact-social {
    justify-content: center;
  }
  
  .social-link {
    min-width: 50px;
    justify-content: center;
  }
}

/* AI Chat Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  font-family: inherit;
}

/* Override medical cursor for chat widget */
.ai-chat-widget,
.ai-chat-widget * {
  cursor: auto !important;
}

.ai-chat-widget button {
  cursor: pointer !important;
}

.ai-chat-widget input,
.ai-chat-widget textarea {
  cursor: text !important;
}

.ai-chat-widget a {
  cursor: pointer !important;
}

.chat-toggle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(88, 241, 255, 0.4);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(88, 241, 255, 0.6);
}

.chat-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.chat-toggle:hover::before {
  opacity: 1;
}

.chat-toggle-icon {
  width: 35px;
  height: 35px;
  color: #022f36;
  font-weight: bold;
  z-index: 1;
  transition: transform var(--transition);
}

.chat-toggle:hover .chat-toggle-icon {
  transform: scale(1.1);
}

.chat-pulse {
  position: absolute;
  inset: -10px;
  border: 3px solid rgba(88, 241, 255, 0.6);
  border-radius: 50%;
  animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.chat-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: rgba(6, 10, 16, 0.95);
  border-radius: 24px;
  border: 1px solid rgba(88, 241, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  transform: translateY(100%) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-container.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  background: linear-gradient(135deg, rgba(88, 241, 255, 0.15), rgba(255, 111, 164, 0.1));
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  padding: 0.2rem;
  background: rgba(6, 10, 16, 0.8);
  animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(88, 241, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(88, 241, 255, 0.8);
  }
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-info h3 {
  color: var(--fg);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.chat-status {
  color: var(--success);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.chat-close:hover {
  color: var(--primary);
  background: rgba(255, 111, 164, 0.1);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(88, 241, 255, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(88, 241, 255, 0.3);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 241, 255, 0.5);
}

.message {
  display: flex;
  gap: 0.6rem;
  animation: messageSlide 0.4s ease-out;
}

@keyframes messageSlide {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.message.user {
  flex-direction: row-reverse;
  text-align: right;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #022f36;
  font-weight: bold;
  font-size: 0.9rem;
}

.message.ai .message-avatar {
  background: rgba(6, 10, 16, 0.8);
  border: 2px solid var(--secondary);
  padding: 0.1rem;
}

.message.ai .message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.message-content {
  flex: 1;
  max-width: 280px;
  background: rgba(12, 16, 24, 0.8);
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg);
  line-height: 1.5;
  font-size: 0.9rem;
}

.message.user .message-content {
  background: linear-gradient(135deg, rgba(88, 241, 255, 0.2), rgba(255, 111, 164, 0.15));
  border-color: rgba(88, 241, 255, 0.3);
  border-radius: 16px 16px 4px 16px;
}

.message.ai .message-content {
  border-radius: 16px 16px 16px 4px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(12, 16, 24, 0.8);
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 280px;
}

.typing-dots {
  display: flex;
  gap: 0.3rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-input-container {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 24, 0.6);
}

.chat-input-wrapper {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: rgba(6, 10, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0.8rem 1rem;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  min-height: 42px;
  max-height: 100px;
  line-height: 1.4;
  transition: all var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(88, 241, 255, 0.2);
}

.chat-input::placeholder {
  color: var(--muted);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(88, 241, 255, 0.4);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-send-icon {
  width: 18px;
  height: 18px;
  color: #022f36;
  font-weight: bold;
}

.welcome-message {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

.welcome-message h4 {
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.welcome-message p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quick-action {
  background: rgba(88, 241, 255, 0.1);
  border: 1px solid rgba(88, 241, 255, 0.3);
  border-radius: 16px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: var(--secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.quick-action:hover {
  background: rgba(88, 241, 255, 0.2);
  transform: translateY(-1px);
}

/* Responsive Chat */
@media (max-width: 480px) {
  .ai-chat-widget {
    right: 15px;
    bottom: 15px;
  }
  
  .chat-container {
    width: calc(100vw - 30px);
    height: 450px;
    bottom: 85px;
    right: -50px;
  }
  
  .chat-toggle {
    width: 60px;
    height: 60px;
  }
  
  .chat-toggle-icon {
    width: 28px;
    height: 28px;
  }
  
  .message-content {
    max-width: 220px;
  }
}
