main {
  background: linear-gradient(160deg, rgb(49, 67, 89) 0%, rgba(30, 41, 59, 1) 100%);
}

h1 {
    text-align: center;
    padding : 3rem 0 2rem 0;
}
h1 + p {
    text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.6) 0px 6px 12px -2px, rgba(255, 255, 255, 0.05) 0px 3px 7px -3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.1s ease;
}

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

.project-icon::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 0;
  height: 0;
  border-top: 100px solid var(--orange);
  border-left: 100px solid transparent;
}

.project-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon lord-icon {
  width: 80%;
  height: 80%;
}

.project-image {
  height: 200px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
  background-color: transparent;
}

.project-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.project-description{
  margin: 0.5rem 0;
  text-align: left;  
}

.project-meta {
  margin: 1rem 0;
  font-size: 0.85rem;
}

.project-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tag {
  background:var(--orange);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
}

.project-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.75rem;
  max-height: 86px;
}

.project-links a {
  text-align: center;
}

.project-card .reset-link:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: -4px;
}

.reset-link {
  all: unset;
  cursor: pointer;
  flex-grow: 1;
}

.reset-link:hover {
  color: inherit;
  text-decoration: none;
}

[data-theme='light'] {
  .project-card {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  }

  main {
    background: linear-gradient(117deg, rgba(242, 243, 245, 1) 0%, rgba(220, 223, 228, 1) 100%);
  }
}

@media (max-width: 768px) {
  h1 {
    padding-top: calc(76px + 3rem);
  }
}