
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}






/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-name {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--glass);
}

.btn-secondary:hover {
    background: var(--glass);
    transform: translateY(-3px);
}

.floating-avatar {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.floating-avatar img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.status-ring {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #43b581;
    border-radius: 50%;
    border: 6px solid rgba(54, 57, 63, 0.8);
    animation: pulse-ring 2s infinite;
    box-shadow: 0 0 0 4px rgba(67, 181, 129, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about {
    background: rgba(20, 20, 20, 0.5);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.languages-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.language-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.language-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.flag-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.language-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact {
    background: rgba(20, 20, 20, 0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.projects {
    background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::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: left 0.6s;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.3);
}

.project-image {
    height: 200px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image i {
    font-size: 4rem;
    color: white;
    z-index: 2;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-owner {
    color: #b9bbbe;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}
/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #b8bcc5;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, #4facfe, transparent);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4facfe, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 1.1rem;
    margin: 0;
}

.footer-links h4,
.footer-social h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #4facfe);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b8bcc5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #00d4ff;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #667eea, #4facfe);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #b8bcc5;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, #4facfe, #667eea);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-divider {
    height: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .footer-brand .logo {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(67, 181, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 40px;
        text-align: center;
    }
    
    .floating-avatar img {
        width: 250px;
        height: 250px;
    }
    
    section {
        padding: 60px 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    animation: fadeInUp 0.6s ease forwards;
}



.language-card {
    position: relative;
    overflow: hidden;
}

.lang-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s ease;
}

.lang-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.language-card:hover .lang-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(102,126,234,0.3), rgba(118,75,162,0.3));
    box-shadow: 0 15px 35px rgba(102,126,234,0.4);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    width: 0;
    transition: width 2s ease-in-out;
    position: relative;
    box-shadow: 0 0 20px rgba(102,126,234,0.5);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: skillShine 2s infinite 1s after;
}

@keyframes skillShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.language-card[data-lang="html"] .lang-icon i { color: #e34f26; }
.language-card[data-lang="css"] .lang-icon i { color: #264de4; }
.language-card[data-lang="js"] .lang-icon i { color: #f7df1e; }
.language-card[data-lang="json"] .lang-icon i { color: #ff9900; }

.language-card[data-lang="html"] .skill-progress { background: linear-gradient(90deg, #e34f26, #f06529); }
.language-card[data-lang="css"] .skill-progress { background: linear-gradient(90deg, #264de4, #2965f1); }
.language-card[data-lang="js"] .skill-progress { background: linear-gradient(90deg, #f7df1e, #fadc00); }
.language-card[data-lang="json"] .skill-progress { background: linear-gradient(90deg, #ff9900, #ffaa33); }



.lang-switcher {
    position: fixed;
    top: 120px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    
}

.lang-switcher.active {
    opacity: 1;
    visibility: visible;
}

.lang-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}
body.ar {
    font-family: 'Tajawal', 'Inter', sans-serif !important;
}

body.ar h1, body.ar h2, body.ar h3 {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 700;
}

body.ar .hero-title {
    font-family: 'Tajawal', 'Inter', sans-serif !important;
}

body.ar .main-name {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800;
}

[data-ar] {
    font-family: 'Tajawal', sans-serif !important;
}

body.ar .logo span,
body.ar .nav-link,
body.ar .section-title,
body.ar .hero-subtitle,
body.ar .about-text p,
body.ar .language-card h3,
body.ar .language-card p,
body.ar .project-content h3,
body.ar .project-owner,
body.ar .project-content p,
body.ar .contact-item span,
body.ar .footer p {
    font-family: 'Tajawal', sans-serif !important;
}







.friends-section {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(114, 137, 218, 0.05) 100%);
    padding: 120px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.friend-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.friend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-size: 300% 100%;
    animation: friendGlow 3s ease infinite;
}

@keyframes friendGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.friend-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(88, 101, 242, 0.3);
}

.friend-avatar {
    position: relative;
    margin-bottom: 1.5rem;
}

.friend-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.friend-card:hover .friend-avatar img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.friend-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(54, 57, 63, 0.9);
    animation: statusPulse 2s infinite;
}

.friend-status.online {
    background: #43b581;
    box-shadow: 0 0 0 2px rgba(67, 181, 129, 0.5);
}

.friend-status.idle {
    background: #faa61a;
    box-shadow: 0 0 0 2px rgba(250, 166, 26, 0.5);
}

.friend-status.offline {
    background: #747f8d;
    box-shadow: 0 0 0 2px rgba(116, 127, 141, 0.5);
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(67, 181, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 181, 129, 0); }
}

.friend-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.friend-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.friend-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5865f2;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.friend-link:hover {
    background: rgba(88, 101, 242, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

body.ar .friends-grid {
    direction: rtl;
}

body.ar .friend-info {
    direction: rtl;
}

body.ar .friend-link::after {
    content: '←';
}


.typing-text {
    color: #9912E6; 
    font-weight: bold;
    border-right: 3px solid #9912E6;
    padding-right: 5px;
    display: inline-block;
    min-height: 1.2em;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #9912E6; }
}

.falling-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; 
}

.falling-particle {
    position: absolute;
    background: rgba(235, 64, 52, 0.5); 
    border-radius: 50%;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) translateX(50px) rotate(360deg); opacity: 0; }
}


body.ar {
    font-family: 'Tajawal', sans-serif !important;
    direction: ltr !important; 
    text-align: left !important; 
}

body.ar .friends-grid, 
body.ar .friend-info {
    direction: ltr !important;
}

.typing-text {
    direction: ltr; 
}

body.ar .typing-text {
    direction: rtl; 
}