:root {
    --bg: #f5f3ef;
    --primary: #4a3f35;
    --accent: #c19a6b;
    --text: #1f1f1f;
    --highlight: #d2691e;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, var(--bg) 0%, #b59a70 100%);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* CONTAINER */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

/* CARD */
.card {
    width: 420px;
    height: 540px;
    perspective: 1500px;
    cursor: pointer;
    margin: 1.5rem;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 22px;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* CARD FACES */
.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    backface-visibility: hidden;
    overflow: hidden;
    transition: all 0.5s ease;
    /* Inner glow effect */
    box-shadow: inset 0 0 30px rgba(211, 137, 54, 0.3), 0 20px 40px rgba(0,0,0,0.2);
}

/* FRONT SIDE */
.card-front {
    background: linear-gradient(145deg, #fdf6ee 0%, #e5d6b3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* PROFILE IMAGE */
/*
.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
*/
.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 1rem;

    /* Pop-out effect */
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card-front::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px;
    right: 10px; bottom: 10px;
    border: 2px solid var(--accent);
    border-radius: 18px;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 200, 120, 0.2);
    z-index: 1; /* ensures the border is behind the image */
}

.profile-img:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}
/* TEXTS */
.name {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
}

.role {
    font-size: 1rem;
    color: var(--highlight);
    font-weight: 500;
    margin: 0.4rem 0 1rem;
}

.tagline {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1.6rem;
}

/* SOCIAL BUTTONS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.btn:hover {
    background: var(--highlight);
    transform: scale(1.1);
}

.icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.hint {
    font-size: 0.8rem;
    color: #777;
    margin-top: 1.5rem;
}

/* BACK SIDE */
.card-back {
    background: var(--primary);
    color: var(--bg);
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    border-radius: 22px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.2), 0 20px 40px rgba(0,0,0,0.2);
}

/* HEADINGS AND LIST */
.card-back h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.card-back ul {
    list-style: none;
    line-height: 1.8;
    padding-left: 0.5rem;
}

.card-back li {
    border-left: 3px solid var(--accent);
    padding-left: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.card-back li:hover {
    color: var(--highlight);
    transform: translateX(4px);
}

.note {
    font-size: 0.8rem;
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 0.8rem;
}

/* FOOTER */
footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.8;
    padding-bottom: 1rem;
}

/* RESPONSIVE */
@media (max-width: 500px) {
    .card {
        width: 90%;
        height: 480px;
    }

    .name {
        font-size: 1.5rem;
    }
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.25);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  }
}

.card {
    animation: float 4s ease-in-out infinite;
}