:root {
    --primary-gold: #D4AF37;
    --light-gold: #F9E2AF;
    --dark-gold: #996515;
    --bg-black: #0A0A0A;
    --text-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(212, 175, 55, 0.3);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/background.png') center/cover no-repeat;
    filter: brightness(0.4);
    z-index: -1;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-black) 90%);
}

.container {
    width: 90%;
    max-width: 400px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    z-index: 1;
    animation: fadeIn 1.2s ease-out;
    margin: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-header {
    margin-bottom: 1.5rem;
}

.logo-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
}

.logo-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    position: relative;
    background: #000;
}

#main-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Manual offset to center the DM logo part */
    transform: translateY(27.5%) scale(3); 
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, var(--light-gold), var(--primary-gold), var(--dark-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.brand-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--light-gold);
    opacity: 0.8;
    text-transform: uppercase;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-white);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link i {
    font-size: 1.4rem;
    transition: var(--transition);
}

/* Brand Colors */
#snapchat-link i { color: #FFFC00; }
#instagram-link i { color: #E4405F; }
#whatsapp-link i { color: #25D366; }
#waze-link i { color: #33CCFF; }

.social-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#snapchat-link:hover { border-color: #FFFC00; box-shadow: 0 0 15px rgba(255, 252, 0, 0.2); }
#instagram-link:hover { border-color: #E4405F; box-shadow: 0 0 15px rgba(228, 64, 95, 0.2); }
#whatsapp-link:hover { border-color: #25D366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.2); }
#waze-link:hover { border-color: #33CCFF; box-shadow: 0 0 15px rgba(51, 204, 255, 0.2); }


.social-link:hover span {
    color: #fff;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

.footer {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

/* RTL Specific adjustments */
[dir="rtl"] .social-link i {
    margin-left: 0.5rem;
}

/* Responsive Enhancements */
@media (max-width: 375px) {
    .brand-name {
        font-size: 2rem;
    }
    .logo-wrapper {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 550px;
        height: auto;
        min-height: 100vh;
        padding: 4rem 2rem;
    }
    .logo-wrapper {
        width: 160px;
        height: 160px;
        margin-bottom: 2rem;
    }
    .brand-name {
        font-size: 3.5rem;
    }
    .brand-tagline {
        font-size: 1rem;
        letter-spacing: 6px;
    }
    .links-section {
        gap: 1.2rem;
        margin-top: 2rem;
    }
    .social-link {
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
        border-radius: 15px;
    }
    .footer {
        margin-top: 4rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 600px;
        padding: 5rem 2rem;
    }
    .logo-wrapper {
        width: 180px;
        height: 180px;
        margin-bottom: 2.5rem;
    }
    .brand-name {
        font-size: 4rem;
    }
    .brand-tagline {
        font-size: 1.1rem;
        letter-spacing: 8px;
    }
    .links-section {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    .social-link {
        padding: 1.4rem 2.5rem;
        font-size: 1.3rem;
        border-radius: 20px;
    }
    .social-link i {
        font-size: 2rem;
    }
}

@media (max-height: 600px) {
    .logo-wrapper {
        width: 80px;
        height: 80px;
    }
    .brand-name {
        font-size: 1.8rem;
    }
    .links-section {
        gap: 0.5rem;
    }
    .social-link {
        padding: 0.6rem 1rem;
    }
    .footer {
        margin-top: 1rem;
    }
}

