/* 📚 Bookshelf Section */
.bookshelf {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.book-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1.5rem;
    padding: 0 2rem;
}

/* Book Card */
.book-card {
    flex: 0 0 calc(33.333% - 1rem); /* Default 3 per row */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.book-title {
    padding: 1rem;
    background: var(--primary);
    color: white;
    text-align: center;
    font-size: 1.1rem;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.4);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .book-card {
        flex: 0 0 calc(50% - 1rem); /* 2 per row on tablets */
    }
}

@media (max-width: 768px) {
    .book-card {
        flex: 0 0 calc(100% - 1rem); /* 1 per row on mobile */
    }

    .book-slider {
        gap: 1rem;
        padding: 0 1rem;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .book-card img {
        height: 250px;
    }

    .slider-nav {
        width: 30px;
        height: 30px;
    }
}


/* Modal Styles */
  .modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 10000;
display: flex;
justify-content: center;
align-items: center;
transition: opacity 0.3s ease-in-out;
}

.modal-content {
background: #fff;
padding: 2rem;
border-radius: 10px;
max-width: 350px;
width: 90%;
position: relative;
text-align: center;
animation: fadeInUp 0.3s ease-in-out;
}

.close {
position: absolute;
top: 1rem;
right: 1rem;
font-size: 1.5rem;
cursor: pointer;
background: none;
border: none;
}

.modal-image {
width: 100%;
max-width: 300px;
margin-bottom: 1rem;
}

.modal-title {
font-size: 1.5rem;
font-weight: bold;
}

.modal-price {
font-weight: bold;
margin: 1rem 0;
}

@media (max-width: 768px) {
.modal-content {
    width: 95%;
    padding: 1.5rem;
}
}

@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(20px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}
.bookshelf-section {
    padding: 6rem 5%;
  background: linear-gradient(to bottom, #0a0f1d, #16213e, #1b2a49);
    background-blend-mode: overlay;
	    text-align: center;
  }

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.bookshelf-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem; /* Adjusted for better spacing */
    background: #f9f9f9; /* Soft background for contrast */
    border-radius: 8px; /* Slight rounding for a sleek look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Adds depth */
    overflow: hidden; /* Maintains structure */
    width: 100%;
}

.book-slider {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease-in-out;
}

.book-card {
    flex: 0 0 auto;
    width: 150px; /* Adjust size as needed */
    cursor: pointer;
    text-align: center;
}

.book-card img {
    width: 100%;
    height: auto;
}
/* Testimonials Section */
.testimonials {
    background-color: var(--light);
    padding: 60px 20px;
    text-align: center;
}

.testimonials h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Testimonials Container */
.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Individual Testimonial Card */
.testimonial-card {
    background-color: var(--primary);
    color: var(--light);
    padding: 25px;
    border-radius: 10px;
    max-width: 400px;
    min-width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    text-align: left;
    opacity: 1 !important; /* Ensure full visibility */
}

/* Hover Effect */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Testimonial Text */
.testimonial-card p {
    color: #29000093; /* Ensure text is readable */
    font-size: 1rem;
    font-style: italic;
    font-weight: 500;
    opacity: 1 !important; /* Fix faded text issue */
    line-height: 1.5;
}

/* Author Name */
.testimonial-card h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent);
    margin-top: 10px;
    opacity: 1;
}

/* Fix text selection colors */
::selection {
    background-color: var(--accent);
    color: var(--light);
}

