:root {
    /* 2026 Nature Distilled Dark Cinematic Aesthetic */
    --c-bg: #151513;
    /* Deep soil/charcoal */
    --c-bg-light: #1F1E1B;
    --c-text-main: #EAE6D8;
    /* Warmer off-white, paper-like */
    --c-text-muted: #9E998B;
    /* Earthier gray */
    --c-accent: #D4A373;
    /* Warm terracotta/clay gold */
    --c-border: rgba(234, 230, 216, 0.08);

    /* Typography */
    --f-serif: 'Playfair Display', serif;
    --f-sans: 'Inter', sans-serif;
    --f-handwriting: 'Great Vibes', cursive;
    /* Elegant Script trend */

    /* Spacing & Sizes */
    --container-w: 1400px;
    --section-py: clamp(100px, 15vh, 200px);

    /* Transitions */
    --t-fast: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --t-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --t-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Variables - Nature Distilled */
[data-theme="light"] {
    --c-bg: #F4F1EA;
    /* Soft paper/clay base */
    --c-bg-light: #FFFFFF;
    --c-text-main: #2D2A26;
    /* Deep charcoal instead of harsh black */
    --c-text-muted: #7A756B;
    --c-accent: #B07D46;
    /* Natural wood tone */
    --c-border: rgba(45, 42, 38, 0.08);
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--f-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--t-smooth), color var(--t-smooth);
}

body.loading {
    overflow: hidden;
}

::selection {
    background-color: var(--c-accent);
    color: var(--c-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 5%;
}

/* Common Image Filter */
.cinematic-filter {
    filter: brightness(0.85) contrast(1.1) grayscale(10%);
}

[data-theme="light"] .cinematic-filter {
    filter: brightness(0.95) contrast(1.05) grayscale(0%);
}

/* === CUSTOM CURSOR === */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--c-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(197, 168, 128, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, transform 0.1s linear, background-color 0.3s;
}

/* Hover States for Cursor */
body.hovering .cursor {
    width: 0px;
    height: 0px;
}

body.hovering .cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 168, 128, 0.1);
    border-color: var(--c-accent);
    backdrop-filter: blur(2px);
}

@media (max-width: 1024px) {

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* === PRELOADER === */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--c-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--t-slow), opacity var(--t-smooth);
}

.preloader.hidden {
    transform: translateY(-100%);
    pointer-events: none;
    opacity: 0;
}

.preloader-text {
    font-family: var(--f-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--c-text-main);
    opacity: 0;
    animation: init-pulse 2s ease forwards;
}

@keyframes init-pulse {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px);
    }

    50% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(5px);
    }
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: padding var(--t-fast), background var(--t-fast), backdrop-filter var(--t-fast);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(7, 7, 9, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--c-border);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(250, 250, 247, 0.9);
}

