/* -------------------------------------------------------------
 * Sampark E-Polyclinic - Premium Healthcare Styling
 * ------------------------------------------------------------- */

/* Custom Fonts & Core Variables */
:root {
  --color-primary: #0D9488;
  --color-primary-hover: #0f766e;
  --color-secondary: #1ABC9C;
  --color-secondary-hover: #16a085;
  --color-bg-light: #F4FBFB;
  --color-bg-dark: #040d0c;
  --color-card-light: #FFFFFF;
  --color-card-dark: #0b1917;
  --color-text-light: #1F2937;
  --color-text-dark: #F3F4F6;
  --color-border-light: #E5E7EB;
  --color-border-dark: #162a26;
  --transition-speed: 0.3s;
}

/* Base resets & styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-light);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;

  font-size: 14px;}

/* Dark Mode Overrides */
html.dark body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);

  font-size: 14px;}

/* Heading Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* --- Loading Spinner & Overlay --- */
#loading-screen {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
html.dark #loading-screen {
  background-color: var(--color-bg-dark);
}
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(13, 148, 136, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Premium Glassmorphism --- */
.glass-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
html.dark .glass-nav {
  background: rgba(11, 15, 25, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-nav.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
html.dark .glass-card {
  background: rgba(22, 31, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}
html.dark ::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* --- Micro-interactions & Custom Hover Animations --- */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.15);
}

/* WhatsApp & Call Floating Buttons Pulse Animation */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.floating-btn-pulse {
  position: relative;
}
.floating-btn-pulse::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse-ring 2s infinite ease-in-out;
  pointer-events: none;
  opacity: 0.6;
}

/* Timeline Custom Styles */
.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  left: -8px;
  top: 10px;
  background-color: var(--color-secondary);
  border: 4px solid var(--color-card-light);
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.2);
  transition: all 0.3s ease;
}
html.dark .timeline-dot {
  border-color: var(--color-card-dark);
}
.timeline-item:hover .timeline-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.3);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border-light);
  background-color: var(--color-card-light);
  transition: all 0.2s ease;
}
html.dark .form-input {
  border-color: var(--color-border-dark);
  background-color: var(--color-card-dark);
  color: var(--color-text-dark);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Lightbox custom adjust */
.glightbox-container .gslide-description {
  background: var(--color-card-light) !important;
  color: var(--color-text-light) !important;
}
html.dark .glightbox-container .gslide-description {
  background: var(--color-card-dark) !important;
  color: var(--color-text-dark) !important;
}

/* Masonry grid gallery column gap */
.gallery-grid {
  display: columns;
  column-gap: 1.5rem;
}
@media (min-width: 640px) {
  .gallery-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .gallery-grid { column-count: 3; }
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}


/* Swiper Pagination Dot styling overrides for Brand colors */
.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet {
  background: var(--color-primary);
  opacity: 0.3;
}
html.dark .swiper-pagination-bullet {
  background: var(--color-text-dark);
  opacity: 0.3;
}
