: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%;
    }
}
  

        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        .header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .header h1 {
            font-size: 2.5rem;
            margin: 0;
            color: var(--primary);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header p {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.9);
        }

        .category-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .category-button {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 0.5rem;
            background: var(--glass-bg);
            color: var(--text);
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
        }

        .category-button.active {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }

        .category-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

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

        .supporter-card {
            background: var(--card-bg);
            border-radius: 1rem;
            padding: 1.5rem;
            text-align: center;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: 1px solid var(--glass-border);
        }

        .supporter-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            opacity: 0;
            transition: var(--transition);
            z-index: -1;
        }

        .supporter-card:hover::before {
            opacity: 0.1;
        }

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

        .supporter-image {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1rem;
            border: 3px solid var(--primary);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .supporter-name {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--primary);
            font-weight: 700;
        }

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

        .supporter-contact {
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 0.5rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
        }

        .supporter-contact:hover {
            transform: translateY(-2px);
            filter: brightness(1.1);
        }

        @media (max-width: 768px) {
            .supporters-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .supporter-image {
                width: 80px;
                height: 80px;
            }

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

            .supporter-amount {
                font-size: 0.9rem;
            }

            .supporter-contact {
                padding: 0.5rem;
                font-size: 0.9rem;
            }
        }


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