* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.card-wrapper {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 460px;
    background: rgba(54, 52, 50, 0.96);
    padding: 12px;
    /* Center the element perfectly considering the avatar overlap:
       Avatar is 130px, half is 65px. So we offset by 65px exactly */
    margin-top: 65px; 
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.card-inner {
    border: 1px solid #7d7261;
    padding: 70px 15px 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    position: absolute;
    top: -65px; /* Exactly half of height to intersect outer border */
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #e3d2b8, #a88d66);
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(54, 52, 50, 0.96);
    background-color: #363432;
}

.name {
    font-size: 26px;
    font-weight: 700;
    color: #f6ead2;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 15px;
    color: #d8cbb8;
    margin-bottom: 30px;
    font-weight: 400;
}

.contact-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Removed gap to prevent breaking the left color bar */
    background-color: transparent;
    border: 1px solid #4a4845;
}

.contact-item {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    min-height: 56px;
    transition: all 0.2s ease;
}

.contact-item:hover {
    filter: brightness(1.1);
}

/* Internal bottom borders to avoid diagonal artifacts on left border */
.contact-item:not(:last-child) .icon-box,
.contact-item:not(:last-child) .text-box {
    border-bottom: 1px solid #3a3835;
}

.icon-box {
    width: 55px;
    flex-shrink: 0; /* Prevent icon box from squishing */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4a4845;
    color: #e3d2b8;
    font-size: 20px;
}

.text-box {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Vertical padding handles wrapping safely */
    background-color: #5d5b58;
    font-size: 14px;
    color: #f2eade;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight {
    text-decoration: underline;
    font-weight: 600;
}

/* Left borders as a vertical gradient effect */
.item-1 { border-left: 10px solid #fec636; }
.item-2 { border-left: 10px solid #e1ce93; }
.item-3 { border-left: 10px solid #f6eaba; }
.item-4 { border-left: 10px solid #ded6c8; }
.item-5 { border-left: 10px solid #d4ccbd; }

/* Zalo SVG styling */
.zalo-svg {
    color: #e3d2b8;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 480px) {
    .card-wrapper {
        width: 98%;
        padding: 8px;
    }
    .card-inner {
        padding: 65px 10px 25px;
    }
    .icon-box {
        width: 45px;
        font-size: 18px;
    }
    .text-box {
        padding: 10px 10px;
        font-size: clamp(11.5px, 3.5vw, 14px);
        letter-spacing: -0.2px;
    }
}
