/* استدعاء خط Almarai من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&display=swap');

/* تنسيقات أساسية للصفحة */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* عشان الانتقال بين الأقسام يكون سلس */
}

body {
  font-family: 'Almarai', sans-serif;
  direction: rtl;
  background-color: #121212;
  color: #E0E0E0;
  line-height: 1.6;
  overflow-x: hidden; /* لمنع ظهور شريط التمرير الأفقي */
}

/* تنسيق الروابط العامة */
a {
  text-decoration: none;
  color: #00D2FF;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
  color: #FF5733;
}

/* شريط التنقل */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(8px); /* شوية Blur للخلفية */
}

/* حالة الـ navbar بعد التمرير */
nav.scrolled {
  background-color: rgba(18, 18, 18, 0.9);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.8rem;
  color: #E0E0E0;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px #00D2FF;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  color: #00D2FF;
}

.logo:hover img {
  box-shadow: 0 0 25px #00D2FF;
  transform: rotate(5deg) scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: #E0E0E0;
  font-weight: 400;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

nav ul li a:hover {
  border-bottom: 2px solid #00D2FF;
  color: #00D2FF;
}

/* أيقونة الموبايل */
.menu-icon {
  display: none;
  cursor: pointer;
}

.menu-icon .bar {
  width: 28px;
  height: 3px;
  background-color: #E0E0E0;
  margin: 5px 0;
  border-radius: 3px;
  transition: 0.4s;
}

/* القائمة الجانبية */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background-color: #121212;
  padding-top: 60px;
  transition: left 0.4s ease;
  z-index: 999;
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.sidebar.open {
  left: 0;
}

.sidebar ul {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  list-style: none;   
  margin: 0;         
  padding: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: #E0E0E0;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.sidebar ul li a:hover {
  color: #00D2FF;
}

/* موبايل */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .menu-icon {
    display: block;
  }
}


