        @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%;
    }
}
        .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;
        }

        .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: 1fr;
            gap: 2rem;
            position: relative;
        }

        .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;
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

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

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-item::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .gallery-item:hover::after {
            opacity: 1;
        }

        .gallery-item i {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 2rem;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 2;
        }

        .gallery-item:hover i {
            opacity: 1;
        }

        @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%;
        }
        .gallery {
                  display: flex;
                  justify-content: center;
                  gap: 15px;
                  flex-wrap: wrap;
                }
              
                .gallery-item {
                  position: relative;
                  display: inline-block;
                  cursor: pointer;
                }
              
                .gallery-item img {
                  max-width: 200px;
                  border-radius: 5px;
                  transition: transform 0.3s ease, box-shadow 0.3s ease;
                }
              
                .gallery-item img:hover {
                  transform: scale(1.05);
                  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
                }
              
                .image-modal {
                  display: none;
                  position: fixed;
                  top: 0;
                  left: 0;
                  width: 100vw;
                  height: 100vh;
                  background: rgba(0, 0, 0, 0.8);
                  justify-content: center;
                  align-items: center;
                  z-index: 1000;
                }
              
                .image-modal.active {
                  display: flex;
                }
              
                .image-modal img {
                  max-width: 90%;
                  max-height: 90%;
                  border: 3px solid #fff;
                  border-radius: 10px;
                }
              
                .image-modal .close-btn {
                  position: absolute;
                  top: 20px;
                  right: 20px;
                  font-size: 25px;
                  color: #fff;
                  cursor: pointer;
                  background: transparent;
                  border: none;
                  outline: none;
                }