* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #9e631fcc;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.projects-container {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 15px;
}

.project-card {
  background-color: rgba(235, 81, 222, 0.507);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  width: 100%;
  max-width: 350px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.2s;
}
.project-card:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0d6efd, #00b4d8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: 700;
  color: #e9ecef;
  z-index: 0;
  transition: all 0.3s ease;
  transform: scale(1);
}

.project-card:hover .project-number {
  transform: scale(1.2);
  color: #0d6efd;
}

.project-content {
  position: relative;
  z-index: 1;
}

.project-name {
  font-size: 22px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 15px;
}

.project-demo {
  margin-top: 20px;
}

.demo-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0d6efd;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: perspective(1px) translateZ(0);
  position: relative;
  overflow: hidden;
}

.demo-link:hover {
  background-color: #0b5ed7;
  transform: translateY(-2px) scale(1.03);
}

.demo-link:active {
  transform: translateY(0) scale(0.98);
}

.demo-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease-out;
}

.demo-link:hover::after {
  transform: scaleX(1);
}

.project-date {
  margin-top: 20px;
  font-size: 14px;
  color: #c0cad3;
  font-weight: 500;
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .projects-container {
    gap: 15px;
  }

  .project-card {
    padding: 20px;
    margin-bottom: 15px;
  }

  .project-name {
    font-size: 20px;
  }

  .demo-link {
    padding: 7px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .project-card {
    padding: 18px;
  }

  .project-name {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .project-date {
    font-size: 13px;
  }
}
