/* ==========================================================================
   ANGIE MARTINEZ - AUTHOR WEBSITE SYSTEM STYLESHEET
   Book: Lost and Found (The Journey)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & ROOT VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette Inspired by the Autumn Leaf Book Design */
    --primary-burgundy: #6B101C;
    --primary-dark-burgundy: #4A0A13;
    --primary-light-burgundy: #8B1E2D;
    
    --accent-gold: #C88A2D;
    --accent-gold-bright: #D4AF37;
    --accent-amber: #E5A93C;
    --accent-red-leaf: #9E1F24;
    
    --bg-parchment: #FAF5EE;
    --bg-warm-light: #FFFDF9;
    --bg-cream-card: #FFFFFF;
    --bg-dark-wood: #1E1612;
    --bg-dark-overlay: rgba(26, 16, 12, 0.92);

    --text-dark: #2A1E17;
    --text-muted: #6B5B52;
    --text-light: #F5EBE1;
    --text-gold: #D4AF37;

    --border-gold: rgba(212, 175, 55, 0.3);
    --border-light: rgba(107, 16, 28, 0.1);
    
    --glass-bg: rgba(255, 253, 249, 0.85);
    --glass-border: rgba(212, 175, 55, 0.35);
    --glass-shadow: 0 10px 30px rgba(42, 30, 23, 0.08);

    /* Fonts */
    --font-heading: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px rgba(74, 10, 19, 0.15);
    --shadow-gold-glow: 0 0 25px rgba(212, 175, 55, 0.4);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-parchment);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-burgundy);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-burgundy);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-gold);
}

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

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.section {
    padding: 6rem 0;
    position: relative;
}

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

.align-left {
    justify-content: flex-start !important;
}

.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }

/* Section Header styling */
.section-header {
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.badge-leaf {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-burgundy);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.title-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.title-underline .line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.underline-leaf {
    width: 24px;
    height: 24px;
    object-fit: contain;
    animation: leafPulse 3s ease-in-out infinite;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--primary-dark-burgundy));
    color: #FFFFFF;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark-burgundy), var(--primary-burgundy));
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(107, 16, 28, 0.3);
    color: #FFFFFF;
}

.btn-secondary {
    background: var(--bg-cream-card);
    color: var(--primary-burgundy);
    border-color: var(--primary-burgundy);
}

.btn-secondary:hover {
    background: var(--primary-burgundy);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    color: var(--bg-dark-wood);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-glow);
    color: var(--bg-dark-wood);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--primary-burgundy);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-dark-wood);
}

.btn-full {
    width: 100%;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(30deg);
    transition: 0.8s;
}

.btn-glow:hover::after {
    left: 100%;
}

/* --------------------------------------------------------------------------
   3. GSAP PRELOADER STYLING
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark-wood);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-content {
    text-align: center;
    max-width: 450px;
    padding: 2rem;
}

.preloader-leaf-wrapper {
    margin-bottom: 1.5rem;
}

.preloader-leaf {
    width: 70px;
    height: 70px;
    object-fit: contain;
    animation: preloaderLeafSpin 4s ease-in-out infinite;
}

.preloader-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-light);
    letter-spacing: 2px;
}

.preloader-title span {
    color: var(--accent-gold);
    font-style: italic;
}

.preloader-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent-amber);
    margin-top: 0.4rem;
    margin-bottom: 2rem;
}

.preloader-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-light-burgundy), var(--accent-amber));
    border-radius: 10px;
    transition: width 0.1s ease-out;
}

@keyframes preloaderLeafSpin {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-12px) rotate(15deg) scale(1.1); }
}

/* --------------------------------------------------------------------------
   4. STICKY HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 0.75rem 0;
    background: rgba(250, 245, 238, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-gold);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-leaf-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: var(--transition-bounce);
}

.nav-brand:hover .brand-leaf-icon {
    transform: rotate(180deg) scale(1.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    letter-spacing: 1px;
    line-height: 1;
}

.book-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.desktop-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 0.4rem 0;
}

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.desktop-nav .nav-link:hover::after,
.desktop-nav .nav-link.active::after {
    width: 100%;
}

.desktop-nav .btn-nav-cta {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--primary-dark-burgundy));
    color: #FFFFFF;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(107, 16, 28, 0.2);
}

.desktop-nav .btn-nav-cta::after {
    display: none;
}

.desktop-nav .btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 16, 28, 0.35);
    color: #FFFFFF;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-burgundy);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-drawer.active {
    visibility: visible;
    opacity: 1;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark-overlay);
    backdrop-filter: blur(8px);
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-parchment);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--primary-burgundy);
    cursor: pointer;
}

.drawer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.drawer-leaf {
    width: 45px;
    height: 45px;
    margin: 0 auto 0.5rem;
}

.drawer-author {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-burgundy);
}

.drawer-book {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
}

.drawer-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-drawer-cta {
    display: block;
    background: var(--primary-burgundy);
    color: #FFFFFF !important;
    padding: 0.8rem;
    border-radius: 50px;
}

.drawer-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. FLOATING BACKGROUND LEAF PARTICLES
   -------------------------------------------------------------------------- */
