:root {
    --bg-color: #f8f9fa;
    --text-color: #1e2329;
    --btn-bg: #ffffff;
    --btn-hover: #f1f1f1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --primary-color: #000000;
    --icons-color: #009fe8
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    width: 380px;
    max-width: 580px;
    text-align: center;
}

/* Profile Section */
.profile {
    margin-bottom: 32px;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    width: fit-content;
}

.profile-img-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 2px solid #fff;
    box-shadow: var(--shadow);

    overflow: hidden; /* يمنع قص الحواف */
    margin-bottom: 30px;
}

.profile-img {
    width: 60%;
    height: 60%;
    object-fit: contain; /* الصورة كاملة */
    object-position: center;
    display: block;
}

.lang-bubbles {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    bottom: 8px;
}

[dir="ltr"] .lang-bubbles {
    left: -16px;
}

[dir="rtl"] .lang-bubbles {
    right: -16px;
}

.profile-icon.lang-button {
    position: relative;
    width: auto;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px; /* capsule */
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.profile-icon.lang-button:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* flag */
.lang-button-flag {
    height: 26px;
    width: 26px;
    padding: 3px;
    border-radius: 50%;
}

/* text */
.lang-text {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Links Section */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.link-item {
    background-color: var(--btn-bg);
    color: var(--text-color);
    text-decoration: none; /* Removes the underline */
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    display: flex;
    align-items: center; /* Vertically center the text and image */
    justify-content: center; /* Ensure the content is centered */
    position: relative;
    width: 100%; /* Fixed width for the button */
    gap: 10px; /* Optional: space between text and image */
}

.text {
    flex-grow: 1; /* Ensures the text takes up the remaining space */
    text-align: center; /* Center the text */
}

.link-item img.link-item-icon {
    width: 26px; /* Set the image width */
    height: 26px; /* Set the image height */
    object-fit: contain; /* Ensures the image maintains its aspect ratio */
    margin-left: auto; /* Pushes the image to the right edge */
}

.link-item:hover {
    background-color: var(--btn-hover);
    transform: scale(1.02);
    border-color: #ddd;
}

.link-item.hidden {
    display: none; /* Hide the link if it has the "hidden" class */
}

/* Social Icons (Optional) */
.social-icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* Footer */
footer {
    margin-top: 60px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.hidden {
    display: none;
}

.lang-button-flag {
    padding: 3px;
    height: 26px;
    width: 26px;
}

.company-copyright a {
    color: var(--icons-color);
    text-decoration: none;
    font-weight: bold;
}

.link-item img {
    filter: brightness(0) saturate(100%) invert(42%) sepia(86%) saturate(1650%) hue-rotate(176deg) brightness(95%) contrast(100%);
}

@media (max-width: 1000px) {
    .container {
        width: 100%;
        max-width: 580px;
        text-align: center;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        padding: 15px;
    }

    .link-item {
        font-size: 0.9rem;

        border-radius: 14px;
        justify-content: center; /* Center the content on smaller screens */
        padding: 10px 20px;
    }
}