/* =============================
   Projects Page Styling
   File: projects.css
   ============================= */

/* ================================
   Projects Page Styling
   ================================ */

/* Container */
.projects {
  padding: 60px 20px;
  background: #f9f9f9;
}

.projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

/* Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

/* Project Card */
.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Project Image */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Info Section */
.project-info {
  padding: 20px;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
}

.project-info p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Links */
.project-links {
  display: flex;
  gap: 12px;
}

.project-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.project-links a:first-child {
  background: #222;
  color: #fff;
}

.project-links a:first-child:hover {
  background: #444;
}

.project-links a:last-child {
  background: #f3f3f3;
  color: #222;
  border: 1px solid #ddd;
}

.project-links a:last-child:hover {
  background: #eaeaea;
  color: #111;
}


/* Responsive Tweaks */
@media (max-width: 768px) {
  .projects h2 {
    font-size: 2rem;
  }

  .project-card img {
    height: 180px;
  }

  .project-info h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .project-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-links a {
    width: 100%;
    text-align: center;
  }
}

