/* Project Detail Modal CSS Module */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modalContainer {
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  max-width: 950px;
  width: 100%;
  max-height: 95vh;
  min-height: 60vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.closeButton {
  position: absolute;
  top: 0.2rem;
  right: 0.7rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.closeButton:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: scale(1.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.modalContent {
  flex-grow: 1;
  overflow-y: auto;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
.modalContent::-webkit-scrollbar {
  width: 8px;
}

.modalContent::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.modalContent::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modalContent::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* Image Container - When image exists */
.projectImageContainer {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
}

.projectImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.projectImage:hover {
  transform: scale(1.02);
}

/* Error state for broken images */
.projectImageContainer.imageError {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  display: flex;
  align-items: center;
  justify-content: center;
}

.projectImageContainer.imageError::after {
  content: "Image not available";
  color: #a0aec0;
  font-size: 1rem;
  font-weight: 500;
}

/* Header when no image - more compact */
.projectHeaderNoImage {
  padding: 2rem 2rem 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08),
    rgba(147, 51, 234, 0.08)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.projectIconPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 20px;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.projectIconPlaceholder svg {
  width: 48px;
  height: 48px;
}

/* Project Details Section */
.projectDetails {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
  min-height: 0;
}

.projectHeader {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex-shrink: 0;
}

.titleStatusRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.titleStatusLeft {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.projectTitle {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metaRow {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.statusBadge {
  padding: 0.6rem 1.2rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.statusBadge:hover {
  transform: translateY(-1px);
}

/* Status Badge Styles */

.statusCompleted {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(16, 185, 129, 0.25)
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.statusInProgress {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(37, 99, 235, 0.25)
  );
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.statusPlanning {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.15),
    rgba(147, 51, 234, 0.25)
  );
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.statusPlanned {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(79, 70, 229, 0.25)
  );
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.statusOnHold {
  background: linear-gradient(
    135deg,
    rgba(251, 113, 133, 0.15),
    rgba(244, 63, 94, 0.25)
  );
  color: #f43f5e;
  border: 1px solid rgba(251, 113, 133, 0.4);
  box-shadow: 0 2px 8px rgba(251, 113, 133, 0.2);
}

.statusCanceled {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15),
    rgba(220, 38, 38, 0.25)
  );
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
  position: relative;
}

.statusCanceled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.statusPrototype {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.15),
    rgba(99, 102, 241, 0.25),
    rgba(165, 180, 252, 0.15)
  );
  color: #6366f1;
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
}

.statusLaunched {
  background: linear-gradient(
    135deg,
    rgba(192, 31, 192, 0.15),
    rgba(192, 31, 192, 0.25),
    rgba(192, 31, 192, 0.15)
  );
  color: #c01fc0;
  border: 1px solid rgba(192, 31, 192, 0.4);
  box-shadow: 0 2px 8px rgba(192, 31, 192, 0.3);
}

.statusMetrics {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.15),
    rgba(59, 130, 246, 0.25),
    rgba(147, 197, 253, 0.15)
  );
  color: #3b82f6;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.statusAwarded {
  background: linear-gradient(
    135deg,
    rgba(255, 154, 0, 0.15),
    rgba(255, 109, 0, 0.25),
    rgba(230, 81, 0, 0.15)
  );
  color: #ca5801;
  border: 1px solid rgba(255, 154, 0, 0.4);
  box-shadow: 0 2px 8px rgba(255, 109, 0, 0.3);
}

.statusPassed {
  background: linear-gradient(
    135deg,
    rgba(144, 238, 144, 0.25),
    rgba(101, 185, 9, 0.35),
    rgba(173, 255, 47, 0.25)
  );
  color: #b4ff04;
  border: 1px solid rgba(180, 255, 4, 0.8);
  box-shadow: 0 2px 6px rgba(180, 255, 4, 0.4);
}

.statusAchievement {
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.18),
    rgba(184, 134, 11, 0.28),
    rgba(218, 165, 32, 0.18)
  );
  color: #daa520;
  font-weight: 600;
  border: 1px solid rgba(218, 165, 32, 0.75);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.35),
    0 0 6px rgba(218, 165, 32, 0.25);
  transition: all 0.3s ease;
}

