/* 
 * JD Event Management - الأنماط الأساسية
 * تصميم موقع احترافي وفخم لإدارة الفعاليات
 */

:root {
  /* الألوان الأساسية */
  --color-primary: #0a0a0a; /* أسود ملكي */
  --color-secondary: #d4af37; /* ذهبي */
  --color-dark-gray: #333333; /* رمادي غامق */
  --color-light: #ffffff; /* أبيض */
  --color-light-gray: #f5f5f5; /* رمادي فاتح */
  
  /* الخطوط */
  --font-primary: 'Poppins', 'Cairo', sans-serif;
  --font-secondary: 'Montserrat', 'Cairo', sans-serif;
}

/* إعادة ضبط الأنماط الافتراضية */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: var(--color-light);
  overflow-x: hidden;
}

/* الروابط */
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 2rem;
  line-height: 1.4;
}

/* الأزرار */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-light);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

/* الحاوية */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* الشبكة */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

/* رأس الصفحة */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-primary);
  padding: 20px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  transition: all 0.3s ease;
}

.header.scrolled .logo img {
  height: 50px;
}

/* القائمة */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  color: var(--color-light);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-secondary);
}

.nav-link.active::after {
  width: 100%;
}

/* زر تبديل اللغة */
.language-toggle {
  margin-left: 20px;
  color: var(--color-light);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.language-toggle:hover {
  color: var(--color-secondary);
}

/* زر القائمة للجوال */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-light);
  transition: all 0.3s ease;
}

/* القسم الرئيسي */
.hero {
  height: 100vh;
  background-color: var(--color-primary);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/events/event2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-light);
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--color-light);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-light);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* الأقسام */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-secondary);
}

/* قسم من نحن */
.about {
  background-color: var(--color-light-gray);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* قسم الخدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--color-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-description {
  margin-bottom: 20px;
}

/* قسم معرض الصور */
.gallery {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.gallery .section-title h2 {
  color: var(--color-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 300px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-text {
  color: var(--color-light);
  text-align: center;
  padding: 20px;
}

/* قسم الأسئلة الشائعة */
.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-light);
}

.faq-question .icon {
  transition: all 0.3s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  background-color: var(--color-light);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* قسم التواصل */
.contact {
  background-color: var(--color-light-gray);
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-right: 15px;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-secondary);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* تذييل الصفحة */
.footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 50px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  flex: 1;
  min-width: 300px;
}

.footer-logo img {
  height: 80px;
  margin-bottom: 20px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-list {
  list-style: none;
}

.footer-item {
  margin-bottom: 10px;
}

.footer-link {
  color: var(--color-light);
}

.footer-link:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  margin-top: 50px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* تأثيرات الحركة */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* زر واتساب الثابت */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--color-light);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

/* تصميم متجاوب */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: all 0.3s ease;
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-item {
    margin: 15px 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* دعم اللغة العربية */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-list {
  padding-right: 0;
}

[dir="rtl"] .language-toggle {
  margin-right: 20px;
  margin-left: 0;
}

[dir="rtl"] .contact-info-icon {
  margin-left: 15px;
  margin-right: 0;
}

[dir="rtl"] .whatsapp-float {
  left: 30px;
  right: auto;
}

[dir="rtl"] .section-title h2::after {
  right: 50%;
  left: auto;
  transform: translateX(50%);
}
