/* ===== متغيرات CSS للألوان والخطوط ===== */
:root {
  /* نظام الألوان الأساسي */
  --primary-purple: #9a279e;        /* أرجواني مزهر */
  --dark-purple: #4a1854;           /* أرجواني قاتم */
  --light-purple: #9433a4;          /* أرجواني فاتح */
  --purple-gradient: linear-gradient(135deg, #9433a4 0%, #4a1854 100%);
  
  /* ألوان مساعدة */
  --white: #FFFFFF;
  --light-gray: #F8FAFC;
  --gray: #64748B;
  --dark-gray: #334155;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  
  /* الخطوط */
  --font-primary: 'RB-Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'RB-Bold', sans-serif;
  
  /* المسافات */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* الظلال */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* الانتقالات */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== إعدادات عامة ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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





body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  direction: rtl;
  text-align: right;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-purple);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--gray);
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--dark-purple);
  text-decoration: none;
}

/* ===== أزرار مخصصة ===== */
.btn-primary-custom {
  background: var(--purple-gradient);
  border: none;
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-slow);
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-outline-custom {
  background: #fff;
  border: 2px solid var(--primary-purple);
  color: var(--primary-purple);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-normal);
}

.btn-outline-custom:hover {
  background: var(--primary-purple);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Header و Navigation ===== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-sm) 0;
  transition: var(--transition-normal);
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}
.navbar-brand{
  display: flex;
}

.navbar-brand img {
  height: 50px;
  transition: var(--transition-normal);
}

.navbar-nav .nav-link {
  color: var(--dark-gray);
  font-weight: 500;
  margin: 0;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 25px;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-purple);
  background: rgba(139, 92, 246, 0.1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-purple);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* ===== Hero Slider Section ===== */
.hero-slider-section {
  position: relative;
  overflow: hidden;
}

