/* Projects section */

.projects-grid {
  display: flex;
  gap: 2em;
  margin-top: 1em;

  flex-direction: row;
}

.project{
  max-width: 30%;
}

.project-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

[data-theme='light'] .project-inner {
  background: var(--bg-alt);
}

.project-inner:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme='light'] .project-inner:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  padding-bottom: 60%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt-soft);
}

.project-content {
  padding: 16px;
}

.project-content h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.project-content p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-footer {
  padding: 0 16px 16px;
  text-align: right;
}

.project-link {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--accent-alt);
}

@media (max-width: 770px) {
  .projects-grid{
    flex-direction: column;
  }

  .project{
    max-width: 100%;
  }
}