:root{
    --primary:#211A52;      /* Main Brand Color */
    --secondary:#8F87F1;    /* Accent */
    --gold:#D4AF37;         /* Premium Highlight */
    --dark:#111827;
    --light:#ffffff;
    --gray:#F8FAFC;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI',sans-serif;
    color:var(--dark);
    line-height:1.6;
}

a{
    text-decoration:none;
}

.btn{
    display:inline-block;
    background:var(--secondary);
    color:white;
    padding:15px 35px;
    border-radius:40px;
    font-weight:bold;
}

.btn:hover{
    background:var(--primary);
}

header{

position:fixed;

top:0;

width:100%;

z-index:999;

backdrop-filter:blur(15px);

background:rgba(33,26,82,.95);

box-shadow:0 5px 20px rgba(0,0,0,.2);

}

.navbar{

max-width:1400px;

margin:auto;

padding:15px 40px;

display:flex;

justify-content:space-between;

align-items:center;

}

.logo{

display:flex;

align-items:center;

gap:15px;

color:white;

}

.logo-icon{

width:60px;

height:60px;

border-radius:50%;

background:linear-gradient(135deg,#8F87F1,#211A52);

display:flex;

justify-content:center;

align-items:center;

font-size:28px;

color:white;

box-shadow:0 5px 20px rgba(143,135,241,.4);

transition:.4s;

}

.logo:hover .logo-icon{

transform:rotate(-15deg) scale(1.1);

}

.logo h2{

font-size:24px;

margin:0;

}

.logo span{

font-size:12px;

color:#d1d5db;

}

.menu{

display:flex;

list-style:none;

gap:10px;

}

.menu>li{

position:relative;

}

.menu>li>a{

display:flex;

align-items:center;

gap:8px;

padding:14px 18px;

color:white;

font-weight:600;

border-radius:10px;

transition:.35s;

position:relative;

overflow:hidden;

}

.menu>li>a::after{

content:"";

position:absolute;

bottom:0;

left:-100%;

width:100%;

height:3px;

background:#8F87F1;

transition:.35s;

}

.menu>li>a:hover::after{

left:0;

}

.menu>li>a:hover{

background:rgba(255,255,255,.08);

transform:translateY(-2px);

}

.arrow{

font-size:12px;

transition:.3s;

}

.dropdown:hover .arrow{

transform:rotate(180deg);

}

.dropdown-menu{

position:absolute;

top:120%;

left:0;

background:white;

min-width:220px;

border-radius:15px;

overflow:hidden;

box-shadow:0 10px 35px rgba(0,0,0,.2);

opacity:0;

visibility:hidden;

transform:translateY(20px);

transition:.35s;

}

.dropdown:hover .dropdown-menu{

opacity:1;

visibility:visible;

transform:translateY(0);

}

.dropdown-menu li{

list-style:none;

}

.dropdown-menu a{

display:flex;

gap:12px;

padding:15px 20px;

color:#211A52;

font-weight:600;

transition:.3s;

}

.dropdown-menu a:hover{

background:#f2f0ff;

padding-left:30px;

}

.nav-right{

display:flex;

align-items:center;

gap:20px;

}

.cart-btn{

/* position:relative;
width:48px;
height:48px;
border-radius:50%;
background:#8F87F1;
display:flex;
justify-content:center;
align-items:center;
cursor:pointer;
color:white;
font-size:20px;
transition:.3s; */

    position: fixed;
    bottom: 20px;
    right: 20px;
    top:5px;

    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #8F87F1;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    color: white;
    font-size: 20px;

    transition: .3s;
    z-index: 1000; /* Keeps it above other elements */


}

.cart-btn:hover{
transform:scale(1.1) rotate(10deg);
}

.cart-count{
position:absolute;
top:-5px;
right:-5px;
background:#FFD700;
color:#211A52;
width:22px;
height:22px;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
font-size:12px;
font-weight:bold;
}

.menu-toggle{
display:none;
font-size:28px;
color:white;
cursor:pointer;
}

/* HERO */

.hero{
    min-height:100vh;
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1600&q=80');
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    padding:100px 20px;
}

.hero-content{
    max-width:850px;
}

.hero-content h1{
    font-size:60px;
    margin-bottom:20px;
}

.hero-content p{
    font-size:22px;
    margin-bottom:35px;
}

/* SECTIONS */

section{
    padding:90px 8%;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    color:var(--primary);
    font-size:40px;
}



.section-title p{
    color:#000000;
}





/* BOOKS */
#team , #contact , #books{
    background-color: #9eb3ff;
}



