/* ========== Hero Section ========== */
.hero-section {
  position: relative;
  padding: calc(var(--header-height) + 2rem) 0 6rem;
  background: linear-gradient(to left, var(--primary-color), var(--primary-dark)) !important;
  color: white;
  overflow: hidden;
  margin-bottom: 0;
  margin-top: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/pattern.png');
  opacity: 0.05;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-badge i {
  margin-left: 5px;
  color: var(--accent-color);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(to right, #ffffff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.8;
  max-width: 90%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.hero-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  border-radius: 10px;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.element-1 {
  top: 20%;
  left: 0;
  animation: float-element 8s ease-in-out infinite;
}

.element-2 {
  top: 70%;
  left: 10%;
  animation: float-element 7s ease-in-out infinite 1s;
}

.element-3 {
  top: 10%;
  right: 10%;
  animation: float-element 9s ease-in-out infinite 2s;
}

.element-4 {
  top: 60%;
  right: 0;
  animation: float-element 6s ease-in-out infinite 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes float-element {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-10px, 10px); }
  50% { transform: translate(0, 20px); }
  75% { transform: translate(10px, 10px); }
}

.hero-shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 60%, 100% 100%, 100% 100%, 0% 100%);
  z-index: 2;
}

/* ========== Call to Action Section ========== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(to left, var(--primary-color), var(--primary-dark)) !important;
  background-image: url('../img/cta-bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-blend-mode: multiply;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/pattern.png');
  opacity: 0.05;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.cta-section .btn-accent {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  transform: translateY(0);
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(255, 204, 112, 0.3);
  background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
}

.cta-section .btn-accent:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 204, 112, 0.4);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 4rem 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-container {
    margin-top: 3rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-content {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-text {
    font-size: 1rem;
  }
}

/* ========== تنسيقات السلايدر ========== */

/* حاوية السلايدر وشريط البحث */
.slider-search-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.slider-search-container .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* الإطار الرئيسي للسلايدر */
.carousel {
  margin-bottom: 5rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #8E1751, #BD3A77);
  z-index: 10;
  border-radius: 15px 15px 0 0;
}

/* العناصر الداخلية للسلايدر */
.carousel-item {
  background: linear-gradient(to right, #8E1751, #BD3A77);
  background-size: cover;
  background-position: center;
  height: 400px;
  position: relative;
  transition: transform 0.8s ease-in-out;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s ease;
}

.carousel-item.active img {
  transform: scale(1.1);
}

/* التدرج اللوني فوق الصورة */
.carousel-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  z-index: 1;
}

/* تنسيق مربع النص */
.carousel-caption {
  position: absolute;
  bottom: 5rem;
  z-index: 10;
  text-align: right;
  right: 10%;
  left: 10%;
  padding: 2rem;
  background-color: rgba(0,0,0,0.3);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateY(0);
  transition: all 0.5s ease;
}

.carousel-caption:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* تنسيق العنوان */
.carousel-caption h5 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* تنسيق النص الوصفي */
.carousel-caption p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  max-width: 800px;
  color: rgba(255,255,255,0.95);
  font-weight: 400;
}

/* تنسيق الزر */
.carousel-caption .btn {
  padding: 0.8rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.carousel-caption .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: width 0.3s ease;
  z-index: -1;
}

.carousel-caption .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.carousel-caption .btn:hover::after {
  width: 100%;
}

.carousel-caption .btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.carousel-caption .btn:hover i {
  transform: translateX(-5px);
}

/* تنسيق أزرار التنقل */
.carousel-control-prev, 
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  z-index: 20;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  background-size: 50%;
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.2);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

/* تنسيق مؤشرات الشرائح */
.carousel-indicators {
  bottom: 2rem;
  z-index: 20;
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.6);
  border: 2px solid rgba(255,255,255,0.8);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
  opacity: 1;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* تأثيرات الحركة للسلايدر */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.carousel-item.active h5 {
  animation: fadeInDown 1s both;
}

.carousel-item.active p {
  animation: fadeInUp 1s 0.3s both;
}

.carousel-item.active .btn {
  animation: fadeInUp 1s 0.6s both;
}

/* تنسيقات للأجهزة اللوحية */
@media (max-width: 992px) {
  .carousel-item {
    height: 550px;
  }
  
  .carousel-caption {
    bottom: 4rem;
    padding: 2rem;
  }
  
  .carousel-caption h5 {
    font-size: 2.5rem;
  }
  
  .carousel-caption p {
    font-size: 1.3rem;
  }
  
  .carousel-indicators {
    bottom: 2rem;
  }
}

/* تنسيقات للأجهزة المتوسطة */
@media (max-width: 768px) {
  .carousel-item {
    height: 450px;
  }
  
  .carousel-caption {
    bottom: 2rem;
    padding: 1.5rem;
    right: 8%;
    left: 8%;
  }
  
  .carousel-caption h5 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  .carousel-caption .btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .carousel-control-prev-icon, 
  .carousel-control-next-icon {
    width: 35px;
    height: 35px;
  }
  
  .carousel-indicators {
    bottom: 1.5rem;
  }
  
  .carousel-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 4px;
  }
}

/* تنسيقات للهواتف */
@media (max-width: 576px) {
  .carousel {
    border-radius: 10px;
    margin-bottom: 2rem;
  }
  
  .carousel-item {
    height: 350px;
  }
  
  .carousel-caption {
    bottom: 1rem;
    padding: 1rem;
    right: 5%;
    left: 5%;
  }
  
  .carousel-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  .carousel-caption .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .carousel-control-prev, 
  .carousel-control-next {
    width: 10%;
  }
  
  .carousel-control-prev-icon, 
  .carousel-control-next-icon {
    width: 35px;
    height: 35px;
  }
  
  .carousel-indicators {
    bottom: 1rem;
  }
  
  .carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
} 