.main-about__wrap{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;  
    height: clamp(400px,2vh + 390px,800px); 
    overflow: auto;
}

.container{
    width: 100vw;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.container__card {
    width: 300px;
    height: 379px;
    border-radius: 20px;
    background-color: black;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 379px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: 0.85s;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container__card:hover {
    background-position: left center;
    background-size: 600px; /* this will now transition */
    
}
.container__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0); /* start transparent */
    transition: background-color 0.5s ease;
}

.container__card:hover::before {
    background-color: rgba(0,0,0,0.5); /* dark overlay on hover */
}
.card1{
    background-image: url("../img/Chris.png");
}
.card2{
    background-image: url("../img/hinhanh.png");
}
.card3{
    background-image: url("../img/alias.png");
    
}
.card4{
    
    background-image: url("../img/brandon.png");
}
.card5{
    
    background-image: url("../img/nick.png");
}
.line{
    width: 270px;
    height: 349px;
    z-index: 2;
    border: 2px solid white;
    opacity: 0;
    transform: translateY(20px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    transition: 1s;
}

/* Card content */
.card__content,.card__name {
  font-size: 3rem;
  font-weight: 500;
  z-index: 2; 
  color: white;
  opacity: 0;       
  transform: translateY(20px); /* slightly move down */
  transition: opacity 1s ease, transform 1s ease;
}
.container__card:hover .card__content,.container__card:hover .card__name,.container__card:hover .line {
  opacity: 1;
  transform: translateY(0); /* move into place */
}

/* scroll bar */
.main-about__wrap {
  height: 65vh;
  overflow-y: auto; /* show vertical scrollbar */
}

/* Scrollbar width */
.main-about__wrap::-webkit-scrollbar {
  width: 10px;       /* vertical scrollbar width */
  height: 10px;      /* horizontal scrollbar height */
}

/* Track (background of scrollbar) */
.main-about__wrap::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Handle (draggable bar) */
.main-about__wrap::-webkit-scrollbar-thumb {
  background: #a17f46;
  border-radius: 10px;
}

/* Handle hover effect */
.main-about__wrap::-webkit-scrollbar-thumb:hover {
  background: #66471b;
}