/* ========================================
   JON DÉTARO — Author Website
   Inspired by danbrown.com aesthetic
   ======================================== */

/* --- CSS Variables --- */
:root {
    --color-bg: #060606;
    --color-bg-alt: #0e0e0e;
    --color-surface: #151515;
    --color-gold: #c9a84c;
    --color-gold-light: #e4c76b;
    --color-gold-dark: #8b6914;
    --color-fire: #d4571e;
    --color-ember: #ff6b35;
    --color-text: #e8e8e8;
    --color-text-muted: #888888;
    --color-white: #ffffff;
    --color-black: #000000;

    --font-display: 'Cinzel', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 160px;
    --section-padding: 120px;
    --container-width: 1200px;

    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* --- Custom Selection --- */
::selection {
    background: var(--color-gold);
    color: var(--color-black);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.preloader-text {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    margin-top: 20px;
}

.preloader-line {
    width: 60px;
    height: 2px;
    background: var(--color-gold-dark);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.preloader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--color-gold);
    animation: preloaderSlide 1s ease infinite;
}

@keyframes preloaderSlide {
    to { left: 100%; }
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 160px;
    transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
    height: 70px;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 150px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.8;
}

#navbar.scrolled .nav-logo-img {
    height: 65px;
}

.logo-rest {
    font-weight: 400;
    color: var(--color-white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

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

.nav-link-cta {
    color: var(--color-bg) !important;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    padding: 8px 22px !important;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg) !important;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    transition: all 0.3s ease;
}

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.4), 0 0 80px rgba(201, 168, 76, 0.15);
}

.btn-primary span, .btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid rgba(201, 168, 76, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    transform: translateY(-3px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.2);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 87, 30, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #0d0800 0%, var(--color-bg) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-dark), transparent);
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg-alt), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(201, 168, 76, 0.4);
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
    50% { opacity: 0.7; transform: translateY(-120px) scale(2); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    padding-top: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-pre-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-pre-title::before {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
}

.title-accent {
    color: var(--color-gold);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-author {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero-author::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    opacity: 0.3;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-gold-light);
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-book {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-3d-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-book-img {
    max-height: 70vh;
    width: auto;
    border-radius: 4px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        0 0 100px rgba(201, 168, 76, 0.12),
        0 0 200px rgba(212, 87, 30, 0.05);
    transition: transform 0.6s var(--ease-expo), box-shadow 0.6s ease;
    transform: rotateY(-5deg);
    animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: rotateY(-5deg) translateY(0); }
    50% { transform: rotateY(-5deg) translateY(-12px); }
}

.hero-book-img:hover {
    transform: rotateY(0deg) scale(1.03);
    box-shadow:
        0 40px 80px rgba(0,0,0,0.7),
        0 0 120px rgba(201, 168, 76, 0.2),
        0 0 250px rgba(212, 87, 30, 0.08);
    animation: none;
}

.book-glow {
    position: absolute;
    bottom: -40px;
    left: 5%;
    right: 5%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.25), rgba(212, 87, 30, 0.1), transparent);
    filter: blur(30px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.3; height: 20px; }
}

/* --- Section Shared --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.section-label::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

/* --- Book Section --- */
.section-book {
    background: var(--color-bg-alt);
    position: relative;
}

.section-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.book-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.book-mockup-wrapper {
    position: relative;
}

.book-mockup {
    border-radius: 8px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(201, 168, 76, 0.06);
    transition: transform 0.6s var(--ease-expo), box-shadow 0.6s ease;
}

.book-mockup:hover {
    transform: scale(1.04) rotate(-1deg);
    box-shadow:
        0 40px 100px rgba(0,0,0,0.6),
        0 0 80px rgba(201, 168, 76, 0.1);
}

.book-quote {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--color-gold);
}

.quote-icon {
    color: var(--color-gold);
    opacity: 0.3;
    margin-bottom: 10px;
}

.book-quote p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
}

.book-synopsis {
    margin-bottom: 40px;
}

.book-synopsis p {
    margin-bottom: 15px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.book-synopsis strong {
    color: var(--color-gold);
}

.book-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.detail-value {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* --- Chapter Reading Section --- */
.section-chapter {
    background: var(--color-bg);
}

.chapter-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.chapter-book {
    background: linear-gradient(180deg, #0c0c0c 0%, #111111 100%);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 4px;
    padding: 60px 50px 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(201, 168, 76, 0.1);
}

.chapter-header {
    text-align: center;
    margin-bottom: 50px;
}

.chapter-number {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.chapter-divider {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 20px auto 0;
    opacity: 0.5;
}

.chapter-content {
    height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
}

/* Custom scrollbar */
.chapter-content::-webkit-scrollbar {
    width: 6px;
}

.chapter-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chapter-content::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.4);
    border-radius: 3px;
}

.chapter-content::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.7);
}

