/* Projects Section Styles */

.projects-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background-color: var(--color-background);
    z-index: 1;
  }

.project-card {
  background-color: #ffffff;
  color: var(--color-text);
  border-radius: 24px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  box-sizing: border-box;
  margin-top: 3rem;
  margin-bottom: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-extra) 100%);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-accent);
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 600;
}

.project-accent {
  display: none; /* Replaced by pseudo-element */
}

.project-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f5f5f5;
  border: 1px solid rgba(0,0,0,0.05);
}

.project-image {
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.project-image:hover {
  transform: scale(1.01);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.project-image-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  text-align: center;
  font-style: italic;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
}

.project-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-accent-extra);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: none;
}

.project-description {
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  opacity: 0.9;
}

.project-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
  text-align: left;
  color: var(--color-text);
}

.project-features li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.project-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-extra);
  font-weight: bold;
}

.project-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: #f5f5f5;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'ClashDisplay', sans-serif;
}

.project-link:hover {
  background: #e0e0e0;
  color: var(--color-accent);
  transform: translateY(-2px);
}

.project-card .btn-primary {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(144, 41, 35, 0.2);
  transition: all 0.3s ease;
  justify-content: center;
}

.project-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(144, 41, 35, 0.3);
}

/* Modal Styles */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.project-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.project-modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: white;
  z-index: 10000;
  cursor: pointer;
  transition: transform 0.2s;
  line-height: 1;
}

.project-modal-close:hover {
  transform: scale(1.1);
  color: var(--color-accent-extra);
}

@media (min-width: 768px) {
  .project-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .project-card {
    padding: 4rem;
  }
}
