/* ========================================
   Masraty Theme - Main Styles
   نظام تصميم متكامل لقالب مسرتي
======================================== */

/* استيراد خطوط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

/* استيراد المتغيرات */
@import url('variables.css');

/* ========================================
   الهيدر (Header)
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

.site-logo img {
  height: 48px;
  width: auto;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  transition: color 150ms ease-in-out;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #1A4D7C;
}

/* Header Actions */
.desktop-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .desktop-actions {
    display: flex;
  }
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  color: #374151;
  transition: all 150ms ease-in-out;
}

.btn-icon:hover {
  background-color: #F3F4F6;
  color: #1A4D7C;
}

.btn-ghost {
  background: transparent;
  color: #1A4D7C;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 150ms ease-in-out;
}

.btn-ghost:hover {
  background-color: #F3F4F6;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.btn-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.btn-user:hover {
  border-color: #1A4D7C;
  color: #1A4D7C;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 300ms ease-in-out;
}

.user-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #374151;
  border-radius: 0.25rem;
  transition: all 150ms ease-in-out;
}

.dropdown-menu a:hover {
  background-color: #F3F4F6;
  color: #1A4D7C;
}

.dropdown-menu hr {
  margin: 0.5rem 0;
  border: none;
  border-top: 1px solid #E5E7EB;
}

.text-danger {
  color: #EF4444 !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #374151;
  border-radius: 2px;
  transition: all 300ms ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-in-out;
}

.mobile-menu.active {
  max-height: 600px;
  padding: 1.5rem 0;
  border-top: 1px solid #E5E7EB;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li {
  margin: 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem;
  color: #374151;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 150ms ease-in-out;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
  background-color: #F3F4F6;
  color: #1A4D7C;
}

.mobile-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-info {
  padding: 1rem;
  background-color: #F9FAFB;
  border-radius: 0.5rem;
}

.user-info strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #1A4D7C;
}

.user-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-links a {
  font-size: 0.875rem;
  color: #6B7280;
  transition: color 150ms ease-in-out;
}

.user-links a:hover {
  color: #1A4D7C;
}

/* ========================================
   Hero Banner
======================================== */
.hero-banner {
  position: relative;
  height: 500px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-banner {
    height: 400px;
  }
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease-in-out, visibility 500ms ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 77, 124, 0.85) 0%, rgba(31, 217, 166, 0.65) 100%);
}

.default-hero .banner-overlay {
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
}

.banner-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
  color: #FFFFFF;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 2rem;
  }
}

.banner-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  .banner-content p {
    font-size: 1rem;
  }
}

.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.125rem;
  font-weight: 700;
}

/* Banner Navigation */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  color: #1A4D7C;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}

.banner-nav:hover {
  background-color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}

.banner-nav.prev {
  right: 1.5rem;
}

.banner-nav.next {
  left: 1.5rem;
}

.banner-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}

.indicator.active,
.indicator:hover {
  background-color: #FFFFFF;
  transform: scale(1.2);
}

/* ========================================
   Search Section
======================================== */
.search-section {
  padding: 3rem 0;
  margin-top: -48px;
  position: relative;
  z-index: 100;
}

.search-card {
  background-color: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .search-card {
    padding: 1.5rem;
  }
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1A4D7C;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .search-header h2 {
    font-size: 1.5rem;
  }
}

