/*--------------------------------------------------------------
# Featured Projects Section
--------------------------------------------------------------*/
.featured-projects {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 10px);
  position: relative;
  overflow: hidden;
}

.featured-projects::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 85%) 0%, transparent 70%);
  pointer-events: none;
}

.featured-projects .project-card {
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-projects .project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-projects .project-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-projects .project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-projects .project-card:hover .project-image {
  transform: scale(1.1);
}

.featured-projects .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-color), transparent 10%) 0%,
    color-mix(in srgb, #1e3a8a, transparent 10%) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-projects .project-card:hover .project-overlay {
  opacity: 1;
}

.featured-projects .project-overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-projects .project-card:hover .project-overlay-content {
  transform: translateY(0);
}

.featured-projects .project-view-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--surface-color);
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-projects .project-view-link:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.15) rotate(360deg);
}

.featured-projects .project-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-projects .project-category {
  margin-bottom: 15px;
}

.featured-projects .category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #1e3a8a 30%));
  color: var(--contrast-color);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.featured-projects .project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.featured-projects .project-card:hover .project-title {
  color: var(--accent-color);
}

.featured-projects .project-description {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  text-align: justify;
}

.featured-projects .project-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  margin-top: auto;
}

.featured-projects .project-read-more::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-projects .project-read-more:hover::after {
  width: calc(100% - 30px);
}

html[dir="rtl"] .featured-projects .project-read-more::after {
  left: auto;
  right: 0;
}

.featured-projects .project-read-more i {
  transition: transform 0.3s ease;
}

.featured-projects .project-read-more:hover i {
  transform: translateX(5px);
}

html[dir="rtl"] .featured-projects .project-read-more:hover i {
  transform: translateX(-5px);
}

.featured-projects .view-all-projects {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-projects .view-all-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #1e3a8a 30%));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

html[dir="rtl"] .featured-projects .view-all-projects::before {
  transform-origin: right;
}

.featured-projects .view-all-projects:hover::before {
  transform: scaleX(1);
}

.featured-projects .view-all-projects:hover {
  color: var(--contrast-color);
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.featured-projects .view-all-projects span {
  position: relative;
  z-index: 1;
}

.featured-projects .view-all-projects i {
  font-size: 18px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.featured-projects .view-all-projects:hover i {
  transform: translateX(5px);
}

html[dir="rtl"] .featured-projects .view-all-projects:hover i {
  transform: translateX(-5px);
}
