body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header, main, footer {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

nav{
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav i {
  font-size: 1.3rem;
}

main, section{
  display: flex;
  flex-direction: column;
}

main {
  gap: 4rem;
}

section{
  gap: 1rem;
}

.intro-header p {
  padding-top: 0.25rem;
}

.intro-description {
  max-width: 500px;
}

.links-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.link-arrow {
  color: var(--color-link);
  transform: rotate(-45deg);
}

.color-div{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-large);
  background: var(--background-muted);
}

.project-card > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card p,
.project-card h4 {
  width: auto;
}

.project-card > div:first-child > p:first-child {
  color: #334155;
  font-weight: 600;
}

.project-card .img-div {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.project-card .big-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border-primary);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.25rem;
}

.tech-list{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
}

.tech-list div {
  padding: 0.1rem 0.5rem;
  border-radius: var(--border-radius-small);
}

.tech-list p {
  font-size: 0.8rem;
}

@media (min-width: 640px){
  .project-card{
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 300px);
    align-items: start;
  }
  .project-card .img-div {
    justify-content: flex-end;
  }
}
