/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  /* padding: 40px 20px; */
}

/* Grid layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.portfolio-item {
  /* background: #1a1a1a; */
  border-radius: 0;
  overflow: hidden;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid #222;
  transition: transform 0.4s ease;
}

/* Hover effect */
.portfolio-item:hover {
  transform: translateY(-8px);
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); */
}

.portfolio-item:hover img {
  transform: scale(1.05);
}
/* Portfolio Section */
.portfolio-section {
  max-width: 1200px;
  margin: auto;
  padding: 120px 20px 40px;
  text-align: center;
}
.portfolio-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Filter Menu */
.filter-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 20px;
  margin-bottom: 80px;
  margin-top: 100px;
}
.filter-menu button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-menu button:hover,
.filter-menu button.active {
  color: #fff;
  text-decoration: underline;
}


/* Responsive spacing */
@media (max-width: 600px) {
  body {
    padding: 20px 10px;
  }
  .filter-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    margin: 20px 0;
    padding-bottom: 10px;
    scrollbar-width: none; /* hide scrollbar in Firefox */
  }

  .filter-menu::-webkit-scrollbar {
    display: none; /* hide scrollbar in Chrome/Safari */
  }

  .filter-menu button {
    background: #222;
    color: #ccc;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .filter-menu button:hover,
  .filter-menu button.active {
    background: #444;
    color: #fff;
    text-decoration: none;
  }
}
