/* Import Google Fonts for high-legibility English typography and native Urdu script rendering */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
  --primary-red: #DE1E26; /* Crimson Red from official logo */
  --primary-red-hover: #B91C1C;
  --pitch-black: #0B0B0B; /* Pitch Black from official logo */
  --pitch-black-light: #171717; /* Secondary charcoal black */
  --logo-cream: #FAF6EE; /* Premium off-white/cream from logo */
  --logo-cream-light: #FDFBF7; /* Very soft cream background */
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #1EBE56;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--logo-cream-light);
}

/* Urdu Script Typography Styling - Crucial for RTL readability and preventing glyph clipping */
.font-urdu {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaliq', 'Noto Sans Arabic', serif;
}

/* Urdu requires significant vertical breathing room to display correctly */
.leading-urdu {
  line-height: 2.6 !important;
}

/* Dot Grid Background Overlay using brand crimson red texture for premium styling */
.dot-grid {
  background-image: radial-gradient(rgba(222, 30, 38, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Modern Gradient Text */
.text-gradient-red {
  background: linear-gradient(135deg, #FFFFFF 60%, var(--primary-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle micro-animations for interactive engagement */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -8px rgba(11, 11, 11, 0.15);
}

.hover-lift-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(222, 30, 38, 0.2);
}

/* Pulse animation for CTA badges to draw user attention organically */
@keyframes pulse-soft {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

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

/* Progressive Enhancement Scroll Reveal - Default state is visible.
   Only hidden if JS is active and HTML element has the 'js' class. */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Customized scrollbar for pitch black themes */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--pitch-black);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Navigation active indicator line */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-red);
  transition: width 0.2s ease-in-out;
}

.nav-link.active::after {
  width: 100%;
}

/* Custom Leaflet Map Popup Styling to align with brand aesthetics */
.leaflet-popup-content-wrapper {
  background: var(--pitch-black) !important;
  color: #FFFFFF !important;
  border-radius: 16px !important;
  border: 1px solid rgba(222, 30, 38, 0.3) !important;
  font-family: 'Inter', sans-serif !important;
  padding: 6px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
  background: var(--pitch-black) !important;
  border-left: 1px solid rgba(222, 30, 38, 0.3) !important;
  border-top: 1px solid rgba(222, 30, 38, 0.3) !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.5 !important;
}

/* Live tracking green pulse indicator */
.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.live-dot::after {
  content: '';
  width: 16px;
  height: 16px;
  background-color: var(--whatsapp-green);
  opacity: 0.5;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: -4px;
  animation: pulse-soft 2s infinite ease-in-out;
}
