* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --accent-color: #2C5F2D;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #f9f6f0;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f9f6f0" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.see-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.see-more-btn:hover {
    color: var(--secondary-color);
}

.see-more-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    background: #6d3410;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease;
}

.book-cover {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.book-cover:hover {
    transform: scale(1.05) rotate(2deg);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subtitle-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.author-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials Section with Carousel */
.testimonials {
    padding: 5rem 2rem;
    background: var(--white);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* FIXED CAROUSEL STYLES */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden; /* CRITICAL: Hides slides outside view */
    padding: 2rem 3rem;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
    width: 100%;
}

#carouselTrack {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    flex-wrap: nowrap; /* FIX 5: prevents slide squishing */
}

.testimonial-slide {
    min-width: 100%; /* Each slide takes full width */
    flex-shrink: 0; /* Prevents slides from shrinking */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
    min-height: 200px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.1rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    hyphens: auto;
    flex: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
    margin-top: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #999;
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.see-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6d3410 100%);
    color: var(--white);
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    justify-self: center;
    background: var(--secondary-color);
    color: var(--text-dark);
}

.contact-form .btn:hover {
    background: #f0c14b;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.3s, opacity 0.3s;
}

.social-links img {
    width: 32px;
    height: 32px;
}

.social-links a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.phone-number {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.phone-number a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.phone-number a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(44, 47, 55, 0.56);
    backdrop-filter: blur(2px);
    transition: all 0.3s;
}

.modal-content {
    background: var(--white);
    margin: 4% auto;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 12px 50px 5px rgba(44, 47, 55, 0.13), 0 1.5px 8px 0.5px rgba(139, 69, 19, 0.08);
    padding: 2.2rem 2rem 2rem 2rem;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
    cursor: pointer;
    transition: color 0.18s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content .modal-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.7rem;
    font-size: 1.05rem;
}

.purchase-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.3rem 0 1.5rem 0;
}

.purchase-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.3rem;
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.purchase-btn img {
    width: 29px;
    height: 29px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
    border: 1px solid var(--secondary-color);
    padding: 2px;
}

.purchase-btn span {
    white-space: nowrap;
    font-size: 1rem;
}

.purchase-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
    transform: translateY(-2px) scale(1.04);
}

.whatsapp-section {
    text-align: center;
    margin-top: 1.2rem;
}

.whatsapp-section p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #25d366;
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.whatsapp-btn img {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    object-fit: contain;
}

.whatsapp-btn:hover {
    background: #1aba51;
    transform: translateY(-2px) scale(1.03);
}

/* Reviews Modal */
.reviews-modal-content {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.all-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.review-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.review-card .review-text {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.see-more-btn-inline {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    margin: 0;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline;
    font-family: inherit;
    outline: none; 
}

.see-more-btn-inline:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.see-more-btn-inline:focus {
    outline: none;
}

.ellipsis {
    color: inherit;
}


.review-card:hover {
    transform: translateY(-5px);
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    flex: 1;
}

.review-author {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.review-rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Review Form Specific Styles */
.review-action-buttons {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

#reviewForm select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

#reviewForm select:focus {
    outline: none;
    border-color: var(--primary-color);
}

#reviewForm small {
    color: var(--text-light);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.3rem;
}

#reviewForm label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.snackbar.show {
    visibility: visible;
    opacity: 1;
}

.snackbar-success {
    background-color: #4caf50;
}

.snackbar-error {
    background-color: #f44336;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero-container {
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Tablets (968px and below) */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .book-cover {
        max-width: 350px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .author-photo {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .prev-btn {
        left: 0px;
    }

    .next-btn {
        right: 0px;
    }
}

/* Mobile Landscape and Small Tablets (768px and below) */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0;
    }
    .testimonial-section {
        max-width: 360px; /* fixed mobile width */
        width: 100%;
        margin: 0 auto;   /* centers it on screen */
    }
    .testimonial-card{
        max-width: 220px;
        word-wrap: break-word;
        word-break: break-word; /* fixed mobile width */
    }
    .nav-links li {
        padding: 1rem 0;
        width: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .book-cover {
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about,
    .features,
    .testimonials,
    .contact {
        padding: 3rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .carousel-container {
        padding: 2rem 2.5rem;
    }

     .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact p {
        font-size: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 92%;
    }

    .all-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        margin-top: 70px;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        .hero-content .subtitle {
    font-size: 1rem;
}

.hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
}

.book-cover {
    max-width: 250px;
}

.section-title {
    font-size: 1.8rem;
}

.section-subtitle {
    font-size: 0.95rem;
}

.subtitle-icon {
    width: 25px;
    height: 25px;
}

.about,
.features,
.testimonials,
.contact {
    padding: 2.5rem 1rem;
}

.author-photo {
    width: 180px;
    height: 180px;
}

.about-text h3 {
    font-size: 1.5rem;
}

.about-text p {
    font-size: 0.95rem;
}

.feature-card {
    padding: 1.2rem;
}

.feature-icon {
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
}

.carousel-container {
    padding: 1.5rem 2rem;
}

.carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
}

.prev-btn {
    left: -5px;
}

.next-btn {
    right: -5px;
}

.testimonial-card {
    padding: 1.2rem;
    min-height: 160px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 0.9rem;
}

.dot {
    width: 10px;
    height: 10px;
}

.dot.active {
    width: 25px;
}

.contact h2 {
    font-size: 1.8rem;
}

.contact p {
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
}

.modal-content {
    padding: 1.8rem 1.5rem;
    max-width: 380px;
}

.modal-content h2 {
    font-size: 1.7rem;
}

.modal-content .modal-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.close-modal {
    top: 15px;
    right: 18px;
    font-size: 2rem;
}

.purchase-links {
    flex-direction: column;
    gap: 0.8rem;
}

.purchase-btn {
    width: 100%;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
}

.purchase-btn img {
    width: 26px;
    height: 26px;
}

.whatsapp-btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
}

.whatsapp-btn img {
    width: 22px;
    height: 22px;
}

.reviews-modal-content {
    max-height: 80vh;
}

.review-card {
    padding: 1.2rem;
}

    .review-text {
            font-size: 0.95rem;
            line-height: 1.6;
        }

.review-author {
    font-size: 0.9rem;
}

.review-rating {
    font-size: 1.1rem;
}

.social-links {
    gap: 1.2rem;
}

.social-links img {
    width: 28px;
    height: 28px;
}

.phone-number {
    font-size: 1rem;
}

.snackbar {
    min-width: 200px;
    padding: 14px;
    font-size: 14px;
    bottom: 20px;
}

footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
}
}

/* Extra Small Mobile (400px and below) */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-content .subtitle {
        font-size: 0.9rem;
    }

    .book-cover {
        max-width: 220px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .carousel-container {
        padding: 1rem 1.5rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem 1.2rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .purchase-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .purchase-btn img {
        width: 24px;
        height: 24px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    nav,
    .cta-buttons,
    .contact,
    footer {
        display: none;
    }

    .hero,
    .about,
    .features,
    .testimonials {
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 3px solid currentColor;
    }

    .feature-card,
    .testimonial-card,
    .review-card {
        border: 2px solid var(--text-dark);
    }
}}