.featured-websites {
  max-width: 1400px;
  margin: 12rem auto;
  padding: 2rem;
  background: linear-gradient(
    180deg,
    rgb(24 24 37 / 30%) 0%,
    rgb(13 13 19 / 10%) 100%
  );
  border-radius: 24px;
}

.featured-websites .main-h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #8548f5, #b794f4);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
}

.websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.website-card {
  background: rgb(24 24 37 / 40%);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgb(133 72 245 / 10%);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.website-card:hover {
  transform: translateY(-4px);
  border-color: rgb(133 72 245 / 30%);
  box-shadow: 0 8px 24px rgb(133 72 245 / 20%);
}

.website-screenshot {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgb(13 13 19 / 50%);
  position: relative;
}

.website-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.website-card:hover .website-screenshot img {
  transform: scale(1.05);
}

.website-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.website-info h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.website-info p {
  color: #cfd4da;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.website-link {
  display: inline-flex;
  align-items: center;
  color: #8548f5;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.website-link:hover {
  color: #b794f4;
  transform: translateX(4px);
  text-decoration: none;
}

@media screen and (width <= 1023px) {
  .featured-websites {
    margin: 4rem auto;
  }

  .websites-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media screen and (width <= 768px) {
  .featured-websites {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }

  .featured-websites .main-h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .websites-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .website-screenshot {
    aspect-ratio: 16 / 9;
  }

  .website-info {
    padding: 1.25rem;
  }

  .website-info h3 {
    font-size: 1.15rem;
  }

  .website-info p {
    font-size: 0.9rem;
  }
}