/* =========================MODAL========================= */

.employee-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.employee-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0c0518;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 380px 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
}

.modal-left {
    position: relative;
    padding: 40px;
    background: linear-gradient(180deg,
            rgba(255, 140, 0, 0.2),
            rgba(0, 0, 0, 0));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-left img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 30px;
    margin-bottom: 25px;
}

.modal-role {
    color: #ffb76b;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
}

.modal-left h2 {
    font-size: 42px;
    margin: 15px 0;
}

.fun-message {
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 25px;
}

.employee-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.employee-tags span {
    padding: 12px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.modal-right {
    padding: 50px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 25px;
}

.info-box span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.info-box h3 {
    margin-top: 15px;
    font-size: 30px;
}

.section-block {
    margin-bottom: 35px;
}

.section-block h4 {
    font-size: 24px;
    margin-bottom: 20px;
}

.section-block p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
}

/* ACHIEVEMENT SCROLL AREA */

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;

    max-height: 260px;
    overflow-y: auto;

    padding-right: 10px;
}

/* CUSTOM SCROLLBAR */

.achievement-list::-webkit-scrollbar {
    width: 8px;
}

.achievement-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
}

.achievement-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            #ff9f43,
            #ff6b00);
    border-radius: 50px;
}

.achievement-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            #ffb86b,
            #ff7b00);
}

.achievement-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 18px 20px;
    border-radius: 18px;
    border-left: 4px solid #ff9f43;
}


.personality-box {
    background: linear-gradient(135deg,
            rgba(255, 140, 0, 0.15),
            rgba(255, 255, 255, 0.02));
    padding: 25px;
    border-radius: 25px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
}

.section-block {
    position: relative;
}

.section-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 15px;
    height: 40px;

    background: linear-gradient(to top,
            #0c0518,
            transparent); 

    pointer-events: none;
}

@media(max-width:1100px) {

    .modal-container {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width:700px) {

    .modal-right {
        padding: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .modal-left {
        padding: 25px;
    }

    .modal-left h2 {
        font-size: 32px;
    }

}





/* ---------------------------Vision Card--------------------------- */
.vision-Container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--textColor);
}

.vision-Container h1 {
    text-transform: uppercase;
    padding: 0 0 4% 0;
}

.vision {
    width: 90%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vision-Card {
    padding: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--backgroundLightColor);
    -webkit-box-shadow: 0px 0px 26px 0px var(--shadowColor);
    -moz-box-shadow: 0px 0px 26px 0px var(--shadowColor);
    border-radius: 15px;
    box-shadow: 0px 0px 26px 0px var(--shadowColor);
}

.vision-Card img {
    width: 50%;
}

.vision .vision-Card-1 {
    margin-top: 2%;
}

.vision .vision-Card-3 {
    margin-top: 3.5%;
}

.vision-Card h2 {
    text-align: center;
}

.vision-Card h5 {
    text-align: center;
}

.vision-Card p {
    text-align: center;
    text-align: justify;
}

.vision-Card-Number {
    width: 90%;
    padding: 2% 5%;
    background-color: rgba(253, 190, 52, 0.226);
    border-radius: 5px;
}

/* ---------------------------Vision Card End--------------------------- */
/* ---------------------------Employee Card--------------------------- */
.flip-card-title {
    justify-self: center;
    text-transform: uppercase;
    padding: 4% 0 4% 0;
    color: var(--textColor);
    text-align: center;
    width: 100%;
}

.flipCardContainer {
    width: 95%;
    justify-self: center;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: auto;
    aspect-ratio: 0.75;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card-inner .flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.flip-card-inner .flip-card-back img {
    position: absolute;
    top: 0;
    opacity: 30%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
    border-radius: 10px;

}

.flip-card-inner .flip-card-front h2 {
    position: absolute;
    bottom: 0%;
    color: var(--textColor);
    font-weight: 900;
    padding: 0 2%;
    text-transform: capitalize;
    text-align: start;
}

.flip-card-inner .flip-card-front .overlay {
    width: 100%;
    height: 50%;
    bottom: 0;
    position: absolute;
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) rotateX(0deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: var(--backgroundLightColor);
}

.flip-card-back {
    background-color: var(--backgroundLightColor);
    color: var(--textColor);
    overflow: hidden;
    transform: rotateY(180deg);
}

.flip-card-back h2 {
    text-align: start;
    width: max-content;
    max-width: 100%;
    font-weight: 900;
    padding: 5% 5% 0 0%;
    border-bottom: 3px solid rgba(253, 190, 52, 0.226);
    padding: 0 5%;

}

.flip-card-back h4, .flip-card-back p {
    margin: 0% 0% 5% 0%;
    padding: 0 5%;
    cursor: pointer;
}

.flip-card-back {
    text-align: start;
}

.flip-card-back .SocialMediaAccounts {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 5%;
    width: 100%;
    position: absolute;
    bottom: 4%;
}

.flip-card-back .SocialMediaAccounts a {
    height: 100%;
    width: auto;
    margin: 0 0 0 2%;
    aspect-ratio: 1;
    border: 0;
    padding: 0;
}

.flip-card-back .SocialMediaAccounts img {
    position: relative;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 1;
    padding: 0.2vw;
}

.flip-card-back .SocialMediaAccounts .popUpIcon {
    margin-left: auto;
    margin-right: 2%;
}

.flip-card-back .SocialMediaAccounts .popUpIcon img {
    background-color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------Employee Card End--------------------------- */
/* ---------------------------Employee History --------------------------- */


.history-Container {
    display: flex;
    flex-direction: row;
    color: var(--textColor);
}


.history-Container h1 {
    color: var(--textColor);
    text-transform: uppercase;
    padding: 7% 0 2% 0;
}

.history-Container .col {
    padding: 5%;
}

.history-Container .col p {}

.history-Container .col img {
    margin: 7% 0;
    width: 100%;
    height: 14vw;
    background-color: var(--backgroundColor);
}



/* ---------------------------Employee History End------------------------ */



/* 
---------------------------------------------------------------------------------
------------------------------Mobile Responsiveness------------------------------
---------------------------------------------------------------------------------
*/
@media (max-width: 1000px) {
    .vision {
        grid-template-columns: repeat(1, 1fr);
    }

    .vision-Card .vision-Card-Image {
        width: 20%;
    }

    .flipCardContainer {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }
}

@media (max-width: 700px) {

    .vision-Card .vision-Card-Image {
        width: 30%;
    }

    .flipCardContainer {
        grid-template-columns: repeat(1, 1fr);

    }

    .history-Container {
        flex-direction: column;
        color: var(--textColor);
    }


    .history-Container .col img {
        margin: 7% 0 3% 0;
        height: auto;
    }

    .history-Container .col2 {
        display: flex;
        flex-direction: column-reverse;
    }

}