@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --soft-white: rgba(255, 255, 255, 0.88);
    --text-dark: #4d4c7b;
    --text-soft: #6d6b97;
    --accent-1: #8d79ff;
    --accent-2: #ff74b6;
    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-main: 0 22px 60px rgba(95, 80, 160, 0.20);
    --shadow-card: 0 18px 40px rgba(95, 80, 160, 0.14);
}

body {
    font-family: Poppins, Arial, sans-serif;
    background: #dfe3ff;
}

a {
    text-decoration: none;
    color: inherit;
}

.books-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(90, 95, 220, 0.12), rgba(120, 90, 220, 0.18)),
        url("/assets/images/updated-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 70px;
}

.page-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08));
}

/* NAVBAR */

.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.logo a {
    color: white;
    font-size: 55px;
    font-family: "Great Vibes", cursive;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    position: relative;
    color: white;
    font-size: 24px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: 0.25s ease;
}

.menu a:hover,
.menu a.active {
    color: #ffffff;
}

.menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    box-shadow: 0 6px 18px rgba(141, 121, 255, 0.28);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #b14cff, #ff4f8b);
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(177, 76, 255, 0.22);
    transition: 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(177, 76, 255, 0.28);
}

/* HERO */

.books-hero {
    position: relative;
    z-index: 2;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 24px 30px;
    animation: fadeUp 1s ease;
}

.section-subtitle {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 300;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 90px;
    line-height: 0.95;
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
    margin-bottom: 22px;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 24px;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.title-line {
    width: 180px;
    height: 6px;
    margin: 26px auto 0;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    box-shadow: 0 8px 18px rgba(172, 97, 255, 0.24);
}

.books-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1250px;
    margin: 30px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 36px;
}

.book-card {
    position: relative;
    padding: 34px 30px 30px;
    border-radius: 42px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-main);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    animation: fadeUp 1s ease;
}

.book-card-left {
    animation-delay: 0.15s;
}

.book-card-right {
    animation-delay: 0.3s;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 28px 70px rgba(95, 80, 160, 0.24);
    background: rgba(255, 255, 255, 0.18);
}

.book-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.20), transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07), transparent 55%);
}

.book-cover-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.book-cover {
    width: 280px;
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(76, 70, 150, 0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: floatBook 4.5s ease-in-out infinite;
}

.book-card:hover .book-cover {
    transform: translateY(-8px) rotate(-1deg) scale(1.02);
    box-shadow: 0 26px 52px rgba(76, 70, 150, 0.24);
}

.book-info {
    text-align: center;
}

.book-info h2 {
    color: white;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.book-volume {
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 14px;
}

.book-text {
    max-width: 440px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.8;
}

.book-actions {
    display: flex;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 16px 28px;
    border-radius: 999px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    box-shadow: 0 14px 28px rgba(141, 121, 255, 0.22);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(141, 121, 255, 0.28);
}

.download-btn i {
    font-size: 18px;
}

.books-footer-note {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 46px auto 0;
    padding: 0 24px;
    text-align: center;
    animation: fadeUp 1.1s ease;
}

.books-footer-note p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 28px;
    line-height: 1.6;
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.10);
    margin-bottom: 10px;
}

.books-footer-note span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    letter-spacing: 0.4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBook {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-7px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .section-title {
        font-size: 72px;
    }

    .section-description {
        font-size: 21px;
    }

    .book-info h2 {
        font-size: 30px;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 20px 24px;
        flex-direction: column;
        gap: 18px;
    }

    .nav-right {
        flex-direction: column;
        gap: 18px;
    }

    .menu {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu a {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 56px;
    }

    .section-description {
        font-size: 18px;
    }

    .books-wrapper {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .book-card {
        padding: 28px 22px 24px;
        border-radius: 32px;
    }

    .books-footer-note p {
        font-size: 22px;
    }
}

@media (max-width: 560px) {
    .logo a {
        font-size: 28px;
    }

    .menu a {
        font-size: 18px;
    }

    .login-btn {
        font-size: 16px;
        padding: 11px 20px;
    }

    .section-title {
        font-size: 44px;
    }

    .section-description {
        font-size: 16px;
        line-height: 1.65;
    }

    .book-cover {
        width: 220px;
    }

    .book-info h2 {
        font-size: 26px;
    }

    .book-volume {
        font-size: 18px;
    }

    .book-text {
        font-size: 15px;
    }

    .download-btn {
        width: 100%;
        min-width: unset;
        font-size: 16px;
        padding: 14px 20px;
    }

    .books-footer-note p {
        font-size: 18px;
    }

    .books-footer-note span {
        font-size: 15px;
    }
}