


.section-web-dev{
    position: relative;
    background: black;
    margin-top: -1px; /* hide 1px space. Find a better solution if avilable */

   
}



.beyond-section h1, .section-web-dev h1{
    padding: 20px;
    color: white;

}

.section-web-dev p, .beyond-section p{
    color: #999;
    line-height: 40px;
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
    padding: 0;
}



.overflow-wrapper{
    border: 1px solid red;
}




.web-dev-cards{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    transform-style: preserve-3d;
    perspective: 1000px;
    
}

.web-dev-card-container{
height: 200px;
width: auto;
position: relative;
overflow: hidden;
flex: 1 1 clamp(200px, 25%, 300px);
transform: rotateY(45deg);
transition: all 0.34s!important;       



box-shadow: 0px 1px 0px white;    
border-radius: 15px




}


.web-dev-card-container:nth-child(1) .web-dev-card-front{
    background: linear-gradient(45deg, white, transparent)
}

.web-dev-card-container:nth-child(2) .web-dev-card-front{
    background: linear-gradient(75deg, #00bc26, transparent)
}

.web-dev-card-container:nth-child(3) .web-dev-card-front{
    background: linear-gradient(140deg, #fbe123, transparent)
}

.web-dev-card-container:nth-child(4) .web-dev-card-front{
    background: linear-gradient(75deg, purple, transparent)
}

.web-dev-card-container:nth-child(5) .web-dev-card-front{
    background: linear-gradient(45deg, #372e91, transparent)
}
.web-dev-card-container:nth-child(6) .web-dev-card-front{
    background: linear-gradient(-45deg, #ffd41d, #034a89, transparent)
}




.web-dev-card-container:nth-child(2){
transform: rotateX(40deg)
}


.web-dev-card-container:nth-child(3){
transform: rotateY(-45deg)
}


.web-dev-card-container:nth-child(4){
transform:  rotateX(53deg) rotateZ(10deg) rotateY(38deg);
}

.web-dev-card-container:nth-child(5){
transform: rotateY(-50deg)
}

.web-dev-card-container:hover{
transform: rotate(0) translate(0)
}

.web-dev-card{

height: 100%;
width: 100%;
}

.web-dev-card-back{
position: absolute;
top: 0;
left: 0;
filter: contrast(1)

}

.web-dev-card-front{
background: linear-gradient(45deg, black, transparent);
z-index: 1;
position: relative;
color: white;
text-align: center;
align-content: center;
font-size: 40px;
border-radius: 10px;


}


.web-dev-card img{
width: 100%;
height: 100%;
object-fit:cover;


}


/* change styling to better optimize for smaller screens */
@media (max-width: 700px) {
.web-dev-cards {
flex-wrap: nowrap;  
overflow-x: auto;   
perspective: 200px;   
padding: 50px; 


}



.web-dev-cards::-webkit-scrollbar {
display: none;              /* Chrome/Safari: hide scrollbar */
}

.web-dev-card-container {
min-width: 250px;         
flex: 0 0 auto;  

}

.web-dev-card-container:nth-child(even){
transform: rotateX(50deg) rotateZ(0) rotateY(0);
}

.web-dev-card-container:nth-child(odd){
transform: rotateX(25deg) rotateZ(0) rotateY(0);
}

}




/*j beyond*/


.hobbies *{
    font-family: courier;
    color: white;
    font-size: 19px;
    line-height: 40px;
    font-weight: 500
}



/* beyond */
        .beyond-section{
          background: black;
          padding:10px 1vw;
          padding-top: 9vh;
        }


        .beyond-cards{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;
            padding: 20px;
        }

        .beyond-card{
            flex: 1;
            width: 100%;
            height: 600px;
            align-content: center;
            text-align: center;
            border-radius: 5px;
            overflow:hidden;
        }
