/* AL NOORIN HOME CARE SERVICES DUBAI - CUSTOM STYLES */

/* CSS Variables */
:root {
  --color-navy: #0F223D;
  --color-green: #10B981;
  --color-pink: #EC4899;
  --color-yellow: #F59E0B;
  --color-navy-light: #1A3154;
  --color-light: #F8FAFC;
}

/* Base Settings */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--color-light);
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

/* Page Loader styling (Premium & Minimal) */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
}

#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Concentric Medical/Heartbeat Pulsing Rings */
.loader-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.06); /* Brand Green */
  transform: scale(0.5);
  opacity: 0;
  animation: pulseRing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.loader-ring-pink {
  width: 220px;
  height: 220px;
  background-color: rgba(236, 72, 153, 0.04); /* Brand Pink */
  animation-delay: 0.8s;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Elegant logo heartbeat animation */
.loader-logo {
  position: relative;
  z-index: 10;
  animation: logoHeartbeat 1.6s ease-in-out infinite;
}

@keyframes logoHeartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.04);
  }
  40% {
    transform: scale(1.01);
  }
  55% {
    transform: scale(1.05);
  }
}

/* App Wrapper Page Entry Fade */
#app-wrapper {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
#app-wrapper.loaded {
  opacity: 1;
}

/* Scroll Animation classes */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 150ms; }
.reveal-delay-2 { transition-delay: 300ms; }
.reveal-delay-3 { transition-delay: 450ms; }

/* Custom Navigation Hover styles */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-green);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Mobile Hamburger Menu */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
#mobile-menu.open {
  transform: translateX(0);
}

/* Custom shadows & borders */
.premium-shadow {
  box-shadow: 0 10px 30px -10px rgba(15, 34, 61, 0.08);
}
.premium-shadow-hover {
  transition: all 0.3s ease;
}
.premium-shadow-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(15, 34, 61, 0.12);
}

/* Mobile Bottom Floating Action Bar */
.mobile-fab-bar {
  box-shadow: 0 -4px 20px rgba(15, 34, 61, 0.1);
}

/* Hide scrollbar for clean horizontal card scrollers if needed */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Prevent horizontal overflow strictly */
.w-viewport {
  width: 100vw;
  max-width: 100%;
}

/* Hero Overlay and details */
.bg-overlay-navy {
  background: linear-gradient(135deg, rgba(15, 34, 61, 0.90) 0%, rgba(15, 34, 61, 0.80) 100%);
}

.bg-overlay-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.75) 100%);
}

/* Responsive grid auto-fit columns */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Google Translate styling overrides */
#google_translate_element {
  display: inline-block;
  vertical-align: middle;
}
.goog-te-gadget {
  font-family: inherit !important;
  color: transparent !important;
}
.goog-te-gadget .goog-te-combo {
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #e2e8f0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0F223D !important;
  background-color: #ffffff !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.goog-te-gadget .goog-te-combo:hover {
  border-color: #10B981 !important;
}
.goog-te-banner-frame, .goog-te-banner, #goog-gt-tt {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-logo-link, .goog-te-gadget span {
  display: none !important;
}
iframe.goog-te-menu-frame {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}
