/* منع horizontal scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ========== Modern Navbar Styles ========== */

/* Glass Navbar */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(147, 51, 234, 0.1);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.08);
  transition: all 0.3s ease;
}

.glass-nav:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(147, 51, 234, 0.12);
}

/* Logo Container */
.logo-container {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* Nav Links */
.nav-link {
  position: relative;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.625rem 1rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(59, 130, 246, 0.1));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: #9333ea;
  transform: translateY(-2px);
}

/* Nav Dropdown */
.nav-dropdown {
  cursor: pointer;
  border: none;
  background: transparent;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  left: 0;
  display: none;
  margin-top: 0;
  padding-top: 1.5rem;
  padding-bottom: 0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  background: transparent;
  border: none;
  width: 14rem;
  z-index: 50;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 51, 234, 0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(147, 51, 234, 0.15);
  z-index: -1;
  animation: dropdownFadeIn 0.3s ease-out;
}

.group:hover .dropdown-menu {
  display: block;
}

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

/* Dropdown Items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropdown-item:hover::before {
  opacity: 1;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), rgba(59, 130, 246, 0.08));
  color: #9333ea;
  transform: translateX(-4px);
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  transition: left 0.4s ease;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button span,
.cta-button svg {
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(-3px);
}

/* Mobile Button */
.modern-btn-mobile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(59, 130, 246, 0.1));
  color: #9333ea;
  border-radius: 12px;
  border: 2px solid rgba(147, 51, 234, 0.2);
  transition: all 0.3s ease;
}

.modern-btn-mobile:hover {
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

/* Mobile Menu */
.mobile-menu {
  background: linear-gradient(135deg, rgba(249, 250, 251, 0.98), rgba(243, 244, 246, 0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(147, 51, 234, 0.1);
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Mobile Links */
.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, #9333ea, #3b82f6);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mobile-link:hover::before {
  transform: scaleY(1);
}

.mobile-link:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(59, 130, 246, 0.05));
  color: #9333ea;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

/* Mobile Services Section */
.mobile-services {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-right: 4px solid;
  border-image: linear-gradient(180deg, #9333ea, #3b82f6) 1;
}

.mobile-services-title {
  color: #9333ea;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-service-item {
  display: block;
  padding: 0.625rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}

.mobile-service-item:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), rgba(59, 130, 246, 0.08));
  color: #9333ea;
  transform: translateX(4px);
}

/* Mobile CTA */
.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  color: white;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 100px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: float 2s infinite ease-in-out;
}

/* تأثير عند تمرير الماوس */
.whatsapp-float:hover {
  background-color: #20b456;
  transform: scale(1.1);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
}

/* نمط الأيقونة */
.whatsapp-icon {
  font-size: 30px;
}

/* أنيميشن الأيقونة العائمة */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* my code */
.clients-grid div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.clients-grid img {
  height: 100px; /* اضبط الارتفاع حسب الحاجة */
  object-fit: contain;
}

.clients-grid p {
  min-height: 40px; /* لضمان تناسق النصوص */
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #4a5568;
}
