:root {
  --primary: #000000; /* Dark navy from your image */
  --bg-light: #f4f4f4;
  --transition: all 0.3s ease;
}

.portfolio-section {
  padding: 60px 20px;
  text-align: center;
  font-family: sans-serif;
}

.header h1 {
  font-size: 2.5rem;
  margin: 20px 0 40px;
  max-width: 800px;
  margin-inline: auto;
}

/* Filter Buttons Styling */
.project-card {
  width: 100%;
  height: 400px; /* Set a fixed height for the "window" */
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: auto; /* Let the height be natural (longer than the card) */
  display: block;
  transition: transform 3s ease-in-out; /* Control the speed of the scroll here */
  transform: translateY(0);
}

/* When the user hovers, move the image up */
.project-card:hover img {
  /* This moves the image up by its own height minus the container height */
  transform: translateY(calc(-100% + 400px)); 
}
.filter-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allows buttons to wrap on small screens */
  gap: 10px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 12px 25px;
  border-radius: 50px;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: white;
}

/* Grid Layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.4s ease;
}

.project-card img {
  width: 100%;
  display: block;
}

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

/* Animation for filtering */
.hidden {
  display: none;
}

/* div[data-embed-id="313860"]{
  background-image: linear-gradient(160deg, #941c97 0%, #337b8b 80%);
} */