.search-header p {
  font-size: 1rem;
  color: #6B7280;
  margin-bottom: 0;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-input-group {
  position: relative;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.search-input-main,
.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 48px;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  transition: all 150ms ease-in-out;
}

.search-input-main {
  height: 56px;
  font-size: 1.125rem;
}

.search-input {
  height: 48px;
}

.search-input-main:focus,
.search-input:focus {
  outline: none;
  border-color: #1FD9A6;
  box-shadow: 0 0 0 3px rgba(31, 217, 166, 0.1);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

@media (max-width: 768px) {
  .search-row {
    grid-template-columns: 1fr;
  }
}

.btn-search {
  height: 48px;
  padding: 0 3rem;
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ========================================
   Categories Section
======================================== */
.categories-section,
.featured-section,
.features-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: #1A4D7C;
  margin-bottom: 3rem;
}

.categories-carousel,
.services-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  background-color: #FFFFFF;
  border: 2px solid #E5E7EB;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 300ms ease-in-out;
  cursor: pointer;
}

.category-card:hover {
  border-color: #1FD9A6;
  transform: translateY(-8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
  white-space: nowrap;
}

/* ========================================
   Featured Services
======================================== */
.featured-section {
  background-color: #F9FAFB;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    gap: 1rem;
  }
}

.service-card {
  flex: 0 0 auto;
  width: 360px;
  scroll-snap-align: start;
  background-color: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 300ms ease-in-out;
}

@media (max-width: 768px) {
  .service-card {
    width: 320px;
  }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-link {
  display: block;
  color: inherit;
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease-in-out;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #1FD9A6;
  color: #FFFFFF;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.service-content {
  padding: 1.5rem;
}

.service-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1FD9A6;
  margin-bottom: 0.5rem;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.service-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 1rem;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
}

.service-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-value {
  font-weight: 700;
  color: #111827;
}

.rating-star {
  font-size: 1rem;
}

.rating-count {
  font-size: 0.875rem;
  color: #6B7280;
}

.service-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1A4D7C;
}

.price-currency {
  font-size: 0.875rem;
  color: #6B7280;
}

/* ========================================
   Features Section
======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background-color: #FFFFFF;
  border: 2px solid #E5E7EB;
  border-radius: 1rem;
  transition: all 300ms ease-in-out;
}

.feature-card:hover {
  border-color: #1FD9A6;
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A4D7C;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 1rem;
  color: #6B7280;
  margin: 0;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  color: #FFFFFF;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 1.75rem;
  }
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.cta-content .btn-primary {
  background-color: #FFFFFF;
  color: #1A4D7C;
}

.cta-content .btn-primary:hover {
  background-color: #F3F4F6;
  transform: translateY(-4px);
}


/* ========================================
   تحسينات Footer المحدثة
   Footer Improvements with Brand Colors
======================================== */

/* Footer Container */
.site-footer {
  background-color: #1A4D7C;
  color: #FFFFFF;
  padding: 2.5rem 0 1rem;
  margin-top: auto;
  flex-shrink: 0;
}

/* Footer Content Grid */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

/* Footer Section Headers */
.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

/* Footer Section Paragraphs */
.footer-section p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

/* Footer Lists */
.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #1FD9A6;
  padding-right: 5px;
}

/* Contact Info with Icons */
.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info svg {
  flex-shrink: 0;
  color: #1FD9A6;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #1FD9A6;
}

/* Social Links - محدث بألوان الماركة */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* تأثير Hover عام للأيقونات */
.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(31, 217, 166, 0.3);
}

.social-link:hover::before {
  opacity: 1;
}

/* تأثيرات Hover خاصة بكل منصة مع ألوان الماركة */
.social-link.facebook:hover {
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  box-shadow: 0 8px 20px rgba(26, 77, 124, 0.4);
}

.social-link.twitter:hover {
  background: linear-gradient(135deg, #1FD9A6 0%, #1A4D7C 100%);
  box-shadow: 0 8px 20px rgba(31, 217, 166, 0.4);
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 50%, #1A4D7C 100%);
  box-shadow: 0 8px 20px rgba(31, 217, 166, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

.social-link.whatsapp:hover {
  background: linear-gradient(135deg, #1FD9A6 0%, #1A4D7C 100%);
  box-shadow: 0 8px 20px rgba(31, 217, 166, 0.4);
}

/* تأثير Pulse للإنستغرام */
@keyframes pulse {
  0%, 100% {
    transform: translateY(-5px) scale(1.1);
  }
  50% {
    transform: translateY(-5px) scale(1.15);
  }
}

/* حجم الأيقونات */
.social-link svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .social-link {
    width: 38px;
    height: 38px;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
}



/* ========================================
   Responsive Utilities
======================================== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}



/* ========================================
   الانتقالات والتأثيرات الجذابة
======================================== */

/* تأثيرات الأزرار المتقدمة */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-ghost {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: all var(--transition-base);
}

.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.95);
}

/* تأثير التموج عند النقر */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* تأثيرات البطاقات */
.category-card,
.service-card,
.feature-card {
  position: relative;
  transition: all var(--transition-base);
}

.category-card::after,
.service-card::after,
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(31, 217, 166, 0.1) 0%, rgba(26, 77, 124, 0.1) 100%);
}

