/* Root Variables for Consistent Theming */
:root {
    --primary-burgundy: #6b2737;
    --secondary-rose: #c08a9b;
    --accent-gold: #d4af37;
    --cream: #faf6f1;
    --dark-text: #3a1f2d;
    --light-text: #5a3d4b;
}

body {
    background-color: var(--cream);
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(199, 168, 179, 0.03) 2px,
            rgba(199, 168, 179, 0.03) 4px
        );
    color: var(--dark-text);
    font-family: 'Libre Baskerville', serif;
    line-height: 1.8;
}

/* Enhanced Navigation */
.navbar {
    background: linear-gradient(135deg, #5a2f3f 0%, var(--primary-burgundy) 100%) !important;
    padding: 0.8rem 0;
    box-shadow: 0 2px 12px rgba(107, 39, 55, 0.12);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-gold) !important;
}

.nav-link {
    position: relative;
    font-size: 1rem;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

/* Elegant Hero Section */
.hero-section {
    background: linear-gradient(135deg, #b87d8e 0%, #c79aa7 50%, #d5b3bd 100%);
    color: #ffffff;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 39, 55, 0.15);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 12px rgba(107, 39, 55, 0.3);
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-section .lead {
    font-size: 1.4rem;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 6px rgba(107, 39, 55, 0.25);
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    font-weight: 400;
}

/* Elegant Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, #8b3a4f 100%);
    border: 2px solid var(--accent-gold);
    color: #ffffff;
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(107, 39, 55, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b3a4f 0%, var(--primary-burgundy) 100%);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 39, 55, 0.4);
}

/* Section Titles with Ornamental Design */
.section-title {
    color: var(--primary-burgundy);
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}

.section-subtitle {
    color: #8b5f6f;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Enhanced Book Sections with Cards */
.book-section {
    background: #ffffff;
    border: 1px solid rgba(192, 138, 155, 0.3);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    margin: 4rem auto !important;
    box-shadow: 0 8px 24px rgba(107, 39, 55, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.book-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(107, 39, 55, 0.15);
    border-color: var(--accent-gold);
}

.book-section .row {
    align-items: center;
}

.book-section .col-md-6 {
    padding-left: 2.5rem;
    padding-right: 2rem;
}

.book-section .col-md-6.text-center {
    padding-left: 1rem;
    padding-right: 1rem;
}

.book-section p {
    margin-bottom: 1.2rem;
}

/* Paragraph Styling */
.container p {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.9;
}

.fw-bold {
    color: var(--primary-burgundy) !important;
    font-size: 1.1rem !important;
}

/* Enhanced Images */
.img-fluid {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    max-width: 320px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(107, 39, 55, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.4);
}

.img-fluid:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(107, 39, 55, 0.22);
    border-color: var(--accent-gold);
}

/* Logo in Navbar */
.navbar-brand img {
    width: 42px;
    height: 42px;
    margin-right: 12px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    border-color: var(--accent-gold);
}

/* Newsletter Section */
.my-5 {
    padding: 3rem 1rem;
}

.my-5.text-center {
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.03), transparent);
    border-top: 1px solid rgba(192, 138, 155, 0.15);
    border-bottom: 1px solid rgba(192, 138, 155, 0.15);
    position: relative;
}

.my-5.text-center h2 {
    margin-bottom: 1.5rem;
}

/* Footer Enhancement */
footer {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, #4a2032 100%);
    font-family: 'Libre Baskerville', serif;
    border-top: 3px solid var(--accent-gold);
    padding: 2rem 0 !important;
}

.social-media-icons {
    margin-bottom: 1rem;
}

.social-media-icons a {
    text-decoration: none;
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.6);
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.social-media-icons a:hover {
    background: var(--accent-gold);
    color: var(--primary-burgundy) !important;
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Button Wrapper */
.book-section .button-wrapper {
    display: flex;
    justify-content: left;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}


/* Media Queries for Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1rem 2rem;
    }

    .hero-section h1 {
        font-size: 2.3rem;
        letter-spacing: 2px;
    }

    .hero-section .lead {
        font-size: 1.15rem;
    }

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

    .section-subtitle {
        font-size: 1.15rem;
    }

    .container p {
        font-size: 1rem;
    }

    img.img-fluid {
        max-width: 100%;
        height: auto;
        margin-bottom: 2rem;
    }

    .book-section {
        padding: 2rem 1.5rem;
    }

    .book-section .col-md-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn-primary {
        padding: 0.65rem 2rem;
        font-size: 1rem;
    }

    .navbar-brand img {
        width: 36px;
        height: 36px;
    }
}