.logo {
    font-family: var(--f-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform var(--t-fast);
    filter: invert(1);
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

[data-theme="light"] .nav-logo-img {
    filter: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: var(--c-text-muted);
    transition: color var(--t-fast);
}

.nav-links a:hover {
    color: var(--c-text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--c-accent);
    transition: width var(--t-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--c-text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--t-fast);
    padding: 5px;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle .icon-light {
    display: none;
}

.theme-toggle .icon-dark {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-light {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-dark {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 1px;
    background-color: var(--c-text-main);
    transition: var(--t-fast);
}

/* === FULLSCREEN HERO (index.html) === */
.hero-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fs-bg {
    position: absolute;
    inset: -10%;
    /* margin for parallax */
    z-index: 1;
}

.hero-fs-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1) grayscale(10%);
    /* slightly darker for text contrast */
    transition: filter var(--t-smooth), transform 0.1s linear;
}

/* Dual video switching */
.mobile-video {
    display: none;
}

.desktop-video {
    display: block;
}

[data-theme="light"] .hero-fs-bg video {
    filter: brightness(0.9) contrast(1.05) grayscale(0%);
}

.hero-fs-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 30%, rgba(7, 7, 9, 0.8) 100%);
}

[data-theme="light"] .hero-fs-overlay {
    background: rgba(250, 250, 247, 0.75);
}

.hero-fs-content {
    position: relative;
    z-index: 3;
    top: 10%;
    /* adjust height so it doesn't cover face */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.hero-fs-title {
    font-family: var(--f-serif);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    /* Reduced from giant sizes */
    line-height: 0.9;
    font-weight: 400;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform var(--t-slow);
}

[data-theme="light"] .hero-fs-title {
    color: var(--c-text-main);
    text-shadow: 0 4px 30px rgba(255, 255, 255, 0.8);
}

body:not(.loading) .hero-fs-title {
    transform: translateY(0);
}

.hero-fs-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #ddd;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-fs-subtitle {
    color: var(--c-text-muted);
    text-shadow: none;
}

.floating-phrases {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.floating-phrase {
    position: absolute;
    font-family: var(--f-serif);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-style: italic;
    color: var(--c-accent);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    opacity: 0;
    max-width: 600px;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: opacity 0.5s ease-in-out, clip-path 3.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(0);
}

.scribble-text {
    font-family: var(--f-handwriting) !important;
    font-size: clamp(2rem, 3.5vw, 3rem) !important;
    font-weight: 400;
    letter-spacing: 1px;
    font-style: normal;
    color: var(--c-accent);
    transform: rotate(-3deg) !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.scribble-text.active {
    transform: rotate(-3deg) !important;
}

[data-theme="light"] .floating-phrase {
    text-shadow: none;
}

.floating-phrase.active {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
}

/* Positions for phrases */
.pos-1 {
    top: 30%;
    left: 10%;
    text-align: left;
}

.pos-2 {
    top: 60%;
    right: 10%;
    text-align: right;
}

.pos-3 {
    bottom: 20%;
    left: 15%;
    text-align: left;
}

.pos-4 {
    top: 20%;
    right: 15%;
    text-align: right;
}

.hero-fs-cta {
    margin-top: auto;
    margin-bottom: 10%;
    /* bottom spacing */
    z-index: 5;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--c-accent);
    color: #fff;
    background: rgba(197, 168, 128, 0.1);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--t-fast);
}

[data-theme="light"] .btn-primary {
    color: var(--c-text-main);
    background: rgba(166, 124, 65, 0.1);
}

.btn-primary:hover {
    background: var(--c-accent);
    color: var(--c-bg);
}

/* === HERO SECTION (Original - Used in inner pages) === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(197, 168, 128, 0.05) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 50%;
}

.reveal-text {
    overflow: hidden;
}

.hero-title {
    font-family: var(--f-serif);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 400;
    margin-bottom: 30px;
    transform: translateY(100%);
    transition: transform var(--t-slow);
}

body:not(.loading) .hero-title {
    transform: translateY(0);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--c-text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform var(--t-slow) 0.2s;
}

body:not(.loading) .hero-subtitle {
    transform: translateY(0);
}

/* Rotating Hero Phrases */
.hero-phrases {
    margin-top: 50px;
    position: relative;
    height: 80px;
}

.phrase {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--f-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--c-accent);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    max-width: 90%;
}

.phrase.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-image-wrapper {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 70vh;
    overflow: hidden;
    z-index: 2;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

body:not(.loading) .hero-image-wrapper {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image {
    width: 100%;
    height: 120%;
    /* For parallax */
    object-fit: cover;
    object-position: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 5%;
    left: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 3;
    opacity: 0;
    transition: opacity var(--t-slow) 1s;
}

body:not(.loading) .scroll-indicator {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--c-text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.line-down {
    width: 1px;
    height: 60px;
    background-color: var(--c-border);
    position: relative;
    overflow: hidden;
}

.line-down::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--c-accent);
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* === ABOUT SECTION === */
.about {
    padding: var(--section-py) 0;
    background-color: var(--c-bg-light);
    transition: background-color var(--t-smooth);
}

.about-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    gap: 100px;
    position: relative;
}

.about-left {
    flex: 1;
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 10vh;
}

.sticky-text {
    position: sticky;
    top: 30vh;
}

.about .section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    color: var(--c-text-main);
}

.about-portrait {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.inline-portrait {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.about-right p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--c-text-muted);
}

.bio-subtitle {
    font-family: var(--f-serif);
    font-size: 1.6rem;
    color: var(--c-text-main);
    margin-bottom: 10px;
}