/* Responsive Styling */
@media (max-width: 768px) {
    .testimonial-cards {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 40px 15px;
    }

    .testimonials h2 {
        font-size: 1.8rem;
    }

    .testimonial-card {
        width: 100%;
        padding: 20px;
    }

    .testimonial-card p {
        font-size: 1rem;
    }

    .testimonial-card h4 {
        font-size: 1rem;
    }
}


        /* 🌟 Design System */
        :root {
            --primary: #0A1A2F;
            --accent: #C19A6B;
            --text: #333333;
            --light: #F5F3F0;
            --overlay: rgba(10, 26, 47, 0.9);
            --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Poppins:wght@400;500;600&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text);
            background: var(--light);
            line-height: 1.6;
            overflow-x: hidden;
        }
		

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #007bff; /* Accent color */
    margin: 10px auto 0;
    border-radius: 2px;
}

        h1, h2, h3, h4 {
            font-family: 'Cormorant Garamond', serif;
            font-weight: 700;
        }

        /* 📌 Header Navigation */
        header {
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
            padding: 1rem 5%;
            position: fixed;
            width: 100%;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
        }

        .logo {
            font-size: 2.2rem;
            color: var(--primary);
            position: relative;
        }

        .logo::after {
            content: 'Est. 2024';
            position: absolute;
            font-size: 0.6rem;
            bottom: -8px;
            right: 0;
            color: var(--accent);
            font-family: 'Poppins', sans-serif;
        }

        /* 🍔 Mobile Navigation */
        .hamburger {
            width: 40px;
            height: 25px;
            cursor: pointer;
            z-index: 1001;
            position: relative;
        }

        .hamburger span {
            position: absolute;
            height: 3px;
            width: 100%;
            background: var(--primary);
            transition: var(--transition);
            left: 0;
        }

        .hamburger span:first-child {
            top: 0;
        }

        .hamburger span:nth-child(2) {
            top: 10px;
			width :20px;

			
        }

        .hamburger.active span:first-child {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger.active span:nth-child(2) {
            transform: rotate(-45deg) translate(3px, -3px);
			width :100%;
        }

        /* 🎭 Side Menu */
        .sidebar {
            position: fixed;
            right: -100%;
            top: 0;
            width: 100%;
            max-width: 400px;
            height: 100%;
            background: var(--overlay);
            backdrop-filter: blur(10px);
            transition: var(--transition);
            padding: 100px 40px;
            z-index: 999;
        }

        .sidebar.active {
            right: 0;
        }

        .sidebar ul {
            list-style: none;
            padding-left: 20px;
            border-left: 2px solid var(--accent);
        }

        .sidebar ul li {
            margin: 25px 0;
        }

        .sidebar ul li a {
            color: var(--light);
            font-size: 1.4rem;
            position: relative;
            padding: 5px 0;
            transition: var(--transition);
            text-decoration: none;
        }

        .sidebar ul li a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--accent);
            transition: var(--transition);
        }

        .sidebar ul li a:hover::before {
            width: 100%;
        }

      /* 🏆 Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(var(--overlay), var(--overlay)),
                url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6') center/cover;
    color: white;
    padding: 0 5%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s 0.2s ease backwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 10%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 5%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

        /* 📚 Bookshelf Section */


        .bookshelf {
            overflow: hidden;
            padding: 2rem 0;
        }

        .book-slider {
            display: flex;
            transition: transform 0.5s ease;
            gap: 2rem;
        }

        .book-card {
            min-width: 250px;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .book-card:hover {
            transform: translateY(-5px);
        }

        .book-card img {
            width: 100%;
            height: 300px;
            object-fit: cover;
        }

        .book-title {
            padding: 1rem;
            background: var(--primary);
            color: white;
            text-align: center;
            font-size: 1.1rem;
        }

        .slider-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.2);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
        }

        .slider-nav:hover {
            background: rgba(0,0,0,0.4);
        }

        .slider-nav.prev {
            left: 0;
        }

        .slider-nav.next {
            right: 0;
        }

        .slider-nav svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

        /* Modal Styles */
          .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10000;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.3s ease-in-out;
    }

    .modal-content {
        background: #fff;
        padding: 2rem;
        border-radius: 10px;
        max-width: 350px;
        width: 90%;
        position: relative;
        text-align: center;
        animation: fadeInUp 0.3s ease-in-out;
    }

    .close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        cursor: pointer;
        background: none;
        border: none;
    }

    .modal-image {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .modal-price {
        font-weight: bold;
        margin: 1rem 0;
    }

    @media (max-width: 768px) {
        .modal-content {
            width: 95%;
            padding: 1.5rem;
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

.cta-button {
    background-color: #0d6efd; /* Matching blue shade */
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.cta-button:active {
    background-color: #00408a;
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