.books-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.book-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.book-card img{
    width:100%;
    height:350px;
    object-fit:cover;
}

.book-content{
    padding:20px;
}

.book-content h3{
    margin-bottom:10px;
}

.price{
    color:var(--primary);
    font-size:24px;
    font-weight:bold;
    margin:10px 0;
}

.book-content button{
    width:100%;
    border:none;
    padding:12px;
    background:var(--primary);
    color:#fff;
    border-radius:8px;
    cursor:pointer;
}

/* AUTHORS */

.authors-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.author-card{
    background:#fff;
    text-align:center;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.author-card img{
    width:100%;
    height:300px;
    object-fit:cover;
}

.author-card h3{
    margin-top:15px;
}

.author-card p{
    padding:15px;
}

.team-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.container .card img {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: #ffffff;

    object-fit: contain;

}

.container .card .slide {

    width: 300px;

    height: 200px;

    transition: 0.5s;

}

.container .card .slide.slide1 {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 1;

    transition: .7s;

    transform: translateY(100px);

}

.container .card:hover .slide.slide1{

    transform: translateY(0px);

}

.container .card .slide.slide2 {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    box-sizing: border-box;

    transition: .8s;

    transform: translateY(-100px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.4);

    background-color: #000000;

    color: #fff;

}

.container .card:hover .slide.slide2{

    transform: translateY(0);

}

.container .card .slide.slide2::after{

    content: "";

    position: absolute;

    width: 30px;

    height: 4px;

    bottom: 15px;

    left: 50%;

    left: 50%;

    transform: translateX(-50%);

    background: #ffffff;

}

.container .card .slide.slide2 .content p {

    margin: 0;

    padding: 0;

    text-align: center;

    color: #ffffff;

}

.container .card .slide.slide2 .content h3 {

    margin: 0 0 10px 0;

    padding: 0;

    font-size: 24px;

    text-align: center;

    color: #ffffff;

} 

/* CONTACT */

.contact-wrapper{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:40px;
}

.contact-info,
.contact-form{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.contact-info h3{
    color:var(--primary);
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:15px;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:8px;
}

.contact-form button{
    background:var(--primary);
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
}



/* CART */



.cart-btn{
    cursor:pointer;
    position:relative;
    font-size:20px;
    color:#fff;
    background:#211A52;
    padding:12px 18px;
    border-radius:50px;
    transition:0.3s;
    box-shadow:0 4px 12px rgba(33,26,82,0.25);
}

.cart-btn:hover{
    background:#8F87F1;
    transform:translateY(-2px);
}

.cart-btn i{
    margin-right:6px;
}

.cart{
    position:fixed;
    right:-420px;
    top:90px;
    width:380px;
    max-width:95%;
    height:80vh;
    background:white;
    box-shadow:-5px 0 25px rgba(0,0,0,.15);
    transition:.4s;
    z-index:999;
    padding:20px;
    overflow-y:auto;
    border-left:4px solid #211A52;
}

.cart.active{
    right:20px;
}

.cart h2{
    color:#211A52;
    border-bottom:2px solid #8F87F1;
    padding-bottom:10px;
}

.cart-item{
    border-bottom:1px solid #ddd;
    padding:10px 0;
}

.cart-count{
    position:absolute;
    top:-5px;
    right:-5px;
    min-width:22px;
    height:22px;
    padding:0 5px;
    border-radius:50px;
    background:#D4AF37;
    color:#211A52;
    font-size:12px;
    font-weight:bold;
    display:flex;
    justify-content:center;
    align-items:center;
}

.cart{
    position:fixed;
    right:-420px;
    top:90px;
    width:380px;
    max-width:95%;
    height:80vh;
    background:#fff;
    border-left:5px solid #211A52;
    box-shadow:-5px 0 25px rgba(0,0,0,.15);
    transition:.4s;
    z-index:999;
    padding:20px;
    overflow-y:auto;
}

.cart.active{
    right:20px;
}

.cart h2{
    color:#211A52;
    margin-bottom:20px;
    border-bottom:2px solid #ddd;
    padding-bottom:10px;
}

.cart-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 0;
    border-bottom:1px solid #eee;
}

.item-info{
    flex:1;
}

.item-name{
    font-weight:600;
    color:#211A52;
}

.item-price{
    color:#666;
    font-size:14px;
}

.qty{
    font-size:14px;
    color:#888;
}

.remove-btn{
    background:#ff4d4d;
    color:#fff;
    border:none;
    padding:8px 12px;
    border-radius:6px;
    cursor:pointer;
}

.remove-btn:hover{
    background:#d60000;
}

.cart-footer{
    margin-top:20px;
}

.cart-total{
    font-size:24px;
    font-weight:bold;
    color:#211A52;
    margin-bottom:15px;
}

.checkout-btn{
    width:100%;
    padding:14px;
    background:#211A52;
    color:#fff;
    border:none;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
}

.checkout-btn:hover{
    background:#8F87F1;
}

.empty-cart{
    text-align:center;
    color:#999;
    margin-top:30px;
}

.total{
    margin-top:20px;
    font-size:22px;
    font-weight:bold;
}

/* PROMO */

.promo-container{
    display:flex;
    flex-direction:column;
    gap:30px;
}

.large-banner{
    height:400px;
    border-radius:20px;
    overflow:hidden;
    background:
    linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
    url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    padding:50px;
}

.banner-content{
    color:white;
    max-width:600px;
}

.banner-content h2{
    font-size:50px;
    margin-bottom:15px;
}

.banner-content p{
    font-size:20px;
    margin-bottom:25px;
}

.shop-btn{
    display:inline-block;
    background:#D4A017;
    color:white;
    padding:14px 30px;
    border-radius:30px;
    font-weight:bold;
}

.promo-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.promo-card{
    background:white;
    border-radius:15px;
    padding:35px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.promo-card:hover{
    transform:translateY(-8px);
}

.promo-card i{
    font-size:45px;
    color:var(--primary);
    margin-bottom:20px;
}

.promo-card h3{
    margin-bottom:10px;
}

.promo-card a{
    display:inline-block;
    margin-top:15px;
    color:var(--primary);
    font-weight:bold;
}

/* ==========================
   Floating Shopping Cart
========================== */

#floating-cart{

    position:fixed;

    right:25px;

    bottom:25px;

    width:70px;

    height:70px;

    border-radius:50%;

    background:linear-gradient(135deg,#1B4965,#2563EB);

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    z-index:99999;

    box-shadow:0 15px 35px rgba(0,0,0,.30);

    transition:.3s;

    animation:cartFloat 2s ease-in-out infinite;

}

#floating-cart:hover{

    transform:scale(1.1);

    box-shadow:0 20px 45px rgba(0,0,0,.35);

}

#floating-cart i{

    font-size:28px;

}

