#projects {
  background: #e5e5e5;
  padding: 100px 20px;
  text-align: center;
}

.projects-title-container {
  display: inline-block;
  margin-bottom: 70px;
}

.projects-title {
  font-family: 'Pixelify Sans', cursive;
  font-size: 40px;
  color: white;
  background: linear-gradient(90deg, #1A535C, #246670);
  display: inline-block;
  padding: 20px 100px;
  border-radius: 4px;
  margin: 0;
}

.projects-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1A315C;
}

.project-description {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  color: #1A315C;
  margin: 0 0 15px;
  flex-grow: 1;
}

.project-button {
  display: inline-block;
  background: #1A535C;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.project-button:hover {
  background: #246670;
}

.cssanimation {
  opacity: 0;
}

.cssanimation.animate {
  animation-name: clipVerticalSplitIn;
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes clipVerticalSplitIn {
  0% {
    clip-path: inset(0 50% 0 50%);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .projects-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #projects {
    padding: 60px 15px;
  }

  .projects-title {
    font-size: 28px;
    padding: 15px 40px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
  }

  .projects-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-image {
    height: 150px;
  }

  .project-title {
    font-size: 16px;
  }

  .project-description {
    font-size: 12px;
  }

  .project-button {
    padding: 8px 15px;
    font-size: 12px;
  width: 100%;
  }
}

@media (max-width: 480px) {
  .projects-wrapper {
    grid-template-columns: 1fr;
  }
}