.statusArchived {
  background: linear-gradient(
    135deg,
    rgba(156, 163, 175, 0.18),
    rgba(120, 85, 60, 0.25),
    rgba(75, 85, 99, 0.18)
  );
  color: #6b4f3f; /* muted brown-gray text */
  border: 1px solid rgba(120, 85, 60, 0.5);
  box-shadow: 0 2px 6px rgba(107, 114, 128, 0.2);
  border-radius: 8px;
  opacity: 0.92;
  font-weight: 500;
}

.statusDefault {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.15),
    rgba(100, 116, 139, 0.25)
  );
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
}

/* Animations for specific statuses */
@keyframes pulse-blue {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 2px 15px rgba(59, 130, 246, 0.4);
  }
}

@keyframes pulse-yellow {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
  }
  50% {
    box-shadow: 0 2px 15px rgba(251, 191, 36, 0.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@keyframes glow-green {
  0% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  100% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.5);
  }
}

@keyframes achievement-glow {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.6),
      0 0 30px rgba(236, 72, 153, 0.3);
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .statusInProgress,
  .statusOnHold,
  .statusPrototype,
  .statusLaunched,
  .statusAwarded,
  .statusAchievement {
    animation: none;
  }
}

.liveLinkButton {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.liveLinkButton:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
}

.descriptionSection {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  position: relative;
}

/* Custom scrollbar for description section */
.descriptionSection::-webkit-scrollbar {
  width: 6px;
}

.descriptionSection::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.descriptionSection::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.descriptionSection::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* Fade effect at bottom when content is scrollable */
.descriptionSection::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.descriptionSection:hover::after {
  opacity: 1;
}

.projectDescription {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tagsSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0; /* Prevent tags from shrinking */
}

.sectionTitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.tagsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 10px;
}