.chapter-text p {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.9;
    color: #c8c8c8;
    margin-bottom: 1.5em;
    text-align: justify;
    text-indent: 2em;
}

.chapter-text p.chapter-drop-cap {
    text-indent: 0;
}

.chapter-text p.chapter-drop-cap::first-letter {
    font-family: var(--font-display);
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 6px;
    color: var(--color-gold);
    font-weight: 700;
}

.chapter-text p.chapter-dialogue {
    text-indent: 2em;
    font-style: italic;
    color: #d8d8d8;
}

.chapter-text p.chapter-highlight {
    text-align: center;
    text-indent: 0;
    font-size: 1.2rem;
    color: var(--color-gold);
    font-style: italic;
    padding: 20px 0;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    margin: 2em 0;
}

.chapter-text p.chapter-final-line {
    font-weight: 600;
}

.chapter-fade {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, #0c0c0c);
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.chapter-fade.hidden {
    opacity: 0;
    pointer-events: none;
}

.chapter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.4s ease;
    position: relative;
    z-index: 2;
}

.chapter-toggle:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    border-color: var(--color-gold);
}

.chapter-toggle.expanded svg {
    transform: rotate(180deg);
}

.chapter-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.chapter-cta p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.chapter-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .chapter-book {
        padding: 40px 25px 20px;
    }

    .chapter-text p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .chapter-text p.chapter-drop-cap::first-letter {
        font-size: 3rem;
    }

    .chapter-content {
        max-height: 400px;
    }
}

/* --- Parallax Quote --- */
.parallax-quote {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(6, 6, 6, 0.95), rgba(6, 6, 6, 0.7), rgba(6, 6, 6, 0.95)),
        linear-gradient(to bottom, rgba(201, 168, 76, 0.03), transparent);
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 40px 50px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    background: rgba(6, 6, 6, 0.3);
    backdrop-filter: blur(5px);
}

.parallax-content::before,
.parallax-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--color-gold);
    border-style: solid;
    opacity: 0.4;
}

.parallax-content::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.parallax-content::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.parallax-content blockquote p {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--color-white);
    line-height: 1.8;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    overflow: hidden;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.4), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.about-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: top;
    filter: contrast(1.05) saturate(0.9);
    transition: transform 0.8s var(--ease-expo), filter 0.8s ease;
}

.about-img-wrapper:hover .about-img {
    transform: scale(1.05);
    filter: contrast(1.1) saturate(1);
}

.about-img-frame {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    pointer-events: none;
    transition: all 0.6s ease;
}

.about-img-wrapper:hover .about-img-frame {
    inset: 20px;
    border-color: rgba(201, 168, 76, 0.4);
}

.about-lead {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: 25px;
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.about-signature {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.about-social {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.about-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.about-social-link svg {
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.about-social-link:hover {
    color: var(--color-gold);
}

.about-social-link:hover svg {
    transform: scale(1.15);
}

.signature-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-gold);
    opacity: 0.7;
}

/* --- Author Strip (infinite scroll) --- */
.author-strip {
    overflow: hidden;
    padding: 20px 0;
    background: var(--color-surface);
}

.strip-track {
    display: flex;
    gap: 20px;
    animation: stripScroll 30s linear infinite;
    width: max-content;
}

.strip-item {
    flex-shrink: 0;
    width: 300px;
    height: 350px;
    overflow: hidden;
    position: relative;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.strip-item:hover img {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.05);
}

@keyframes stripScroll {
    to {
        transform: translateX(-50%);
    }
}

/* --- Trailer Section --- */
.section-trailer {
    background: var(--color-bg-alt);
    position: relative;
}

.section-trailer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
}

.trailer-grid {
    display: grid;
    gap: 20px;
}

.trailer-main {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-black);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-black);
    cursor: pointer;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.9);
    border: 2px solid rgba(201, 168, 76, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    transition: all 0.4s var(--ease-expo);
    z-index: 2;
    animation: playBtnPulse 3s ease-in-out infinite;
}

@keyframes playBtnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(201, 168, 76, 0); }
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--color-gold);
    animation: none;
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.4);
}

.video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.trailer-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.trailer-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

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

.trailer-thumb:hover {
    border-color: var(--color-gold);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    transition: background 0.3s ease;
}

.trailer-thumb:hover .thumb-overlay {
    background: rgba(0,0,0,0.2);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(201, 168, 76, 0);
    transition: border-color 0.4s ease;
}

.gallery-item:hover {
    border-color: rgba(201, 168, 76, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-expo), filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.8), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    border: 1px solid rgba(201, 168, 76, 0.5);
    padding: 10px 24px;
    backdrop-filter: blur(10px);
    background: rgba(6, 6, 6, 0.3);
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-gold);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.85);
    transition: transform 0.5s var(--ease-expo);
    border-radius: 4px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(201, 168, 76, 0.2);
}