#cart-count{

    position:absolute;

    top:-5px;

    right:-5px;

    width:24px;

    height:24px;

    background:#ff3b30;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#fff;

    font-size:12px;

    font-weight:bold;

    border:2px solid white;

}

.fooSocials ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 4;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.fooSocials ul li a{
    color: #fff;
    margin-right: 10px;
}

.fooSocials ul li a i{
    padding: 10px ;
}

.fooSocials .socials {
  gap: 20px;
}

.fooSocials .socials a {
  font-size: 24px;
}

.fooSocials .links {
  gap: 10px;
}

.fooSocials .legal  {
  font-size: 12px;
  margin: 0;
  z-index: 3;
  color: #fff;
}

.background svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(2) scaleX(3);
  transform-origin: bottom;
  box-sizing: border-box;
  display: block;
  pointer-events: none;
}

footer {
  position: relative;
  left: 0;
  bottom: 0;
  display: flex;
  width: 100%;
  height: 275px;
  background:rgba(21, 16, 53, 0.95);
}

.fooSocials {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 30px;
  padding-bottom: 10px;
  padding-left: 60px;
  width: 100%;
  align-items: center;
}


@media(max-width:768px){

    .menu-toggle{
    display:block;
    }

    .menu{
    position:fixed;
    top:90px;
    right:-100%;
    width:300px;
    height:100vh;
    background:#211A52;
    flex-direction:column;
    padding:30px;
    transition:.4s;
    gap:5px;
    }

    .menu.active{
    right:0;
    }

    .menu>li>a{
    width:100%;
    }

    .dropdown-menu{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
    background:#30256f;
    box-shadow:none;
    margin-top:10px;
    }

    .dropdown.active .dropdown-menu{
    display:block;
    }

    .cart-btn{
        margin-left:auto;
        margin-right:15px;
    }

    .hero-content h1{
        font-size:36px;
    }

    .hero-content p{
        font-size:18px;
    }
    
    .background svg {
    transform: scaleY(2) scaleX(1);
    }

}