.techTag {
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.techTag:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modalContainer {
    max-width: 96%;
    border-radius: 20px;
  }

  .projectImageContainer {
    height: 240px;
  }

  .projectHeaderNoImage {
    min-height: 100px;
    padding: 1.5rem;
  }

  .projectIconPlaceholder {
    width: 64px;
    height: 64px;
  }

  .projectIconPlaceholder svg {
    width: 36px;
    height: 36px;
  }

  .projectDetails {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .titleStatusRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .titleStatusLeft {
    gap: 0.8rem;
  }

  .projectTitle {
    font-size: 2.2rem;
  }

  .projectDescription {
    font-size: 1rem;
  }

  .metaRow {
    gap: 1rem;
  }

  .statusBadge,
  .liveLinkButton {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .tagsContainer {
    gap: 0.6rem;
  }

  .techTag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .modalContainer {
    max-width: 98%;
    border-radius: 16px;
  }

  .projectImageContainer {
    height: 180px;
  }

  .projectHeaderNoImage {
    min-height: 80px;
    padding: 1rem;
  }

  .projectIconPlaceholder {
    width: 56px;
    height: 56px;
  }

  .projectIconPlaceholder svg {
    width: 32px;
    height: 32px;
  }

  .projectDetails {
    padding: 1rem;
    gap: 1rem;
  }

  .titleStatusRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .titleStatusLeft {
    gap: 0.6rem;
  }

  .projectTitle {
    font-size: 1.9rem;
  }

  .projectDescription {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .descriptionSection {
    padding: 1rem;
    max-height: 220px;
  }

  .statusBadge,
  .liveLinkButton {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .sectionTitle {
    font-size: 1.1rem;
  }

  .tagsContainer {
    gap: 0.5rem;
  }

  .techTag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .modalOverlay,
  .modalContainer {
    animation: none;
  }

  .closeButton:hover,
  .liveLinkButton:hover,
  .techTag:hover,
  .statusBadge:hover,
  .projectImage:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .modalContainer {
    border: 2px solid #ffffff;
  }

  .statusBadge,
  .techTag,
  .liveLinkButton {
    border-width: 2px;
  }

  .projectDescription {
    color: #ffffff;
  }
}

/* Project Detail Modal CSS Module */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modalContainer {
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  max-width: 950px;
  width: 100%;
  max-height: 95vh;
  min-height: 60vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.closeButton {
  position: absolute;
  top: 0.2rem;
  right: 0.7rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.closeButton:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: scale(1.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.modalContent {
  flex-grow: 1;
  overflow-y: auto;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
.modalContent::-webkit-scrollbar {
  width: 8px;
}

.modalContent::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.modalContent::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modalContent::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* Image Container - When image exists */
.projectImageContainer {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
}

.projectImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.projectImage:hover {
  transform: scale(1.02);
}

/* Error state for broken images */
.projectImageContainer.imageError {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  display: flex;
  align-items: center;
  justify-content: center;
}

.projectImageContainer.imageError::after {
  content: "Image not available";
  color: #a0aec0;
  font-size: 1rem;
  font-weight: 500;
}

/* Header when no image - more compact */
.projectHeaderNoImage {
  padding: 2rem 2rem 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08),
    rgba(147, 51, 234, 0.08)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.projectIconPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 20px;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.projectIconPlaceholder svg {
  width: 48px;
  height: 48px;
}

/* Project Details Section */
.projectDetails {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
  min-height: 0;
}

.projectHeader {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex-shrink: 0;
}

.titleStatusRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.titleStatusLeft {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0; /* Allow text to wrap */
}

.projectTitle {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metaRow {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.statusBadge {
  padding: 0.6rem 1.2rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.statusBadge:hover {
  transform: translateY(-1px);
}

/* Status Badge Styles - Each with gradient colors that truly represent their meaning */

.statusCompleted {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(16, 185, 129, 0.25)
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.statusInProgress {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(37, 99, 235, 0.25)
  );
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.statusPlanning {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.15),
    rgba(147, 51, 234, 0.25)
  );
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.statusPlanned {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(79, 70, 229, 0.25)
  );
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.statusOnHold {
  background: linear-gradient(
    135deg,
    rgba(251, 113, 133, 0.15),
    rgba(244, 63, 94, 0.25)
  );
  color: #f43f5e;
  border: 1px solid rgba(251, 113, 133, 0.4);
  box-shadow: 0 2px 8px rgba(251, 113, 133, 0.2);
}

.statusCanceled {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15),
    rgba(220, 38, 38, 0.25)
  );
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
  position: relative;
}

.statusCanceled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.statusPrototype {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.15),
    rgba(99, 102, 241, 0.25),
    rgba(165, 180, 252, 0.15)
  );
  color: #6366f1;
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
}

.statusLaunched {
  background: linear-gradient(
    135deg,
    rgba(192, 31, 192, 0.15),
    rgba(192, 31, 192, 0.25),
    rgba(192, 31, 192, 0.15)
  );
  color: #c01fc0;
  border: 1px solid rgba(192, 31, 192, 0.4);
  box-shadow: 0 2px 8px rgba(192, 31, 192, 0.3);
}

.statusMetrics {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.15),
    rgba(59, 130, 246, 0.25),
    rgba(147, 197, 253, 0.15)
  );
  color: #3b82f6;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.statusAwarded {
  background: linear-gradient(
    135deg,
    rgba(255, 154, 0, 0.15),
    rgba(255, 109, 0, 0.25),
    rgba(230, 81, 0, 0.15)
  );
  color: #ca5801;
  border: 1px solid rgba(255, 154, 0, 0.4);
  box-shadow: 0 2px 8px rgba(255, 109, 0, 0.3);
}

.statusPassed {
  background: linear-gradient(
    135deg,
    rgba(144, 238, 144, 0.25),
    rgba(101, 185, 9, 0.35),
    rgba(173, 255, 47, 0.25)
  );
  color: #b4ff04;
  border: 1px solid rgba(180, 255, 4, 0.8);
  box-shadow: 0 2px 6px rgba(180, 255, 4, 0.4);
}

.statusAchievement {
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.18),
    rgba(184, 134, 11, 0.28),
    rgba(218, 165, 32, 0.18)
  );
  color: #daa520;
  font-weight: 600;
  border: 1px solid rgba(218, 165, 32, 0.75);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.35),
    0 0 6px rgba(218, 165, 32, 0.25);
  transition: all 0.3s ease;
}

.statusArchived {
  background: linear-gradient(
    135deg,
    rgba(156, 163, 175, 0.18),
    rgba(120, 85, 60, 0.25),
    rgba(75, 85, 99, 0.18)
  );
  color: #6b4f3f; /* muted brown-gray text */
  border: 1px solid rgba(120, 85, 60, 0.5);
  box-shadow: 0 2px 6px rgba(107, 114, 128, 0.2);
  border-radius: 8px;
  opacity: 0.92;
  font-weight: 500;
}

.statusDefault {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.15),
    rgba(100, 116, 139, 0.25)
  );
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
}

/* Animations for specific statuses */
@keyframes pulse-blue {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 2px 15px rgba(59, 130, 246, 0.4);
  }
}

