/* Global Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: #000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 4px solid #000;
    transition: transform 0.3s ease;
}

@media (max-width: 968px) {
    .navbar {
        padding: 0.5rem 1rem;
        height: 60px;
    }

    .nav-brand {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 8px;
        z-index: 1001;
        width: 40px;
        height: 40px;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #000;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #666;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Welcome Section */
.welcome-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 60px; /* Account for fixed navbar */
    overflow: hidden;
}

@media (max-width: 768px) {
    .welcome-section {
        height: 60vh;
        min-height: 400px;
        padding-top: 80px;
    }

    .welcome-content h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }

    .welcome-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .video-container {
        width: 80%;
        max-width: 400px;
        padding-bottom: 45%; /* Adjusted for mobile */
    }

    .video-background video {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
}

.welcome-content {
    position: relative;
    z-index: 1; /* Place content above video */
}

.welcome-content {
    padding: 2rem;
}

.welcome-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.5s;
}

.welcome-content h1:hover {
    transform: perspective(1000px) rotateX(10deg);
}

/* Books Section */
.books-section {
    padding: 5rem 2rem;
    background-color: #fff;
    text-align: center;
}

@media (max-width: 768px) {
    .books-section {
        padding: 3rem 1rem;
    }

    .book-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 500px;
        flex-direction: column;
    }

    .book-cover {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .book-image-container {
        margin: 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .book-image-container img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .book-details {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bio-image {
        width: 80%;
        margin: 0 auto 2rem;
    }

    .bio-image img {
        width: 100%;
        height: 100%;
        margin: 0 auto;
    }
}

.books-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.book-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.book-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.book-cover {
    flex: 0 0 300px;
    margin: 0 2rem;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.book-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 150%; /* Maintain aspect ratio */
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.book-cover:hover .book-image-container {
    transform: rotateY(180deg);
}

.book-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backface-visibility: hidden;
    object-fit: cover;
}

.front-cover {
    z-index: 2;
}

.back-cover {
    transform: rotateY(180deg);
}

.book-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.buy-btn {
    align-self: center;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.buy-btn:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* Bio Section */
.bio-section {
    padding: 5rem 2rem;
    background-color: #000;
    color: #fff;
    text-align: center;
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.bio-text {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bio-text h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.bio-text h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #fff;
}

.bio-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.bio-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.bio-image:last-child {
    max-width: 500px; /* Larger size for right image */
}

.bio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.bio-image:last-child img {
    transform: scale(1.1); /* Slightly larger scale for right image */
}

.bio-image:hover img {
    transform: scale(1.05);
}

.bio-image:last-child:hover img {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .bio-section {
        padding: 3rem 1rem;
    }

    .bio-container {
        flex-direction: column;
        gap: 2rem;
    }

    .bio-text {
        padding: 0;
    }

    .bio-text h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .bio-text p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
        padding: 0 1rem;
    }

    .bio-text h2::after {
        width: 40px;
        bottom: -8px;
    }

    .bio-text {
        text-align: center;
    }

    .bio-text h2 {
        font-size: 2rem;
    }

    .bio-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .bio-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .video-container {
        margin-top: 2rem;
    }

    .video-container iframe {
        width: 100%;
        height: 200px;
    }
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.bio-text {
    flex: 1;
}

.bio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.bio-text p {
    margin-bottom: 1.5rem;
}

.bio-image {
    flex: 0 0 300px;
}

.bio-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.bio-image img:hover {
    transform: scale(1.05);
}

.videos-section {
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.video-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-slider-container {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
}

.video-slide {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 5rem 2rem 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a {
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a:hover {
        background-color: #f5f5f5;
    }

    .bio-container {
        flex-direction: column;
        text-align: center;
    }

    .bio-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .welcome-content h1 {
        font-size: 2.5rem;
    }

    .book-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-cover {
        flex: 0 0 auto;
        width: 60%;
        margin-bottom: 1.5rem;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container, .footer-content {
        max-width: 1320px;
    }

    .welcome-content h1 {
        font-size: 4rem;
    }

    .book-container {
        gap: 4rem;
    }

    .book-card {
        max-width: 1200px;
    }

    .bio-container {
        max-width: 1320px;
        gap: 4rem;
    }
}

/* Large Screens */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container, .footer-content {
        max-width: 1140px;
    }

    .welcome-content h1 {
        font-size: 3.5rem;
    }

    .book-card {
        max-width: 1000px;
    }
}

/* Medium Screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .container, .footer-content {
        max-width: 960px;
    }

    .welcome-content h1 {
        font-size: 3rem;
    }

    .book-card {
        max-width: 900px;
    }

    .bio-container {
        gap: 2rem;
    }
}

/* Small Screens */
@media (min-width: 768px) and (max-width: 991px) {
    .container, .footer-content {
        max-width: 720px;
    }

    .welcome-content h1 {
        font-size: 2.8rem;
    }

    .book-card {
        flex-direction: column;
        max-width: 600px;
        text-align: center;
    }

    .book-cover {
        width: 70%;
        margin: 0 auto 2rem;
    }

    .bio-container {
        flex-direction: column;
        text-align: center;
    }

    .bio-image {
        width: 70%;
        margin: 0 auto 2rem;
    }
}

/* Mobile Landscape */
@media (min-width: 576px) and (max-width: 767px) {
    .container, .footer-content {
        max-width: 540px;
    }

    .welcome-content h1 {
        font-size: 2.5rem;
    }

    .book-card {
        flex-direction: column;
        max-width: 500px;
    }

    .book-cover {
        width: 80%;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .welcome-content h1 {
        font-size: 2rem;
    }

    .books-section h2,
    .bio-text h2 {
        font-size: 2rem;
    }

    .book-details h3 {
        font-size: 1.5rem;
    }

    .book-cover {
        width: 90%;
    }

    .book-image-container {
        max-width: 300px;
    }

    .bio-image {
        width: 90%;
        max-width: 300px;
    }

    .footer-section {
        padding: 1rem;
    }

    .social-links {
        gap: 1rem;
    }
}


/* span tag */
.span_tag{
    display: flex;
    gap: 1rem;
    text-align: right;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 5s ease-in-out;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

#preloader img {
    width: 150px;
    height: auto;
}

/* Footer Styles */
.footer {
    background-color: #fff;
    color: #000;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 8px solid #000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: #000;
}

.footer-section p {
    margin-bottom: 0.8rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #666;
}

.footer-social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a i {
    font-size: 24px;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Brand Colors */
.social-links a .fa-facebook { color: #1877f2; }
.social-links a .fa-instagram { color: #e4405f; }
.social-links a .fa-youtube { color: #ff0000; }

.social-links a:hover .fa-facebook { color: #1559b7; }
.social-links a:hover .fa-instagram { color: #b63349; }
.social-links a:hover .fa-youtube { color: #cc0000; }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

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