/* تنسيق الأقسام العامة */
section {
  padding: 100px 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h2 {
  font-size: 3rem;
  color: #00D2FF;
  margin-bottom: 3rem;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background-color: #FF5733;
}

/* معرض الصور */
.gallery-section {
  padding-top: 150px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1400px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item img:hover {
  transform: scale(1.1);
}

/* من نحن */
.about-section {
  background: linear-gradient(to bottom, #121212, #242424);
  text-align: center;
}

.about-section p {
  max-width: 900px;
  font-size: 1.3rem;
  color: #B0B0B0;
  line-height: 2;
}

/* لماذا تختار منصتنا */
.why-section {
  background: #191919;
}

.why-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.why-card {
  background-color: #1E1E1E;
  padding: 40px;
  text-align: center;
  border-radius: 10px;
  border-left: 5px solid #00D2FF;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  transition: transform 0.4s ease, border-left 0.4s ease;
}

.why-card:hover {
  transform: translateY(-15px);
  border-left: 5px solid #FF5733;
}

.why-card img {
  height: 70px;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
}

.why-card h3 {
  color: #00D2FF;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* الكورسات */
.courses-section {
  background: linear-gradient(to top, #121212, #242424);
  padding: 60px 20px;
  text-align: center;
}

.courses-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 40px;
}

.courses-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.course-card {
  background-color: #1E1E1E;
  border-radius: 15px;
  overflow: hidden;
  max-width: 300px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card h3 {
  color: #E0E0E0;
  font-size: 1.3rem;
  margin: 15px 0;
}

.course-card button {
  background: #00d2ff;
  color: #121212;
  font-weight: bold;
  padding: 10px 20px;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.course-card button:hover {
  background: #ff5733;
}


/* النسخة التجريبية - مودرن */
.trial-section {
  text-align: center;
  background: linear-gradient(135deg, #121212, #1c1c1c);
  padding: 80px 20px;
}

.trial-section h2 {
  font-size: 2.5rem;
  color: #00D2FF;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.trial-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, #00D2FF, #FF5733);
  border-radius: 2px;
}

/* زرار عرض النسخة التجريبية */
.trial-section button {
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #00D2FF, #FF5733);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 40px;
  transition: all 0.4s ease;
}

.trial-section button:hover {
  background: linear-gradient(135deg, #FF5733, #00D2FF);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,210,255,0.6);
}

/* الكروت */
.trial-videos {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
}

.trial-card {
  background: #1E1E1E;
  border-radius: 15px;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.trial-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg, #00D2FF, #FF5733, #00D2FF);
  animation: rotateGlow 6s linear infinite;
  opacity: 0.07;
}

@keyframes rotateGlow {
  100% {
    transform: rotate(360deg);
  }
}

.trial-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0,210,255,0.4);
}

.trial-card video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.trial-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg, #00D2FF, #FF5733, #00D2FF);
  animation: rotateGlow 6s linear infinite;
  opacity: 0.07;
  pointer-events: none; /* علشان ما يمنعش الضغط */
}

.trial-card iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1; /* علشان يظهر فوق الخلفية */
}

.trial-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}


/* موبايل */
@media (max-width: 768px) {
  .trial-section h2 {
    font-size: 1.8rem;
  }

  .trial-section button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .trial-card h3 {
    font-size: 1rem;
  }
}


/* تواصل معنا */
.contact-section {
  background-color: #121212;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 700px;
}

.contact-form input,
.contact-form textarea {
  padding: 18px;
  border: 1px solid #333;
  border-radius: 8px;
  font-family: 'Almarai', sans-serif;
  background-color: #1E1E1E;
  color: #E0E0E0;
  outline: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00D2FF;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.contact-form button,
.course-card button,
.trial-section button {
  padding: 18px 40px;
  border: none;
  border-radius: 8px;
  background-color: #00D2FF;
  color: #121212;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Almarai', sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover,
.course-card button:hover,
.trial-section button:hover {
  background-color: #FF5733;
  transform: translateY(-5px);
}

/* الفوتر */
.footer {
  background-color: #191919;
  color: #B0B0B0;
  text-align: center;
  padding: 30px;
  border-top: 1px solid #333;
}

.footer p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.social-icons a {
  margin: 0 15px;
}

.social-icons img {
  width: 30px;
  margin-right: 15px;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.social-icons img:hover {
  transform: scale(1.2) rotate(10deg);
}

/* أكواد التجاوب (Media Queries) */
@media (max-width: 768px) {
  /* تعديل الـ navbar */
  nav ul {
    display: none; /* إخفاء القائمة الأساسية */
  }

  .menu-icon {
    display: block; /* إظهار أيقونة القائمة */
  }
  
  /* إظهار القائمة الجانبية لما تكون مفتوحة */
  .sidebar.active {
    left: 0;
  }

  /* تنسيق الأقسام */
  section {
    padding: 80px 5%;
  }

  h2 {
    font-size: 2rem;
  }

  /* تعديل تنسيق المعرض */
  .gallery-container {
    grid-template-columns: 1fr;
  }
  
  /* تعديل بطاقات "لماذا تختار" */
  .why-container {
    flex-direction: column;
    align-items: center;
  }
  
  /* تعديل بطاقات الكورسات */
  .courses-container {
    flex-direction: column;
    align-items: center;
  }
  
  .trial-videos {
    flex-direction: column;
  }
}





/* خلفية مظللة */
#courseModal {
    display: none; /* يبان لما نضغط دخول الكورس */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* محتوى الـ Modal */
.modal-content {
    background-color: #1E1E1E;
    padding: 30px 25px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    animation: slideDown 0.4s ease-out;
    position: relative;
    color: #E0E0E0;
    font-family: 'Almarai', sans-serif;
}

/* عنوان الـ Modal */
.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #00D2FF;
    text-transform: uppercase;
}

/* المدخلات */
.modal-content input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #121212;
    color: #E0E0E0;
    outline: none;
    transition: 0.3s all;
}

.modal-content input:focus {
    border-color: #00D2FF;
    box-shadow: 0 0 10px rgba(0,210,255,0.5);
}

/* زر الدخول */
.modal-content button {
    background: linear-gradient(135deg, #00D2FF, #FF5733);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.modal-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,210,255,0.5);
}

/* رسالة الخطأ */
#modalError {
    color: #FF5733;
    margin-top: 10px;
    font-weight: bold;
    min-height: 20px;
}

/* زر اغلاق */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #E0E0E0;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #FF5733;
}

/* تأثيرات الانيميشن */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideDown {
    from {transform: translateY(-30px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}















/* ---------------------------------------------------- */
/* الأنماط الفخمة والـ "Super Modern" لصفحة معرض الأعمال (portfolio.html) */
/* ---------------------------------------------------- */

.full-portfolio-section {
    padding: 120px 5%; 
    background: #121212; /* خلفية متناسقة */
    min-height: 100vh;
}

/* الترويسة العليا لصفحة المعرض */
#portfolio-hero h1 {
    font-size: 3.5rem !important; /* حجم كبير للعنوان الرئيسي */
    color: #E0E0E0 !important;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4); /* وهج نصي خفيف */
}

#portfolio-hero p {
    color: #B0B0B0 !important;
    font-size: 1.2rem !important;
    margin-top: 20px !important;
}


/* شبكة المعرض المتقدمة (CSS Grid) */
.portfolio-grid {
    display: grid;
    /* تخطيط متجاوب: 3 أعمدة للشاشات الكبيرة، مع تحكم دقيق */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
    max-width: 1600px;
    margin: 40px auto; /* مساحة علوية وسفلية */
}

/* كارت العمل الفني - الفخامة في التفاصيل */
.art-item {
    background-color: #1E1E1E; 
    border-radius: 20px; /* حواف أكثر دائرية للـ Modern look */
    overflow: hidden; 
    /* ظل عميق داخلي وخارجي Neumorphism Style for dark theme */
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.8), /* ظل سفلي عميق */
        0 0 0 1px rgba(255, 255, 255, 0.05), /* خط حافة رفيع جداً */
        inset 0 0 15px rgba(0, 0, 0, 0.5); /* ظل داخلي للعمق */
    
    transition: all 0.5s cubic-bezier(0.2, 0.7, 0.4, 1.2); 
    cursor: pointer;
    position: relative;
}

/* تأثير "الواو" عند التمرير (Hover Effect) */
.art-item:hover {
    transform: translateY(-15px) scale(1.03); /* رفع وتكبير واضح */
    /* وهج أزرق قوي حول الكارت */
    box-shadow: 
        0 0 40px rgba(0, 210, 255, 0.5), /* النيون الأزرق */
        0 20px 60px rgba(0, 0, 0, 0.9); /* ظل أسود أعمق */
}

.art-item img {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.4, 1.2); 
}

.art-item:hover img {
    transform: scale(1.15) rotate(1deg); /* تكبير قوي مع دوران خفيف للإثارة */
}

/* تفاصيل العمل (طبقة علوية شفافة) */
.art-details {
    padding: 25px 20px;
    text-align: center;
    background: #191919; 
    position: relative;
    z-index: 2;
}

.art-details h3 {
    color: #00D2FF; 
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.7); 
}

