* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f8f8;
    color: #333;
    line-height: 1.7;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

/* NAVIGATION */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #243447;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 0;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;

    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 6px;
}

.material-symbols-outlined {
    font-size: 20px;
}

/* HERO */

.hero {
    min-height: 550px;

    background-image:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.45)
        ),
        url("../images/hero-background.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-top: 1rem;
}

/* SECTIONS */

section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.intro {
    text-align: center;
    max-width: 800px;
}

/* AUTHOR */

.author-card {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.author-card img {
    width: 250px;
    height: 250px;

    border-radius: 50%;
    object-fit: cover;
}

.author-text p {
    margin-bottom: 1rem;
}

/* BOOKS */

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.book-card img {
    width: 100%;
    height: 650px;

    object-fit: contain;
    background: #fafafa;

    display: block;
}

.book-content {
    padding: 1.5rem;
}

.book-content h3 {
    margin-bottom: 1rem;
}

.book-content p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;

    background: #243447;
    color: white;

    text-decoration: none;

    padding: 0.8rem 1.2rem;
    border-radius: 8px;
}

/* FOOTER */

footer {
    background: #243447;
    color: white;

    text-align: center;
    padding: 3rem 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;

    margin: 1.5rem 0;
}

.social-links a {
    color: white;
}

.social-links svg {
    width: 28px;
    height: 28px;

    fill: currentColor;
}

.social-icon {
    font-size: 28px;
}

/* MOBILE */

@media (max-width: 768px) {

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .book-card img {
        height: 450px;
    }

}