
.project-section{
    position: relative;
    overflow: hidden;
    height: 85vh;
    width: 100%;
    /* width: 100%; */
    /* padding: 6.4rem 4.6rem; */
    background-color: var(--black);
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 40px;
    background-image: url("../../assets/images/projects-background.png");
}

.projects-background{
    position: absolute;
    width: 100vw;
    height: 100%;
    display: flex;
    align-self: center;
    justify-content: center;
}
.projects-background img{
    position: absolute;
    z-index: 0;
    transition: all 1600ms ease;
}

.projects-background img:nth-child(1){
    left: -12.5%;
    top: 64%;
    height: 46rem;
}

.projects-background img:nth-child(2){
    top:  46%;
    left:32%;
}

.projects-background img:nth-child(3){
    right: 0%;
    height: 100%;
    bottom:  -84%;
}

.project-section:hover .projects-background img:nth-child(1) {
  transform: translateY(10rem) rotate(36deg);/*24*/
}

.project-section:hover .projects-background img:nth-child(2) {
  transform: translateX(14rem) rotate(36deg); /*160 24*/
}

.project-section:hover .projects-background img:nth-child(3) {
  transform: translate(5rem, -3rem); /*80 40*/
}

.projects-foreground p{
    color: var(--white);
    z-index: 10;
}

.projects-foreground{
    z-index: 100;
    padding: 6.4rem 5rem;
    /* border: 3px solid pink; */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    box-sizing: border-box;
     /* overflow-x: hidden; */
}

.project-headline{
    display: flex;
    z-index: 10;
    justify-content: space-between;
    /* margin-bottom: 10rem; */
    align-items: center;
    /* border: 3px solid pink; */
}

.project-headline span{
    color: var(--primary);
}

.project-headline p:nth-child(1){
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
}

.project-headline p:nth-child(2){
    max-width:36rem;
    line-height: 1.5;
    text-shadow: var(--surface) 0 0 .8rem;
}

.projects-card-row {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  /* overflow-x: auto; */
  flex-wrap: nowrap;
  /* scrollbar-width: none;  */
  /* -ms-overflow-style: none;  */
}

/* .projects-card-row::-webkit-scrollbar {
  display: none; /* Chrome, Safari 
} */

.project-card{
    flex: 0 0 auto; 
    width: 32rem;
    height: 36rem;
    border-radius: 2.4rem;
    background-color: rgba(255, 255, 255, 0.05);
    stroke-width: 2px;
    stroke: rgba(255, 255, 255, 0.00);
    backdrop-filter: blur(5px);
    border: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column; 
    overflow: hidden;
    cursor: pointer;
    transition: all ease-in-out 300ms;
}
.project-card p{
    padding: 2.4rem 0px 1rem 2.4rem;
    font-size: 2rem;
    text-shadow: var(--surface) 0 0 4.2rem;

}
.divider{
    height: 1px;
    width: 100%;
    background-color: var(--border-color);
    margin-bottom: 1.5rem;
    z-index: 10;
    transition: all ease-in-out 300ms;

}

.card-stack {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
}


.card-stack .card{
    height: 80%;
    width: 100%;
    position: absolute;
    border-radius: 2rem;
}

.card-stack .card:nth-child(1){
    width: 80%;
    bottom: 4rem;
    opacity: 0.5;
    background-color: #757575;
}

.card-stack .card:nth-child(2){
    width: 90%;
    background-color: #9E9D9D;
    bottom: 2rem;
}

.card-stack .card:nth-child(3){
    background: var(--white);
    bottom: 0;
    background-position: center;
    background-size: cover;
}

/* .projects-card-row .project-card:nth-child(1) .card-stack .card:nth-child(3) {
  background: var(--white) url("../../assets/images/c1.png");
  background-position: center;
  background-size: cover;
}

.projects-card-row .project-card:nth-child(2) .card-stack .card:nth-child(3) {
  background: var(--white) url("../../assets/images/c2.png");
  background-position: center;
  background-size: cover;
}

.projects-card-row .project-card:nth-child(3) .card-stack .card:nth-child(3) {
  background: var(--white) url("../../assets/images/c3.png");
  background-position: center;
  background-size: cover;
} */

/* ✅ Updated selectors for project card images (because of <a> wrapping) */
.projects-card-row a:nth-child(1) .card-stack .card:nth-child(3) {
  background: var(--white) url("../../assets/images/c0.png");
  background-position: center;
  background-size: cover;
}

.projects-card-row a:nth-child(2) .card-stack .card:nth-child(3) {
  background: var(--white) url("../../assets/images/c1.png");
  background-position: center;
  background-size: cover;
}

.projects-card-row a:nth-child(3) .card-stack .card:nth-child(3) {
  background: var(--white) url("../../assets/images/c2.png");
  background-position: center;
  background-size: cover;
}



.project-card-btn{
    position: absolute;
    height: 8.6rem;
    width: 8.6rem;
    border-radius: 50px;
    bottom: 0.8rem;
    right: 0.8rem;
    /* background-color: #1D2939; */
    background: #1D2939 url("../../assets/svgs/link.svg");
    background-position: center;
    background-size: 64%;
    background-repeat: no-repeat;
    transition: all ease-in-out 300ms;
}


.project-card:hover,.project-card:hover .project-card-btn{
    background-color: var(--primary);
    box-shadow: 0px 4px 55px 0px rgba(0, 0, 0, 0.25);
}
.project-card:hover .project-card-btn{
    transform: rotate(45deg);
}

.project-card:hover{
    border: 1.5px solid var(--white);
}

.project-card:hover .divider{
    background-color: var(--white);
    margin-bottom: 0;
}