.art-details p {
    color: #B0B0B0; 
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* زر التكبير - متناسق مع تصميم الأزرار الرئيسي */
.view-art-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 50px; /* شكل الحبة الدائرية */
    background: linear-gradient(45deg, #00D2FF, #FF5733); 
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); /* وهج خفيف */
    letter-spacing: 1px;
}

.view-art-btn:hover {
    background: linear-gradient(45deg, #FF5733, #00D2FF); 
    transform: scale(1.05); 
    box-shadow: 0 0 25px rgba(255, 87, 51, 0.7); /* وهج قوي للهوفر */
}


/* ---------------------------------------------------- */
/* تصميم النافذة المنبثقة (LightBox) - فخامة الشاشة الكاملة */
/* ---------------------------------------------------- */

.modal {
    background-color: rgba(0, 0, 0, 0.98); 
    display: flex; 
    justify-content: center;
    align-items: center;
    padding-top: 0; 
    animation: fadeIn 0.4s ease-in;
}

.art-modal-content {
    background: #121212;
    padding: 20px;
    border-radius: 15px;
    max-width: 95vw;
    position: relative;
    /* إطار نيون متوهج ومركّز */
    border: 1px solid rgba(0, 210, 255, 0.3); 
    box-shadow: 0 0 80px rgba(0, 210, 255, 0.3); 
    animation: modalSlideIn 0.5s cubic-bezier(0.2, 0.7, 0.4, 1.2);
}

@keyframes modalSlideIn {
    from {transform: translateY(-50px) scale(0.8); opacity: 0;}
    to {transform: translateY(0) scale(1); opacity: 1;}
}

.art-modal-content img {
    max-height: 85vh; 
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}

/* الشرح أسفل الصورة */
.caption {
    background: #1E1E1E;
    color: #E0E0E0;
    padding: 20px;
    margin: 20px 0 0 0; 
    border-radius: 10px;
    border-top: 1px solid #333;
}

.caption h3 {
    color: #FF5733; /* اللهجة الثانوية لتمييز العنوان */
    font-size: 1.6rem;
    margin: 0;
}

.caption p {
    color: #ccc;
    font-size: 1.1em;
    margin: 5px 0 0 0;
}

/* زر الإغلاق النيون المتحرك */
.close-art-modal {
    position: fixed; 
    top: 25px;
    right: 35px;
    color: #00D2FF; 
    font-size: 65px; 
    font-weight: 300;
    text-shadow: 0 0 20px #00D2FF;
    transition: all 0.4s ease-in-out;
    z-index: 1002;
    cursor: pointer;
}

.close-art-modal:hover,
.close-art-modal:focus {
    color: #FF5733;
    transform: rotate(180deg) scale(1.1); /* دوران كامل عند الإغلاق */
    text-shadow: 0 0 25px #FF5733;
}

/* التجاوبية النهائية لضمان التوافق مع الموبايل */
@media only screen and (max-width: 768px){
    .portfolio-grid {
        grid-template-columns: 1fr; /* عمود واحد فقط للموبايل */
        gap: 30px;
    }
    .art-item:hover {
        transform: translateY(-8px) scale(1.02); /* تخفيف الحركة على الموبايل */
        box-shadow: 0 0 25px rgba(0, 210, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.8);
    }
    .art-details h3 {
        font-size: 1.4rem;
    }
    .art-item img {
        height: 280px;
    }
    .close-art-modal {
        top: 15px;
        right: 15px;
        font-size: 50px;
    }
}

















































/* ---------------------------------------------------- */
/* الأنماط العالمية (Global Styles) والثيم الداكن الفاخر */
/* ---------------------------------------------------- */

:root {
    --primary-color: #00D2FF; /* النيون الأزرق */
    --secondary-color: #FF5733; /* اللهجة البرتقالية */
    --background-dark: #121212; 
    --card-dark: #1E1E1E;
    --text-light: #E0E0E0;
    --text-muted: #B0B0B0;
    --font-inter: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: var(--font-inter);
    transition: background-color 0.3s;
}

/* لمنع حركة الـ body عند فتح القائمة الجانبية أو المودال */
body.sidebar-open, body.modal-open {
    overflow: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* ---------------------------------------------------- */
/* شريط التنقل (Navbar) - مظهر زجاجي داكن */
/* ---------------------------------------------------- */

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    /* تأثير الزجاج الداكن */
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    margin-left: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
}

#navbar ul {
    list-style: none;
    display: flex;
}

