#Projects {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 5%;
}

#Projects h2 {
  color: #b74b4b;
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2rem);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

#Projects h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #b74b4b, transparent);
  border-radius: 2px;
}

#Projects ul {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px;
}

#Projects ul li {
  text-align: left;
  margin-bottom: 20px;
  padding: 16px 16px 16px 35px;
  background-color: rgba(183, 75, 75, 0.05);
  border-radius: 10px;
  border-left: 4px solid #b74b4b;
  transition: all 0.3s ease;
  position: relative;
}

#Projects ul li:hover {
  background-color: rgba(183, 75, 75, 0.1);
  border-left-color: #74b4bb;
  transform: translateX(8px);
  box-shadow: 0 5px 20px rgba(183, 75, 75, 0.2);
}

#Projects ul li:before {
  background: linear-gradient(135deg, #b74b4b, #74b4bb);
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.6);
  width: 14px;
  height: 14px;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

#Projects ul li a {
  color: #eee;
  text-align: left;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 500;
  display: block;
  transition: all 0.3s ease;
}

#Projects ul li a:hover {
  color: #74b4bb;
  text-shadow: 0 0 10px rgba(116, 180, 187, 0.5);
  padding-left: 5px;
}

/* For non-link items */
#Projects ul li:not(:has(a)) {
  color: #eee;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

/* Add some visual interest to project items */
#Projects ul li::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #b74b4b;
  opacity: 0;
  transition: all 0.3s ease;
}

#Projects ul li:hover::after {
  opacity: 1;
  right: 15px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  #Projects {
    padding: 1.5rem 3%;
  }

  #Projects h2 {
    margin-bottom: 2rem;
  }

  #Projects ul {
    padding: 0 10px;
  }

  #Projects ul li {
    padding: 12px 12px 12px 30px;
    margin-bottom: 16px;
  }

  #Projects ul li:before {
    width: 12px;
    height: 12px;
    left: 8px;
  }

  #Projects ul li::after {
    right: 15px;
  }

  #Projects ul li:hover::after {
    right: 10px;
  }
}

@media (max-width: 480px) {
  #Projects {
    padding: 1rem 3%;
  }

  #Projects h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }

  #Projects ul li {
    padding: 10px 10px 10px 28px;
    margin-bottom: 14px;
  }

  #Projects ul li a,
  #Projects ul li:not(:has(a)) {
    font-size: 0.9rem;
  }

  #Projects ul li:before {
    width: 10px;
    height: 10px;
  }

  #Projects ul li::after {
    font-size: 0.9rem;
  }
}
