#projectsSection {  
  min-height: 100dvh;
  width: 100%;    
  position: absolute;  
  left: 0;             
  padding: clamp(24px, 5vh, 48px) 0;
}

#projectsTitle {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: clamp(16px, 3vh, 28px);
  color: #000000;
}

/* Frosted scrollable container */
.frosted-container {
  position: relative;
  width: min(680px, 92vw);
  height: clamp(330px, 37vh, 500px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 20px);
  display: flex;
  flex-direction: row;
  gap: clamp(14px, 2.5vw, 40px);
  overflow-x: auto;    /* horizontal scroll */
  overflow-y: hidden;
  scroll-behavior: auto;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Scrollbar styling */
.frosted-container::-webkit-scrollbar {
  height: 8px;
}
.frosted-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
}

/* Card style (same as your example) */
.card {
  flex: 0 0 clamp(220px, 26vw, 200px);
  height: clamp(250px, 48vh, 295px);
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);

  transition: transform 0.3s, filter 0.3s;
}

.card[data-status]::after {
  content: attr(data-status);
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  backdrop-filter: blur(6px);
}

.card[data-status="In Development"]::after {
  color: #fff6cf;
  background: rgba(166, 86, 0, 0.7);
  border-color: rgba(255, 209, 102, 0.8);
}

/* Image inside card */
.card-image {
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-radius: 10px;
}

.card-embed-shell {
  width: 100%;
  height: 60%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Text inside card */
.card-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.card-title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: bold;
  color: #fff;
}

.card-desc {
  margin: 0;
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  color: #ddd;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding-right: 2px;
  line-clamp: 4;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.card-desc-full {
  display: block;
  line-clamp: unset;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  text-overflow: clip;
  white-space: normal;
  overflow: hidden;
}

.card .card-btn {
  width: 100%;
  margin-top: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease, padding 0.2s ease, border-width 0.2s ease, margin-top 0.2s ease;
}

.card:hover .card-btn,
.card:focus-within .card-btn {
  margin-top: 8px;
  max-height: 44px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-width: 1px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hover effects */
.card:hover {
  transform: scale(1.06);
  filter: none;
  z-index: 2;
}

.frosted-container .card {
  transition: transform 0.3s, filter 0.3s;
}

/* Scale and unblur the hovered card */
.frosted-container .card:hover {
  transform: scale(1.06);
  filter: none;
  z-index: 2;
}

/* Blur all other cards when any card is hovered */
.frosted-container:has(.card:hover) .card:not(:hover) {
  filter: blur(3px) grayscale(0.6);
  transform: scale(0.92);
}

@media (max-width: 768px) {
  #projectsSection {
    padding: 20px 0;
  }

  .frosted-container {
    height: clamp(300px, 52vh, 420px);
  }

  .card {
    flex-basis: min(72vw, 270px);
    height: clamp(250px, 44vh, 330px);
  }
}