.bg-floating-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    width: 65px;
    height: 65px;
    object-fit: contain;
    opacity: 0.25;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    animation: leafFloat 12s ease-in-out infinite alternate;
}

.leaf-pos-1 { top: 12%; left: 4%; width: 75px; height: 75px; animation-duration: 14s; }
.leaf-pos-2 { top: 28%; right: 5%; width: 85px; height: 85px; animation-duration: 18s; animation-delay: -3s; }
.leaf-pos-3 { top: 52%; left: 2%; width: 60px; height: 60px; animation-duration: 16s; animation-delay: -6s; }
.leaf-pos-4 { top: 75%; right: 4%; width: 90px; height: 90px; animation-duration: 20s; animation-delay: -9s; }
.leaf-pos-5 { top: 88%; left: 6%; width: 70px; height: 70px; animation-duration: 15s; animation-delay: -4s; }

@keyframes leafFloat {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(25deg) scale(1.08); }
    100% { transform: translateY(20px) rotate(-15deg) scale(0.95); }
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    padding-top: 9rem;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(107, 16, 28, 0.06) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.accent-ampersand {
    font-style: italic;
    color: var(--accent-gold);
    font-weight: 400;
}

.hero-subtitle {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin-top: 0.2rem;
}

.hero-author-tag {
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-author-tag strong {
    color: var(--primary-burgundy);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.2rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Quick Stats Bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 1.2rem 1.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    width: fit-content;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-stars {
    color: var(--accent-amber);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    line-height: 1;
}

.stat-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: var(--border-gold);
}

/* Hero 3D Book Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-3d-wrapper {
    position: relative;
    perspective: 1200px;
    transition: transform 0.2s ease-out;
}

.book-glow-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(107, 16, 28, 0.2) 50%, transparent 70%);
    filter: blur(35px);
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

.book-mockup-img {
    position: relative;
    z-index: 2;
    max-width: 440px;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 25px 35px rgba(42, 30, 23, 0.25));
    transition: filter 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    animation: bookFloat3D 6s ease-in-out infinite;
}

.book-3d-wrapper:hover .book-mockup-img {
    transform: scale(1.03) translateY(-10px);
    filter: drop-shadow(0 35px 50px rgba(107, 16, 28, 0.3));
}

.book-floating-leaf {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.book-floating-leaf img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
}

.leaf-top-right {
    top: -20px;
    right: -20px;
    animation: leafFloat 8s ease-in-out infinite;
}

.leaf-bottom-left {
    bottom: -10px;
    left: -30px;
    animation: leafFloat 9s ease-in-out infinite reverse;
}

@keyframes bookFloat3D {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1.5deg); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
}

.hero-scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bounce-icon {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* --------------------------------------------------------------------------
   7. ABOUT THE BOOK SECTION
   -------------------------------------------------------------------------- */
.about-book-section {
    background-color: var(--bg-warm-light);
}

.about-book-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: center;
}

.book-showcase-card {
    background: var(--bg-cream-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
}

.book-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.book-front-cover {
    width: 100%;
    transition: transform 0.5s ease;
}

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

.book-badge-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-burgundy);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.synopsis-heading {
    font-size: 2.2rem;
    color: var(--primary-burgundy);
    margin-bottom: 1.5rem;
}

.synopsis-quote-box {
    background: rgba(212, 175, 55, 0.06);
    border-left: 4px solid var(--accent-gold);
    padding: 1.8rem;
    border-radius: 0 16px 16px 0;
    margin-bottom: 2rem;
}

