@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #0c0c0c;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ---------- HEADER ---------- */
.header {
  text-align: center;
  margin-bottom: 60px;
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.subtitle {
  font-size: 1rem;
  color: #aaa;
}

/* ---------- PROJECT GRID ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* ---------- CARD ---------- */
.project-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(94, 228, 50, 0.25);
}

.thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: 0.4s ease;
}

.project-card:hover .thumb img {
  transform: scale(1.05);
}

/* ---------- CONTENT ---------- */
.content {
  padding: 25px 25px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.desc {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ---------- TAGS ---------- */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tags li {
  background: #1b1b1b;
  color: #6eff3c;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #222;
}

/* ---------- BUTTONS ---------- */
.actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn {
  text-decoration: none;
  background-color: #5ee432;
  color: #000;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  transition: 0.3s ease;
  box-shadow: 0 0 15px rgba(94, 228, 50, 0.3);
}

.btn:hover {
  background-color: #6eff3c;
  box-shadow: 0 0 25px rgba(94, 228, 50, 0.4);
}

.btn.outline {
  background: transparent;
  color: #5ee432;
  border: 2px solid #5ee432;
  box-shadow: none;
}

.btn.outline:hover {
  background: #5ee432;
  color: #000;
}

/* ---------- RESPONSIVE ---------- */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .header h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .projects-grid {
    gap: 30px;
  }
}

/* Mobiles (≤ 768px) */
@media (max-width: 768px) {
  .container {
    padding: 40px 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .thumb img {
    height: 180px;
  }

  .desc {
    font-size: 0.9rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn, .btn.outline {
    width: 100%;
    text-align: center;
  }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .project-card {
    border-radius: 12px;
  }

  .tags li {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}