#navbar ul li {
    margin: 0 15px;
}

#navbar ul li a {
    color: var(--text-light);
    padding: 5px 0;
    position: relative;
    font-weight: 500;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}


/* أيقونة القائمة (Menu Icon) */
.menu-icon {
    display: none; /* إخفاء في الديسكتوب */
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* القائمة الجانبية (Sidebar) */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999; /* قيمة عالية لتكون فوق كل شيء */
    top: 0;
    right: 0; /* يبدأ من اليمين للمواقع العربية */
    background-color: var(--background-dark);
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9); /* الظل من اليسار */
}

.sidebar.open {
    width: 250px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text-light);
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid var(--card-dark);
}

.sidebar ul li a:hover {
    background-color: var(--card-dark);
    color: var(--primary-color);
}

.close-sidebar-btn {
    position: absolute;
    top: 15px;
    left: 25px; /* زر الإغلاق على اليسار */
    font-size: 40px;
    color: var(--secondary-color);
    cursor: pointer;
}


/* ---------------------------------------------------- */
/* أنماط الـ Footer */
/* ---------------------------------------------------- */
/* ==================================================== */
/* الفوتر - تصميم بسيط واحترافي (Minimal Professional) */
/* ==================================================== */

/* العنصر الرئيسي للفوتر */
.footer-minimal-pro {
    background-color: #1a1a1a; /* لون داكن احترافي */
    color: #cccccc; /* لون نص فاتح وهادئ */
    padding: 50px 5%; 
    border-top: 5px solid #00D2FF; /* خط أزرق فني مميز */
}