.synopsis-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 0;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.theme-card {
    background: var(--bg-cream-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.theme-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-soft);
}

.theme-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(107, 16, 28, 0.08);
    color: var(--primary-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.theme-card h4 {
    font-size: 1.15rem;
    color: var(--primary-burgundy);
    margin-bottom: 0.4rem;
}

.theme-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. ABOUT THE AUTHOR SECTION
   -------------------------------------------------------------------------- */
.about-author-section {
    background: linear-gradient(180deg, var(--bg-parchment) 0%, #F5EBE1 100%);
}

.author-card-wrapper {
    background: var(--bg-cream-card);
    border-radius: 28px;
    padding: 4rem 3rem;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.author-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.author-frame {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.author-frame-border {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 2px dashed var(--accent-gold);
    border-radius: 24px;
    pointer-events: none;
}

.author-portrait {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 2;
}

.author-floating-leaf {
    position: absolute;
    bottom: -20px;
    right: -25px;
    z-index: 3;
}

.author-floating-leaf img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.author-experience-badge {
    position: absolute;
    top: 1.5rem;
    left: -1.5rem;
    z-index: 3;
    background: var(--primary-burgundy);
    color: #FFFFFF;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(107, 16, 28, 0.3);
}

.author-name-title {
    font-size: 3.2rem;
    color: var(--primary-burgundy);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.author-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.bio-paragraph {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.author-personal-quote {
    position: relative;
    padding: 1.5rem 1.8rem 1.5rem 3rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.quote-icon {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.author-personal-quote p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-burgundy);
    margin-bottom: 0.5rem;
}

.author-personal-quote cite {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
    font-style: normal;
}

.author-connect-bar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.connect-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.author-social-links {
    display: flex;
    gap: 0.8rem;
}

.social-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-parchment);
    border: 1px solid var(--border-gold);
    color: var(--primary-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-bubble:hover {
    background: var(--primary-burgundy);
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   9. EXCERPT SECTION
   -------------------------------------------------------------------------- */
.excerpt-section {
    background-color: var(--bg-warm-light);
}

.excerpt-reader-card {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-cream-card);
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.reader-header {
    background: var(--primary-burgundy);
    color: #FFFFFF;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chapter-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.reader-controls {
    display: flex;
    gap: 0.6rem;
}

.font-size-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.font-size-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark-wood);
}

.reader-body {
    padding: 3rem 3.5rem;
    font-size: 1.1rem;
    line-height: 2;
    color: #332720;
}

.dropcap-para::first-letter {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin-right: 0.8rem;
    color: var(--primary-burgundy);
}

.reader-footer {
    background: var(--bg-parchment);
    padding: 1.8rem 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.reader-prompt {
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. REVIEWS CAROUSEL SECTION (FULL-WIDTH 2-ROW MARQUEE)
   -------------------------------------------------------------------------- */
.reviews-section {
    background: var(--bg-dark-wood);
    color: #FFFFFF;
    overflow: hidden;
    padding: 6rem 0;
}

.reviews-section .section-title {
    color: var(--text-light);
}

.reviews-section .section-subtitle {
    color: rgba(245, 235, 225, 0.7);
}

/* FULL VIEWPORT WIDTH CAROUSEL WRAPPER */
.full-width-marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.marquee-row {
    width: 100%;
    overflow: hidden;
    position: relative;
    user-select: none;
}

/* Linear Gradient Fade Masks on Edges */
.marquee-row::before,
.marquee-row::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.marquee-row::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark-wood) 0%, transparent 100%);
}

.marquee-row::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-dark-wood) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
}

/* ROW 1: LEFT SLIDE ANIMATION */
.marquee-row-left .marquee-track {
    animation: marqueeLeft 40s linear infinite;
}

/* ROW 2: RIGHT SLIDE ANIMATION */
.marquee-row-right .marquee-track {
    animation: marqueeRight 40s linear infinite;
}

/* Pause on Hover */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Review Card Design */
.review-card {
    width: 400px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.8rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.review-stars {
    color: var(--accent-amber);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.review-quote {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-burgundy));
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-name {
    font-size: 1.05rem;
    color: #FFFFFF;
    font-weight: 600;
}

.reviewer-tag {
    font-size: 0.75rem;
    color: var(--accent-gold);
    display: block;
}

/* --------------------------------------------------------------------------
   11. WHERE TO BUY SECTION
   -------------------------------------------------------------------------- */
.buy-section {
    background-color: var(--bg-parchment);
}

.buy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.buy-card {
    background: var(--bg-cream-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.buy-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-strong);
}

.featured-buy-card {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(180deg, var(--bg-cream-card) 0%, #FAF2E6 100%);
    transform: scale(1.04);
}

.featured-buy-card:hover {
    transform: scale(1.04) translateY(-8px);
}

.card-featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--bg-dark-wood);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-card-icon {
    font-size: 2.8rem;
    color: var(--primary-burgundy);
    margin-bottom: 1.2rem;
}

.buy-card h3 {
    font-size: 1.6rem;
    color: var(--primary-burgundy);
    margin-bottom: 0.6rem;
}

.buy-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    margin-bottom: 1.8rem;
}

.format-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
}

.guarantee-banner {
    background: var(--bg-cream-card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 1.8rem 2.5rem;
    box-shadow: var(--shadow-soft);
}

.guarantee-content {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.guarantee-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.guarantee-content h4 {
    font-size: 1.3rem;
    color: var(--primary-burgundy);
    margin-bottom: 0.2rem;
}

.guarantee-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   12. CONTACT / NEWSLETTER SECTION
   -------------------------------------------------------------------------- */
.contact-section {
    background-color: var(--bg-warm-light);
}

.contact-card {
    background: var(--bg-cream-card);
    border-radius: 28px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-strong);
    padding: 3.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
}

.contact-info h3 {
    font-size: 2.2rem;
    color: var(--primary-burgundy);
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail-item h5 {
    font-size: 1.1rem;
    color: var(--primary-burgundy);
    margin-bottom: 0.2rem;
}

.contact-detail-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-parchment);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: #FFFFFF;
}

/* --------------------------------------------------------------------------
   13. FOOTER STYLING
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-dark-wood);
    color: var(--text-light);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-ambient-leaf {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
}

.footer-ambient-leaf img {
    width: 120px;
    height: 120px;
}

.footer-ambient-leaf.leaf-left { top: 10%; left: -30px; }
.footer-ambient-leaf.leaf-right { bottom: 10%; right: -30px; }

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr 1.1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.footer-logo-leaf {
    width: 32px;
    height: 32px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(245, 235, 225, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--accent-gold);
    color: var(--bg-dark-wood);
    transform: translateY(-3px);
}

.footer-heading {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(245, 235, 225, 0.7);
    font-size: 0.9rem;
    transition: var(--transition-smooth);

}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-links i {
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-right: 0.4rem;
}

.footer-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: rgba(245, 235, 225, 0.7);
}

.footer-details-list span {
    color: var(--accent-gold);
    font-weight: 600;
}

.newsletter-text {
    font-size: 0.88rem;
    color: rgba(245, 235, 225, 0.7);
    margin-bottom: 1.2rem;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 0.3rem;
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.6rem 1.2rem;
    color: #FFFFFF;
    font-size: 0.88rem;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: none;
    color: var(--bg-dark-wood);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-btn:hover {
    transform: scale(1.05);
    background: var(--accent-amber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(245, 235, 225, 0.5);
}

/* Back To Top Floating Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-burgundy);
    color: #FFFFFF;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-gold);
    color: var(--bg-dark-wood);
    transform: translateY(-5px);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: var(--bg-dark-wood);
    color: #FFFFFF;
    border: 1px solid var(--accent-gold);
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    animation: toastIn 0.4s ease forwards;
}

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

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--bg-parchment);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--accent-gold);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--primary-burgundy);
    cursor: pointer;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-burgundy);
    margin-bottom: 1.2rem;
}

.modal-img {
    max-height: 75vh;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        margin: 0 auto;
    }

    .about-book-grid,
    .author-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .buy-grid {
        grid-template-columns: 1fr;
    }

    .featured-buy-card {
        transform: none;
    }

    .featured-buy-card:hover {
        transform: translateY(-8px);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.3rem;
    }

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

    .author-portrait {
        width: 100%;
        max-width: 280px;
        height: 350px;
    }

    .author-name-title {
        font-size: 2.5rem;
    }

    .reader-body {
        padding: 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        width: 310px;
        padding: 1.4rem;
    }

    .guarantee-content {
        flex-direction: column;
        text-align: center;
    }
}