@keyframes pulse-yellow {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
  }
  50% {
    box-shadow: 0 2px 15px rgba(251, 191, 36, 0.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@keyframes glow-green {
  0% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  100% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.5);
  }
}

@keyframes achievement-glow {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.6),
      0 0 30px rgba(236, 72, 153, 0.3);
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .statusInProgress,
  .statusOnHold,
  .statusPrototype,
  .statusLaunched,
  .statusAwarded,
  .statusAchievement {
    animation: none;
  }
}

.liveLinkButton {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.liveLinkButton:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
}

.descriptionSection {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  position: relative;
}

/* Custom scrollbar for description section */
.descriptionSection::-webkit-scrollbar {
  width: 6px;
}

.descriptionSection::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.descriptionSection::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.descriptionSection::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* Fade effect at bottom when content is scrollable */
.descriptionSection::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.descriptionSection:hover::after {
  opacity: 1;
}

.projectDescription {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Rich text formatting styles for project description */
.projectDescription strong {
  font-weight: 700;
  color: #ffffff;
}

.projectDescription em {
  font-style: italic;
  color: #e2e8f0;
}

.projectDescription h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.3;
}

.projectDescription h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 1.25rem 0 0.5rem 0;
  line-height: 1.3;
}

.projectDescription ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: none;
}

.projectDescription li {
  margin: 0.5rem 0;
  position: relative;
  color: #cbd5e1;
}

.projectDescription li::before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.projectDescription br {
  line-height: 1.7;
}

/* First heading in description gets special treatment */
.projectDescription h2:first-child,
.projectDescription h3:first-child {
  margin-top: 0;
}

/* Last element in description gets no bottom margin */
.projectDescription > *:last-child {
  margin-bottom: 0;
}

.tagsSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0; /* Prevent tags from shrinking */
}

.sectionTitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.tagsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.techTag {
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.techTag:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modalContainer {
    max-width: 96%;
    border-radius: 20px;
  }

  .projectImageContainer {
    height: 240px;
  }

  .projectHeaderNoImage {
    min-height: 100px;
    padding: 1.5rem;
  }

  .projectIconPlaceholder {
    width: 64px;
    height: 64px;
  }

  .projectIconPlaceholder svg {
    width: 36px;
    height: 36px;
  }

  .projectDetails {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .titleStatusRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .titleStatusLeft {
    gap: 0.8rem;
  }

  .projectTitle {
    font-size: 2.2rem;
  }

  .projectDescription {
    font-size: 1rem;
  }

  .projectDescription h2 {
    font-size: 1.3rem;
  }

  .projectDescription h3 {
    font-size: 1.15rem;
  }

  .metaRow {
    gap: 1rem;
  }

  .statusBadge,
  .liveLinkButton {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .tagsContainer {
    gap: 0.6rem;
  }

  .techTag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .modalContainer {
    max-width: 98%;
    border-radius: 16px;
  }

  .projectImageContainer {
    height: 180px;
  }

  .projectHeaderNoImage {
    min-height: 80px;
    padding: 1rem;
  }

  .projectIconPlaceholder {
    width: 56px;
    height: 56px;
  }

  .projectIconPlaceholder svg {
    width: 32px;
    height: 32px;
  }

  .projectDetails {
    padding: 1rem;
    gap: 1rem;
  }

  .titleStatusRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .titleStatusLeft {
    gap: 0.6rem;
  }

  .projectTitle {
    font-size: 1.9rem;
  }

  .projectDescription {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .projectDescription h2 {
    font-size: 1.2rem;
  }

  .projectDescription h3 {
    font-size: 1.1rem;
  }

  .descriptionSection {
    padding: 1rem;
    max-height: 220px;
  }

  .statusBadge,
  .liveLinkButton {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .sectionTitle {
    font-size: 1.1rem;
  }

  .tagsContainer {
    gap: 0.5rem;
  }

  .techTag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .modalOverlay,
  .modalContainer {
    animation: none;
  }

  .closeButton:hover,
  .liveLinkButton:hover,
  .techTag:hover,
  .statusBadge:hover,
  .projectImage:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .modalContainer {
    border: 2px solid #ffffff;
  }

  .statusBadge,
  .techTag,
  .liveLinkButton {
    border-width: 2px;
  }

  .projectDescription {
    color: #ffffff;
  }

  .projectDescription strong,
  .projectDescription h2,
  .projectDescription h3 {
    color: #ffffff;
  }
}

/* Improved Project Detail Modal CSS Module - Consistent with Main Page */

/* Modal Overlay */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container - Enhanced Design */
.modalContainer {
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  max-width: 950px;
  width: 100%;
  max-height: 95vh;
  min-height: 60vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Button */
.closeButton {
  position: absolute;
  top: 0.2rem;
  right: 0.7rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.closeButton:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: scale(1.08);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Modal Content */
.modalContent {
  flex-grow: 1;
  overflow-y: auto;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
.modalContent::-webkit-scrollbar {
  width: 8px;
}

.modalContent::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.modalContent::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modalContent::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* Image Container - When image exists */
.projectImageContainer {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
}

.projectImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.projectImage:hover {
  transform: scale(1.02);
}

/* Featured Badge - Consistent with main page */
.featuredBadge {
  position: absolute;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  top: 0.5rem;
  left: 1rem;
}

.featuredBadgeNoImage {
  position: absolute;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  top: 0.5rem;
  left: 1rem;
}

/* Error state for broken images */
.projectImageContainer.imageError {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  display: flex;
  align-items: center;
  justify-content: center;
}

.projectImageContainer.imageError::after {
  content: "Image not available";
  color: #a0aec0;
  font-size: 1rem;
  font-weight: 500;
}

/* Header when no image - more compact */
.projectHeaderNoImage {
  padding: 2rem 2rem 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08),
    rgba(147, 51, 234, 0.08)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
}

.projectIconPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 20px;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.projectIconPlaceholder svg {
  width: 48px;
  height: 48px;
}

/* Project Details Section */
.projectDetails {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
  min-height: 0;
}

.projectHeader {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex-shrink: 0;
}

.titleStatusRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.titleStatusLeft {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0; /* Allow text to wrap */
}

.projectTitle {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Short Description - Consistent with main page */
.shortDescription {
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* Status Badge - Consistent with main page styling */
.statusBadge {
  padding: 0.6rem 1.2rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.statusBadge:hover {
  transform: translateY(-1px);
}

/* Status Badge Styles - Consistent with main page */
.statusCompleted {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(16, 185, 129, 0.25)
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.statusInProgress {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(37, 99, 235, 0.25)
  );
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.statusPlanning {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.15),
    rgba(147, 51, 234, 0.25)
  );
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.statusPlanned {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(79, 70, 229, 0.25)
  );
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.statusOnHold {
  background: linear-gradient(
    135deg,
    rgba(251, 113, 133, 0.15),
    rgba(244, 63, 94, 0.25)
  );
  color: #f43f5e;
  border: 1px solid rgba(251, 113, 133, 0.4);
  box-shadow: 0 2px 8px rgba(251, 113, 133, 0.2);
}

.statusCanceled {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15),
    rgba(220, 38, 38, 0.25)
  );
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
  position: relative;
}

.statusCanceled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.statusPrototype {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.15),
    rgba(99, 102, 241, 0.25),
    rgba(165, 180, 252, 0.15)
  );
  color: #6366f1;
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
}

.statusLaunched {
  background: linear-gradient(
    135deg,
    rgba(192, 31, 192, 0.15),
    rgba(192, 31, 192, 0.25),
    rgba(192, 31, 192, 0.15)
  );
  color: #c01fc0;
  border: 1px solid rgba(192, 31, 192, 0.4);
  box-shadow: 0 2px 8px rgba(192, 31, 192, 0.3);
}

.statusMetrics {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.15),
    rgba(59, 130, 246, 0.25),
    rgba(147, 197, 253, 0.15)
  );
  color: #3b82f6;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.statusAwarded {
  background: linear-gradient(
    135deg,
    rgba(255, 154, 0, 0.15),
    rgba(255, 109, 0, 0.25),
    rgba(230, 81, 0, 0.15)
  );
  color: #ca5801;
  border: 1px solid rgba(255, 154, 0, 0.4);
  box-shadow: 0 2px 8px rgba(255, 109, 0, 0.3);
}

.statusPassed {
  background: linear-gradient(
    135deg,
    rgba(144, 238, 144, 0.25),
    rgba(101, 185, 9, 0.35),
    rgba(173, 255, 47, 0.25)
  );
  color: #b4ff04;
  border: 1px solid rgba(180, 255, 4, 0.8);
  box-shadow: 0 2px 6px rgba(180, 255, 4, 0.4);
}

.statusAchievement {
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.18),
    rgba(184, 134, 11, 0.28),
    rgba(218, 165, 32, 0.18)
  );
  color: #daa520;
  font-weight: 600;
  border: 1px solid rgba(218, 165, 32, 0.75);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.35),
    0 0 6px rgba(218, 165, 32, 0.25);
  transition: all 0.3s ease;
}