/* حاوية الأعمدة الداخلية */
.footer-container-min {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* محاذاة العناصر للأعلى */
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    text-align: right;
}

/* تنسيق الأعمدة */
.footer-col-min {
    min-width: 250px;
    margin-bottom: 30px;
    flex: 1; /* للسماح بالتوزيع المتساوي */
}

/* العمود الخاص بالعلامة التجارية - ليأخذ مساحة أكبر قليلاً */
.brand-col-min {
    flex: 1.2; 
    padding-left: 30px; /* تباعد بسيط عن عمود الاتصال */
}

/* تنسيق اللوجو في الفوتر */
.footer-logo-min {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-min img {
    width: 40px;
    height: 40px;
    margin-left: 10px; /* مسافة بين الصورة والنص */
}

.footer-logo-min span {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: bold;
}

/* الشعار المميز للعلامة التجارية */
.brand-tagline-min {
    font-size: 1rem;
    color: #aaaaaa;
    line-height: 1.6;
    margin-top: 10px;
}

/* حقوق النشر */
.copyright-text-min {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #666666;
}

/* عنوان عمود التواصل */
.footer-col-min h3 {
    color: #00D2FF; /* اللون الفني المميز */
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* معلومات الاتصال (البريد) */
.contact-info-min p {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
}

.contact-info-min a {
    color: #cccccc;
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: normal;
}

.contact-info-min a:hover {
    color: #FF5733; /* لون التفاعل */
}

.contact-label {
    font-weight: bold;
    color: #888888;
    font-size: 0.9rem;
}


/* أيقونات التواصل الاجتماعي */
.social-icons-min {
    margin: 20px 0;
    display: flex;
    gap: 15px; /* مسافة بين الأيقونات */
}

.social-icons-min a img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: transform 0.4s ease, opacity 0.4s;
}

.social-icons-min a:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* زر أو رابط الواتساب لتشجيع التفاعل */
.whatsapp-cta-min {
    display: inline-block;
    background-color: #25D366; /* لون الواتساب الأخضر */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s;
    font-size: 1rem;
}

.whatsapp-cta-min:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* التجاوب (Responsive) على الموبايل */
@media (max-width: 768px) {
    .footer-container-min {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col-min {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .brand-col-min {
        padding-left: 0;
        border-bottom: 1px solid #333; /* خط فاصل بين الأقسام في الموبايل */
        padding-bottom: 30px;
    }

    .footer-col-min h3, .brand-tagline-min, .copyright-text-min {
        text-align: center;
    }
    
    .footer-logo-min {
        justify-content: center;
    }

    .contact-info-min {
        /* لجعل محتوى البريد الإلكتروني في المنتصف */
        text-align: center;
    }
    .contact-info-min p {
        align-items: center;
    }
    
    .social-icons-min {
        justify-content: center;
    }
}

/* ---------------------------------------------------- */
/* أنماط قسم الترويسة (Hero Section) */
/* ---------------------------------------------------- */


/* تعيين التباعد والارتفاع للقسم الرئيسي */
#portfolio-hero {
    position: relative;
    overflow: hidden;
    min-height: 85vh; /* ارتفاع بارز للترويسة */
    padding: 150px 5% 80px; /* ضمان تباعد جيد بعد الـ Navbar */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تنسيق الحاوية الجديدة لتقسيم النص والصورة */
.hero-container {
    display: flex;
    flex-direction: row; /* لعرض النص على اليمين والصورة على اليسار */
    align-items: center;
    gap: 60px; /* مسافة واضحة بين العناصر */
    max-width: 1400px; /* أقصى عرض للحاوية */
    width: 100%;
    margin: 0 auto;
}

/* تنسيق محتوى النص (اليمين) */
.hero-content {
    flex: 1; /* يأخذ نصف المساحة تقريباً */
    min-width: 50%;
    text-align: right;
}

.hero-content h1 {
    /* العنوان سيأخذ تنسيق #portfolio-hero h1 الموجود مسبقاً */
    margin-bottom: 25px !important;
}

.hero-content p {
    /* الوصف سيأخذ تنسيق #portfolio-hero p الموجود مسبقاً */
    margin-bottom: 40px !important;
}

/* تنسيق حاوية الصورة (اليسار) */
.hero-image {
    flex: 1; /* يأخذ النصف الآخر من المساحة */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تنسيق الصورة نفسها */
.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 550px; /* لتحديد ارتفاع معقول للصورة */
    border-radius: 20px;
    object-fit: cover;
    /* ظل فاخر متوهج يعكس الثيم النيوني */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 210, 255, 0.3);
    border: 3px solid var(--card-dark);
    transition: transform 0.4s ease-in-out;
}

/* تأثير خفيف عند تمرير الماوس على الصورة */
.hero-image img:hover {
    transform: scale(1.02) rotate(-1deg);
}

/* تنسيق زر الدعوة للإجراء (CTA Button) - نستخدم تنسيق الـ view-art-btn ليتناسق */
.cta-lux-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 45px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    letter-spacing: 1px;
    
    /* استخدام تنسيق الزر الفاخر الأساسي */
    background: linear-gradient(145deg, var(--primary-color), #0a8edc); 
    color: var(--background-dark);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.5);
}

.cta-lux-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 210, 255, 0.7);
    background: linear-gradient(145deg, var(--secondary-color), #ff5733); 
}
.cta-lux-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--background-dark);
}


