@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --bg-color: #CFB997;
    --primary-color: #3F2A0E;
    --font-en: 'DM Sans', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

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

body {
    font-family: var(--font-en);
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(63, 42, 14, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 42, 14, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    overflow-x: hidden;
}

body.rtl {
    font-family: var(--font-ar);
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 4rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    min-height: 100vh;
}

/* Language Toggle */
#lang-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

#lang-toggle:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

/* Entry Animations */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-container {
    width: 100px;
    height: 100px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.username {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

/* Links Stack (Vertical Buttons) */
.links-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
}

.link-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--primary-color);
    background: transparent;
    border: 2px solid var(--primary-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 0 1.5rem;
}

.link-btn i {
    position: absolute;
    inset-inline-start: 1.5rem; /* Automatically goes Left in EN, Right in AR */
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.btn-text {
    font-size: 1rem;
    font-weight: 500;
}

.link-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-text, #footer-text {
    transition: opacity 0.2s ease;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 3rem;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.5px;
}
