@font-face {
    font-family: "wantedfont";
    src: url("../Fonts/spiky-chain-font/SpikyChainRegular-2v5pe.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "persianfontJumhuria";
    src: url("../Fonts/Jomhuria/Jomhuria-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: persianfontGulzar;
    src: url("../Fonts/Gulzar/Gulzar-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    background-color: #1e1e24;
    color: #f1f1f1;
    flex-direction: column;
    padding: 20px 0;
    box-sizing: border-box;
}

.card-container {
    width: 660px;
    height: 450px;            /* Fixed card height eliminates bottom empty space differences */
    perspective: 1200px;       /* Gives 3D depth */
    cursor: pointer;
    margin-bottom: 24px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.card-container.flipped .card-inner {
    transform: rotateY(180deg);
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: #2b2b36;
    border-radius: 18px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backface-visibility: hidden; /* Hides the reverse side when turned away */
    overflow: hidden;
    transform: translateZ(0);
}

/* FRONT FACE */
.card-front {
    padding: 24px;
    display: flex;
    align-items: center;       /* Centers left and right columns vertically */
    gap: 20px;
    z-index: 2;
    transform: rotateY(0deg);
}

/* BACK FACE */
.card-back {
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    clip-path: inset(0 round 14px);
}

.back-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stamp {
    position: absolute;
    bottom: -70px;           /* Distance from the bottom edge of the card */
    right: -50px;            /* Distance from the right edge of the card */
    width: 270px;           /* Adjust size as needed */
    height: auto;

    /* Tilted angle like a real hand stamp */
    transform: rotate(-35deg);

    /* Prevents the stamp from blocking clicks/text selection underneath it */
    pointer-events: none;
    z-index: 999;
    /* Authentic Ink Simulation */
    opacity: 0.72;          /* Ink isn't 100% opaque */

    /* Blending Mode:
       - If the stamp is DARK ink on a light surface: use 'multiply'
       - If the stamp is BRIGHT/RED ink on your dark card: use 'lighten' or 'screen' */
    mix-blend-mode: normal;

    /* Subtle texture and depth */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 160px;
    margin-right: 0;
}

#abimg {
    width: 125px;
    height: 125px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #2366f1;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
}

.badges {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 3px 10px 1px 10px;
    line-height: 2.25;
    background-color: #3b3b4f;
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: persianfontGulzar, serif;
}

.right-col{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    align-self: center;
}

.title {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 6.5rem;
    text-align: center;
    font-family: "wantedfont", serif;
    letter-spacing: 5px;
}

#subtitle {
    margin-top: -10px;
    margin-bottom: -5px;
    color: #9ca3af;
    font-weight: 400;
    font-size: 3rem;
    letter-spacing: 0;
}

.desc {
    margin-top: 5px;
    align-items: center;
}

.list {
    direction: rtl;
    text-align: center;
    list-style-position: inside; /* Keeps bullets cleanly inside the card container */
    padding-right: 0;
    padding-left: 0;
    margin: 0;
    font-family: persianfontJumhuria, serif;
    font-size: 1.5rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    text-decoration: none; /* removes the underline for links */
    padding: 8px 26px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.button,
.button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 24px;
}