/* ==================================================== */
/* تنسيقات الاستجابة (Responsive) للـ Hero الجديد */
/* ==================================================== */

@media (max-width: 1100px) {
    .hero-container {
        gap: 30px;
    }
    .hero-image img {
        max-height: 450px;
    }
    .hero-content h1 {
        font-size: 3rem !important;
    }
}

@media (max-width: 900px) {
    /* على الشاشات الأصغر، نجعل الصورة والنص عموديين */
    #portfolio-hero {
        padding-top: 120px;
        min-height: auto;
    }
    .hero-container {
        flex-direction: column;
        text-align: center; /* توسيط المحتوى */
    }

    /* تغيير ترتيب العناصر: الصورة أولاً ثم النص */
    .hero-image {
        order: -1; 
        padding-top: 0;
        margin-bottom: 30px;
    }
    
    .hero-content {
        order: 1;
        min-width: 100%;
        text-align: center; /* توسيط النص */
    }

    .hero-content h1 {
        font-size: 2.5rem !important; /* تصغير حجم العنوان */
    }

    .hero-image img {
        max-height: 350px;
    }
}



.hero-section {
    padding-top: 150px; /* لضمان التباعد أسفل الـ Navbar */
    padding-bottom: 80px;
    text-align: center;
}

/* الأنماط الفخمة والـ "Super Modern" لصفحة معرض الأعمال */
.full-portfolio-section {
    padding: 120px 5%; 
    background: var(--background-dark); 
    min-height: 100vh;
}

#portfolio-hero h1 {
    font-size: 3.5rem !important; 
    color: var(--text-light) !important;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4); 
    margin: 0;
    line-height: 1.2;
}

#portfolio-hero p {
    color: var(--text-muted) !important;
    font-size: 1.2rem !important;
    margin-top: 20px !important;
}


/* شبكة المعرض المتقدمة (CSS Grid) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
    max-width: 1600px;
    margin: 40px auto; 
}

/* كارت العمل الفني - الفخامة في التفاصيل */
.art-item {
    background-color: var(--card-dark); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.8), 
        0 0 0 1px rgba(255, 255, 255, 0.05), 
        inset 0 0 15px rgba(0, 0, 0, 0.5); 
    
    transition: all 0.5s cubic-bezier(0.2, 0.7, 0.4, 1.2); 
    cursor: pointer;
    position: relative;
}

