:root {
    /* Brand Colors */
    --primary: #1E3A8A;
    --primary-light: #2563EB;
    --secondary: #F97316;
    --secondary-light: #FB923C;
    --accent: #FBBF24;
    --background: #FFFFFF;
    --background-alt: #F8FAFC;
    --text-main: #111827;
    --text-muted: #4B5563;
    --text-light: #9CA3AF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-ui: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-premium: 0 30px 60px -12px rgba(30, 58, 138, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ==================================
   Loading Animation
   ================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--background);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.6; transform: scale(0.98); }
}

/* ==================================
   Navbar Premium
   ================================== */
.premium-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    padding: 15px 0;
}

.premium-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-family: var(--font-ui);
    font-weight: 500;
    color: var(--text-main) !important;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.glass-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.dropdown-item {
    font-family: var(--font-ui);
    padding: 8px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--background-alt);
    color: var(--primary);
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    font-family: var(--font-ui);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    color: white;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-alt);
    color: var(--text-main);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

/* ==================================
   Hero Section
   ================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(30, 58, 138, 0.1);
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(249, 115, 22, 0.1);
    bottom: -50px;
    left: -50px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-images {
    position: relative;
    z-index: 1;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-book {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.hero-book.main {
    width: 300px;
    z-index: 3;
}

.hero-book.side-1 {
    width: 220px;
    position: absolute;
    left: 20px;
    transform: rotate(-15deg);
    z-index: 2;
    opacity: 0.9;
}

.hero-book.side-2 {
    width: 220px;
    position: absolute;
    right: 20px;
    transform: rotate(15deg);
    z-index: 2;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    z-index: 10;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ==================================
   Section Styles
   ================================== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================================
   Category Cards
   ================================== */
.category-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* ==================================
   Book Cards (Premium Grid)
   ================================== */
.book-card {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.book-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    aspect-ratio: 2/3;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-alt);
}

.book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-img {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.book-action-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    opacity: 0;
}

.book-card:hover .book-action-overlay {
    bottom: 0;
    opacity: 1;
}

.book-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.book-title a:hover {
    color: var(--primary);
}

.book-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.book-rating {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.book-price-wrapper {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.book-old-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ==================================
   Features Section
   ================================== */
.feature-card {
    background: var(--background);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* ==================================
   Banner Section
   ================================== */
.promo-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.promo-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.promo-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* ==================================
   Testimonials
   ================================== */
.testimonial-card {
    background: var(--background-alt);
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================================
   Footer
   ================================== */
.footer-premium {
    background: #0F172A;
    color: white;
    padding: 80px 0 20px;
}

.footer-logo {
    color: white;
    font-family: var(--font-heading);
}

.footer-desc {
    color: rgba(255,255,255,0.7);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* ==================================
   Utilities & Global
   ================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Books Page Specifics */
.filter-sidebar {
    background: var(--background);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--background-alt);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Book Details */
.book-gallery-main {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    overflow: hidden;
}

.book-meta-list {
    list-style: none;
    padding: 0;
}

.book-meta-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--background-alt);
    display: flex;
    justify-content: space-between;
}

.book-meta-label {
    font-weight: 600;
    color: var(--text-muted);
}

.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-buy-bar.visible {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .hero-images { display: none; }
    .premium-navbar { background: rgba(255, 255, 255, 0.98); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-padding { padding: 60px 0; }
    .floating-whatsapp { width: 50px; height: 50px; font-size: 24px; bottom: 20px; left: 20px; }
    .back-to-top { bottom: 20px; right: 20px; }
}

/* ==================================
   Lenis Smooth Scroll Fixes
   ================================== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
