body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #fdfdfd;
  color: #333;
}

header {
  background: #1e1e2f;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* ===== Portfolio Section ===== */
.portfolio {
  padding: 3rem 2rem;
  text-align: center;
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

#portfolio .subtitle {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 40px;
}

 /* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, auto));
  gap: 20px;
  justify-content: center;
}

.portfolio-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s ease-in-out;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-item .content {
  padding: 15px;
  text-align: left;
}

.portfolio-item h3 {
  margin: 0 0 10px;
  font-size: 1.3em;
  color: #f24a90;
}

.portfolio-item p {
  font-size: 0.95em;
  color: #555;
}

.portfolio-item a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #f24a90;
  font-weight: bold;
  transition: color 0.3s;
}

.portfolio-item a:hover {
  color: #c97b9b;
}

/* Hidden state (for filtering) */
.portfolio-item.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
}

/* Filter Buttons */
.filter-buttons {
  margin-bottom: 40px;
}

.filter-buttons button {
  border: none;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  border-radius: 20px;
  background: #ddd;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover {
  background: #e0e0f0;
}

.filter-btn.active {
  background: #eb4d8f;
  color: white;
  transform: scale(1.05);
}

.filter-buttons button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  background: #eee;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-buttons button:hover {
  background: #ddd;
}

.filter-buttons button.active-btn {
  background: #ffb6c1; /* blue highlight */
  color: white;
  font-weight: bold;
}


.card-content {
  padding: 20px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
  color: #333;
}

.card-content p {
  flex: 1;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}

.tags {
  margin-bottom: 15px;
}

.tags span {
  display: inline-block;
  background: #eee;
  color: #333;
  padding: 4px 10px;
  margin: 3px;
  border-radius: 12px;
  font-size: 0.8em;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  background: #0073e6;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #005bb5;
}


footer {
  text-align: center;
  padding: 1rem;
  background: #1e1e2f;
  color: #fff;
  margin-top: 2rem;
}