/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #ffffff;
}

/* Container */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    top: 70%;
    left: 60%;
    animation-delay: 8s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.7; }
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 420px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Profile Section */
.profile-section {
    margin-bottom: 40px;
}

.profile-image-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 8s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-info {
    text-align: center;
}

.profile-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.name-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.verified-badge {
    color: #4ecdc4;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.5));
}

.profile-username {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-weight: 500;
}

.profile-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-weight: 400;
}

/* Links Section */
.links-section {
    margin-bottom: 32px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link {
    position: relative;
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.social-link:active {
    transform: translateY(-2px);
}

.link-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.link-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover .link-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.link-text {
    flex: 1;
    text-align: right;
}

.link-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.link-subtitle {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.link-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover .link-arrow {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(-4px);
}

.link-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateX(-100%);
    animation: none;
}

.social-link:hover .link-glow {
    opacity: 1;
    animation: slide 0.6s ease-in-out;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Platform-specific styles */
.snapchat-link:hover {
    background: linear-gradient(135deg, rgba(255, 252, 0, 0.1), rgba(255, 255, 255, 0.1));
}

.snapchat-link .link-icon {
    color: #FFFC00;
}

.instagram-link:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(255, 255, 255, 0.1));
}

.instagram-link .link-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats Section */
.stats-section {
    margin-bottom: 32px;
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ecdc4;
    font-size: 1rem;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: #4ecdc4;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: white;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ffffff;
}

.modal-content h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .main-content {
        padding: 30px 24px;
        margin: 10px;
    }
    
    .profile-image-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-glow {
        width: 120px;
        height: 120px;
    }
    
    .name-text {
        font-size: 1.6rem;
    }
    
    .social-link {
        padding: 16px;
    }
    
    .link-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .stats-container {
        padding: 16px;
        gap: 20px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 320px) {
    .main-content {
        padding: 24px 20px;
    }
    
    .name-text {
        font-size: 1.4rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .main-content {
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .social-link {
        border: 2px solid rgba(255, 255, 255, 0.6);
    }
    
    .profile-image {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .profile-glow,
    .link-glow {
        animation: none;
    }
    
    .main-content::before {
        animation: none;
    }
    
    * {
        transition-duration: 0.1s;
    }
}