/* --- CSS Variables & Resets --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-dark-blue: #0A2540; /* Navy Blue for contrast */
  --color-primary: #007BFF; /* Primary Blue */
  --color-sky-blue: #3399FF; /* Light Blue */
  --color-sky-light: #F0F8FF; /* Alice Blue */
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-text: #333333;
  --color-text-muted: #666666;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3399FF 0%, #007BFF 100%); /* Light Blue Gradient */
  --gradient-accent: linear-gradient(135deg, #F0F8FF 0%, #E6F2FF 100%); /* White/Light Blue Gradient */

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
  font-family: 'Tajawal', var(--font-body); /* Good arabic font if needed, otherwise fallback */
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: 'Almarai', var(--font-heading);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark-blue);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-bg {
  background-color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding: 12px 40px;
  background: var(--color-white);
  border-radius: 50px;
  color: var(--color-dark-blue);
  box-shadow: 
    0 10px 20px rgba(0, 123, 255, 0.15),
    inset 0 3px 5px rgba(255, 255, 255, 1),
    inset 0 -4px 5px rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.section-title::after {
  display: none;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Components --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark-blue);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: var(--shadow-glass);
  padding: 2rem;
  transition: var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

/* --- Header & Nav --- */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 123, 255, 0.2);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.02);
  transition: var(--transition-slow);
}

.header.scrolled {
  top: 10px;
  width: 95%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.02);
  padding: 0.6rem 2rem;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-sky-blue);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-dark-blue);
  font-weight: 500;
  font-family: var(--font-heading);
  position: relative;
  padding: 8px 18px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 
    0 4px 10px rgba(0, 123, 255, 0.1),
    inset 0 2px 3px rgba(255, 255, 255, 1),
    inset 0 -2px 3px rgba(0, 123, 255, 0.05);
  border: 1px solid rgba(0, 123, 255, 0.15);
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 15px rgba(0, 123, 255, 0.2),
    inset 0 2px 3px rgba(255, 255, 255, 1),
    inset 0 -2px 3px rgba(0, 123, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  background: var(--color-sky-light);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition-normal);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-toggle {
  display: none;
  color: var(--color-dark-blue);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.85)), url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?q=80&w=2069&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  color: var(--color-white);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-dark-blue);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .header {
    padding: 0.5rem 1rem;
    width: 95%;
  }
  
  .logo {
    font-size: 1.1rem;
    gap: 0.3rem;
  }
  
  .logo img {
    height: 30px !important;
    margin-right: 5px !important;
  }

  .nav-actions {
    gap: 0.5rem;
  }
  
  .lang-switch {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .mobile-toggle {
    font-size: 1.3rem;
  }
}

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

.service-card {
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-sky-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sky-blue);
  font-size: 2rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--color-sky-blue);
  color: var(--color-white);
  transform: rotateY(180deg);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--color-text-muted);
}

/* --- Reviews Marquee --- */
.reviews-section {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 4rem 0;
  background: var(--color-sky-light);
}

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

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

.marquee-content {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0 1rem;
}

.review-card {
  background: var(--color-white);
  border-radius: 15px;
  padding: 1.5rem;
  min-width: 350px;
  max-width: 350px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  overflow: hidden;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.reviewer-details .date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.google-logo {
  width: 25px;
  height: 25px;
}

.stars {
  color: #FFB900;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.review-text {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

[dir="rtl"] .marquee-container {
  animation: scroll-right 25s linear infinite;
}

[dir="rtl"] .marquee-container:hover {
  animation-play-state: paused;
}

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

/* Utility Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--color-sky-blue);
  padding-inline-start: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-white);
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--color-sky-blue);
  transform: translateY(-3px);
}
