* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
p {
  color: #aaa;
}

/* Filters */
.filters {
  text-align: center;
  margin-bottom: 12rem;
}

.filters button {
  background: #222;
  color: #eee;
  border: none;
  margin: 0 0.5rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  border-radius: 0.9rem;
  transition: background 0.3s;
  width: 200px;
}
@media (min-width: 1080px) {
  .filters {
    text-align: center;
    margin-bottom: 2rem;
  }
}
.filters button.active,
.filters button:hover {
  background: #00000069;
}

/* Grid */
.grid {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  background: #000;
}
.card video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(85, 84, 84, 0.253); */
  background: #00000013;
  opacity: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: opacity 0.3s ease;
}
.card:hover .overlay {
  opacity: 1;
}

.overlay h2 {
  position: absolute;
  bottom: 90px;
  right: 60px;
  font-size: 1.2rem;
  text-decoration: none;
  color: #000000;
}
.overlay p {
  position: absolute;
  bottom: 60px;
  right: 60px;
  font-size: 0.9rem;
  color: #ccc;
}
/* Demo wrapper */
.demo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #242323;
  border: 2px solid #242323;
  border-radius: 15px;
  padding: 2rem;
  height: 500px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  filter: blur(0px);
}

iframe:hover {
  transform: scale(1.01);
  filter: blur(10px);
}
