/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: #007BFF;
}

ul {
    list-style: none;
    padding: 0;
}

h1, h2, h3 {
    margin-top: 0;
}

/* Header & Navigation */
header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 3px solid #007BFF;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

nav .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    padding: 10px 15px;
    transition: background-color 0.3s;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #007BFF;
    color: #fff;
}

/* Main Content */
main {
    padding-top: 80px; /* Adjust for fixed header */
}

section {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

section:nth-child(odd) {
    background-color: #fff;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1920x1080.png?text=Publishing+House+Banner') no-repeat center center/cover;
    color: #fff;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
}

/* About Section */
#about h2, #books h2, #contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #007BFF;
    display: inline-block;
    padding-bottom: 10px;
}

/* Books Section */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.book-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.book-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
#contact a {
    font-size: 1.2rem;
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#contact a:hover {
    background: #0056b3;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    main {
        padding-top: 150px; /* Adjust for taller mobile header */
    }
}
