/* ===== SPECIFIC FIX FOR PROJECT ICONS ===== */

/* Ensure Font Awesome is loaded properly */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Force project overlay to be visible on hover */
.project-item {
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5 !important;
}

.project-item:hover .project-overlay {
  opacity: 1 !important;
}

/* Fix project info positioning */
.project-info {
  text-align: center;
  color: white !important;
  padding: 2rem;
  z-index: 10 !important;
  position: relative;
}

.project-info h3 {
  color: white !important;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.project-info p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

/* COMPLETELY REDESIGNED PROJECT LINKS */
.project-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
  z-index: 15 !important;
  position: relative;
}

.project-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #7c3aed !important;
  border: 2px solid #7c3aed !important;
  border-radius: 50% !important;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 20 !important;
}

.project-link:hover {
  background-color: #5b21b6 !important;
  border-color: #5b21b6 !important;
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5) !important;
}

/* Force icon styles */
.project-link i {
  font-size: 20px !important;
  color: white !important;
  line-height: 1 !important;
  display: block !important;
  text-align: center !important;
}

.project-link .fas,
.project-link .fab {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  color: white !important;
}

/* Specific icon fixes */
.project-link .fa-external-link-alt::before {
  content: "\f35d" !important;
}

.project-link .fa-github::before {
  content: "\f09b" !important;
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Alternative: Use Unicode symbols if Font Awesome fails */
.project-link[data-tooltip="Live Preview"]::after {
  content: "🔗";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  display: none;
}

.project-link[data-tooltip="View Code"]::after {
  content: "📁";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  display: none;
}

/* Show Unicode symbols if Font Awesome icons are not visible */
.project-link i:empty + ::after,
.project-link:not(:has(i))::after {
  display: block !important;
}

/* Tooltip styling */
.project-link::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 25;
}

.project-link:hover::before {
  opacity: 1;
  visibility: visible;
  bottom: -35px;
}

/* Project number styling */
.project-number {
  display: inline-block;
  background-color: rgba(124, 58, 237, 0.9) !important;
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Ensure proper stacking order */
.project-img {
  position: relative;
  z-index: 1;
}

.project-tags {
  position: relative;
  z-index: 2;
  background-color: white;
  padding: 1.5rem;
}

/* Debug mode - uncomment to see overlay boundaries */
/*
.project-overlay {
  border: 2px solid red !important;
}
.project-links {
  border: 2px solid yellow !important;
}
.project-link {
  border: 2px solid green !important;
}
*/