.about-right blockquote {
    font-family: var(--f-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: var(--c-accent);
    border-left: 2px solid var(--c-accent);
    padding-left: 30px;
    font-style: italic;
    margin-top: 20px;
}

/* TL;DR Summary Block */
.tldr-box {
    background: var(--c-bg);
    /* Contrast with the bg-light of the section */
    border-left: 3px solid var(--c-accent);
    padding: 20px;
    margin: 20px 0 40px 0;
    border-radius: 0 10px 10px 0;
}

.tldr-label {
    font-family: var(--f-serif);
    font-weight: bold;
    color: var(--c-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: block;
}

/* === BOOKS SECTION === */
.books {
    padding: var(--section-py) 0;
}

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

.section-header.text-left {
    text-align: left;
}

.section-header .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--f-serif);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--c-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.books-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    /* Bento Grid spacing */
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    background: var(--c-bg-light);
    /* Bento Card background */
    border: 1px solid var(--c-border);
    /* Bento Card border */
    border-radius: 20px;
    /* Bento Soft Edges (Calm UX) */
    padding: 40px;
    transition: transform var(--t-fast), border-color var(--t-fast);
}

.book-item:hover {
    border-color: var(--c-accent);
}

.book-visual {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    overflow: visible;
    /* Let 3D pop out */
    background: transparent;
    perspective: 1200px;
    /* 3D Immersive Showcase constraint */
}

.book-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Base tactile shadow */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease, filter var(--t-smooth);
}

.book-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Make overlay non-interfering */
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--t-fast);
}

.book-overlay span {
    font-family: var(--f-serif);
    font-size: 1.5rem;
    color: #fff;
    font-style: italic;
    transform: translateY(20px);
    transition: transform var(--t-fast);
}

.book-visual:hover img {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.05);
    /* Immersive 3D Tilt */
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5);
    /* 3D deep offset shadow */
}

.book-visual:hover .book-overlay {
    opacity: 1;
}

.book-visual:hover .book-overlay span {
    transform: translateY(0);
}

.book-year {
    color: var(--c-accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.book-title {
    font-family: var(--f-serif);
    font-size: 2.5rem;
    margin: 10px 0;
}

.book-desc {
    color: var(--c-text-muted);
    font-size: 1.1rem;
}

.mt-20 {
    margin-top: 20px;
}

.purchase-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-purchase {
    border: 1px solid var(--c-text-main);
    padding: 10px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--t-fast);
    color: var(--c-text-main);
}

.btn-purchase:hover {
    background-color: var(--c-text-main);
    color: var(--c-bg);
}

/* === CHARACTERS SECTION === */
.characters {
    padding: var(--section-py) 0;
    background-color: var(--c-bg-light);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.character-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 0;
    transition: transform var(--t-fast), border-color var(--t-fast);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.char-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--c-border);
}

.char-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform var(--t-smooth);
    filter: brightness(0.9) contrast(1.1) grayscale(20%);
}

[data-theme="light"] .char-image-wrapper img {
    filter: brightness(0.95) contrast(1.05) grayscale(0%);
}

.character-card:hover .char-image-wrapper img {
    transform: scale(1.05);
}

.char-content {
    padding: 40px;
    flex: 1;
}

.char-name {
    font-family: var(--f-serif);
    font-size: 2.2rem;
    color: var(--c-text-main);
    margin-bottom: 5px;
}

.char-role {
    color: var(--c-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.char-desc {
    color: var(--c-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* === POETRY SECTION === */
.poetry {
    position: relative;
    padding: var(--section-py) 0;
    overflow: hidden;
}

.poetry-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.2) grayscale(80%);
    z-index: 0;
}

[data-theme="light"] .poetry-bg {
    filter: brightness(0.9) grayscale(20%);
}

.poetry .container {
    position: relative;
    z-index: 1;
}

.poetry-header {
    margin-bottom: 60px;
    text-align: center;
}

.poetry-header .section-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-family: var(--f-serif);
    color: var(--c-text-main);
    font-style: italic;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .poetry-header .section-title {
    color: var(--c-text-main);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.5);
}

.poetry-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .phases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .phases-grid {
        grid-template-columns: 1fr;
    }

    .hero-fs-bg {
        inset: 0;
        /* No margin for mobile */
    }

    .desktop-video {
        display: none !important;
    }

    .mobile-video {
        display: block !important;
        object-position: center center;
    }
}

.phases-grid .poem-card {
    padding: 30px 20px;
    /* smaller padding for the 4 boxes */
}

.poem-card {
    background: rgba(7, 7, 9, 0.4);
    border: 1px solid var(--c-border);
    padding: 50px 40px;
    backdrop-filter: blur(8px);
    transition: transform var(--t-fast), background var(--t-fast);
}

[data-theme="light"] .poem-card {
    background: rgba(255, 255, 255, 0.5);
}

.poem-card:hover {
    transform: translateY(-10px);
    border-color: var(--c-accent);
}

.poem-card p {
    font-family: var(--f-serif);
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--c-text-main);
}

