/**
 * Booklinkstar - Premium SaaS Stylesheet
 * Modern, clean, and professional design
 */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-gray { color: var(--gray) !important; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

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

.btn-white:hover {
    background: var(--gray-light);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}


/* Page Content Styles */
.page-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.page-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.page-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.page-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.page-content ul, .page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page-content hr {
    margin: 3rem 0;
    opacity: 0.1;
}

/* Contact Page Styles */
.contact-info-card, .contact-form-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-info-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-info-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Book Detail Styles */
.book-detail-cover {
    position: relative;
}

.book-detail-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .page-content {
        padding: 20px;
    }
    
    .contact-info-card, .contact-form-card {
        padding: 20px;
    }
    
    .page-content h2 {
        font-size: 1.75rem;
    }
    
    .page-content h3 {
        font-size: 1.25rem;
    }
}

/* Add to your existing style.css */

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

/* Scrolled navbar logo adjustment */
.navbar.scrolled .navbar-brand img {
    max-height: 40px;
}

/* Dark mode support (if you have it) */
@media (prefers-color-scheme: dark) {
    .navbar-brand img {
        filter: brightness(1.1);
    }
}

/* Hover effect */
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 35px;
    }
}

/* Print styles */
@media print {
    .navbar-brand img {
        filter: grayscale(100%);
    }
}


/* ================= HERO SECTION WITH BACKGROUND IMAGE ================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

/* Background Image Container */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Optional: Very subtle dark overlay for text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.85) 0%,
        rgba(118, 75, 162, 0.75) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Alternative: No color overlay, just dark gradient at bottom for text
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
*/

.hero .container {
    position: relative;
    z-index: 2;
}

