/* === Accordion Styles === */
/*   كل قسم أكورديون: يحتوي على العنوان والمحتوى الداخلي */

.accordion-section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.accordion-section {
  background-color: var(--dark-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--color-17);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  scroll-margin-top: 100px;
}


html[dir="rtl"] .accordion-section:hover {
  border-right-color: var(--primary-color);
  border-left-color: transparent;
}
html[dir="ltr"] .accordion-section:hover {
  border-left-color: var(--primary-color);
  border-right-color: transparent;
}

.accordion-header {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 4px 20px;
  cursor: pointer;
  background-color: var(--accordion-header);
  border-bottom: 1px solid var(--border-color);
  color: var(--color-8);
  position: relative;
  overflow: hidden;
}

.accordion-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease-out;
}

.accordion-header:hover::after { width: 100%; }

html[dir="rtl"] .accordion-header::after { left: auto; right: 0; }

.accordion-header:hover {
  background-color: var(--accordion-active);
  transform: scale(1.02);
  color: var(--color-1);
}

.section.active .accordion-header {
  background-color: var(--primary-color);
  color: var(--color-1);
   
}

 
.section-icon {
  width: 40px;
  height: 40px;
  
}

.accordion-header:hover .section-icon {
    filter:
        brightness(1.2)                           /* زيادة الإضاءة */
        saturate(1.3)                             /* زيادة تشبع اللون */
        drop-shadow(0 0 2px var(--color-1))              /* توهج خفيف */
        drop-shadow(0 0 4px var(--color-1))              /* توهج متوسط */
        drop-shadow(0 0 6px var(--color-1));             /* توهج قوي */
    transform: scale(1.1);                        /* تكبير الأيقونة قليلاً */
    transition: filter 0.3s ease, transform 0.3s ease;
}

 



html[dir="ltr"] .section-icon { margin-right: 15px; }
html[dir="rtl"] .section-icon { margin-left: 15px; }

.short-description {

  font-style: italic;
  color: var(--medium-text);
  margin: 0 20px 10px;
  cursor: pointer;
  padding-right: 20px;
}

.detailed-description {
 
  display: none;
  margin-top: 0;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
}

.accordion-section.active .detailed-description {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
}

.accordion-section.active .accordion-content {
  max-height: 99999px;
  padding-top: 0;
  padding-bottom: 20px;
}

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


/* دعم الاتجاه RTL لمحاذاة النصوص داخل الأكورديون */
html[dir="rtl"] .accordion-content { text-align: right;}


/* السهم الأخضر الافتراضي */
.accordion-content ul li:before {
    content: "▸";
    /* اللون الأساسي الأخضر المستخدم في التوهجات والتمييز */
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    inset-inline-start: 0;
    line-height: 1;
  font-size: 1rem;
     top: 0.3em;
    transform: none;
}

/* السهم في RTL */
html[dir="rtl"] .accordion-content ul li:before { content: "*"; }

/* لا تعرض السهم أمام العناوين */
.accordion-content ul li.li-heading:before {
    content: none !important; }
 


html[dir="rtl"] .accordion-button {
    justify-content: flex-end;
    text-align: right;
    
}

html[dir="rtl"] .accordion-button svg {
    transform: rotate(180deg);
}

html[dir="rtl"] .accordion-content ul {
    padding-right: 1.5rem;
    padding-left: 0;
}