/* Particles Background */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-title {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Carousel Indicators */
.carousel-indicators {
  bottom: 30px;
  margin-bottom: 0;
  z-index: 3;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background-color: transparent;
  margin: 0 8px;
  transition: var(--transition-normal);
}

.carousel-indicators .active {
  background-color: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
  z-index: 3;
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

/* Carousel Fade Effect */
.carousel-inner {
  position: relative;
  z-index: 2;
}

.carousel-item {
  transition: transform 0.8s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

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

/* Appointment Steps Styles */
.appointment-steps {
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.step-item.active .step-circle {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.step-item.active .step-label {
    color: var(--primary-purple);
    font-weight: 600;
}

.step-item.completed .step-circle {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-item.completed .step-label {
    color: #28a745;
}

.step-line {
    height: 3px;
    background: #e9ecef;
    flex: 1;
    margin: 0 1rem;
    margin-top: 25px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.step-line.active {
    background: var(--primary-purple);
}

.step-line.completed {
    background: #28a745;
}

/* Appointment Step Animation */
.appointment-step {
    animation: slideIn 0.5s ease-in-out;
}

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

/* Step Transition Effects */
.appointment-step.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

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

/* Responsive Design for Steps */
@media (max-width: 768px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .step-line {
        margin: 0 0.5rem;
        margin-top: 20px;
    }
    
    .appointment-steps {
        margin-bottom: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
  }
  
  .carousel-control-prev {
    left: 15px;
  }
  
  .carousel-control-next {
    right: 15px;
  }
  
  .carousel-indicators {
    bottom: 20px;
  }
  
  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 5px;
  }
}

/* ===== أقسام الخدمات ===== */
.services-section {
  padding: var(--spacing-xxl) 0;
  background: var(--light-gray);
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--purple-gradient);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ===== Footer المحسن ===== */
.footer {
  background: linear-gradient(135deg, 
    var(--dark-purple) 0%, 
    #2d1b69 50%, 
    #1a0f3d 100%);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

/* خلفية متحركة للفوتر */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(138, 43, 226, 0.1), 
    transparent);
  animation: footerShine 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes footerShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

/* تحسين العناوين */
.footer h5 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer h5:hover {
  color: #ff6b9d;
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgba(255, 107, 157, 0.3);
}
.footer img{
      height: 100px;
}
/* تحسين الروابط */
.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  display: inline-block;
  text-decoration: none;
}

.footer a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b9d, #4ecdc4);
  transition: width 0.3s ease;
}

.footer a:hover {
  color: var(--white);
  transform: translateX(5px);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.footer a:hover::before {
  width: 100%;
}

/* تحسين قوائم الروابط */
.footer ul {
  position: relative;
  z-index: 2;
}

.footer ul li {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.footer ul li:hover {
  transform: translateX(10px);
  padding-left: 10px;
}

/* تحسين الروابط الاجتماعية */
.social-links {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(255, 107, 157, 0.3);
  border-color: transparent;
}

.social-links a:hover::before {
  width: 0;
}

/* تحسين معلومات التواصل */
.contact-info {
  position: relative;
  z-index: 2;
}

.contact-info p {
  margin-bottom: 12px;
  transition: all 0.3s ease;
  padding: 8px 0;
  border-radius: 5px;
}

.contact-info p:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
  padding-left: 15px;
}

.contact-info i {
  color: #ff6b9d;
  transition: all 0.3s ease;
}

.contact-info p:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #4ecdc4;
}

/* تحسين الفوتر السفلي */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  text-align: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  border-radius: 15px 15px 0 0;
  transition: all 0.3s ease;
}

.footer-bottom:hover {
  transform: translateY(-2px);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-bottom:hover p {
  opacity: 1;
  color: #ff6b9d;
}

/* تأثيرات الحركة عند التحميل */
.footer .col-lg-4,
.footer .col-lg-2 {
  opacity: 0;
  transform: translateY(30px);
  animation: footerFadeIn 0.8s ease forwards;
}

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

@keyframes footerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تأثير النقر على العناصر */
.footer .clickable {
  transition: all 0.2s ease;
}

.footer .clickable:active {
  transform: scale(0.95);
}

/* تأثير الموجة عند النقر */
.footer .wave-effect {
  position: relative;
  overflow: hidden;
}

.footer .wave-effect::after {
  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;
}

.footer .wave-effect:active::after {
  width: 300px;
  height: 300px;
}

/* ===== حركات التحميل ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--transition-slow);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition-slow);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== تجاوب الشاشات ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .btn-primary-custom,
  .btn-outline-custom {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===== أنماط الصور البيضاوية الانسيابية ===== */
.hero-image {
  position: relative;
}

/* صورة شفافة في الخلفية */

.hero-image::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 30px;
  right: -30px;
  bottom: -30px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  filter: blur(12px) brightness(1.5) contrast(0.7) saturate(1.2);
  clip-path: polygon(
    10% 30%, 
    30% 10%, 
    50% 22%, 
    70% 10%, 
    90% 30%, 
    88% 20%, 
    88% 45%, 
    75% 65%, 
    88% 85%, 
    70% 88%, 
    50% 78%, 
    30% 88%, 
    10% 85%, 
    12% 95%, 
    12% 70%, 
    25% 45%
  );
  border-radius: 45% 75% 55% 65% / 50% 70% 60% 60%;
  z-index: -3;
  transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image:hover::before {
  opacity: 0.18;
  transform: scale(1.2) rotate(10deg);
  filter: blur(18px) brightness(1.8) contrast(1.1) saturate(1.4);
  clip-path: polygon(
    15% 28%, 
    35% 15%, 
    55% 28%, 
    75% 15%, 
    85% 35%, 
    82% 25%, 
    82% 50%, 
    70% 70%, 
    82% 90%, 
    65% 85%, 
    45% 75%, 
    25% 85%, 
    15% 90%, 
    18% 100%, 
    18% 75%, 
    30% 50%
  );
}

/* صور خلفية مختلفة لكل سلايد */
.carousel-item:nth-child(1) .hero-image::before {
  background-image: url('../images/home-doctor.jpg');
}

.carousel-item:nth-child(2) .hero-image::before {
  background-image: url('../images/medical-tourism-hero.jpg');
}

.carousel-item:nth-child(3) .hero-image::before {
  background-image: url('../images/home-services-hero.jpg');
}

.carousel-item:nth-child(4) .hero-image::before {
  background-image: url('../images/medical-store-hero.jpg');
}

.hero-image img {
  clip-path: ellipse(45% 48% at 50% 50%);
  border-radius: 45% 55% 52% 48% / 48% 52% 48% 52%;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.15));
  position: relative;
  transform-origin: center;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

.hero-image img:hover {
  clip-path: ellipse(48% 45% at 50% 50%);
  border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%;
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.25)) brightness(1.15) contrast(1.1);
}

/* الإطار المتوهج المتموج */
/* إضافة keyframes للحركة المستمرة */
@keyframes glowPulse {
  0% {
    box-shadow: 
      0 0 20px rgba(138, 43, 226, 0.8),
      0 0 40px rgba(138, 43, 226, 0.6),
      0 0 60px rgba(138, 43, 226, 0.4),
      inset 0 0 20px rgba(138, 43, 226, 0.2);
    filter: blur(16px) hue-rotate(0deg);
  }
  25% {
    box-shadow: 
      0 0 30px rgba(255, 20, 147, 0.9),
      0 0 50px rgba(255, 20, 147, 0.7),
      0 0 80px rgba(255, 20, 147, 0.5),
      inset 0 0 30px rgba(255, 20, 147, 0.3);
    filter: blur(18px) hue-rotate(90deg);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(0, 191, 255, 0.9),
      0 0 60px rgba(0, 191, 255, 0.7),
      0 0 100px rgba(0, 191, 255, 0.5),
      inset 0 0 40px rgba(0, 191, 255, 0.3);
    filter: blur(20px) hue-rotate(180deg);
  }
  75% {
    box-shadow: 
      0 0 35px rgba(50, 205, 50, 0.9),
      0 0 55px rgba(50, 205, 50, 0.7),
      0 0 90px rgba(50, 205, 50, 0.5),
      inset 0 0 35px rgba(50, 205, 50, 0.3);
    filter: blur(18px) hue-rotate(270deg);
  }
  100% {
    box-shadow: 
      0 0 20px rgba(138, 43, 226, 0.8),
      0 0 40px rgba(138, 43, 226, 0.6),
      0 0 60px rgba(138, 43, 226, 0.4),
      inset 0 0 20px rgba(138, 43, 226, 0.2);
    filter: blur(16px) hue-rotate(360deg);
  }
}

@keyframes borderShift {
  0% {
    clip-path: polygon(
      2% 20%, 20% 2%, 40% 12%, 54% 2%, 70% 17%, 90% 2%, 
      98% 30%, 90% 50%, 98% 70%, 80% 90%, 66% 98%, 46% 88%, 
      26% 98%, 10% 80%, 2% 66%, 10% 46%
    );
    border-radius: 40% 70% 50% 60% / 45% 65% 55% 55%;
  }
  25% {
    clip-path: polygon(
      10% 15%, 25% 5%, 45% 15%, 60% 5%, 75% 25%, 90% 15%, 
      90% 40%, 80% 60%, 90% 80%, 75% 90%, 55% 90%, 40% 80%, 
      20% 90%, 10% 75%, 10% 55%, 20% 40%
    );
    border-radius: 45% 65% 40% 60% / 70% 35% 50% 65%;
  }
  50% {
    clip-path: polygon(
      15% 10%, 30% 15%, 50% 10%, 65% 20%, 80% 15%, 85% 30%, 
      75% 55%, 85% 75%, 70% 90%, 55% 85%, 35% 90%, 20% 75%, 
      15% 60%, 25% 45%, 15% 30%, 20% 15%
    );
    border-radius: 70% 30% 75% 25% / 40% 60% 35% 75%;
  }
  75% {
    clip-path: polygon(
      5% 25%, 15% 10%, 35% 20%, 50% 5%, 70% 15%, 90% 30%, 
      85% 50%, 90% 70%, 80% 90%, 65% 85%, 45% 95%, 30% 80%, 
      10% 90%, 15% 70%, 5% 50%, 10% 35%
    );
    border-radius: 35% 75% 30% 70% / 65% 25% 70% 45%;
  }
  100% {
    clip-path: polygon(
      2% 20%, 20% 2%, 40% 12%, 54% 2%, 70% 17%, 90% 2%, 
      98% 30%, 90% 50%, 98% 70%, 80% 90%, 66% 98%, 46% 88%, 
      26% 98%, 10% 80%, 2% 66%, 10% 46%
    );
    border-radius: 40% 70% 50% 60% / 45% 65% 55% 55%;
  }
}

.hero-image .glow-frame {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  background: linear-gradient(135deg, 
    var(--primary-purple), 
    var(--light-purple), 
    var(--primary-purple),
    var(--light-purple)
  );
  clip-path: polygon(
    2% 20%, 
    20% 2%, 
    40% 12%, 
    54% 2%, 
    70% 17%, 
    90% 2%, 
    98% 30%, 
    90% 50%, 
    98% 70%, 
    80% 90%, 
    66% 98%, 
    46% 88%, 
    26% 98%, 
    10% 80%, 
    2% 66%, 
    10% 46%
  );
  border-radius: 40% 70% 50% 60% / 45% 65% 55% 55%;
  opacity: 0;
  transition: all 1.2s ease;
  z-index: -2;
  filter: blur(16px);
  pointer-events: none;
  
  /* إضافة الحركة المستمرة */
  animation: 
    glowPulse 4s ease-in-out infinite,
    borderShift 8s ease-in-out infinite;
}

.hero-image:hover .glow-frame {
  opacity: 0.9;
  clip-path: polygon(
    10% 15%, 
    27% 10%, 
    47% 20%, 
    60% 10%, 
    77% 25%, 
    90% 15%, 
    90% 38%, 
    80% 58%, 
    90% 78%, 
    73% 90%, 
    53% 90%, 
    40% 80%, 
    20% 90%, 
    10% 73%, 
    10% 53%, 
    20% 38%
  );
  border-radius: 65% 45% 70% 40% / 60% 50% 70% 40%;
  filter: blur(25px);
  
  /* تسريع الحركة عند التحويم */
  animation: 
    glowPulse 2s ease-in-out infinite,
    borderShift 4s ease-in-out infinite;
  
  /* إضافة تأثيرات إضافية عند التحويم */
  box-shadow: 
    0 0 50px rgba(138, 43, 226, 1),
    0 0 80px rgba(255, 20, 147, 0.8),
    0 0 120px rgba(0, 191, 255, 0.6),
    inset 0 0 50px rgba(138, 43, 226, 0.4);
}

/* ===== تحسينات إضافية ===== */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--purple-gradient);
  border-radius: 2px;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== تأثيرات الهوفر المتقدمة ===== */
.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-glow {
  transition: var(--transition-normal);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ===== أنماط صفحة التواصل معنا ===== */
.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--purple-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

.working-hours {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-purple);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border: none;
}

.newsletter-form .btn {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border: none;
    padding: 0.5rem 1rem;
}

/* تحسينات نموذج التواصل */
#contactForm .form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.25);
}

#contactForm .form-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.25);
}

/* تأثير الموجات البيضاوية المتحركة حول الصورة */
.hero-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 125%;
  background: radial-gradient(
    ellipse, 
    transparent 35%, 
    rgba(139, 92, 246, 0.08) 36%, 
    rgba(139, 92, 246, 0.12) 38%, 
    transparent 40%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 1s ease;
  pointer-events: none;
  z-index: -2;
}

.hero-image:hover::after {
  opacity: 1;
  animation: elliptical-ripple 4s ease-in-out infinite;
}

@keyframes elliptical-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.7) scaleY(0.8);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) scaleY(1.1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5) scaleY(1.4);
    opacity: 0;
  }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .hero-image img {
    clip-path: ellipse(48% 50% at 50% 50%);
    border-radius: 48% 52% 50% 48% / 50% 48% 52% 50%;
    height: 400px;
  }
  
  .hero-image img:hover {
    transform: scale(1.05) rotate(-1deg);
  }
  
  .hero-image::after {
    width: 120%;
    height: 115%;
  }
}

@media (max-width: 576px) {
  .hero-image img {
    height: 350px;
  }
}

