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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --background: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
    --success: #22c55e;
}

[data-theme="light"] {
    --background: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text: #0f172a;
}


* {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    transition: background 0.5s, color 0.5s;
}

.animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.animated-bg div {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: float 20s infinite;
    opacity: 0.1;
}

.navbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.whatsapp-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.theme-toggle, .notification-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 1rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--card-bg);
        width: 100%;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-links a {
        width: 48%;
        margin-bottom: 0.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-auth {
        display: none;
    }

    .nav-links .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    background: linear-gradient(to left, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
    animation: floating 3s ease-in-out infinite;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: var(--text);
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid transparent;
    background: linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.cta-buttons a {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-buttons .login-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.cta-buttons .register-btn {
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    color: white;
}

.cta-buttons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: 0.5s;
    z-index: 0;
}

.cta-buttons a:hover::before {
    width: 0;
    height: 0;
}

.cta-buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer {
    background: var(--card-bg);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--text);
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text);
}

.footer-copyright .developer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright .dev-name {
    font-weight: bold;
    color: var(--primary);
    transition: 0.3s;
    text-decoration: none;
}

.footer-copyright .dev-name:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.footer-copyright .separator {
    color: var(--text);
    opacity: 0.7;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 100px) scale(1.1); }
}
        .profile {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 1rem;
            position: relative;
        }

        .profile-header {
            position: relative;
            height: 400px;
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 80px;
        }

        .profile-cover {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .profile-cover-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
            display: flex;
            align-items: flex-end;
            padding: 2rem;
        }

        .profile-main {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 2rem;
            position: relative;
        }

        .profile-sidebar {
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .profile-image-container {
            position: relative;
            margin-top: -100px;
            z-index: 2;
        }

        .profile-image-wrapper {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 0 auto;
        }

        .profile-image {
            width: 100%;
            height: 100%;
            border-radius: 20px;
            object-fit: cover;
            border: 4px solid var(--primary);
            transition: transform 0.3s;
        }

        .profile-image-wrapper::after {
            content: '';
            position: absolute;
            inset: -10px;
            border: 2px solid var(--primary);
            border-radius: 25px;
            opacity: 0.5;
            animation: pulse 2s infinite;
        }

        .profile-status {
            position: absolute;
            bottom: 10px;
            right: 10px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--success);
            border: 3px solid var(--card-bg);
            box-shadow: 0 0 0 2px var(--primary);
        }

        .profile-card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 2rem;
            backdrop-filter: blur(10px);
            margin-bottom: 2rem;
            border: 1px solid rgba(255,255,255,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .profile-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .profile-name {
            font-size: 2rem;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .profile-bio {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .profile-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: rgba(99, 102, 241, 0.1);
            padding: 1rem;
            border-radius: 15px;
            text-align: center;
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-value {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .profile-badges {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 2rem;
        }

        .badge {
            background: rgba(99, 102, 241, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 10px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }

        .badge:hover {
            background: var(--primary);
            transform: translateY(-2px);
        }

        .profile-actions {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .profile-btn {
            padding: 0.8rem 1.5rem;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
            background: var(--primary);
            color: white;
        }

        .profile-btn.secondary {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .profile-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
        }

        .profile-content {
            display: grid;
            gap: 2rem;
        }

        .content-section {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 2rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
        }

        .section-title {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .section-title i {
            color: var(--primary);
        }

        .achievement-list {
            display: grid;
            gap: 1rem;
        }

        .achievement-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: rgba(99, 102, 241, 0.1);
            border-radius: 10px;
            transition: transform 0.3s;
        }

        .achievement-item:hover {
            transform: translateX(-5px);
        }

        .achievement-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
        }

        .achievement-info h3 {
            margin-bottom: 0.5rem;
        }

        .achievement-info p {
            opacity: 0.8;
            font-size: 0.9rem;
        }

        .interest-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
        }

        .interest-item {
            background: rgba(99, 102, 241, 0.1);
            padding: 1rem;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s;
        }

        .interest-item:hover {
            transform: translateY(-5px);
            background: var(--primary);
        }

        .interest-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .interest-item:hover .interest-icon {
            color: white;
        }

        .interest-name {
            font-size: 1rem;
        }

        .activity-timeline {
            position: relative;
            padding-left: 2rem;
        }

        .timeline-line {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--primary);
        }

        .timeline-item {
            position: relative;
            padding-bottom: 2rem;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -2rem;
            top: 0;
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            background: var(--primary);
            border: 3px solid var(--background);
        }

        .timeline-date {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-bottom: 0.5rem;
        }

        .timeline-content {
            background: rgba(99, 102, 241, 0.1);
            padding: 1rem;
            border-radius: 10px;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.3; }
            100% { transform: scale(1); opacity: 0.5; }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        @media (max-width: 1024px) {
            .profile-main {
                grid-template-columns: 1fr;
            }

            .profile-sidebar {
                position: static;
            }
        }

        @media (max-width: 768px) {
            .profile-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            .profile-header {
                height: 300px;
            }
        }

        @media (max-width: 480px) {
            .profile-stats {
                grid-template-columns: 1fr;
            }

            .profile-actions {
                flex-direction: column;
            }

            .profile-header {
                height: 200px;
            }
        }

        #particle-canvas {
            position: fixed;
            top: 0;
            left: 0;
            z-index: -1;
            width: 100%;
            height: 100%;
        }