html[dir="rtl"] .accordion-content ul li {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .section-title::before {
    left: auto;
    right: 0;
}


/* Content Styles */
.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content ul li {
    position: relative;
    padding-inline-start: 20px; /* مساحة للسهم */
    padding: 6px 16px;
    margin: 4px 0;
    line-height: 1.4;
    font-size: 0.95rem;
    background-color: var(--color-22);
    color: var(--light-text);
    border-radius: 5px;
    transition: background-color 0.3s ease;

}

.accordion-content ul li:last-child { margin-bottom: 110; }


.accordion-content ul li h3 {
    /* اللون الأساسي الأخضر المستخدم في التوهجات والتمييز */
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.4;
}

 .accordion-content ul li:hover {
    background-color: var(--color-23); /* لون أغمق عند المرور */
}


.accordion-content ul li span {
    color: var(--medium-text);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.accordion-content ul li p {
      color: var(--light-text); /* رمادي فاتح */
    margin-top: 5px;
    margin-bottom: 0;
}


.language-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  background-color: var(--color-22);
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  
}

.language-item:hover {
  background-color: var(--color-23);
  transform: translateX(5px);
}

.language-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.language-info {
  display: flex;
  flex-direction: column;
}

.language-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.language-level {
  font-size: 0.9rem;
  color: var(--medium-text);
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.certificate-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.li-heading span {
  display: block;
  font-size: 0.9rem;
  color: var(--medium-text);
}

.cert-link {
  display: block;
  margin-top: 5px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.cert-link:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

  


 #experience .accordion-content ul li {
    margin-bottom: 6px !important;
    padding: 2px 20px;
    line-height: 1.4;
}

 .toggle-experience {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.2s ease;
  }

  .toggle-experience:hover {
    background-color: #eaeaea;
  }

  .toggle-experience h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
  }

  .toggle-experience span {
    font-size: 0.9rem;
    color: #666;
  }

  .exp-details {
    margin: 0.5rem 0 1rem 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #ddd;
  }

  .exp-details li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
  }
  .toggle-experience {
  align-items: flex-start;
  text-align: start;
}

.toggle-experience {
  align-items: flex-start;
  text-align: start;
}

html[dir="rtl"] .toggle-experience {
  align-items: flex-end;
  text-align: right;
}


.project-link {
  color: var(--primary-color); /* لون أخضر فاقع */
  text-decoration: none;
  transition: color var(--transition-speed);
}

.project-link:hover,
.project-link:focus {
  color: var(--secondary-color); /* لون عند التحويم */
  text-decoration: underline;
}

.project-icon {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.project-icon:hover {
  filter:
    brightness(1.2)                           /* زيادة الإضاءة */
    saturate(1.3)                             /* زيادة تشبع اللون */
    drop-shadow(0 0 2px var(--primary-color))  /* توهج خفيف */
    drop-shadow(0 0 4px var(--primary-color))  /* توهج متوسط */
    drop-shadow(0 0 6px var(--primary-color)); /* توهج قوي */
  transform: scale(1.1);                      /* تكبير الأيقونة */
}
.project-item h3,
.project-item span,
.project-item p {
  line-height: 1.9; /* زيادة ارتفاع السطر */
  margin-bottom: 10px; /* مسافة بين الفقرات */
}

.contact-list li {
   
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  border-radius: 5px;
  background: var(--color-22);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

 
.contact-list li:hover {
  background: var(--color-23);
  transform: translateX(5px);
}

 
.contact-list li:hover img {
  filter:
    brightness(1.2)
    drop-shadow(0 0 3px var(--primary-color))
    drop-shadow(0 0 6px var(--primary-color));
  transform: scale(1.1);
  transition: all 0.3s ease;
}
 
.contact-list li img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
 
.contact-list li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  unicode-bidi: plaintext;
}
 
.contact-list li:hover a {
  color: var(--secondary-color);
  text-decoration: underline;
  text-shadow: 0 0 4px var(--primary-color), 0 0 6px var(--primary-color);
}
 
.contact-note {
  font-size: 0.9rem;
  color: var(--medium-text);
  line-height: 1.3;
}


/*   إخفاء السهم من عناصر قسم التواصل */
.contact-list li:before,
.contact-list a::after,
.contact-list a::before {
    content: none !important;
    display: none !important;
}


.download-button-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.download-cv-btn {
    display: inline-block;
    background: var(--download-btn-bg);
    color: var(--download-btn-text);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px var(--color-19);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-cv-btn:hover {
    background: var(--download-btn-bg-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--color-17);

  } 
  


  