/* تأثير "الواو" عند التمرير (Hover Effect) */
.art-item:hover {
    transform: translateY(-15px) scale(1.03); 
    box-shadow: 
        0 0 40px var(--primary-color), 
        0 20px 60px rgba(0, 0, 0, 0.9); 
}

.art-item img {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.4, 1.2); 
}

.art-item:hover img {
    transform: scale(1.15) rotate(1deg); 
}

/* تفاصيل العمل (طبقة علوية شفافة) */
.art-details {
    padding: 25px 20px;
    text-align: center;
    background: #191919; 
    position: relative;
    z-index: 2;
}

.art-details h3 {
    color: var(--primary-color); 
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.7); 
}

.art-details p {
    color: var(--text-muted); 
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* زر التكبير - تصميم غامق وفخم واحترافي */
.view-art-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 45px;
    background: linear-gradient(145deg, #333333, #1f1f1f); /* غامق ومريح */
    color: #e0e0e0; /* لون فاتح للكتابة */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); /* خفيف وفخم */
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* لمعة خفيفة للنص */
}

.view-art-btn:hover {
    background: linear-gradient(145deg, #444444, #2a2a2a); /* تغيير بسيط للـ hover */
    transform: scale(1.04);
    
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); /* فخامة خفيفة عند hover */
}


/* ---------------------------------------------------- */
/* تصميم النافذة المنبثقة (LightBox) - فخامة الشاشة الكاملة */
/* ---------------------------------------------------- */

.modal {
    background-color: rgba(0, 0, 0, 0.98); 
    display: none; 
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.art-modal-content {
    background: var(--background-dark);
    padding: 20px;
    border-radius: 15px;
    max-width: 95vw;
    position: relative;
    border: 1px solid rgba(0, 210, 255, 0.3); 
    box-shadow: 0 0 80px rgba(0, 210, 255, 0.3); 
    animation: modalSlideIn 0.5s cubic-bezier(0.2, 0.7, 0.4, 1.2);
}

@keyframes modalSlideIn {
    from {transform: translateY(-50px) scale(0.8); opacity: 0;}
    to {transform: translateY(0) scale(1); opacity: 1;}
}

.art-modal-content img {
    max-height: 85vh; 
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}

/* الشرح أسفل الصورة */
.caption {
    background: #1E1E1E;
    color: var(--text-light);
    padding: 20px;
    margin: 20px 0 0 0; 
    border-radius: 10px;
    border-top: 1px solid #333;
}

.caption h3 {
    color: var(--secondary-color); 
    font-size: 1.6rem;
    margin: 0;
}

.caption p {
    color: #ccc;
    font-size: 1.1em;
    margin: 5px 0 0 0;
}

/* زر الإغلاق النيون المتحرك */
.close-art-modal {
    position: absolute; 
    top: -5px; 
    right: 20px;
    color: var(--primary-color); 
    font-size: 65px; 
    font-weight: 300;
    text-shadow: 0 0 20px var(--primary-color);
    transition: all 0.4s ease-in-out;
    z-index: 1002;
    cursor: pointer;
}

.close-art-modal:hover,
.close-art-modal:focus {
    color: var(--secondary-color);
    transform: rotate(180deg) scale(1.1); 
    text-shadow: 0 0 25px var(--secondary-color);
}

/* ---------------------------------------------------- */
/* التجاوبية النهائية لضمان التوافق مع الموبايل */
/* ---------------------------------------------------- */
@media only screen and (max-width: 768px){
    /* Navbar Adjustment */
    #navbar ul { display: none; } 
    .menu-icon { display: flex; } 

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .art-item:hover {
        transform: translateY(-8px) scale(1.02); 
        box-shadow: 0 0 25px rgba(0, 210, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.8);
    }
    .art-details h3 {
        font-size: 1.4rem;
    }
    .art-item img {
        height: 280px;
    }
    .close-art-modal {
        top: 0px;
        right: 15px;
        font-size: 50px;
    }
}
