/*==================================================
    REPOSITORI BUKU KONVOKESYEN UPM
    style.css
===================================================*/

:root{

    --upm-maroon:#7A1026;
    --upm-maroon-dark:#5C0C1C;
    --upm-gold:#C8A048;
    --upm-light:#F8F9FA;
    --upm-dark:#212529;
    --upm-gray:#6C757D;

    --shadow:0 15px 40px rgba(0,0,0,.12);
    --radius:18px;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    background:#fafafa;
    color:#333;
    overflow-x:hidden;

}

/*======================================
NAVBAR
======================================*/

.navbar{

    background:rgba(122,16,38,.85);
    backdrop-filter:blur(12px);
    transition:.35s;

}

.navbar-brand{

    color:#fff!important;

}

.navbar-brand small{

    color:#ddd;

}

.nav-link{

    color:white!important;
    font-weight:500;
    margin-left:15px;
    transition:.3s;

}

.nav-link:hover{

    color:var(--upm-gold)!important;

}

.navbar.scrolled{

    background:var(--upm-maroon);

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

/*======================================
HERO
======================================*/

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    background:url("../images/bg.jpg") center center;

    background-size:cover;

}

.overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(

    rgba(60,10,20,.75),

    rgba(122,16,38,.75)

    );

}

.hero .container{

    position:relative;

    z-index:5;

}

.hero-content{

    color:white;

}

.hero-content h1{

    font-size:60px;

    font-weight:700;

    margin-bottom:20px;

    line-height:1.2;

}

.hero-content p{

    font-size:20px;

    max-width:650px;

    margin-bottom:35px;

    opacity:.95;

}

.hero .btn{

    padding:15px 40px;

    border-radius:40px;

    font-weight:600;

}

/*======================================
SECTION
======================================*/

section{

    padding:90px 0;

}

.section-title h2{

    font-size:42px;

    font-weight:700;

    color:var(--upm-maroon);

}

.section-title p{

    color:#666;

}

/*======================================
SEARCH
======================================*/

.form-control,

.form-select{

    border-radius:14px;

    border:none;

    box-shadow:var(--shadow);

    padding:16px;

}

.form-control:focus,

.form-select:focus{

    box-shadow:0 0 0 3px rgba(122,16,38,.15);

}

/*======================================
BOOK CARD
======================================*/

.book-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.35s;

    margin-bottom:30px;

}

.book-card:hover{

    transform:translateY(-10px);

}

.book-image{

    position:relative;

    overflow:hidden;

}

.book-image img{

    width:100%;

    height:420px;

    object-fit:cover;

    transition:.4s;

}

.book-card:hover img{

    transform:scale(1.05);

}

.book-year{

    position:absolute;

    top:15px;

    left:15px;

    background:var(--upm-gold);

    color:black;

    padding:7px 15px;

    border-radius:30px;

    font-weight:600;

}

.book-body{

    padding:25px;

}

.book-body h4{

    font-size:22px;

    color:var(--upm-maroon);

    margin-bottom:10px;

}

.book-body p{

    color:#777;

    margin-bottom:20px;

}

.book-buttons{

    display:flex;

    gap:10px;

}

.btn-preview{

    background:var(--upm-maroon);

    color:white;

    flex:1;

}

.btn-download{

    background:var(--upm-gold);

    color:black;

    flex:1;

}

.btn-preview:hover{

    background:var(--upm-maroon-dark);

    color:white;

}

.btn-download:hover{

    background:#b58d34;

}

/*======================================
ABOUT
======================================*/

.about-section{

    background:#fff;

}

.about-section img{

    border-radius:20px;

    box-shadow:var(--shadow);

}

.about-section h2{

    color:var(--upm-maroon);

    font-size:40px;

    margin-bottom:20px;

}

.about-section p{

    line-height:1.9;

    color:#666;

}

.about-section h3{

    color:var(--upm-gold);

    font-size:42px;

    margin-bottom:0;

}

/*======================================
FOOTER
======================================*/

footer{

    background:var(--upm-maroon-dark);

    color:white;

    padding:70px 0;

}

footer p{

    opacity:.8;

}

/*======================================
MODAL
======================================*/

.modal-content{

    border:none;

    border-radius:20px;

    overflow:hidden;

}

.modal-header{

    background:var(--upm-maroon);

    color:white;

}

iframe{

    border:none;

}

/*======================================
BUTTON
======================================*/

.btn{

    transition:.3s;

}

.btn:hover{

    transform:translateY(-3px);

}

/*======================================
SCROLLBAR
======================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:var(--upm-maroon);

    border-radius:20px;

}

/*======================================
ANIMATION
======================================*/

.fade-up{

    animation:fadeUp .8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*======================================
RESPONSIVE
======================================*/

@media(max-width:1200px){

.hero-content h1{

font-size:48px;

}

}

@media(max-width:992px){

.hero{

text-align:center;

}

.hero-content p{

margin:auto;

margin-bottom:30px;

}

.hero-content h1{

font-size:42px;

}

.book-image img{

height:360px;

}

}

@media(max-width:768px){

.hero{

min-height:80vh;

}

.hero-content h1{

font-size:34px;

}

.hero-content p{

font-size:17px;

}

.section-title h2{

font-size:30px;

}

.about-section{

text-align:center;

}

.about-section img{

margin-bottom:30px;

}

.book-image img{

height:320px;

}

.navbar-brand img{

height:45px;

}

}

@media(max-width:576px){

.hero-content h1{

font-size:28px;

}

.hero .btn{

width:100%;

}

.book-buttons{

flex-direction:column;

}

.book-image img{

height:280px;

}

footer{

text-align:center;

}

}