/* ===== RESET ===== */

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

body{
    font-family:'Segoe UI',Tahoma,sans-serif;

    background-image:url('images/bg01.jpeg');

    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;
    background-attachment:fixed;

    min-height:100vh;

    position:relative;
}

/* Overlay */

body::before{
    content:"";
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.35);

    z-index:-1;
}

/* ===== NAVBAR ===== */

.navbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin:20px;
    padding:18px 30px;

    background:rgba(255,255,255,.70);

    backdrop-filter:blur(15px);

    border-radius:20px;

    box-shadow:0 8px 25px rgba(0,0,0,.15);
}

.logo{
    color:#0070f3;
    font-size:30px;
    font-weight:bold;
}

.nav-links{
    display:flex;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:#333;
    font-weight:600;
}

.nav-links a:hover{
    color:#0070f3;
}

/* ===== HERO ===== */

.hero-small{

    margin:20px;

    text-align:center;

    color:white;

    padding:60px 30px;

    background:rgba(70,130,255,.20);

    backdrop-filter:blur(15px);

    border-radius:25px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.hero-small h1{
    font-size:48px;
    margin-bottom:15px;
}

.hero-small p{
    font-size:20px;
}

/* ===== LIBRARY SECTION ===== */

.library-container{

    padding:20px;
    max-width:1400px;

    margin:auto;
}

.grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:30px;
}

/* ===== BOOK CARD ===== */

.book-card{
    text-decoration:none;
    color:inherit;
}

.card{

    background:rgba(255,255,255,.88);

    backdrop-filter:blur(10px);

    border-radius:20px;

    padding:25px;

    text-align:center;

    height:100%;

    transition:.3s;

    box-shadow:0 6px 20px rgba(0,0,0,.12);
}

.card:hover{

    transform:
    translateY(-10px)
    scale(1.03);

    box-shadow:
    0 15px 35px
    rgba(0,0,0,.20);
}

/* ===== BOOK IMAGE ===== */

.book-cover{

    width:140px;
    height:200px;

    object-fit:cover;

    display:block;

    margin:0 auto 20px;

    border-radius:10px;

    border:4px solid white;

    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.card h3{
    color:#0070f3;
    margin-bottom:10px;
}

.card p{
    color:#555;
}

/* ===== FOOTER ===== */

footer{

    margin:20px;

    padding:20px;

    text-align:center;

    color:white;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(10px);

    border-radius:15px;
}

/* ===== MOBILE ===== */

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        gap:15px;
    }

    .hero-small h1{
        font-size:34px;
    }

    .hero-small p{
        font-size:18px;
    }
}