/* Text shadows for better readability */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* Stats text shadow */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Floating books styling */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-books {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-book {
    width: 180px;
    height: 260px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(255,255,255,0.2);
}

.hero-book:nth-child(1) {
    transform: rotate(-15deg) translateX(30px);
    animation-delay: 0s;
    z-index: 1;
}

.hero-book:nth-child(2) {
    z-index: 3;
    transform: scale(1.1);
    animation-delay: 0.5s;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.hero-book:nth-child(3) {
    transform: rotate(15deg) translateX(-30px);
    animation-delay: 1s;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-books {
        min-height: 300px;
        margin-top: 2rem;
    }
    
    .hero-book {
        width: 140px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-books {
        min-height: 250px;
    }
    
    .hero-book {
        width: 100px;
        height: 150px;
    }
    
    .hero-book:nth-child(1) {
        transform: rotate(-10deg) translateX(15px);
    }
    
    .hero-book:nth-child(3) {
        transform: rotate(10deg) translateX(-15px);
    }
}

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

@media (max-width: 991px) {

.navbar-collapse{
background:white;
padding:20px;
border-radius:15px;
margin-top:15px;
box-shadow:0 10px 30px rgba(0,0,0,0.1);
max-height:80vh;
overflow-y:auto;
}

.navbar-nav .nav-item{
margin:8px 0;
}

.navbar-nav .btn{
width:100%;
margin:5px 0 !important;
text-align:center;
}

.navbar-nav .ms-lg-3,
.navbar-nav .ms-lg-2{
margin-left:0 !important;
}

.navbar-toggler{
padding:8px 12px;
border:none;
background:rgba(255,255,255,0.2);
border-radius:10px;
}

.navbar-toggler:focus{
box-shadow:none;
}

.navbar-toggler-icon{
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-title{
font-size:2.2rem;
}

.hero-stats{
flex-wrap:wrap;
gap:20px;
}

.stat-item{
flex:1 1 calc(50% - 10px);
min-width:120px;
}

}

@media (max-width:576px){

.hero-title{
font-size:1.8rem;
}

.hero-buttons .btn{
display:block;
width:100%;
margin:10px 0;
}

.hero-buttons .btn:first-child{
margin-right:0 !important;
}

.stat-item{
flex:1 1 100%;
}

.section-title{
font-size:1.8rem;
}

.step-card{
padding:30px 20px;
}

.cta-section h2{
font-size:1.6rem;
}

.footer{
text-align:center;
}

.footer-social{
justify-content:center;
}

}



/* ================= POPULAR REWARDS ================= */

.popular-rewards{
position:relative;
background:linear-gradient(135deg,#f5f7fa 0%,#e9ecef 100%);
overflow:hidden;
}

.popular-rewards::before{
content:'';
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background:url('http://localhost/booklinkstar/assets/images/background-2.jpg') center/cover;
opacity:0.10;
z-index:0;
}

.popular-rewards .container{
position:relative;
z-index:1;
}


/* ================= CTA SECTION ================= */

.cta-section{
position:relative;
background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
overflow:hidden;
padding:100px 0;
}

.cta-section::before{
content:'';
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background:url('https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?w=1920&h=1080&fit=crop') center/cover;
opacity:0.12;
z-index:0;
animation:slowZoom 20s infinite alternate;
}

.cta-section::after{
content:'';
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background:radial-gradient(circle at center,transparent 0%,rgba(0,0,0,0.2) 100%);
z-index:1;
}

.cta-section .container{
position:relative;
z-index:2;
}

@keyframes slowZoom{
from{transform:scale(1);}
to{transform:scale(1.1);}
}


/* ================= REFERRAL SECTION ================= */

.referral-section{
background:linear-gradient(135deg,#2d3748 0%,#1a202c 100%);
position:relative;
overflow:hidden;
}

.referral-section::before{
content:'';
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background:url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1920&h=1080&fit=crop') center/cover;
opacity:0.10;
z-index:0;
}

.referral-section .container{
position:relative;
z-index:1;
}


/* ================= TESTIMONIAL SECTION ================= */

.testimonials{
background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);
position:relative;
overflow:hidden;
}

.testimonials::before{
content:'';
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background:url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1920&h=1080&fit=crop') center/cover;
opacity:0.08;
z-index:0;
}

.testimonials .container{
position:relative;
z-index:1;
}


/* ================= BOOK CARDS ================= */

.book-card{
transition:transform 0.3s ease,box-shadow 0.3s ease;
height:100%;
display:flex;
flex-direction:column;
}

.book-card:hover{
transform:translateY(-10px);
box-shadow:0 20px 40px rgba(0,0,0,0.1);
}

.book-cover{
position:relative;
overflow:hidden;
border-radius:15px 15px 0 0;
aspect-ratio:2/3;
}

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

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

.book-overlay{
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background:rgba(0,0,0,0.3);
display:flex;
align-items:center;
justify-content:center;
opacity:0;
transition:opacity 0.3s ease;
}

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

.reward-badge{
position:absolute;
top:10px;
right:10px;
z-index:2;
padding:5px 12px;
border-radius:20px;
font-size:0.75rem;
font-weight:600;
background:var(--primary);
color:white;
box-shadow:0 5px 15px rgba(99,102,241,0.3);
}


/* ================= CATEGORY FILTER ================= */

.category-filter{
display:flex;
flex-wrap:wrap;
gap:10px;
justify-content:center;
margin-bottom:40px;
}

.category-btn{
padding:10px 25px;
border:none;
border-radius:30px;
background:white;
color:var(--text-muted);
font-weight:600;
font-size:0.9rem;
cursor:pointer;
transition:all 0.3s ease;
box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

.category-btn:hover,
.category-btn.active{
background:var(--primary);
color:white;
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(99,102,241,0.3);
}

@media(max-width:768px){
.category-btn{
padding:8px 20px;
font-size:0.85rem;
}
}


/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Book Card */
.book-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

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

.book-card .book-cover {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.book-card .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.book-card .book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

.book-card .reward-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.book-card .book-info {
    padding: 1.25rem;
}

.book-card .book-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.book-card .book-author {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.book-card .book-category {
    display: inline-block;
    background: var(--gray-light);
    color: var(--gray);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-books {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-book {
    width: 180px;
    height: 260px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.hero-book:nth-child(1) {
    transform: rotate(-15deg) translateX(30px);
    animation-delay: 0s;
}

.hero-book:nth-child(2) {
    z-index: 2;
    transform: scale(1.1);
    animation-delay: 0.5s;
}

.hero-book:nth-child(3) {
    transform: rotate(15deg) translateX(-30px);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-it-works {
    background: var(--white);
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.step-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--gray);
    font-size: 0.95rem;
}

/* =====================================================
   FEATURED BOOKS
   ===================================================== */
.featured-books {
    background: var(--light);
}

/* =====================================================
   POPULAR REWARDS CAROUSEL
   ===================================================== */
.popular-rewards {
    background: var(--white);
}

.book-carousel {
    position: relative;
}

.carousel-item {
    padding: 1rem;
}

/* =====================================================
   FREE LIBRARY
   ===================================================== */
.free-library {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray);
    font-weight: 500;
    border: none;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   REFERRAL SECTION
   ===================================================== */
.referral-section {
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.referral-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.referral-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.referral-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--gray);
    color: var(--white);
}

.leaderboard-rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: var(--dark);
}

.leaderboard-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: var(--dark);
}

.leaderboard-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: var(--white);
}

.leaderboard-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.leaderboard-stats {
    font-size: 0.875rem;
    color: var(--gray);
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
    background: var(--white);
}

.testimonial-card {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-rating {
    color: var(--secondary);
}

/* =====================================================
   TRUST SECTION
   ===================================================== */
.trust-section {
    background: var(--light);
    padding: 3rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.trust-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--gray);
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    background: var(--white);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    background: var(--white);
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1.25rem;
    color: var(--gray);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--darker);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--primary);
}

.footer-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: var(--gray);
}

/* =====================================================
   DASHBOARD STYLES
   ===================================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 280px;
    background: var(--darker);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.sidebar-brand span {
    color: var(--primary);
}

.sidebar-user {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.sidebar-user-info h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-user-info p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}

.sidebar-nav-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    transition: var(--transition);
    border-left: 3px solid transparent;
}


.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--white);
    border-left-color: var(--primary);
}

.sidebar-nav-item i {
    width: 20px;
    text-align: center;
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    background: var(--light);
    min-height: 100vh;
}

.dashboard-header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-content {
    padding: 2rem;
}

/* Stats Cards */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-card-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-card-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-card-info h4 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-card-info p {
    color: var(--gray);
    margin: 0;
    font-size: 0.875rem;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-light);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.input-group-text {
    background: var(--gray-light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* =====================================================
   TABLES
   ===================================================== */
.table-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table {
    margin: 0;
}

.table th {
    background: var(--light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--gray-light);
}

.table tbody tr:hover {
    background: var(--light);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-dark { background: var(--gradient-dark); }

.text-white { color: var(--white) !important; }
.bg-white { background: var(--white) !important; }
