/* Project Cards */
.project__container {
  margin-top: 2rem;
  gap: 2rem;
}

.project__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.project__image {
  height: 230px;
  overflow: hidden;
}

.project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project__card:hover .project__image img {
  transform: scale(1.05);
}

.project__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--title-color);
}

.project__description {
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project__features {
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}

.project__features li {
  display: flex;
  align-items: center;
  font-size: var(--smaller-font-size);
  margin-bottom: 0.5rem;
  color: var(--text-color-light);
}

.project__features i {
  color: var(--first-color);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.project__button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(
    to right,
    var(--first-color),
    var(--first-color-alt)
  );
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  align-self: flex-start;
  margin-top: auto;
  transition: box-shadow 0.3s;
  text-decoration: none;
}

.project__button i {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.project__button:hover {
  box-shadow: 0 6px 12px rgba(var(--first-color-rgb), 0.3);
}

.project__button:hover i {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .project__container {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 768px) {
  .project__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .project__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Inactive Project Styling */
.inactive-project {
  position: relative;
  border: 1px solid rgba(var(--text-color-rgb, 0, 0, 0), 0.1);
}

.project__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.status-badge {
  background-color: rgba(255, 59, 48, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
}

.grayscale img {
  filter: grayscale(70%);
}

.project-inactive {
  color: var(--text-color-light);
  font-size: 0.8em;
  font-weight: normal;
}

.project__notice {
  margin: 1rem 0;
  padding: 0.75rem;
  background-color: rgba(var(--text-color-rgb, 0, 0, 0), 0.05);
  border-left: 3px solid rgba(255, 59, 48, 0.8);
  border-radius: 0.25rem;
  font-size: var(--smaller-font-size);
  display: flex;
  align-items: center;
}

.project__notice i {
  color: rgba(255, 59, 48, 0.8);
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.project__button--inactive {
  background: linear-gradient(to right, #9e9e9e, #757575);
  opacity: 0.8;
}

.project__button--inactive:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.in-development {
  position: relative;
  border: 1px solid rgba(var(--first-color-rgb, 57, 108, 240), 0.2);
  box-shadow: 0 8px 24px rgba(var(--first-color-rgb, 57, 108, 240), 0.1);
}

.status-badge--dev {
  background-color: rgba(var(--first-color-rgb, 57, 108, 240), 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(var(--first-color-rgb, 57, 108, 240), 0.4);
}

.project__progress {
  margin: 1rem 0;
}

.progress-bar {
  height: 8px;
  background-color: rgba(var(--text-color-rgb, 113, 128, 150), 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    to right,
    var(--first-color),
    var(--first-color-alt)
  );
  border-radius: 4px;
}

.progress-text {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  display: block;
  text-align: right;
}

.project__button--dev {
  background: linear-gradient(
    to right,
    var(--first-color),
    var(--first-color-alt)
  );
  position: relative;
  overflow: hidden;
}

.project__button--dev::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

/* Completed Project Styling */
.completed {
  position: relative;
  border: 1px solid rgba(46, 204, 113, 0.2);
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.1);
}

.status-badge--complete {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
}

.project__button--complete {
  background: linear-gradient(to right, #2ecc71, #27ae60);
  color: #fff;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

.project__button--complete:hover {
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.35);
}

/* Progress bar for completed projects */
.completed .progress-fill {
  background: linear-gradient(to right, #2ecc71, #27ae60);
}

.completed .progress-text {
  color: #2ecc71;
  font-weight: 600;
}

/* Make the actions flex container */
.project__actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

/* Priority Projects Styling */
.priority {
  position: relative;
  border: 1px solid rgba(var(--first-color-rgb, 57, 108, 240), 0.3);
  box-shadow: 0 10px 30px rgba(var(--first-color-rgb, 57, 108, 240), 0.15);
  transform: scale(1.02);
  z-index: 5;
}

.priority::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--first-color), #6c4bf6, #2ecc71);
  border-radius: 4px 4px 0 0;
}

.priority .project__image {
  height: 250px;
}

.priority .project__title {
  font-size: calc(var(--h3-font-size) * 1.1);
  background: linear-gradient(90deg, var(--first-color), #6c4bf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.priority .project__description {
  font-size: calc(var(--small-font-size) * 1.05);
}

.priority .project__features li i {
  color: #2ecc71;
  font-size: 1.3rem;
}

.priority .project__button {
  background: linear-gradient(90deg, var(--first-color), #6c4bf6);
  padding: 0.85rem 1.75rem;
  box-shadow: 0 6px 15px rgba(var(--first-color-rgb), 0.25);
  position: relative;
  overflow: hidden;
}

.priority .project__button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.6s;
}

.priority .project__button:hover::after {
  transform: translateX(100%);
}

.priority .status-badge--complete {
  background: linear-gradient(90deg, var(--first-color), #6c4bf6);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(var(--first-color-rgb), 0.3);
}

@media screen and (min-width: 768px) {
  .priority {
    grid-column: span 2;
  }
}

@media screen and (min-width: 1024px) {
  .priority {
    grid-column: span 1;
  }
}

/* Enhance priority cards on hover */
.priority:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 40px rgba(var(--first-color-rgb), 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.priority:hover .project__image img {
  transform: scale(1.08);
}

/* Fancy NEW Badge Styling */
.status-badge.new {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 0.25rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  margin-left: 0.5rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: new-badge-pulse 2s infinite alternate;
}

@keyframes new-badge-pulse {
  0% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
    transform: scale(1.05);
  }
}

/* Improve position for smaller screens */
@media screen and (max-width: 576px) {
  .status-badge.new {
    margin-left: 0.3rem;
    padding: 0.2rem 0.7rem;
    font-size: 0.65rem;
  }
}

/* To ensure text-color-rgb is defined if not already */
:root {
  --text-color-rgb: 113, 128, 150;
  --first-color-rgb: 57, 108, 240;
}