.poem-meta {
    display: block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-accent);
}

/* === CONTACT SECTION === */
.contact {
    padding: var(--section-py) 0;
}

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

.huge-title {
    font-family: var(--f-serif);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 30px;
}

.magnetic-link {
    display: inline-block;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--c-accent);
    margin-bottom: 30px;
    position: relative;
}

.magnetic-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--c-accent);
    transition: width var(--t-fast);
}

.magnetic-link:hover::after {
    width: 100%;
}

.contact-desc {
    color: var(--c-text-muted);
    font-size: 1.1rem;
    max-width: 400px;
}

.elegant-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--c-border);
    padding: 15px 0;
    font-family: var(--f-sans);
    font-size: 1.1rem;
    color: var(--c-text-main);
    transition: border-color var(--t-fast);
}

.input-group textarea {
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--c-accent);
}

.input-group label {
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--c-text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all var(--t-fast);
}

.input-group input:not(:placeholder-shown)+label,
.input-group input:focus+label,
.input-group textarea:not(:placeholder-shown)+label,
.input-group textarea:focus+label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--c-accent);
}

.submit-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--c-border);
    padding: 18px 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: var(--c-text-main);
    font-family: var(--f-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.submit-btn span {
    position: relative;
    z-index: 2;
}

.submit-btn .btn-bg {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-accent);
    z-index: 1;
    transition: top var(--t-fast);
}

.submit-btn:hover {
    color: var(--c-bg);
    border-color: var(--c-accent);
}

.submit-btn:hover .btn-bg {
    top: 0;
}

/* === FOOTER === */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--c-border);
    background-color: var(--c-bg);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--f-serif);
    font-size: 2rem;
    color: var(--c-text-main);
}

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

.footer-social a {
    color: var(--c-text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color var(--t-fast);
}

.footer-social a:hover {
    color: var(--c-accent);
}

.books-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
}

.book-item {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 30px;
    max-width: 400px;
    text-align: center;
    transition: transform var(--t-fast);
}

.book-item:hover {
    transform: translateY(-10px);
}

.book-visual {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
    /* Clean rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Elegant profound shadow */
}

.book-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--t-smooth);
    display: block;
    /* Remove bottom space */
}

.book-item:hover .book-visual img {
    transform: scale(1.03);
    /* Subtle scale */
}

.book-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--t-fast);
    z-index: 4;
}

.book-visual:hover .book-overlay {
    opacity: 1;
}

.book-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--t-fast), opacity var(--t-fast);
}

.book-3d:hover .book-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.book-overlay-content .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.book-overlay-content .text {
    font-weight: bold;
}

.book-title {
    font-family: var(--f-serif);
    font-size: 1.8rem;
    margin-top: 20px;
    color: var(--c-text-main);
}

.book-author {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-top: 5px;
}

/* === NEWSLETTER SECTION === */
.newsletter-section {
    padding: var(--section-py) 0;
    background-color: var(--c-bg-light);
    border-top: 1px solid var(--c-border);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    position: relative;
}

.newsletter-form .input-group {
    flex: 1;
}

.newsletter-form input {
    width: 100%;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 15px 20px;
    font-family: var(--f-sans);
    font-size: 1rem;
    color: var(--c-text-main);
    border-radius: 4px;
    transition: border-color var(--t-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--c-accent);
}

.newsletter-form button {
    background: transparent;
    border: 1px solid var(--c-text-main);
    color: var(--c-text-main);
    padding: 0 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.newsletter-form button:hover {
    background: var(--c-text-main);
    color: var(--c-bg);
}

/* === FOOTER === */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--c-border);
    background-color: var(--c-bg);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--f-serif);
    font-size: 2rem;
    color: var(--c-text-main);
}

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

