/* ===========================
   GLOBAL RESET & BASE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
    padding-top: 80px;
    line-height: 1.6;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    padding: 18px 40px;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #d4af37;
}

/* ===========================
   MOBILE MENU
=========================== */
.menu-toggle {
    display: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #000;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        padding: 20px;
        border-top: 1px solid #222;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    text-align: center;
    padding: 140px 40px 100px;
    background: linear-gradient(180deg, #000, #111);
}

.hero h1 {
    font-size: 42px;
    color: #d4af37;
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    color: #ccc;
}

/* ===========================
   SECTION SPACING (OPTIMIZED)
section {
    padding: 140px 40px;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    font-size: 36px;       /* Slightly larger, more cinematic */
    color: #d4af37;
   section h2 {
    margin-bottom: 30px;
}

section p {
    margin-bottom: 35px;
}
/* ===========================
   GOLD DIVIDERS
=========================== */
.divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    margin: 40px 0;
}

/* ===========================
   CATEGORY TITLES (Gold Divider)
=========================== */
.category-title {
    font-size: 24px;
    color: #d4af37;
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
    cursor: pointer;
}

/* ===========================
   COLLAPSIBLE CATEGORIES
=========================== */
.category-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.category-title.active + .category-content {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BOOK GRID
=========================== */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

/* ===========================
   BOOK CARD
=========================== */
.book-card {
    background-color: #111;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* ===========================
   BOOK IMAGE
=========================== */
.book-card img {
    width: 160px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* ===========================
   BOOK TITLES
=========================== */
.book-card h3 {
    font-size: 18px;
    color: #d4af37;
    margin-bottom: 10px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #d4af37;
    color: #000;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.btn:hover {
    background-color: #b8962f;
}

/* ===========================
   FUTURE COLLECTIONS SECTION
=========================== */
#collections {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 2px solid #333;
}

/* ===========================
   FOOTER
=========================== */
/* ===========================
 /* ===========================
   FOOTER
=========================== */
footer {
    background-color: #000;
    padding: 40px;
    text-align: center;
    color: #ccc;
    border-top: 1px solid #222;
}

/* Spacing between categories */
.category-block {
    margin-bottom: 80px;
}

/* Desktop image rule — MUST be responsive */
.book-card img {
    width: 100%;
    max-width: 160px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 6px;
    display: block;
}

/* ===========================
   MOBILE FIX
=========================== */
@media (max-width: 600px) {

    /* One card per row on mobile */
    .book-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Mobile image rule — prevents disappearing */
    .book-card img {
        width: 100%;
        max-width: 160px;
        height: auto;
        display: block;
    }

    /* Mobile padding for cleaner layout */
    .book-card {
        padding: 25px;
    }

    /* Optional: reduce section padding on mobile */
    section {
        padding: 80px 20px;
    }
}
