/* تحسينات إضافية للصفحة */

/* قسم البطل */
.hero-section {
  background: linear-gradient(135deg, #dc3545 0%, #6f1d25 100%);
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://fortnite.gg/img/backgrounds/bg-1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-description {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-out;
}

.hero-btn {
  transition: all 0.3s ease;
  animation: fadeInUp 1.4s ease-out;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-15deg);
  transition: transform 0.5s ease;
  animation: float 6s ease-in-out infinite, fadeIn 1s ease-out;
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* تحسينات عامة */
.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #dc3545;
}

/* تحسينات بطاقات المميزات */
.feature-card {
  border: none;
  background: linear-gradient(145deg, #222222, #1a1a1a);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  background: linear-gradient(135deg, #dc3545 0%, #ff8a80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
}

/* تحسينات بطاقات العناصر */
.item-card {
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid transparent;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-img-container {
  position: relative;
  overflow: hidden;
}

.overlay-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-play i {
  font-size: 3rem;
  color: white;
}

.item-card:hover .overlay-play {
  opacity: 1;
}

/* تحسينات التذييل */
.footer {
  background: linear-gradient(to bottom, #1a1a1a, #0f0f0f);
}

.footer h5 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer h5:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: #dc3545;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer ul li a:hover {
  color: #dc3545 !important;
  padding-right: 5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #dc3545;
  transform: translateY(-5px);
}

/* تحسينات الأسئلة الشائعة */
.accordion-button:not(.collapsed) {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* تحسينات زر العودة للأعلى */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #dc3545;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: #c82333;
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* تحسينات النافذة المنبثقة */
.modal-content {
  background: linear-gradient(145deg, #222222, #1a1a1a);
  border: none;
}

.modal-close {
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #dc3545;
  transform: rotate(90deg);
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: perspective(1000px) rotateY(-15deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(-15deg) translateY(-10px);
  }
  100% {
    transform: perspective(1000px) rotateY(-15deg) translateY(0px);
  }
}

/* تحسينات التوافق مع الأجهزة المحمولة */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .social-icons a {
    width: 35px;
    height: 35px;
    margin: 0 5px;
  }
}