@media (min-width: 1200px) {
  .courses-row .course-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}
html {
  scroll-padding-top: 60px; /* ارتفاع الـ navbar الثابت */
}
/* ==== Projects Slider Enhancements ==== */
.project-thumb {
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
}
.project-thumb[aria-current="true"],
.project-thumb.active {
  border-color: #0d6efd;
  box-shadow: 0 2px 12px 0 rgba(13,110,253,0.15);
}
.project-thumb:hover {
  border-color: #0d6efd;
  box-shadow: 0 2px 12px 0 rgba(13,110,253,0.10);
}
.projects-thumbnails {
  gap: 10px;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: #0d6efd;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px 0 rgba(13,110,253,0.10);
}
.carousel-control-prev, .carousel-control-next {
  width: 48px;
}
.carousel-inner {
  border-radius: 16px;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8f9fa;
  scroll-behavior: smooth;
}
.navbar {
  background: rgba(13, 110, 253, 0.15) !important;
  transition: background 0.4s;
  backdrop-filter: blur(8px);
}
.navbar.scrolled {
  background: #0d6efd !important;
}
.hero {
  min-height: 100vh;
  background: linear-gradient(120deg, #0d6efd 0%, #6c63ff 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-bg-parallax {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
  animation: parallaxMove 12s linear infinite alternate;
}
@keyframes parallaxMove {
  0% { background-position: 0 0; }
  100% { background-position: 100px 60px; }
}
.hero-svg {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 120px;
  z-index: 2;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero-icons .icon-link {
  color: #fff;
  font-size: 2rem;
  margin: 0 0.5rem;
  transition: color 0.2s, transform 0.2s;
}
.hero-icons .icon-link:hover {
  color: #ffd700;
  transform: scale(1.2) rotate(-8deg);
}
.skill-box {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.skill-box:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.progress-bar {
  width: 0;
  transition: width 1.2s cubic-bezier(.4,2,.3,1);
}
.portfolio-card {
  transition: transform 0.4s cubic-bezier(.4,2,.3,1), box-shadow 0.4s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.portfolio-card:hover {
  transform: translateY(-10px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.filter-btn.active, .filter-btn:focus {
  background: #0d6efd;
  color: #fff;
}
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}
.timeline li {
  position: relative;
  padding: 1.5rem 1rem 1.5rem 2.5rem;
  border-right: 3px solid #0d6efd;
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(.4,2,.3,1);
}
.timeline li.show-section {
  opacity: 1;
  transform: none;
}
.timeline li:last-child {
  margin-bottom: 0;
}
.timeline-date {
  font-weight: bold;
  color: #0d6efd;
  margin-left: 1rem;
}
.timeline-title {
  font-weight: 600;
  margin-left: 0.5rem;
}
.timeline-desc {
  display: block;
  color: #555;
  margin-top: 0.25rem;
  margin-right: 2.2rem;
}
@media (max-width: 767px) {
  .timeline li {
    padding: 1rem 0.5rem 1rem 1.5rem;
  }
  .timeline-desc {
    margin-right: 1rem;
  }
}
.testimonial-box {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  font-size: 1.1rem;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
  filter: invert(1);
}
footer {
  font-size: 1rem;
  background: #0d6efd;
}
footer .icon-link {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0.3rem;
  transition: color 0.2s, transform 0.2s;
}
footer .icon-link:hover {
  color: #ffd700;
  transform: scale(1.2) rotate(-8deg);
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 4px;
}
/* Reveal Animation */
section, .timeline li {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(.4,2,.3,1);
}
section.show-section, .timeline li.show-section {
  opacity: 1;
  transform: none;
} 
.course-card {
  border: none;
  border-radius: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.course-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-8px) scale(1.03);
}
.service-box {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
  min-height: 170px;
  margin-bottom: 0;
}
.service-icon {
  min-width: 90px;
  max-width: 120px;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-content h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
@media (max-width: 767px) {
  .service-box {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.5rem 1rem;
  }
  .service-icon {
    margin-bottom: 1rem;
    max-width: 100%;
  }
  .service-content {
    text-align: center;
  }
}
.service-box:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-8px) scale(1.03);
}
.gallery-img-box {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}
.gallery-img-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,2,.3,1);
}
.gallery-img-box:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.gallery-img-box:hover img {
  transform: scale(1.08) rotate(-2deg);
} 
.project-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.project-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-8px) scale(1.03);
  z-index: 2;
}
.project-img {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
/* Modal image */
#projectDetailsImg {
  max-height: 350px;
  object-fit: contain;
}
.training-timeline {
  border-left: 3px solid #0d6efd;
  margin-left: 30px;
  padding-left: 30px;
}
.timeline-item {
  position: relative;
}
.timeline-item:before {
  content: '';
  position: absolute;
  left: -38px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: #0d6efd;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.timeline-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.timeline-content h5 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
@media (max-width: 767px) {
  .project-img {
    height: 160px;
  }
  .training-timeline {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
  .timeline-item:before {
    display: none;
  }
  .timeline-img {
    margin-bottom: 1rem;
  }
} 
.projects-slider-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.project-slider-card {
  border: none;
  border-radius: 1.2rem;
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.project-slider-img-wrap {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.project-slider-img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}
.project-slider-card h4 {
  font-weight: 700;
}
.project-slider-card p {
  color: #444;
}
.project-slider-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  opacity: 0.95;
}
.project-slider-arrow span {
  filter: invert(0.5);
}
@media (max-width: 767px) {
  .project-slider-card {
    flex-direction: column;
    min-height: 0;
  }
  .project-slider-img-wrap {
    min-height: 140px;
  }
  .project-slider-img {
    max-height: 180px;
  }
} 
.project-slider-card-simple {
  background: linear-gradient(90deg, #f8f9fa 60%, #f3f6fa 100%);
  border-radius: 1.2rem;
  min-height: 240px;
  border: 1px solid #f0f0f0;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.project-slider-img-wrap-simple {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.project-slider-img-simple {
  max-width: 100%;
  max-height: 180px;
  border-radius: 1rem;
}
@media (max-width: 767px) {
  .project-slider-card-simple {
    flex-direction: column;
    min-height: 0;
    border-radius: 1rem;
  }
  .project-slider-img-wrap-simple {
    min-height: 120px;
  }
  .project-slider-img-simple {
    max-height: 120px;
  }
} 