.footer-social a {
    color: var(--c-text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
    transition: color var(--t-fast), transform var(--t-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-social a i {
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--c-accent);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--c-text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-link {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity var(--t-fast), color var(--t-fast);
}

.footer-link:hover {
    opacity: 1;
    color: var(--c-accent);
}

.back-to-top {
    color: var(--c-accent);
    transition: transform var(--t-fast);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* === ANIMATION CLASSES === */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--t-smooth), transform var(--t-smooth);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        gap: 50px;
    }

    .sticky-text {
        position: relative;
        top: 0;
    }

    .about-right {
        padding-top: 0;
    }

    .hero-image-wrapper {
        width: 60%;
        right: 0;
        top: auto;
        bottom: 0;
        height: 60vh;
    }

    .hero-content {
        width: 100%;
        z-index: 4;
        margin-top: -10vh;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--c-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--t-smooth);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-actions {
        z-index: 1001;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

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

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--t-fast), background-color var(--t-fast);
    text-decoration: none;
}

[data-theme="light"] .whatsapp-float {
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1) translateY(-5px);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    /* === CONTACT PAGE IMAGE === */
    .contact-image-wrapper {
        margin-top: 30px;
        margin-bottom: 20px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        max-width: 450px;
    }

    [data-theme="light"] .contact-image-wrapper {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .contact-visual {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        transition: transform var(--t-slow);
    }

    .contact-image-wrapper:hover .contact-visual {
        transform: scale(1.03);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* === PRIVACY CONSENT BANNER === */
.privacy-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(31, 30, 27, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--c-border);
    border-radius: 15px;
    padding: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .privacy-banner {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.privacy-banner.active {
    bottom: 30px;
}

.privacy-text {
    font-size: 0.95rem;
    color: var(--c-text-main);
    line-height: 1.5;
}

.privacy-text a {
    color: var(--c-accent);
    text-decoration: underline;
}

.privacy-actions {
    display: flex;
    justify-content: flex-end;
}

.privacy-accept-btn {
    background: var(--c-accent);
    color: #FFF;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-family: var(--f-sans);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast);
}

.privacy-accept-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .privacy-banner {
        width: calc(100% - 40px);
        padding: 20px;
        bottom: -150px;
    }

    .privacy-banner.active {
        bottom: 20px;
    }
}

/* === AUTOGRAPHED BOOK POPUP (MODAL VERSION) === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

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

.book-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 480px;
    background: rgba(15, 15, 18, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    z-index: 2000;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.book-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.book-popup .popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.4rem;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: var(--t-fast);
}

.book-popup .popup-close:hover {
    color: var(--c-accent);
}

.book-popup .popup-header {
    text-align: center;
}

.book-popup .popup-header h4 {
    font-family: var(--f-serif);
    font-size: 1.8rem;
    color: var(--c-accent);
    margin-bottom: 10px;
}

.book-popup .popup-header p {
    font-size: 1rem;
    color: var(--c-text-muted);
}

.book-popup .book-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.book-popup .book-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--t-fast);
}

.book-popup .book-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.book-popup .book-thumb {
    width: 100%;
    max-width: 120px;
    border-radius: 6px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--t-fast);
}

.book-popup .book-option:hover .book-thumb {
    transform: translateY(-5px) scale(1.05);
}

.book-popup .book-title {
    font-family: var(--f-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-main);
    min-height: 2.4em;
    display: flex;
    align-items: center;
}

.book-popup .btn-popup {
    background: var(--c-accent);
    color: #FFF;
    text-decoration: none;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    transition: all var(--t-fast);
}

.book-popup .btn-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 153, 102, 0.3);
}

/* === PERSISTENT AUTOGRAPHED SECTION === */
.autograph-section {
    padding: 100px 0;
    background: rgba(181, 153, 102, 0.03);
    /* Very subtle gold tint */
    border-top: 1px solid rgba(181, 153, 102, 0.1);
    border-bottom: 1px solid rgba(181, 153, 102, 0.1);
}

.autograph-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.autograph-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(181, 153, 102, 0.2);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all var(--t-normal);
}

.autograph-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--c-accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.autograph-img {
    width: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.autograph-card:hover .autograph-img {
    transform: scale(1.05) rotate(2deg);
}

.autograph-info {
    flex-grow: 1;
}

.autograph-info h3 {
    font-family: var(--f-serif);
    font-size: 1.6rem;
    color: var(--c-text-main);
    margin-bottom: 10px;
}

.autograph-info p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-autograph {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c-accent);
    color: #FFF;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--t-fast);
}

.btn-autograph i {
    font-size: 1.1rem;
}

.btn-autograph:hover {
    background: var(--c-text-main);
    color: var(--c-bg-dark);
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .autograph-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .autograph-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .autograph-img {
        width: 120px;
    }
}

@media (max-width: 768px) {
    .book-popup {
        width: calc(100% - 40px);
        padding: 30px 20px;
        gap: 20px;
    }

    .book-popup .book-selection-grid {
        gap: 15px;
    }

    .book-popup .book-option {
        padding: 15px 10px;
    }

    .book-popup .popup-header h4 {
        font-size: 1.5rem;
    }
}