:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

div {
margin: auto;
}

.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem;
    text-align: center;
}

.nav-container a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: 0.3s;
}

.nav-container a:hover {
    background: var(--primary-hover);
    color: white;
}

main {
    max-width: 900px;
    margin: 80px auto;
    padding: 1rem;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.section.active {
    display: block;
}

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

/* تحسين عرض الكتب */
#books-grid, #authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    justify-content: center;
}

.card, .author-card {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
}

.card:hover, .author-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card h3, .author-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.view-details {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.view-details:hover {
    background-color: var(--primary-hover);
}

.author-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

        .hero {
            text-align: center;
            padding: 20px;
        }
        .hero-image img {
            width: 100%;
            max-width: 600px;
            height: auto;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        }
        .hero h1 {
            font-size: 2rem;
            margin-bottom: 15px;
        }
        .hero-text {
            font-size: 1.2rem;
            margin-top: 10px;
        }
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 1.5rem;
            }
            .hero-text {
                font-size: 1rem;
            }
        }
        @media (max-width: 480px) {
            .hero {
                padding: 10px;
            }
            .hero h1 {
                font-size: 1.2rem;
            }
            .hero-text {
                font-size: 0.9rem;
            }

        }
