@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..700;1,400..700&display=swap');

/* Base Styles & Custom Variables */
:root {
  --color-clinical-blue: #0070c0;
  --color-clinical-blue-dark: #005694;
  --color-clinical-blue-light: #e6f0fa;
  --color-clinical-yellow: #f4d800;
  --color-clinical-yellow-dark: #ccb400;
  --color-clinical-dark: #0f172a;
  --color-clinical-gray: #f8fafc;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--color-clinical-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Elegant serif font for italic emphasis */
.font-serif-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Cinematic Film Grain */
.film-grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Cinematic Vignette */
.cinematic-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle, transparent 40%, rgba(15, 23, 42, 0.45) 100%);
}

/* Cinematic Hero Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0, 112, 192, 0.22) 0%, rgba(15, 23, 42, 0.6) 100%);
}

/* Glassmorphism helpers */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 112, 192, 0.08);
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Infinite Marquee Animations */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-marquee-left {
  display: flex;
  width: max-content;
  animation: marquee-left 35s linear infinite;
}

.animate-marquee-right {
  display: flex;
  width: max-content;
  animation: marquee-right 35s linear infinite;
}

.animate-marquee-left:hover,
.animate-marquee-right:hover {
  animation-play-state: paused;
}

/* Fast marquee for text bar under hero */
@keyframes marquee-text-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee-text {
  display: flex;
  width: max-content;
  animation: marquee-text-left 25s linear infinite;
}

/* Scroll Reveal Transitions */
.reveal {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal-active {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* WhatsApp Floating CTA animation */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.5; }
  100% { transform: scale(1.35); opacity: 0; }
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse-ring 2.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* Form validation design details */
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-clinical-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.15);
}

/* Stripe-like hover scale for gallery */
.gallery-img-container {
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 112, 192, 0.1), 0 10px 10px -5px rgba(0, 112, 192, 0.04);
}