/* --- Buy Section --- */
.section-buy {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 87, 30, 0.03) 0%, transparent 60%),
        linear-gradient(135deg, #080808 0%, #12090000 50%, #080808 100%);
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.section-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.section-buy::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
}

.buy-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.buy-book img {
    max-height: 550px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        0 0 120px rgba(201, 168, 76, 0.1),
        0 0 200px rgba(212, 87, 30, 0.04);
    transition: transform 0.6s var(--ease-expo), box-shadow 0.6s ease;
}

.buy-book img:hover {
    transform: rotate(-2deg) scale(1.03) translateY(-5px);
    box-shadow:
        0 40px 80px rgba(0,0,0,0.7),
        0 0 160px rgba(201, 168, 76, 0.15),
        0 0 250px rgba(212, 87, 30, 0.06);
}

.buy-info .section-label {
    text-align: left;
}

.buy-info .section-label::after {
    left: 0;
    transform: none;
}

.buy-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.buy-price {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
}

.buy-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.buy-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-buy {
    min-width: 220px;
    justify-content: center;
    flex: 1;
    max-width: 280px;
    font-size: 0.95rem;
}

.btn-buy.btn-primary,
.btn-buy.btn-secondary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg);
    border: none;
}

.btn-buy.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-buy.btn-secondary:hover::before {
    opacity: 1;
}

.btn-buy.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.4), 0 0 80px rgba(201, 168, 76, 0.15);
}

.btn-buy.btn-secondary span,
.btn-buy.btn-secondary svg {
    position: relative;
    z-index: 1;
}

.btn-icon {
    display: flex;
    align-items: center;
}

/* --- Footer --- */
.footer {
    background: var(--color-black);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--color-gold);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 10px;
    display: block;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    display: none;
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-gold);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-editorial a {
    color: var(--color-gold);
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger delay for gallery items */
.gallery-grid .gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-grid .gallery-item:nth-child(2) { transition-delay: 0.08s; }
.gallery-grid .gallery-item:nth-child(3) { transition-delay: 0.16s; }
.gallery-grid .gallery-item:nth-child(4) { transition-delay: 0.24s; }
.gallery-grid .gallery-item:nth-child(5) { transition-delay: 0.32s; }
.gallery-grid .gallery-item:nth-child(6) { transition-delay: 0.4s; }
.gallery-grid .gallery-item:nth-child(7) { transition-delay: 0.48s; }
.gallery-grid .gallery-item:nth-child(8) { transition-delay: 0.56s; }

/* Stagger for trailer thumbs */
.trailer-thumbs .trailer-thumb:nth-child(1) { transition-delay: 0.1s; }
.trailer-thumbs .trailer-thumb:nth-child(2) { transition-delay: 0.2s; }
.trailer-thumbs .trailer-thumb:nth-child(3) { transition-delay: 0.3s; }
.trailer-thumbs .trailer-thumb:nth-child(4) { transition-delay: 0.4s; }

/* Book detail items stagger */
.book-details .detail-item {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s var(--ease-expo) forwards;
}

.book-details .detail-item:nth-child(1) { animation-delay: 0.2s; }
.book-details .detail-item:nth-child(2) { animation-delay: 0.35s; }
.book-details .detail-item:nth-child(3) { animation-delay: 0.5s; }
.book-details .detail-item:nth-child(4) { animation-delay: 0.65s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    #navbar {
        height: 120px;
    }

    .nav-logo-img {
        height: 100px;
    }

    .nav-container {
        gap: 30px;
    }

    .nav-menu {
        gap: 25px;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 2;
    }

    .hero-book {
        order: 1;
    }

    .hero-book-img {
        max-height: 50vh;
        transform: none;
    }

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

    .book-showcase {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-img {
        height: 450px;
    }

    .buy-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .buy-info .section-label,
    .buy-info .section-title {
        text-align: center;
    }

    .buy-info .section-label::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .buy-buttons {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

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

@media (max-width: 768px) {
    #navbar {
        height: 80px;
    }

    #navbar.scrolled {
        height: 60px;
    }

    .nav-container {
        justify-content: space-between;
        gap: 0;
        padding: 0 20px;
    }

    .nav-logo-img {
        height: 70px;
    }

    #navbar.scrolled .nav-logo-img {
        height: 50px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

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

    .hero-book-img {
        max-height: 40vh;
    }

    .strip-item {
        width: 200px;
        height: 250px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
    }

    .gallery-item-tall {
        grid-row: span 1;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .buy-price {
        font-size: 2rem;
    }

    .btn-buy {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .buy-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .buy-buttons {
        flex-direction: column;
    }

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