*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:20px;

    background:#09031f;

    font-family:Georgia, 'Times New Roman', Times, serif;
}

/* ========================= */
/* CARD CONTAINER */
/* ========================= */

.card{
    width:100%;
    max-width:550px;

    height:320px;

    perspective:1000px;

    cursor:pointer;
}

/* ========================= */
/* INNER ROTATION */
/* ========================= */

.card-inner{
    position:relative;

    width:100%;
    height:100%;

    transition:transform 1s ease;

    transform-style:preserve-3d;
}

/* FLIP */

.card.flipped .card-inner{
    transform:rotateY(180deg);
}

/* ========================= */
/* BOTH SIDES */
/* ========================= */

.card-front,
.card-back{
    position:absolute;

    width:100%;
    height:100%;

    padding:25px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    border:2px solid transparent;
    border-radius:22px;

    color:white;

    background:
        linear-gradient(#020a33, #000000) padding-box,
        linear-gradient(to right, #994f05, #dda80a) border-box;

    box-shadow:
        0 10px 30px rgba(163,110,5,0.4);

    backface-visibility:hidden;

    overflow:hidden;
}

/* ========================= */
/* FRONT */
/* ========================= */

.card-front{
    text-align:center;
}

/* ========================= */
/* BACK */
/* ========================= */

.card-back{
    transform:rotateY(180deg);
}

/* ========================= */
/* AVATAR */
/* ========================= */

.avatar{
    width:180px;
    height:180px;

    object-fit:cover;

    border-radius:50%;

    border:4px solid #dda80a;

    flex-shrink:0;
}

/* ========================= */
/* FRONT INFO */
/* ========================= */

.front-info{
    max-width:250px;
}

.front-info h1{
    font-size:clamp(1.5rem, 3.2vw, 2.3rem);

    line-height:1.05;

    margin-bottom:10px;
}

.role{
    font-size:clamp(0.9rem, 1.8vw, 1.1rem);

    line-height:1.3;

    color:#d36d06;

    margin-bottom:12px;
}

.location{
    font-size:clamp(0.9rem, 1.6vw, 1.1rem);
}

/* ========================= */
/* TAP TEXT */
/* ========================= */

.tap-text{
    margin-top:14px;

    font-size:0.75rem;

    opacity:0.6;
}

/* ========================= */
/* BACK SECTIONS */
/* ========================= */

.skills-section,
.contact-section{
    flex:1;
}

/* HEADINGS */

.skills-section h2,
.contact-section h2{
    margin-bottom:15px;

    font-size:clamp(1.5rem, 3vw, 2.5rem);

    color:#d36d06;
}

/* SKILLS */

.skills-section ul{
    padding-left:20px;
}

.skills-section li{
    margin-bottom:12px;

    font-size:clamp(0.95rem, 2vw, 1.15rem);
}

/* CONTACT */

.contact-section{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.contact-section img{
    width:120px;

    max-width:100%;
}

/* ========================= */
/* TABLET RESPONSIVE */
/* ========================= */

@media (max-width:768px){

    .card{
        max-width:420px;

        height:560px;
    }

    .card-front,
    .card-back{
        flex-direction:column;
        justify-content:center;
        text-align:center;
    }

    .card-back{
        gap:40px;
    }

    .avatar{
        width:150px;
        height:150px;
    }

    .front-info{
        max-width:100%;
    }

    .skills-section ul{
        padding-left:0;

        list-style-position:inside;
    }

    .contact-section img{
        width:140px;
    }
}

/* ========================= */
/* SMALL PHONES */
/* ========================= */

@media (max-width:480px){

    body{
        padding:15px;
    }

    .card{
        height:520px;
    }

    .card-front,
    .card-back{
        padding:20px;
    }

    .avatar{
        width:125px;
        height:125px;
    }

    .front-info h1{
        font-size:1.9rem;
    }

    .role{
        font-size:1rem;
    }

    .contact-section img{
        width:115px;
    }

    .skills-section li{
        font-size:1rem;
    }
}