/* Custom Styling for Jeddah Appliance Repair Services Website */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
}

body {
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background-color: #f8fafc;
}

body[dir="ltr"] {
  font-family: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;
}

/* Original White & Light Blue Glass Navbar */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224, 242, 254, 0.9);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.06);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(224, 242, 254, 0.8);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.08);
}

.glass-card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -12px rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.9);
}

/* Hero Background Image Slider */
.hero-bg-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  transform: scale(1.05);
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* 3D Visual Cards & Lighting Effects */
.card-3d-wrap {
  perspective: 1000px;
}

.card-3d-inner {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.card-3d-wrap:hover .card-3d-inner {
  transform: rotateY(6deg) rotateX(4deg) translateZ(10px);
}

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

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

.animate-float-delayed {
  animation: floatAnimation 7s ease-in-out infinite 2s;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
  }
}

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

/* Hero Content Slide Transitions */
.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 0.8s ease-out;
  transform: translateY(15px);
  position: absolute;
  inset: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

/* Floating Bottom Action Icons (Phone & WhatsApp) */
.floating-widget-call {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
  transition: transform 0.3s ease;
}

body[dir="rtl"] .floating-widget-call {
  left: 24px;
  right: auto;
}

body[dir="ltr"] .floating-widget-call {
  left: 24px;
  right: auto;
}

.floating-widget-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background-color: #22c55e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
  transition: transform 0.3s ease;
}

body[dir="rtl"] .floating-widget-whatsapp {
  right: 24px;
  left: auto;
}

body[dir="ltr"] .floating-widget-whatsapp {
  right: 24px;
  left: auto;
}

.floating-widget-call:hover, .floating-widget-whatsapp:hover {
  transform: scale(1.1);
}

/* Custom Light Blue Text Gradient */
.text-gradient-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #7dd3fc;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0ea5e9;
}

/* Infinite Scrolling Reviews Marquee (Left to Right) */
@keyframes marquee-ltr {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

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

.animate-marquee-ltr:hover {
  animation-play-state: paused;
}