.category-card:hover::after,
.service-card:hover::after,
.feature-card:hover::after {
  opacity: 1;
}

/* تأثير الظل المتحرك */
@keyframes float-shadow {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

.service-card:hover {
  animation: float-shadow 3s ease-in-out infinite;
}

/* تأثير التكبير للصور */
.service-image,
.listing-thumbnail {
  position: relative;
  overflow: hidden;
}

.service-image::before,
.listing-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 77, 124, 0.3) 0%, rgba(31, 217, 166, 0.3) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
}

.service-card:hover .service-image::before,
.listing-card:hover .listing-thumbnail::before {
  opacity: 1;
}

/* تأثير الظهور التدريجي */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* تطبيق الانتقالات على العناصر */
.category-card {
  animation: scaleIn 0.5s ease-out backwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

.service-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

/* تأثير النبض للأيقونات */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.category-icon,
.feature-icon {
  animation: pulse 2s ease-in-out infinite;
}

.category-card:hover .category-icon,
.feature-card:hover .feature-icon {
  animation: none;
  transform: scale(1.1) rotate(5deg);
  transition: transform var(--transition-base);
}

/* تأثير الشريط المتحرك */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.service-badge,
.badge-featured {
  background: linear-gradient(90deg, #1FD9A6 0%, #4FE3BB 50%, #1FD9A6 100%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* تأثير التدرج المتحرك للبنر */
.banner-overlay {
  background: linear-gradient(135deg, rgba(26, 77, 124, 0.85) 0%, rgba(31, 217, 166, 0.65) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* تأثير الموجة للأزرار */
@keyframes wave {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: wave 1.5s infinite;
}

/* تأثير الدوران للنجوم */
.rating-star {
  display: inline-block;
  transition: transform var(--transition-base);
}

.service-card:hover .rating-star {
  transform: rotate(72deg);
}

/* تأثير الارتفاع للبطاقات */
@keyframes hover-float {
  0%, 100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.service-card:hover {
  animation: hover-float 2s ease-in-out infinite;
}

/* تأثير البريق للعناصر المميزة */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.service-badge::after {
  content: '✨';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.75rem;
  animation: sparkle 2s ease-in-out infinite;
}

/* تأثير الخط المتحرك تحت الروابط */
.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1FD9A6, #1A4D7C);
  transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* تأثير التوهج للعناصر التفاعلية */
.btn-primary:hover,
.btn-search:hover {
  box-shadow: 0 0 20px rgba(31, 217, 166, 0.5);
}

.btn-secondary:hover {
  box-shadow: 0 0 20px rgba(26, 77, 124, 0.5);
}

/* تأثير الانزلاق للقوائم المنسدلة */
.dropdown-menu {
  transform-origin: top;
}

.user-dropdown.active .dropdown-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* تأثير النبض للمؤشرات */
.indicator {
  position: relative;
}

.indicator.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* تأثير التلاشي للعناصر عند التمرير */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* تأثير الدوران للأيقونات عند التحميل */
@keyframes rotate-in {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.category-icon {
  animation: rotate-in 0.6s ease-out backwards;
}

/* تأثير الموجة للخلفية */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: wave-bg 20s linear infinite;
}

@keyframes wave-bg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* تأثير الانعكاس للبطاقات */
.service-card,
.category-card {
  position: relative;
}

.service-card::before,
.category-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #1FD9A6, #1A4D7C, #1FD9A6);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-base);
  background-size: 200% 200%;
  animation: gradient-border 3s linear infinite;
}

@keyframes gradient-border {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.service-card:hover::before,
.category-card:hover::before {
  opacity: 1;
}

/* تحسين الأداء */
.service-card,
.category-card,
.feature-card,
.btn-primary,
.btn-secondary {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* تأثير الظهور التدريجي للصفحة */
@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: page-fade-in 0.5s ease-out;
}

/* تأثير الانتقال السلس بين الصفحات */
.page-transition {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   Masraty Enhanced Styles v2.0
   تنسيقات محسّنة للصفحة الرئيسية
======================================== */

/* ========================================
   Layout Fix - Sticky Footer
======================================== */

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: #F9FAFB;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.site-header {
  flex-shrink: 0;
}

.site-main,
#main,
#main-content {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

/* ========================================
   Container
======================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* ========================================
   Enhanced Hero Section
======================================== */
.hero-section-enhanced {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1A4D7C 0%, #2A5D8C 50%, #1FD9A6 100%);
  overflow: hidden;
  padding: 4rem 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E'),
    radial-gradient(circle at 20% 50%, rgba(31, 217, 166, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  background-repeat: no-repeat;
  background-position: bottom, center, center;
  background-size: cover, 800px 800px, 600px 600px;
  animation: heroBackground 20s ease-in-out infinite;
}

@keyframes heroBackground {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 77, 124, 0.1);
}

.hero-content-enhanced {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInDown 0.8s ease-out;
}

.hero-title-enhanced {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle-enhanced {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1FD9A6;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Enhanced Search Form */
.hero-search-form-enhanced {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.search-box-wrapper {
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-wrapper {
  position: absolute;
  right: 1.25rem;
  color: #6B7280;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input-enhanced {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.5rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.search-input-enhanced:focus {
  outline: none;
  border-color: #1A4D7C;
  box-shadow: 0 0 0 4px rgba(26, 77, 124, 0.1);
}

.search-select-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-select-group svg {
  position: absolute;
  right: 1rem;
  color: #6B7280;
  pointer-events: none;
}

.search-select-enhanced {
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  font-size: 1rem;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  min-width: 180px;
}

.search-select-enhanced:focus {
  outline: none;
  border-color: #1A4D7C;
  box-shadow: 0 0 0 4px rgba(26, 77, 124, 0.1);
}

.btn-search-enhanced {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(26, 77, 124, 0.3);
}

.btn-search-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 77, 124, 0.4);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-section-enhanced {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-title-enhanced {
    font-size: 1.75rem;
  }

  .hero-subtitle-enhanced {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .search-box-wrapper {
    grid-template-columns: 1fr;
  }

  .btn-search-enhanced {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-divider {
    display: none;
  }
}

/* ========================================
   Promotional Banners Slider
======================================== */
.banners-slider-section {
  padding: 3rem 0;
  background: #FFFFFF;
}

.banners-slider {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.banner-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem;
  min-height: 300px;
  background: linear-gradient(135deg, #1A4D7C 0%, #2A5D8C 100%);
  position: relative;
  overflow: hidden;
}

.banner-slide::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(31, 217, 166, 0.1);
  border-radius: 50%;
}

.banner-slide-2 {
  background: linear-gradient(135deg, #1FD9A6 0%, #2A5D8C 100%);
  display: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-slide h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.banner-slide p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.btn-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #FFFFFF;
  color: #1A4D7C;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.banner-image {
  position: relative;
  z-index: 2;
  opacity: 0.3;
}

.banner-image svg {
  color: #FFFFFF;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D1D5DB;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #1A4D7C;
  width: 30px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .banner-slide {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    min-height: auto;
  }

  .banner-content {
    max-width: 100%;
  }

  .banner-slide h3 {
    font-size: 1.5rem;
  }

  .banner-image {
    display: none;
  }
}

/* ========================================
   Section Headers Enhanced
======================================== */
.section-header-enhanced {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-enhanced {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1A4D7C;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title-enhanced::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1A4D7C 0%, #1FD9A6 100%);
  border-radius: 2px;
}

.section-subtitle-enhanced {
  font-size: 1.125rem;
  color: #6B7280;
  max-width: 600px;
  margin: 1rem auto 0;
}

.section-footer-enhanced {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .section-title-enhanced {
    font-size: 1.75rem;
  }

  .section-subtitle-enhanced {
    font-size: 1rem;
  }
}

/* ========================================
   Categories Section - Horizontal with Images
======================================== */
.categories-section-enhanced {
  padding: 5rem 0;
  background: #F9FAFB;
}

.categories-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card-horizontal {
  position: relative;
  height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card-horizontal:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-image-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-card-horizontal:hover .category-image-horizontal {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.category-info-horizontal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.category-name-horizontal {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-count-horizontal {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-arrow {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.category-arrow svg {
  color: #FFFFFF;
}

.category-card-horizontal:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .categories-grid-horizontal {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card-horizontal {
    height: 150px;
  }

  .category-name-horizontal {
    font-size: 1.125rem;
  }
}

/* ========================================
   Services Grid Enhanced
======================================== */
.featured-services-section-enhanced,
.recent-services-section {
  padding: 5rem 0;
  background: #FFFFFF;
}

.recent-services-section {
  background: #F9FAFB;
}

.services-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card-enhanced {
  background: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
}

.service-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #1FD9A6;
}

.service-image-enhanced {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
}

.service-image-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-enhanced:hover .service-image-enhanced img {
  transform: scale(1.1);
}

.service-placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  opacity: 0.1;
  position: relative;
}

.service-placeholder-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231A4D7C" stroke-width="2"%3E%3Crect x="3" y="3" width="18" height="18" rx="2" ry="2"%3E%3C/rect%3E%3Ccircle cx="8.5" cy="8.5" r="1.5"%3E%3C/circle%3E%3Cpolyline points="21 15 16 10 5 21"%3E%3C/polyline%3E%3C/svg%3E') no-repeat center;
  background-size: contain;
  opacity: 0.3;
}

.service-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.service-badge-featured,
.service-badge-new {
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.service-badge-featured {
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  color: #FFFFFF;
}

.service-badge-new {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  color: #FFFFFF;
}

.service-favorite {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
}

.service-card-enhanced:hover .service-favorite {
  opacity: 1;
  transform: scale(1);
}

.service-favorite:hover {
  background: #EF4444;
}

.service-favorite:hover svg {
  stroke: #FFFFFF;
  fill: #FFFFFF;
}

.service-favorite svg {
  color: #EF4444;
  transition: all 0.3s ease;
}

.service-content-enhanced {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.service-title-enhanced {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.service-title-enhanced a {
  color: #1A4D7C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-title-enhanced a:hover {
  color: #1FD9A6;
}

.service-rating-enhanced {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #FEF3C7;
  padding: 0.25rem 0.625rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #92400E;
  flex-shrink: 0;
}

.service-rating-enhanced svg {
  color: #F59E0B;
  width: 14px;
  height: 14px;
}

.service-location-enhanced {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.75rem;
}

.service-location-enhanced svg {
  flex-shrink: 0;
}

.service-excerpt-enhanced {
  font-size: 0.9375rem;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.service-footer-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
  margin-top: auto;
}

.service-price-enhanced {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-bottom: 0.125rem;
}

.price-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1A4D7C;
}

.btn-view-details {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  color: #FFFFFF;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-view-details:hover {
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(26, 77, 124, 0.3);
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  color: #FFFFFF;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 77, 124, 0.2);
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 77, 124, 0.3);
}

@media (max-width: 768px) {
  .services-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials-section {
  padding: 5rem 0;
  background: #FFFFFF;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #F9FAFB;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #1FD9A6;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar svg {
  color: #FFFFFF;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1A4D7C;
  margin: 0 0 0.25rem 0;
}

.testimonial-service {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
}

.testimonial-rating svg {
  color: #F59E0B;
  width: 16px;
  height: 16px;
}

.testimonial-text {
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial-date {
  font-size: 0.75rem;
  color: #9CA3AF;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Stats Section
======================================== */
.stats-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1A4D7C 0%, #2A5D8C 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(31, 217, 166, 0.1);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  color: #FFFFFF;
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-card .stat-label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card .stat-number {
    font-size: 2rem;
  }
}

/* ========================================
   CTA Section (Keep original styles)
======================================== */
.cta-section {
  background: linear-gradient(135deg, #1A4D7C 0%, #1FD9A6 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.cta-icon svg {
  color: #FFFFFF;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-white {
  background: #FFFFFF;
  color: #1A4D7C;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  background: #F9FAFB;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 3rem 0;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ========================================
   Utilities
======================================== */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }



