/* Reset and Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  min-height: 100vh;
  padding: 2rem;
  overflow-x: hidden;
}

/* Header Navigation */
header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2%;
}

.box2 {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 1.2em;
  letter-spacing: 2px;
  justify-content: center;
}

#a1, #a2, #a3, #a4 {
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

a:hover {
  color: gray;
}

/* Page Title */
h1.title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 5rem;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Project Grid Container */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

/* Card Styling */
.project-card {
  background: linear-gradient(145deg, #2e2e48, #24243e);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffcc70;
  text-align: center;
}

.project-card p {
  font-size: 0.95rem;
  color: #dddddd;
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: center;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.tech-tags span {
  background: #3f3f5e;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #fff;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn {
  background-color: #ffcc70;
  color: #1a1a2e;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ffe599;
  color: #000;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .box2 {
    gap: 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  h1.title {
    font-size: 2.2rem;
  }

  .project-card img {
    height: 160px;
  }

  .box2 {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .project-container {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card img {
    height: 140px;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  h1.title {
    font-size: 1.8rem;
    margin-bottom: 3rem;
  }
}
