main.center {
    display: flex;
    flex-direction: column;
    padding-top: 1rem !important;
}

.projects {
  width: 100%;
  margin-top: 2rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}
.project-card {
  padding: 1rem;
  border-radius: 8px;
}
.project-card h3 {
  margin-top: 0;
}
.project-card a {
  color: #9fd3ff;
  margin-right: 0.75rem;
}
.project-card a:hover {
  text-decoration: underline;
}

.project-card img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.text-animation {
    margin-top: 2rem !important;
    text-align: center;
    animation: move-text 2s ease-in-out infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  main.center {
    padding: 1rem !important;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
