/* === Projects Section Styles === */
.project {
  padding: 60px 20px;
  background: #f8f9fb;
  font-family: Arial, sans-serif;
}

.project h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.project h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #00d1b2;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grid layout for cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card container */
.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Image styling */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Content */
.project-content {
  padding: 20px;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.4rem;
  color: #000000;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.project-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-content a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #00d1b2;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover Effects */
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover h3 {
  color: #0056b3;
}

.project-content a:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .project h2 {
    font-size: 1.8rem;
  }

  .project-content h3 {
    font-size: 1.2rem;
  }

  .project-content p {
    font-size: 0.95rem;
  }
}
