/* ========== Base Styles ========== */
.ourwork {
  text-align: center;
  padding: 80px 5%;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

/* --- Header --- */
.ourwork-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.ourwork-header h2 span {
  font-style: italic;
  color: #888;
}

.ourwork-header p {
  color: #555;
  margin-top: 8px;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

/* --- Project Cards --- */
.projects {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.project-card {
  position: relative;
  width: 320px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
  cursor: pointer;

}

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

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

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Overlay --- */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  padding: 20px;
  text-align: left;
}

.overlay .type {
  font-size: 0.9rem;
 /* text-transform: uppercase; */
  opacity: 0.9;
}

.overlay h3 {
  font-size: 1.4rem;
  margin: 5px 0;
  font-weight: 600;
  color: azure;
  transition: color 0.3s;
  cursor: pointer;
}



.overlay .location {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.overlay .btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s, transform 0.3s;
}

.overlay .btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* --- View All Button --- */
.view-all {
  margin-top: 50px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 1s;
}

.btn-secondary {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #333;
  color: #fff;
}

/* ========== Animations ========== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Responsive Design ========== */

/* Tablet */
@media (max-width: 992px) {
  .ourwork-header h2 {
    font-size: 2.2rem;
  }
  .projects {
    gap: 20px;
  }
  .project-card {
    width: 45%;
    height: 260px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .ourwork {
    padding: 60px 3%;
  }
  .ourwork-header h2 {
    font-size: 1.8rem;
  }
  .ourwork-header p {
    font-size: 0.9rem;
  }
  .project-card {
    width: 100%;
    height: 240px;
  }
  .overlay h3 {
    font-size: 1.2rem;
  }
  .btn-secondary {
    padding: 8px 20px;
  }
}
