/* Deep Midnight - Dark blue into pure black */
.bg-grad-midnight {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%) !important;
}

/* Obsidian Shadow - Dark, sleek charcoal monochromatic look */
.bg-grad-obsidian {
  background: linear-gradient(135deg, #141414 0%, #282828 100%) !important;
}

/* Cyber Neon Purple - Deep dark violet with a subtle neon edge */
.bg-grad-cyber {
  background: linear-gradient(135deg, #120c1f 0%, #1a103c 50%, #2b1055 100%) !important;
}

/* Toxic Emerald - Deep forest green fading into void black */
.bg-grad-emerald {
  background: linear-gradient(135deg, #051911 0%, #0d2c1d 60%, #184e37 100%) !important;
}

/* Crimson Blood - Dramatic deep wine red fading into darkness */
.bg-grad-crimson {
  background: linear-gradient(135deg, #1a0505 0%, #2c0d0d 50%, #4a1515 100%) !important;
}

/* Utility to ensure text remains highly legible on dark backgrounds */
.text-light-glow {
  color: #f8f9fa !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.journey h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;

}
.journey p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}
.journey p a {
    color: #0b068f;
    text-decoration: none;
    font-weight: bold;
}
.journey p a:hover {
    text-decoration: underline;
}

/* Container styling */
ul.custom-list {
  list-style-type: none;
    padding: 0;
    margin: 10px 0;;
}

/* Individual list item styling */
ul.custom-list li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background-color: #f8f9fa;
  border-left: 4px solid #007bff; /* Blue accent bar */
  border-radius: 4px;
  color: #333333;
  transition: all 0.2s ease-in-out;
}
html[dir="rtl"] ul.custom-list li {
  border-left: none; /* Remove left border for RTL */
  border-right: 4px solid #e4bf03; /* Add right border for RTL */
}

/* Interactive hover state */
ul.custom-list li:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}

.interactive-section {
    background-color: #01152a;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.interactive-section .head {
  display: flex !important;
  align-items: center;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #ff0;
}

.values {
    background-color: #000810;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.service-details{
padding-top: 1rem; padding-bottom: 1rem; background-color: #c6d9ec;
}

/* تنسيق التبويبات المخصص */
.custom-nav-tabs {
  border-bottom: none;
}
.custom-tab-btn {
  background: #ffffff !important;
  color: #1a1d20 !important;
  border: 1px solid #e9ecef !important;
  border-radius: 30px !important;
  padding: 10px 24px !important;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}
.custom-tab-btn.active {
  background: linear-gradient(135deg, #022458, #765302) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* بنية التايم لاين الاحترافي */
.professional-timeline {
  position: relative;
  padding: 10px 0;
}

/* الكرت الخاص بكل خطوة */
.timeline-card {
  display: flex;
  position: relative;
  margin-bottom: 25px;
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f3f5;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-card:last-child {
  margin-bottom: 0;
}

/* تأثير التمرير (Hover) */
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

/* عمود المؤشر والخط الواصل */
.timeline-marker-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* الخط العمودي الرابط بين الدوائر */
.timeline-card:not(:last-child) .timeline-marker-wrapper::after {
  content: '';
  position: absolute;
  top: 48px;
  width: 2px;
  height: calc(100% + 20px);
  background: #e9ecef;
  z-index: 1;
}

/* الدائرة الرقمية */
.timeline-marker {
  width: 44px;
  height: 44px;
  background: #dcaa03;
  color: #495057;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 2;
  transition: all 0.3s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #e9ecef;
}

.timeline-card:hover .timeline-marker {
  background: #1b035f;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

/* المحتوى النصي والدعم التلقائي للاتجاهات الاتجاهين */
.timeline-content {
  flex: 1;
}
/* دعم المسافة حسب اتجاه اللغة للمتصفح */
html[dir="rtl"] .timeline-content { padding-right: 20px; }
html[dir="ltr"] .timeline-content { padding-left: 20px; }

.timeline-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.timeline-card:hover .timeline-content h4 {
  color: #031b3e;
}

.timeline-content p {
  font-size: 0.92rem;
  color: #6c757d;
  margin-bottom: 0;
  line-height: 1.6;
}

/* حركة جانبية للصورة الكبيرة */
.timeline-side-img {
  transition: transform 0.5s ease;
}
.image-wrapper:hover .timeline-side-img {
  transform: scale(1.02);
}

/* تعديل الشاشات الصغيرة لتوفير المساحة */
@media (max-width: 767.98px) {
  .timeline-card {
    padding: 15px;
  }
  .timeline-marker {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  .timeline-card:not(:last-child) .timeline-marker-wrapper::after {
    top: 40px;
  }
}


/* ==========================================================
   Latest Projects Section
========================================================== */

.latest-projects {
    padding: 30px 0;
    background: #faf9eb;
    position: relative;
    overflow: hidden;
}

.latest-projects::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right,
            rgba(13,110,253,.08),
            transparent 40%);
    pointer-events: none;
}

.latest-projects h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1f2937;
    position: relative;
}

.latest-projects h3::after {
    content: "";
    width: 70px;
    height: 4px;
    border-radius: 30px;
    background: #041b3f;
    display: block;
    margin: 15px auto 0;
}

/* ==========================================================
   Swiper
========================================================== */
.latest-projects-slider {
    overflow: hidden;
    padding-bottom: 60px;
}
.latest-projects-slider .swiper-slide {
    height: auto;
}

/* ==========================================================
   Card
========================================================== */

.portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
    transition: .35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,.15);
}

/* ==========================================================
   Image
========================================================== */

.portfolio-item img {
    width:100%;
    height:200px;
    object-fit:cover;
    transition:.5s;
}
.portfolio-item:hover img{
    transform:scale(1.06);
}

/* ==========================================================
   Content
========================================================== */

.projects_desc{
    padding:10px;
    flex:1;
    display:flex;
    flex-direction:column;
}

.projects_desc_info{
    display:flex;
    flex-direction:column;
    height:100%;
}

.projects_desc h4{
    margin-bottom:8px;
}

.projects_name{
    font-size:1.25rem;
    font-weight:700;
    color:#021338;
    text-decoration:none;
    transition:.3s;
    line-height:1.6;
}

.projects_name:hover{
    color:#000984;
}

.projects_desc p{
    color:#15171d;
    line-height:1.9;
    font-size:.95rem;
    flex-grow:1;
}

/* ==========================================================
   Button
========================================================== */

.project-read-more{
    display:flex;
    justify-content:center;
    align-items:center;
    width:calc(100% - 48px);
    margin:0 24px 24px;
    height:48px;
    border-radius:5px;
    background:#8d5500;
    color:#fff;
    text-decoration:none;
    font-weight:700;
    transition:.3s;
    font-size:.85rem;
}

.project-read-more:hover{
    background:#8d5500;
    color:#fff;
    transform:translateY(-2px);

}

/* ==========================================================
   Pagination
========================================================== */

.swiper-pagination-bullet{
    width:12px;
    height:12px;
    background:#b8c2d1;
    opacity:1;
}

.swiper-pagination-bullet-active{
    width:30px;
    border-radius:30px;
    background:#8d5500;
}

/* ==========================================================
   Mobile
========================================================== */

@media(max-width:768px){
    .latest-projects{
        padding:10px 0;
    }
    .portfolio-item img{
        height:190px;
    }

    .latest-projects h3{
        font-size:1.2rem;
    }
}
