/*
 * FINAL Stylesheet for The World of SaFrol Hodol
 * Theme: Ancient Golden Mystery
 */

/* --- General Setup & Variables --- */
:root {
    --primary-bg: #1a1612;
    --secondary-bg: #2a241e;
    --font-color: #d4c8b0;
    --text-primary: #ffffff;
    --text-secondary: #d4c8b0;
    --accent-color-gold: #e8b923;
    --accent-color-purple: #944dff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--font-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"%3E%3Cpath fill="%232a241e" fill-opacity="0.12" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"%3E%3C/path%3E%3C/svg%3E');
}
h1, h2 { 
    font-family: var(--font-heading); 
    color: var(--text-primary); 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-weight: 700; 
    margin-bottom: 1rem;
}
h3 { 
    font-family: var(--font-heading); 
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
a { color: var(--accent-color-gold); text-decoration: none; }
a:hover { color: #ffde7a; }
section { padding: 100px 5%; position: relative; }
.content-wrapper { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }

/* Global Focus States for Accessibility */
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible {
    outline: 2px solid var(--accent-color-purple);
    outline-offset: 3px;
    border-radius: 3px;
}
.modal-close:focus-visible { outline-color: white; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth transitions for better UX */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .cta-button, .carousel-button, .product-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .book-item {
        cursor: pointer;
    }
    
    .main-nav a {
        padding: 10px 15px;
        display: block;
    }
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: rgba(26, 22, 18, 0.7); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); z-index: 1000; transition: background 0.3s;
    border-bottom: 1px solid rgba(232, 185, 35, 0.2);
}
.logo a { font-family: var(--font-heading); font-size: 1.8em; color: var(--accent-color-gold); text-shadow: 0 0 10px var(--accent-color-gold), 0 0 20px var(--accent-color-gold); text-decoration: none; }
.main-nav ul { list-style: none; display: flex; }
.main-nav ul li { margin-left: 35px; }
.main-nav a { color: var(--font-color); text-decoration: none; font-weight: bold; font-size: 0.9em; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease, text-shadow 0.3s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent-color-gold); text-shadow: 0 0 8px var(--accent-color-gold); }
.mobile-nav-toggle { display: none; background: none; border: none; padding: 5px; color: var(--font-color); cursor: pointer; z-index: 1001; }

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; padding-top: 80px; overflow: hidden;
    background: linear-gradient(rgba(26, 22, 18, 0.7), rgba(26, 22, 18, 1)), url('../Images/parabackground.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    will-change: transform;
}
.hero-content { max-width: 900px; animation: fadeIn 2s ease-in-out; position: relative; z-index: 2; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }

/* Parallax and particles layers */
.hero-parallax {
    position: absolute; inset: -10vh 0 0 0; z-index: 0; pointer-events: none;
}
.hero-particles {
    position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
}
.spark {
    position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: radial-gradient(circle, #ffd56a 0%, #e8b923 50%, rgba(232,185,35,0) 70%);
    opacity: 0.75; filter: blur(0.3px);
    animation: floatSpark linear forwards;
}
@keyframes floatSpark {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.9; }
    100% { transform: translateY(-120vh) translateX(var(--drift, 0)) scale(0.8); opacity: 0; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-tagline { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.2; text-shadow: 0 0 20px rgba(148, 77, 255, 0.6), 0 0 15px rgba(232, 185, 35, 0.5); }
.hero-subtagline { font-size: clamp(1.1rem, 3vw, 1.5rem); margin-top: 15px; color: var(--font-color); }

/* --- Buttons --- */
.cta-button {
    display: inline-block; margin-top: 40px; padding: 15px 35px; background: var(--accent-color-gold);
    color: var(--primary-bg); text-decoration: none; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 5px; transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border: 2px solid var(--accent-color-gold);
}
.cta-button:hover, .cta-button:focus-visible {
    transform: translateY(-5px);
    background-color: #ffde7a;
    box-shadow: 0 10px 20px rgba(232, 185, 35, 0.25), 0 0 15px var(--accent-color-gold);
    color: var(--primary-bg);
}
.cta-button.secondary { background: transparent; border-color: var(--accent-color-purple); color: var(--font-color); }
.cta-button.secondary:hover, .cta-button.secondary:focus-visible { background: var(--accent-color-purple); color: #fff; box-shadow: 0 10px 20px rgba(148, 77, 255, 0.2); }

/* --- Books Carousel Section --- */
.books-section { background: var(--secondary-bg); text-align: center; padding: 100px 0; border-top: 2px solid #3c352d; border-bottom: 2px solid #3c352d; overflow: hidden; }
.books-section h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 60px; }
.carousel-container {
    position: relative;
    width: 100%;
    height: 520px;
    margin: 0 auto;
    perspective: 1500px;
}
.carousel-track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; will-change: transform; }
.book-item {
    position: relative;
    width: 250px;
    margin: 0 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform, opacity;
    transform-style: preserve-3d;
}
.book-item.center { transform: scale(1.15) translateZ(30px) rotateY(-5deg); opacity: 1; }
.book-item.side { transform: scale(0.85); opacity: 0.5; }
.book-item.hide { transform: scale(0.6); opacity: 0; }
.book-cover-container { position: relative; width: 100%; }
.book-cover-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: #333;
    border: 3px solid #3c352d;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}
.book-item.coming-soon .book-cover-placeholder { filter: blur(0.5px) grayscale(10%); opacity: 0.9; }
.coming-soon-ribbon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 3;
    background: linear-gradient(135deg, #e8b923, #b8860b, #e8b923);
    color: #1a1612; text-transform: uppercase; font-weight: 900; letter-spacing: 1.5px; font-family: var(--font-heading);
    padding: 8px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.2);
    font-size: 0.9rem;
    text-align: center;
    min-width: 120px;
    border-radius: 0 0 8px 8px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}
.book-item:hover .book-cover-placeholder,
.book-item.center .book-cover-placeholder {
    box-shadow: 0 0 35px -5px var(--accent-color-gold);
    border-color: var(--accent-color-gold);
}
.book-title { font-size: 1.2rem; color: #fff; }
.book-overlay-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.book-item.center .book-overlay-icon { opacity: 0.7; }
.book-item.coming-soon .book-overlay-icon { display: none; }
.carousel-button { position: absolute; top: 40%; transform: translateY(-50%); background: rgba(26, 22, 18, 0.5); border: 1px solid rgba(232, 185, 35, 0.3); color: var(--accent-color-gold); cursor: pointer; z-index: 100; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
.carousel-button:hover, .carousel-button:focus-visible { background-color: var(--accent-color-gold); color: var(--primary-bg); }
.carousel-button.prev { left: calc(5% - 25px); }
.carousel-button.next { right: calc(5% - 25px); }

/* --- Other Sections --- */
.world-intro-section { text-align: center; padding: 120px 5%; }
.world-content { max-width: 1000px; margin: 0 auto; }
.world-text { margin-bottom: 60px; }
.world-text p { margin-bottom: 20px; font-size: 1.1rem; line-height: 1.8; }
.world-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 50px; }
.world-feature { background: var(--secondary-bg); padding: 30px; border-radius: 15px; border: 2px solid #3c352d; transition: transform 0.3s, box-shadow 0.3s; }
.world-feature:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.feature-icon { font-size: 3rem; margin-bottom: 20px; }
.world-feature h3 { color: var(--accent-color-gold); font-size: 1.4rem; margin-bottom: 15px; }
.world-feature p { color: var(--font-color); line-height: 1.6; }
.author-section { background-color: var(--secondary-bg); }
.author-section .content-wrapper { display: flex; align-items: center; gap: 60px; }
.author-image-placeholder {
    min-width: 350px;
    height: 350px;
    display: grid; place-items: center; overflow: hidden;
    background: none;
    border-radius: 50%;
    border: 6px solid var(--accent-color-gold);
    box-shadow: 0 0 25px rgba(232, 185, 35, 0.3);
}
.author-image-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.author-bio p { margin-bottom: 30px; }
.main-footer { text-align: center; padding: 50px 20px; border-top: 1px solid #2a241e; background: var(--primary-bg); }
.footer-newsletter { 
    margin-bottom: 40px; 
    padding: 50px 30px; 
    background: linear-gradient(135deg, var(--secondary-bg), rgba(42, 36, 30, 0.9)); 
    border-radius: 20px; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
    border: 2px solid var(--accent-color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(232, 185, 35, 0.1);
    position: relative;
    overflow: hidden;
}
.footer-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color-gold), #f4da40, var(--accent-color-gold));
}
.footer-newsletter h3 { 
    color: var(--accent-color-gold); 
    font-size: 2.2rem; 
    margin-bottom: 15px; 
    text-shadow: 0 0 10px rgba(232, 185, 35, 0.3);
    text-align: center;
}
.footer-newsletter p { 
    margin-bottom: 30px; 
    color: var(--font-color); 
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
}
.ml-form-embedContainer { max-width: 500px; margin: 0 auto; }
.ml-form-fieldRow { margin-bottom: 20px; }
.form-control { 
    width: 100%; 
    padding: 15px 20px; 
    border: 2px solid #3c352d; 
    border-radius: 12px; 
    background: var(--primary-bg); 
    color: var(--font-color); 
    font-size: 1.1rem; 
    transition: all 0.3s ease;
    text-align: center;
}
.form-control:focus { 
    outline: none; 
    border-color: var(--accent-color-gold); 
    box-shadow: 0 0 15px rgba(232, 185, 35, 0.4);
    transform: translateY(-2px);
}
.form-control::placeholder { 
    color: #888; 
    font-style: italic;
}
.ml-form-embedSubmit .primary { 
    background: linear-gradient(135deg, var(--accent-color-gold), #f4da40); 
    color: var(--primary-bg); 
    border: none; 
    padding: 15px 35px; 
    border-radius: 12px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    cursor: pointer; 
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(232, 185, 35, 0.3);
    width: 100%;
}
.ml-form-embedSubmit .primary:hover { 
    background: linear-gradient(135deg, #ffde7a, var(--accent-color-gold)); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(232, 185, 35, 0.4);
}
.ml-form-successContent h4 { color: var(--accent-color-gold); margin-bottom: 10px; }
.copyright { margin-top: 20px; color: #888; }
.developer-credit { 
    margin-top: 10px; 
    color: #666; 
    font-size: 0.9rem; 
}
.developer-credit a { 
    color: var(--accent-color-gold); 
    text-decoration: none; 
    transition: color 0.3s ease;
}
.developer-credit a:hover { 
    color: #ffde7a; 
}
.social-icons { margin-top: 20px; }
.social-icons a { color: var(--font-color); margin: 0 15px; transition: color 0.3s; }
.social-icons a:hover, .social-icons a:focus-visible { color: var(--accent-color-gold); }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 22, 18, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content { background: var(--secondary-bg); padding: 40px; border-radius: 10px; border: 2px solid #3c352d; max-width: 800px; width: 90%; display: flex; gap: 30px; position: relative; transform: scale(0.9); transition: transform 0.4s; }
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-cover { min-width: 250px; width: 250px; height: 375px; background-size: cover; background-position: center; border-radius: 5px; border: 3px solid var(--accent-color-gold); }
.modal-details { display: flex; flex-direction: column; }
.modal-details h2 { color: var(--accent-color-gold); margin-bottom: 20px; }
.modal-description { max-height: 280px; overflow-y: auto; padding-right: 15px; margin-bottom: 25px; }
#modal-purchase-button { margin-top: auto; align-self: flex-start; padding: 12px 25px; font-size: 0.95em; }
.modal-close { position: absolute; top: 15px; right: 15px; cursor: pointer; color: var(--font-color); transition: color 0.3s, transform 0.3s; background: none; border: none; padding: 5px;}
.modal-close:hover, .modal-close:focus-visible { color: var(--accent-color-gold); transform: rotate(90deg); }
.merch-hero-section { padding-top: 150px; padding-bottom: 80px; text-align: center; background: linear-gradient(rgba(26, 22, 18, 0.85), var(--primary-bg)); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; max-width: 1400px; margin: 0 auto; }
.product-card { background-color: var(--secondary-bg); border: 1px solid #3c352d; border-radius: 8px; overflow: hidden; text-align: center; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 25px rgba(232, 185, 35, 0.2); }
.product-image-container { width: 100%; aspect-ratio: 1 / 1; background-color: #1a1612; overflow: hidden; position: relative; }
.product-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-image-container img { transform: scale(1.1); }
.product-image-container.coming-soon-item img { filter: blur(3px) grayscale(20%); transform: scale(1.05); }
.product-image-container.coming-soon-item::after { content: ""; position: absolute; inset: 0; background: rgba(26,22,18,0.35); }
.coming-soon-text { color: var(--accent-color-gold); opacity: 0.85; }
.product-button[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.product-image-container .coming-soon-ribbon { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 3;
    background: linear-gradient(135deg, #e8b923, #b8860b, #e8b923);
    color: #1a1612; text-transform: uppercase; font-weight: 900; letter-spacing: 1.5px; font-family: var(--font-heading);
    padding: 8px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.2); font-size: 0.9rem; text-align: center;
    min-width: 120px; border-radius: 0 0 8px 8px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}
.product-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-title { 
    font-size: 1.3rem; 
    margin-bottom: 10px; 
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}
.product-price { color: var(--accent-color-gold); font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; }
.product-button { display: inline-block; padding: 12px 20px; background: transparent; color: var(--accent-color-gold); text-decoration: none; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border-radius: 5px; transition: background-color 0.3s, color 0.3s; border: 2px solid var(--accent-color-gold); cursor: pointer; }
.product-button:hover, .product-button:focus-visible { background-color: var(--accent-color-gold); color: var(--primary-bg); }
.author-hero-section { 
    padding-top: 180px; 
    padding-bottom: 120px; 
    background: linear-gradient(rgba(26, 22, 18, 0.8), var(--secondary-bg) 80%); 
    text-align: center; 
}

.author-hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.author-hero-image { 
    width: 300px; 
    height: 300px; 
    border-radius: 50%; 
    display: grid; 
    place-items: center; 
    overflow: hidden; 
    border: 8px solid var(--accent-color-gold); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px rgba(232, 185, 35, 0.4); 
    flex-shrink: 0;
}

.author-hero-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
}

.author-hero-text h1 { 
    font-size: clamp(2.8rem, 7vw, 4.5rem); 
    text-shadow: 0 0 25px rgba(232, 185, 35, 0.5); 
    margin-bottom: 1rem;
    color: var(--accent-color-gold);
}

.author-hero-text .hero-subtagline { 
    font-size: clamp(1.2rem, 3vw, 1.6rem); 
    color: var(--accent-color-purple); 
    font-family: var(--font-heading); 
    letter-spacing: 1px; 
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--font-color);
    font-style: italic;
    margin-top: 1rem;
}
.bio-content-section { 
    padding: 100px 5%; 
    background-color: var(--secondary-bg); 
    text-align: center;
}

.bio-content-section h2 {
    font-size: 2.5rem;
    color: var(--accent-color-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.bio-content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    text-align: left;
}

.bio-content-section em {
    color: var(--accent-color-gold);
    font-style: italic;
}

.author-cta {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.bio-wrapper { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.bio-wrapper p { margin-bottom: 1.5em; }
.bio-highlight { font-style: italic; color: #fff; border-left: 3px solid var(--accent-color-gold); padding-left: 20px; margin: 40px 0; font-size: 1.2rem; }

.qa-section {
    padding: 100px 5%;
    background-color: var(--secondary-bg);
}

.qa-section h2 {
    font-size: 2.5rem;
    color: var(--accent-color-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.qa-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--font-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.author-insights-section {
    padding: 100px 5%;
    background-color: var(--primary-bg);
    text-align: center;
}

.author-insights-section h2 {
    font-size: 2.5rem;
    color: var(--accent-color-gold);
    margin-bottom: 3rem;
    text-align: center;
}

.author-gallery-section { background-color: var(--primary-bg); text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 50px; }
.gallery-item { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; border: 3px solid #3c352d; transition: transform 0.3s, border-color 0.3s; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover { transform: scale(1.05); border-color: var(--accent-color-gold); }
.gallery-item:hover img { transform: scale(1.1); }
.qa-section { background-color: var(--secondary-bg); border-top: 2px solid #3c352d; padding-bottom: 70px; }
.qa-wrapper { max-width: 800px; margin: 0 auto; margin-top: 50px; }
.qa-item { margin-bottom: 30px; border-bottom: 1px solid #3c352d; padding-bottom: 30px; }
.qa-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.qa-question { font-family: var(--font-heading); color: var(--accent-color-gold); font-size: 1.3rem; font-weight: bold; }
.qa-answer { margin-top: 10px; }

/* --- Author Insights Slideshow Section (Updated) --- */
.author-insights-section {
    padding: 80px 5%;
    background-color: var(--primary-bg);
    text-align: center;
}

.author-insights-section h2 {
    margin-bottom: 40px;
}

.slideshow-container {
    max-width: 800px;
    /* 1. Added aspect-ratio to create a consistent box for the images. */
    /* Added a background color for a "letterbox" effect on images that don't fill the space. */
    aspect-ratio: 4 / 3;
    background-color: #000; 
    position: relative;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide { display: none; width: 100%; height: 100%; }
.slide-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; display: block; }

/* 2. Style buttons to match the book carousel (circular and on the sides) */
.prev-slide,
.next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Better for vertical centering */
    width: 50px; /* Circular button dimensions */
    height: 50px;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    transition: 0.4s ease;
    border-radius: 50%; /* Make it a circle */
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    display: flex; /* Center the arrow icon inside the button */
    align-items: center;
    justify-content: center;
    /* Removed padding and specific border-radius now that they are circular */
}

.next-slide {
    right: 15px; /* Position on the right side */
}

.prev-slide {
    left: 15px; /* Position on the left side */
}

.prev-slide:hover,
.next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-dots {
    text-align: center;
    padding-top: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #3c352d;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.4s ease;
}

.active-dot,
.dot:hover {
    background-color: var(--accent-color-gold);
}

.fade-anim {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

/* --- Books Page Styles --- */
.books-hero-section {
    padding-top: 150px; padding-bottom: 80px; text-align: center; 
    background: linear-gradient(rgba(26, 22, 18, 0.85), var(--primary-bg));
}
.books-hero-section h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); text-shadow: 0 0 25px rgba(232, 185, 35, 0.5); }
.books-detail-section { padding: 100px 5%; background-color: var(--secondary-bg); }
.books-grid { display: flex; flex-direction: column; gap: 80px; max-width: 1000px; margin: 0 auto; }
.book-detail-card {
    display: flex; gap: 60px; align-items: flex-start; padding: 40px;
    background: var(--primary-bg); border-radius: 15px; border: 2px solid #3c352d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.book-detail-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.book-detail-card.coming-soon { opacity: 0.8; }
.book-cover-large { flex-shrink: 0; width: 300px; position: relative; }
.book-cover-large img { width: 100%; height: 450px; object-fit: cover; border-radius: 8px; border: 3px solid var(--accent-color-gold); }
.coming-soon-overlay { position: absolute; inset: 0; background: rgba(26,22,18,0.7); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.coming-soon-banner {
    background: linear-gradient(135deg, #e8b923, #b8860b);
    color: #1a1612; padding: 15px 30px; border-radius: 8px;
    font-family: var(--font-heading); font-weight: 900; text-transform: uppercase;
    letter-spacing: 2px; font-size: 1.2rem; box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.book-details { flex: 1; }
.book-details h2 { color: var(--accent-color-gold); margin-bottom: 10px; font-size: 2.2rem; }
.book-subtitle { color: var(--font-color); font-style: italic; margin-bottom: 25px; font-size: 1.1rem; }
.book-description p { margin-bottom: 20px; line-height: 1.8; }
.book-links { 
    margin-top: 30px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.cta-button.disabled { opacity: 0.6; cursor: not-allowed; background: #666; border-color: #666; }
.trilogy-info-section { padding: 100px 5%; text-align: center; background: var(--primary-bg); }
.trilogy-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.trilogy-content p { margin-bottom: 25px; }

/* --- Responsive Design --- */
@media (max-width: 992px) { 
    .author-section .content-wrapper { flex-direction: column; text-align: center; } 
    .author-image-placeholder { width: 300px; height: 300px; min-width: auto; } 
    .carousel-button.prev { left: 2%; } 
    .carousel-button.next { right: 2%; }
    .world-preview-content { grid-template-columns: 1fr; gap: 2rem; }
    .world-preview-features { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (max-width: 768px) { 
    section { padding: 80px 5%; } 
    .main-header { padding: 15px 5%; } 
    .main-nav { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: rgba(26, 22, 18, 0.98); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1); z-index: 999; } 
    .main-nav.active { transform: translateX(0); } 
    .main-nav ul { flex-direction: column; text-align: center; } 
    .main-nav ul li { margin: 20px 0; transform: translateY(20px); opacity: 0; animation: navLinkFade 0.5s forwards; } 
    .main-nav.active ul li { animation-delay: calc(0.1s * var(--i)); } 
    .main-nav a { font-size: 1.5em; } 
    @keyframes navLinkFade { to { transform: translateY(0); opacity: 1; } } 
    .mobile-nav-toggle { display: block; } 
    .hero-section { background-attachment: scroll; } 
    .modal-content { 
        flex-direction: column; 
        align-items: center; 
        max-height: 90vh; 
        overflow-y: auto; 
        padding: 20px; 
        width: 95%;
        margin: 5vh auto;
    } 
    .modal-cover { 
        min-width: 200px; 
        width: 200px; 
        height: 300px; 
        margin-bottom: 20px;
    } 
    .modal-description { 
        max-height: 40vh; 
        overflow-y: auto; 
        padding-right: 10px; 
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    } 
    #modal-purchase-button { margin-top: 20px; } 
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; } 
    .author-hero-content { flex-direction: column; text-align: center; gap: 2rem; } 
    .author-hero-image { width: 200px; height: 200px; } 
    .book-detail-card { flex-direction: column; text-align: center; } 
    .book-cover-large { width: 100%; max-width: 300px; margin: 0 auto; } 
    .book-links { justify-content: center; } 
    .author-cta { justify-content: center; } 
}
@media (max-width: 480px) { .cta-button { padding: 12px 25px; font-size: 0.9rem; } .book-item { width: 200px; margin: 0 10px; } .carousel-container { height: 450px; } .carousel-button { width: 40px; height: 40px; top: 35%; } .author-image-placeholder { width: 250px; height: 250px; } .author-hero-image { width: 180px; height: 180px; } .hero-tagline { font-size: 1.8rem !important; line-height: 1.3; } .hero-subtagline { font-size: 1rem; } }

/* World Page Specific Styling */
.world-hero-section {
    background: linear-gradient(rgba(26, 22, 18, 0.8), rgba(26, 22, 18, 0.9)), url('../Images/parabackground.jpg') no-repeat center center/cover;
    padding: 180px 0 120px;
    text-align: center;
    color: var(--text-primary);
}

.world-hero-section h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.world-hero-section .hero-subtagline {
    font-size: 1.3rem;
    color: var(--accent-color-gold);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* World Features Grid */
.world-features-section {
    padding: 100px 0;
    background: var(--secondary-bg);
}

.world-features-section h2 {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.world-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.world-feature-card {
    background: linear-gradient(135deg, rgba(26, 22, 18, 0.8), rgba(42, 36, 30, 0.8));
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(232, 185, 35, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.world-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-gold), #f4da40, var(--accent-color-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.world-feature-card:hover::before {
    transform: scaleX(1);
}

.world-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(232, 185, 35, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color-gold), #f4da40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-bg);
    font-size: 2rem;
}

.world-feature-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.world-feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color-gold), #f4da40);
    color: var(--primary-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(232, 185, 35, 0.3);
}

/* World Timeline Section */
.world-timeline-section {
    padding: 100px 0;
    background: var(--primary-bg);
}

.world-timeline-section h2 {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color-gold), #f4da40, var(--accent-color-gold));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--accent-color-gold);
    border-radius: 50%;
    border: 4px solid var(--primary-bg);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(232, 185, 35, 0.3);
}

.timeline-content {
    background: rgba(26, 22, 18, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(232, 185, 35, 0.2);
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--accent-color-gold);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Author Page Improvements */
.bio-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-main h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.bio-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.bio-highlight {
    background: linear-gradient(135deg, rgba(26, 22, 18, 0.8), rgba(42, 36, 30, 0.8));
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(232, 185, 35, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bio-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-gold), #f4da40, var(--accent-color-gold));
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color-gold), #f4da40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-bg);
    font-size: 1.5rem;
}

.bio-highlight blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.bio-highlight cite {
    color: var(--accent-color-gold);
    font-weight: 600;
    font-size: 1rem;
}

.author-credentials-section {
    padding: 100px 0;
    background: var(--secondary-bg);
}

.author-credentials-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.credential-card {
    background: linear-gradient(135deg, rgba(26, 22, 18, 0.8), rgba(42, 36, 30, 0.8));
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(232, 185, 35, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-gold), #f4da40, var(--accent-color-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.credential-card:hover::before {
    transform: scaleX(1);
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(232, 185, 35, 0.4);
}

.credential-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color-gold), #f4da40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-bg);
    font-size: 1.8rem;
}

.credential-card h3 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.credential-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive Design for World Page */
@media (max-width: 768px) {
    .world-hero-section {
        padding: 120px 0 80px;
    }
    
    .world-hero-section h1 {
        font-size: 2.5rem;
    }
    
    .world-hero-section .hero-subtagline {
        font-size: 1.1rem;
    }
    
    .world-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .world-feature-card {
        padding: 2rem;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
    
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
    }
    
    .world-preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .world-preview-features {
        grid-template-columns: 1fr;
    }
    
    .world-preview-section {
        padding: 80px 0;
    }
    
    .world-preview-text {
        text-align: center;
    }
    
    .world-preview-feature {
        padding: 1.2rem;
    }
    
    .world-preview-feature .feature-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .world-hero-section {
        padding: 100px 0 60px;
    }
    
    .world-hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .world-hero-section .hero-subtagline {
        font-size: 1rem;
    }
    
    .world-feature-card {
        padding: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 15px;
    }
    
    .world-preview-section {
        padding: 60px 0;
    }
    
    .world-preview-content {
        gap: 1.5rem;
    }
    
    .world-preview-features {
        gap: 1rem;
    }
    
    .world-preview-feature {
        padding: 1rem;
    }
    
    .world-preview-feature .feature-icon {
        font-size: 1.8rem;
    }
    
    .world-preview-feature h3 {
        font-size: 1rem;
    }
    
    .world-preview-feature p {
        font-size: 0.85rem;
    }
}

/* World Preview Section (Home Page) */
.world-preview-section {
    padding: 100px 0;
    background: var(--secondary-bg);
}

.world-preview-section h2 {
    font-size: 2.5rem;
    color: var(--accent-color-gold);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(232, 185, 35, 0.3);
}

/* Portrait orientation and vertical screens */
@media (max-width: 900px) and (orientation: portrait) {
    .world-preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .world-preview-section {
        padding: 80px 0;
    }
    
    .world-preview-text {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .world-preview-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .world-preview-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .world-preview-feature {
        padding: 1.2rem;
    }
}

.world-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.world-preview-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.world-preview-text p {
    margin-bottom: 1.5rem;
}

.world-preview-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.world-preview-feature {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 22, 18, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(212, 200, 176, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.world-preview-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.world-preview-feature .feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color-gold);
    margin-bottom: 0.8rem;
}

.world-preview-feature h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

.world-preview-feature p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.world-preview-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 200, 176, 0.2);
}