/* Deep Hospital - Hardware-Accelerated 3D Interactive Styles */

:root {
  --primary-blue: #0284c7;
  --primary-blue-dark: #0369a1;
  --medical-teal: #0d9488;
  --medical-teal-light: #ccfbf1;
  --emergency-red: #dc2626;
  --whatsapp-green: #25d366;
  --slate-dark: #0f172a;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   3D PERSPECTIVE & TRANSFORM UTILITIES
   ========================================================================== */

.perspective-1000 {
  perspective: 1000px;
}

.perspective-2000 {
  perspective: 2000px;
}

.transform-preserve-3d {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.translate-z-10 {
  transform: translateZ(10px);
}
.translate-z-20 {
  transform: translateZ(20px);
}
.translate-z-30 {
  transform: translateZ(30px);
}
.translate-z-40 {
  transform: translateZ(40px);
}
.translate-z-50 {
  transform: translateZ(50px);
}

/* 3D Dynamic Card Tilt Container with Hardware Acceleration */
.tilt-card-3d {
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: manipulation;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.tilt-card-3d:hover {
  box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.25), 0 0 25px rgba(13, 148, 136, 0.15);
}

/* 3D Floating Animations */
@keyframes float3d {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(2, 132, 199, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(13, 148, 136, 0.7));
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(200%) rotate(30deg);
  }
}

.animate-float-3d {
  animation: float3d 5s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Shimmer Light Reflection effect on 3D cards */
.shimmer-card {
  position: relative;
  overflow: hidden;
}

.shimmer-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shimmer-card:hover::before {
  opacity: 1;
  animation: shimmer 1.2s ease-in-out forwards;
}

/* ==========================================================================
   GLASSMORPHISM & HERO MESH
   ========================================================================== */

.hero-mesh-3d {
  background-color: #080d1a;
  background-image: 
    radial-gradient(at 15% 15%, rgba(2, 132, 199, 0.35) 0px, transparent 50%),
    radial-gradient(at 85% 20%, rgba(13, 148, 136, 0.3) 0px, transparent 50%),
    radial-gradient(at 50% 85%, rgba(99, 102, 241, 0.2) 0px, transparent 50%);
}

.glass-card-3d {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.glass-card-dark-3d {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

/* Image Zoom Effect */
.img-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .img-zoom {
  transform: scale(1.06);
}

/* Emergency & WhatsApp Pulse */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.pulse-emergency {
  animation: pulse-red 2s infinite;
}

@keyframes bounce-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.whatsapp-float {
  animation: bounce-subtle 3s ease-in-out infinite;
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, #0284c7, #0d9488);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #0284c7;
  font-weight: 700;
}

/* Input Fields */
.input-field {
  transition: all 0.2s ease;
}
.input-field:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* Active Tab Highlight */
.tab-btn {
  transition: all 0.25s ease;
}
.tab-btn.active-tab {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}
