
.home{
    margin: 0 7rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.home .text{
    width: 35%;
}
.home .text h5{
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: #b091f8;
}
.home .text h1{
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: white;
    line-height: 65px;
    padding-bottom: 10px;
}
.home .text p{
    font-size: 1rem;
    letter-spacing: 1px;
    color: #afb9cb;
    line-height: 30px;
    padding-bottom: 12px;
}
.home .text button{
    background: #0ea5e7;
    border: 1px solid #6927ff;
    font-size: 1rem;
    font-weight: 600;
    padding: 20px 25px;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0px 15px 30px -12px rgba(0 0 0 / 20%);
    transition: 0.3s ease;
}
.home .text button:hover{
    background: transparent;
}
.back{
    width: 52%;
}
.back img{
    width: 100%;
    border-radius: 50%;
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
}
@keyframes up-down{
    0%{
        transform: translateY(10px);
    }
    100%{
        transform: translateY(-10px);
    }
}

/* second card hover */

div.box{
    padding: 0;
}
.box {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4; /* responsive height */
    perspective: 1000px;
    position: relative;
}
.box:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
}
.box .box-img{
    transform: rotateY(0);
    transition: all 0.5s ease-in-out 0s;
}
.box:hover .box-img{
    transform: rotateY(-90deg);
}
.box .box-img img{
    width: 100%;
    height: 380px;
    border: 2px solid #000;
    border-radius: 10px;
}
.box .content{
    color: rgb(15, 2, 2);
    background: rgba(238, 232, 232, 0.8);
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 90px 20px;
    border-radius: 10px;
    transform: rotateY(90deg);
    transition: all 0.5s ease-in-out 0s;

}

.box:hover .content{
    transform: rotateY(0);
}
.box .content p{
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    padding: 10px 0;
    margin: 0 25px;
}
.box ul{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
.box ul li{
    list-style: none;
    padding-top: 50px;
}
.box ul li img{
    width: 40%;
    cursor: pointer;
}
.main{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
}



.box-img, .content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transition: transform 0.6s;
    border-radius: 12px;
    overflow: hidden;
}

.box-img img,
.content img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 ensures perfect fit */
}

.icon{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.icon li{
    list-style: none;

}
.icon li i{
    transform: all 0.3s;

}
.icon li i:hover{
    transform: rotate(30deg);
    cursor: pointer;
}

.heading img{
    width: 15%;
    border-radius: 50%;
    transition: 0.6s all;
}
.heading img:hover{
    transform: rotateY(360deg);
}

.text-3d{
    color: #1f2937; /* gray-900 */
    text-shadow:
        1px 1px 0 #ccc,
        2px 2px 0 #bbb,
        3px 3px 0 #aaa,
        4px 4px 0 #999,
        5px 5px 0 #888,
        6px 6px 10px rgba(0,0,0,0.3);
    
    transform: perspective(500px) rotateX(10deg);
    display: inline-block;
}
.text-3d:hover{
    transform: perspective(500px) rotateX(0deg) scale(1.05);
    transition: 0.3s ease;
}
.box-3d{
    background: linear-gradient(145deg, #ffffff, #e5e7eb);
    border-radius: 20px;

    /* 3D layered depth */
    box-shadow:
        0 6px 0 #d1d5db,
        0 12px 0 #9ca3af,
        0 18px 0 #6b7280,
        0 25px 30px rgba(0,0,0,0.25);

    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Hover (press effect) */
.box-3d:hover{
    transform: translateY(8px);
    box-shadow:
        0 3px 0 #d1d5db,
        0 6px 0 #9ca3af,
        0 10px 20px rgba(0,0,0,0.2);
}

.profile-subtitle {
    font-size: 1.25rem; /* text-xl */
    color: #4B5563; /* gray-700 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.profile-name {
    font-size: 2.25rem; /* sm:text-4xl */
    font-weight: 700;
    color: #111827; /* gray-900 */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}