.statusArchived {
  background: linear-gradient(
    135deg,
    rgba(156, 163, 175, 0.18),
    rgba(120, 85, 60, 0.25),
    rgba(75, 85, 99, 0.18)
  );
  color: #6b4f3f; /* muted brown-gray text */
  border: 1px solid rgba(120, 85, 60, 0.5);
  box-shadow: 0 2px 6px rgba(107, 114, 128, 0.2);
  border-radius: 8px;
  opacity: 0.92;
  font-weight: 500;
}

.statusDefault {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.15),
    rgba(100, 116, 139, 0.25)
  );
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
}

/* Live Link Button - Enhanced */
.liveLinkButton {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.liveLinkButton:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
}

.descriptionSection {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  max-height: none;
  overflow: visible;
  position: relative;
}

.projectDescription {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Description formatting - consistent with main page (no green headings) */
.projectDescription h2,
.projectDescription h3 {
  color: #f8fafc !important;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
}

.projectDescription h2 {
  font-size: 1.3rem;
}

.projectDescription h3 {
  font-size: 1.1rem;
}

.projectDescription strong {
  color: #e2e8f0;
  font-weight: 600;
}

.projectDescription em {
  color: #e2e8f0;
  font-style: italic;
}

.projectDescription ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.projectDescription li {
  margin-bottom: 0.25rem;
}

/* Tags Section - Enhanced */
.tagsSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0; /* Prevent tags from shrinking */
}

.sectionTitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.tagsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.techTag {
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.techTag:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

/* Project Links Section - New */
.projectLinksSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.projectLinks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.projectLink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.projectLink:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modalContainer {
    max-width: 96%;
    border-radius: 20px;
  }

  .projectImageContainer {
    height: 240px;
  }

  .projectHeaderNoImage {
    min-height: 100px;
    padding: 1.5rem;
  }

  .projectIconPlaceholder {
    width: 64px;
    height: 64px;
  }

  .projectIconPlaceholder svg {
    width: 36px;
    height: 36px;
  }

  .projectDetails {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .titleStatusRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .titleStatusLeft {
    gap: 0.8rem;
  }

  .projectTitle {
    font-size: 2.2rem;
  }

  .shortDescription {
    font-size: 1rem;
  }

  .projectDescription {
    font-size: 1rem;
  }

  .statusBadge,
  .liveLinkButton {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .tagsContainer {
    gap: 0.6rem;
  }

  .techTag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .projectLinks {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .modalContainer {
    max-width: 98%;
    border-radius: 16px;
  }

  .projectImageContainer {
    height: 180px;
  }

  .projectHeaderNoImage {
    min-height: 80px;
    padding: 1rem;
  }

  .projectIconPlaceholder {
    width: 56px;
    height: 56px;
  }

  .projectIconPlaceholder svg {
    width: 32px;
    height: 32px;
  }

  .projectDetails {
    padding: 1rem;
    gap: 1rem;
  }

  .titleStatusRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .titleStatusLeft {
    gap: 0.6rem;
  }

  .projectTitle {
    font-size: 1.9rem;
  }

  .shortDescription {
    font-size: 0.95rem;
  }

  .projectDescription {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .descriptionSection {
    padding: 1rem;
  }

  .statusBadge,
  .liveLinkButton {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .sectionTitle {
    font-size: 1.1rem;
  }

  .tagsContainer {
    gap: 0.5rem;
  }

  .techTag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .projectLink {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .modalOverlay,
  .modalContainer {
    animation: none;
  }

  .closeButton:hover,
  .liveLinkButton:hover,
  .techTag:hover,
  .statusBadge:hover,
  .projectImage:hover,
  .projectLink:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .modalContainer {
    border: 2px solid #ffffff;
  }

  .statusBadge,
  .techTag,
  .liveLinkButton,
  .projectLink {
    border-width: 2px;
  }

  .projectDescription {
    color: #ffffff;
  }
}
