/* =========================
   GLOBAL RESET & THEME
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

body {
    background: linear-gradient(
        180deg,
        #1f1f1f 0%,
        #2a2a2a 50%,
        #333333 100%
    );
    color: #eaeaea;
    text-align: center;
}

/* =========================
   NAVBAR
   ========================= */
nav {
    background-color: #1b1b1b;
    padding: 15px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 60px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* =========================
   HERO SECTION
   ========================= */
.hero-container {
    background: url("a man with two names.jpg") center/cover no-repeat;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.content-wrapper h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.content-wrapper p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: auto auto 25px;
    color: #d6d6d6;
}

.content-wrapper a {
    display: inline-block;
    padding: 12px 32px;
    background: #ff9800;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.content-wrapper a:hover {
    background: #e68900;
    transform: translateY(-3px);
}

/* =========================
   FEATURED BOOKS
   ========================= */
.featured-books {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.35);
}

.featured-books h2 {
    font-size: 2.3rem;
    margin-bottom: 40px;
    color: #ffffff;
}

/* =========================
   BOOK GRID & CARDS
   ========================= */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.book-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
    transition: 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
}

.book-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.book-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
}

/* =========================
   ABOUT AUTHOR
   ========================= */
.about-author {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.4);
}

.about-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-content img {
    width: 320px;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.about-content div {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.about-content p {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin-bottom: 20px;
}

.about-content a {
    display: inline-block;
    padding: 10px 24px;
    background: #ff9800;
    color: #ffffff;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

.about-content a:hover {
    background: #e68900;
    transform: translateY(-3px);
}

/* =========================
   NEWSLETTER
   ========================= */
.newsletter {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.45);
}

.newsletter h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter p {
    color: #cccccc;
    margin-bottom: 30px;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 12px 18px;
    width: 300px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: #ffffff;
    outline: none;
}

.newsletter button {
    padding: 12px 28px;
    background: #ff9800;
    border: none;
    color: #ffffff;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.newsletter button:hover {
    background: #e68900;
    transform: translateY(-3px);
}

/* =========================
   FOOTER
   ========================= */
footer {
    background: #1b1b1b;
    padding: 40px 20px;
    color: #cccccc;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ff9800;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffcc00;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .content-wrapper h1 {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
}
