/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #2d3134;
  color: #fff;
}

/* Container */
.max-width {
  max-width: 1300px;
  padding: 0 20px;
  margin: auto;
}
.back-home {
  text-align: left;
  padding: 20px 20px 0 20px;
}

.back-home a {
  display: inline-block;
  color: #fff;
  background: #6a7177;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-home a i {
  margin-right: 8px;
}

.back-home a:hover {
  background: #fff;
  color: #2d3134;
}

/* Title */
.title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: 'Ubuntu', sans-serif;
}
.title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #fff;
  transform: translateX(-50%);
}
.title::after {
  content: "my work";
  position: absolute;
  bottom: -8px;
  left: 50%;
  font-size: 16px;
  color: #aaa;
  padding: 0 10px;
  background: #2d3134;
  transform: translateX(-50%);
}

/* Project Grid */
.project-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* Project Card */
.project-card {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  width: calc(50% - 20px);
  min-width: 320px;
  transition: transform 0.3s ease;
}
.project-card:hover {
  background: #6a7177;
  transform: scale(1.03);
}

.project-card .box {
  padding: 20px;
  text-align: center;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  border-radius: 10px;
}

.project-card .text {
  font-size: 24px;
  font-weight: 600;
  margin: 15px 0 8px 0;
}

.project-card p {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 12px;
}

/* Project Links */
.project-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.project-links a {
  padding: 10px 18px;
  background: #6a7177;
  color: white;
  border-radius: 25px;
  font-size: 15px;
  transition: background 0.3s ease;
  text-decoration: none;
}
.project-links a:hover {
  background: white;
  color: #2d3134;
}

/* Responsive */
@media (max-width: 1024px) {
  .project-card {
    width: 100%;
  }
  .title {
    font-size: 34px;
  }
}

@media (max-width: 600px) {
  .title {
    font-size: 26px;
  }
  .project-card img {
    height: 200px;
  }
  .project-card .text {
    font-size: 20px;
  }
  .project-card p {
    font-size: 13px;
  }
  .project-links a {
    font-size: 13px;
    padding: 8px 14px;
  }
}
