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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ANIMATIONS COMPLÈTES */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

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

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

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

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

.animate-fade-in { 
  animation: fadeIn 1s ease forwards; 
  opacity: 0;
}

.animate-fade-in-up { 
  animation: fadeInUp 1.2s ease forwards; 
  opacity: 0;
}

.animate-fade-in-down { 
  animation: fadeInDown 1.2s ease forwards; 
  opacity: 0;
}

.animate-slide-in-left { 
  animation: slideInLeft 1s ease forwards; 
  opacity: 0;
}

.animate-slide-in-right { 
  animation: slideInRight 1s ease forwards; 
  opacity: 0;
}

/* FANCY TITLES AMÉLIORÉS */
.fancy-title {
  position: relative;
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
  display: inline-block;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.3s ease;
  font-size: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .fancy-title { 
    font-size: 3.5rem; 
    margin-bottom: 3rem;
  }
}

.fancy-title span {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

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

.fancy-title::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.4), rgba(124, 58, 237, 0.3), transparent 70%);
  filter: blur(25px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.fancy-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ec4899, #7c3aed, transparent);
  border-radius: 2px;
  opacity: 0.7;
}

.fancy-title:hover::before { 
  opacity: 1; 
}

.fancy-title:hover::after {
  width: 200px;
  transition: width 0.3s ease;
}

/* VARIANTES DE COULEURS */
.fancy-title.silver span {
  background: linear-gradient(135deg, #9ca3af, #d1d5db, #6b7280);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fancy-title.gold span {
  background: linear-gradient(135deg, #d4af37, #facc15, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fancy-title.platinum span {
  background: linear-gradient(135deg, #e5e4e2, #a3a3a3, #737373);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fancy-title.clrtitle span {
  background: linear-gradient(135deg, #e19eee, #9b3df3, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CAROUSEL STYLES COMPLETS */
.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
}

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

.carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 1rem 1.5rem;
}

@media (max-width: 640px) {
  .carousel-track {
    gap: 1rem;
    padding: 0.5rem 1rem;
  }
}

.carousel-item {
  flex: 0 0 calc(50% - 0.75rem);
  min-width: 0;
  height: 220px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(142, 132, 231, 0.15);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
}

@media (min-width: 640px) {
  .carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    height: 260px;
    border-radius: 18px;
  }
}

@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 calc(25% - 1.5rem);
    height: 300px;
    border-radius: 20px;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(20% - 1.5rem);
    height: 320px;
  }
}

@media (min-width: 1280px) {
  .carousel-item {
    flex: 0 0 calc(18% - 1.5rem);
    height: 340px;
  }
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: all 0.4s ease;
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.carousel-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(172, 100, 240, 0.35);
  z-index: 10;
}

.carousel-item:hover img {
  transform: scale(1.08);
}

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

/* BOUTONS CAROUSEL AMÉLIORÉS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border: none;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .carousel-btn {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
  }
}

.carousel-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev { 
  left: -25px;
}

.carousel-btn.next { 
  right: -25px;
}

@media (min-width: 768px) {
  .carousel-btn.prev { 
    left: -30px;
  }
  
  .carousel-btn.next { 
    right: -30px;
  }
}

/* CONTRÔLES MOBILES */
.carousel-mobile-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.carousel-btn-mobile {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  flex-shrink: 0;
}

.carousel-btn-mobile:hover {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

/* CARD HOVER EFFECTS AMÉLIORÉS */
.card-animate {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card-animate::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.card-animate:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(124, 58, 237, 0.1);
}

.card-animate:hover::before {
  left: 100%;
}

/* SERVER CARD COLORS */
.server-silver h3 { 
  color: #6b7280; 
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.server-gold h3 { 
  color: #d97706; 
  background: linear-gradient(135deg, #d97706, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.server-platinum h3 { 
  color: #7c3aed; 
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.server-text h3 { 
  color: #7c3aed; 
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.server-vert h3 { 
  color: #1d9c2e; 
  background: linear-gradient(135deg, #1d9c2e, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* HERO SECTION STYLES */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  line-height: 1.4;
}

.hero-description {
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* DEVICES GRID STYLES */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 480px) {
  .devices-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

.device-item {
  transition: all 0.3s ease;
  padding: 1rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.device-item:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* PRICING CARDS ENHANCED */
.pricing-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 50px rgba(124, 58, 237, 0.15),
    0 0 0 1px rgba(124, 58, 237, 0.1);
}

/* UTILITY CLASSES */
.text-gradient {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #7c3aed, #ec4899) border-box;
}

/* LOADING STATES */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #6d28d9, #db2777);
}

/* FOCUS STATES FOR ACCESSIBILITY */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  border-radius: 6px;
}

/* PRINT STYLES */
@media print {
  .carousel-btn,
  .carousel-btn-mobile,
  .card-animate:hover {
    display: none !important;
  }
  
  .fancy-title span {
    background: black !important;
    -webkit-text-fill-color: black !important;
    color: black !important;
  }
  
  .hero-section {
    height: auto;
    min-height: auto;
  }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
  .carousel {
    background: linear-gradient(145deg, #1f2937, #111827);
  }
  
  .carousel-item {
    background: #374151;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  
  .device-item {
    background: rgba(55, 65, 81, 0.8);
  }
  
  .device-item:hover {
    background: rgba(55, 65, 81, 0.95);
  }
}

/* PERFORMANCE OPTIMIZATIONS */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============== أنماط الكاروسيل للآراء الحقيقية - معدل =============== */
.testimonials-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  padding: 1rem 0;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  animation: scroll-testimonials 40s linear infinite;
  padding: 1rem;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-testimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-320px * 6)); }
}

.testimonial-card {
  flex: 0 0 300px;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

/* إصلاح حجم الصور - تم التصغير */
.testimonial-image {
  width: 100%;
  height: 140px; /* تم التصغير من 200px إلى 140px */
  border-radius: 0.75rem;
  object-fit: contain; /* للحفاظ على نسبة الأبعاد */
  object-position: center;
  margin-bottom: 1rem;
  border: 2px solid #f3f4f6;
  background: #f8fafc;
}

.testimonial-text {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* لأجهزة الجوال */
@media (max-width: 768px) {
  .testimonials-track {
    animation: scroll-testimonials-mobile 35s linear infinite;
    gap: 1rem;
  }
  
  @keyframes scroll-testimonials-mobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 3)); }
  }
  
  .testimonial-card {
    flex: 0 0 280px;
    min-height: 300px;
    padding: 1rem;
  }
  
  .testimonial-image {
    height: 120px;
  }
}

/* إيقاف الأنيميشن عند تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
  }
}