* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.logo {
	display:flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
	img{
		width:50px;
		height:50px;
	}
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #1abc9c;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #1abc9c;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    background: #16a085;
    transform: scale(1.05);
}

/* Search and Filter */
.search-filter {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    width: 60%;
}

.search-form input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 70%;
    font-size: 1rem;
}

.search-form .cta-button {
    width: 30%;
}

select {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 200px;
}

/* Books Section */
.books {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
}

.books h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.book-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
    animation: fadeInUp 0.5s ease-in;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.book-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.book-card p {
    color: #e74c3c;
    font-weight: 600;
}

.buy-button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.buy-button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Newsletter Section */
.newsletter {
    background: #f1f1f1;
    padding: 4rem 20px;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 70%;
    font-size: 1rem;
}

.newsletter .cta-button {
    width: 30%;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul li a:hover {
    color: #1abc9c;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .search-filter {
        flex-direction: column;
        align-items: center;
    }

    .search-form {
        width: 100%;
    }

    .search-form input,
    .search-form .cta-button {
        width: 100%;
    }

    select {
        width: 100%;
    }

    .newsletter form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter input,
    .newsletter .cta-button {
        width: 100%;
    }
}