/*==================================================
    GLOBAL
==================================================*/

/* *{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Poppins',sans-serif;

    background:#2f3643;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:80px 40px;

} */


/*==================================================
    SECTION
==================================================*/

.ccards-section{

    width:100%;

}


/*==================================================
    CONTAINER
==================================================*/

.ccards-container{

    max-width:1250px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}


/*==================================================
    ccard
==================================================*/

.profile-ccard{

    height:500px;

    perspective:1500px;

}


.ccard-inner{

    position:relative;

    width:100%;

    height:100%;

    transition:transform .8s ease;

    transform-style:preserve-3d;

}


.profile-ccard:hover .ccard-inner{

    transform:rotateY(180deg);

}


/*==================================================
    FRONT & BACK
==================================================*/

.ccard-front,
.ccard-back{

    position:absolute;

    inset:0;

    border-radius:30px;

    border:3px solid #2f80ff;

    backface-visibility:hidden;

    -webkit-backface-visibility:hidden;

    overflow:hidden;

}


/*==================================================
    FRONT
==================================================*/

.ccard-front{

    background:#ffffff;

    padding:80px 25px 35px;

    text-align:center;

    box-shadow:

        0 0 12px rgba(47,128,255,.55),

        0 0 28px rgba(47,128,255,.25),

        0 20px 40px rgba(0,0,0,.15);

    animation:blueGlow 2.5s infinite;

}


/*==================================================
    BACK
==================================================*/

.ccard-back{

    transform:rotateY(180deg);

    background:linear-gradient(135deg,#0f172a,#1e3a8a);

    color:#ffffff;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:20px;

    box-shadow:

        0 0 12px rgba(47,128,255,.55),

        0 0 28px rgba(47,128,255,.25),

        0 20px 40px rgba(0,0,0,.18);

    animation:blueGlow 2.5s infinite;

}


.ccard-back h2{

    font-size:32px;

    margin-bottom:25px;

}


.ccard-back p{

    font-size:17px;

    margin:10px 0;

    line-height:1.8;

}


/*==================================================
    PROFILE IMAGE
==================================================*/

.profile-image{

    position:absolute;

    top:-50px;

    left:50%;

    transform:translateX(-50%);

    width:120px;

    height:120px;

    border-radius:50%;

    background:#ffffff;

    padding:8px;

    z-index:100;

    box-shadow:

        0 0 18px rgba(0,0,0,.18),

        0 0 20px rgba(47,128,255,.35);

}


.profile-image img{

    width:100%;

    height:100%;

    border-radius:50%;

    object-fit:cover;

}


/*==================================================
    CONTENT
==================================================*/

.ccard-content h2{

    font-size:2rem;

    color:#1f2937;

    margin-bottom:12px;

}


.designation{

    color:#6b7280;

    margin-bottom:20px;

    font-weight:500;

}


.ccard-content hr{

    border:none;

    height:2px;

    width:80%;

    margin:20px auto;

    background:#ececec;

}


.description{

    color:#555;

    line-height:1.8;

    margin-bottom:30px;

}


/*==================================================
    BUTTON
==================================================*/

.btn{

    display:inline-block;

    padding:12px 34px;

    border-radius:40px;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

}


.btn:hover{

    transform:translateY(-4px);

    box-shadow:

        0 12px 25px rgba(37,99,235,.40);

}


/*==================================================
    GLOW ANIMATION
==================================================*/

@keyframes blueGlow{

    0%{

        box-shadow:

            0 0 8px rgba(47,128,255,.35),

            0 0 18px rgba(47,128,255,.18),

            0 20px 40px rgba(0,0,0,.15);

    }

    50%{

        box-shadow:

            0 0 18px rgba(47,128,255,.95),

            0 0 40px rgba(47,128,255,.55),

            0 20px 40px rgba(0,0,0,.18);

    }

    100%{

        box-shadow:

            0 0 8px rgba(47,128,255,.35),

            0 0 18px rgba(47,128,255,.18),

            0 20px 40px rgba(0,0,0,.15);

    }

}


/*==================================================
    HOVER
==================================================*/

.profile-ccard:hover{

    transform:translateY(-10px);

    transition:transform .3s;

}


/*==================================================
    TABLET
==================================================*/

@media (max-width:992px){

    .ccards-container{

        grid-template-columns:repeat(2,1fr);

    }

}


/*==========================================
    MOBILE
==========================================*/

@media screen and (max-width:768px){

    body{

        padding:40px 15px;

        display:block;

    }

    .ccards-container{

        grid-template-columns:1fr;

        gap:90px;

        max-width:420px;

        margin:auto;

    }

    .profile-ccard{

        width:100%;

        height:520px;

        margin:50px auto 0;

    }

    .ccard-front,
    .ccard-back{

        border-radius:25px;

    }

    .ccard-front{

        padding:80px 25px 30px;

    }

    .profile-image{

        width:100px;

        height:100px;

        top:-50px;

    }

    .ccard-content h2{

        font-size:1.5rem;

    }

    .designation{

        font-size:0.95rem;

    }

    .description{

        font-size:0.90rem;

        line-height:1.6;

    }

    .ccard-back{

        padding:30px 20px;

    }

    .ccard-back h2{

        font-size:1.7rem;

    }

    .ccard-back p{

        font-size:0.95rem;

        line-height:1.7;

    }

    .btn{

        padding:10px 26px;

        font-size:0.9rem;

    }

}