@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
  --primary-color: #00a8ff;
  --secondary-color: #f0f0f0;
  --dark-color: #333;
  --light-color: #fff;
  --discord-color: #5865F2;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* الحاويات والعناصر المشتركة */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
}

.btn:hover {
  background-color: #0089d1;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  font-size: 14px;
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: var(--transition);
}

.btn-sm:hover {
  background-color: #0089d1;
  transform: translateY(-2px);
}

/* الهيدر والقائمة */
header {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-right: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* رابط ديسكورد في القائمة */
.discord-link {
  color: var(--discord-color) !important;
  font-weight: 700;
}

.discord-link:hover::after {
  background-color: var(--discord-color) !important;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  transition: var(--transition);
}

/* الصورة الرئيسية */
.main-images {
  margin-top: 80px;
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slider {
  height: 100%;
}

.slide {
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 25px;
  border-radius: 10px;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.slide-content h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.slide-content p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* قسم العناوين الرئيسية */
.section-title {
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.section-title h2 {
  color: var(--primary-color);
  font-size: 32px;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
}

/* قسم الأعمال */
.works {
  padding: 50px 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.work {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.work:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.work-img {
  height: 200px;
  overflow: hidden;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.work:hover img {
  transform: scale(1.05);
}

.work-content {
  padding: 20px;
}

.work-content h3 {
  color: var(--dark-color);
  margin-bottom: 10px;
}

.work-content p {
  color: #666;
  margin-bottom: 15px;
  font-size: 15px;
}

/* قسم من نحن */
.about {
  padding: 50px 0;
  background-color: #f9f9f9;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 24px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.stat {
  text-align: center;
  padding: 15px;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-text {
  font-size: 16px;
  color: #666;
}

/* قسم الأسعار */
.prices {
  padding: 50px 0;
  background-color: #f0f0f0;
}

.prices-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.prices-image {
  max-width: 800px;
  width: 100%;
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

.prices-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* قسم الطلب */
.order {
  padding: 50px 0;
}

.order-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* الفوتر */
footer {
  background-color: var(--dark-color);
  color: #f0f0f0;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--light-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 10px;
  color: #ccc;
}

/* زر ديسكورد */
.discord-container {
  margin-top: 20px;
}

.discord-btn {
  display: inline-block;
  background-color: var(--discord-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
}

.discord-btn:hover {
  background-color: #4752c4;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 14px;
}

/* تأثيرات الحركة */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تصميم متجاوب للشاشات المتوسطة */
@media (max-width: 992px) {
  .slide-content {
    right: 5%;
    max-width: 350px;
  }
  
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* تصميم متجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    flex-direction: column;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    margin: 12px 0;
    text-align: center;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .slide-content {
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    width: 85%;
    max-width: none;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .main-images {
    height: 500px;
  }
  
  .about-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .about-image {
    margin: 0 auto 20px;
  }
  
  .stats {
    flex-direction: column;
  }
  
  .stat {
    margin-bottom: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* تصميم متجاوب للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .main-images {
    height: 400px;
  }
  
  .slide-content {
    width: 90%;
    padding: 15px;
  }
  
  .slide-content h2 {
    font-size: 20px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .about-text h3 {
    font-size: 20px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .order-form {
    padding: 20px;
  }
}