/* ========================================
   ANGEL DENNIS - ADVANCED STYLES & ANIMATIONS
   ======================================== */

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-gold: #d4af37;
    --accent-rose: #e8b4bc;
    --accent-sage: #9db5a5;
    --text-primary: #f5f5f5;
    --text-secondary: #c0c0c0;
    --border-subtle: rgba(212, 175, 55, 0.2);
    --section-gap: 6rem;
    --section-gap-small: 3rem;
    --card-gap: 4rem;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   STORYBOOK BANNER
   ======================================== */

.storybook-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0c0c12 0%, #141622 40%, #0c0c12 100%);
    padding-bottom: 2rem;
}

#hero {
    scroll-margin-top: 110px;
}

.banner-illustration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rainbow-trail {
    position: absolute;
    left: -10%;
    top: 20%;
    width: 120%;
    height: 50%;
    background: conic-gradient(from 180deg, #d4af37, #e8b4bc, #9db5a5, #d4af37);
    filter: blur(90px) opacity(0.35);
    transform: rotate(-6deg);
}

.lantern-creature {
    position: absolute;
    left: 8%;
    top: 38%;
    width: 140px;
    height: 140px;
    border-radius: 60% 70% 55% 50%;
    background: radial-gradient(circle at 40% 40%, rgba(232, 180, 188, 0.9), rgba(212, 175, 55, 0.25));
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.forest-layer {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 45%;
    background: linear-gradient(180deg, rgba(20, 24, 30, 0.6) 0%, rgba(10, 10, 12, 0.9) 100%);
    clip-path: polygon(0 60%, 10% 55%, 20% 65%, 30% 58%, 40% 68%, 50% 55%, 60% 70%, 70% 60%, 80% 68%, 90% 58%, 100% 65%, 100% 100%, 0 100%);
    filter: blur(10px);
}

.forest-layer.mid {
    filter: blur(6px);
    opacity: 0.7;
}

.forest-layer.front {
    filter: blur(3px);
    opacity: 0.9;
}

.floating-stars {
    position: absolute;
    inset: 0;
}

.floating-stars span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fff, rgba(212, 175, 55, 0.6));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    animation: starFloat 8s ease-in-out infinite;
}

.floating-stars span:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.floating-stars span:nth-child(2) { top: 30%; left: 35%; animation-delay: 1s; }
.floating-stars span:nth-child(3) { top: 18%; left: 55%; animation-delay: 2s; }
.floating-stars span:nth-child(4) { top: 26%; left: 72%; animation-delay: 3s; }
.floating-stars span:nth-child(5) { top: 14%; left: 85%; animation-delay: 1.5s; }
.floating-stars span:nth-child(6) { top: 40%; left: 22%; animation-delay: 2.5s; }
.floating-stars span:nth-child(7) { top: 42%; left: 48%; animation-delay: 3.5s; }
.floating-stars span:nth-child(8) { top: 35%; left: 68%; animation-delay: 4s; }
.floating-stars span:nth-child(9) { top: 48%; left: 80%; animation-delay: 4.5s; }
.floating-stars span:nth-child(10) { top: 22%; left: 92%; animation-delay: 5s; }

@keyframes starFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}


.hand-drawn-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.8) 20%, rgba(232, 180, 188, 0.8) 40%, rgba(157, 181, 165, 0.8) 60%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.hand-drawn-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    animation: drawLine 5s ease forwards;
}

@keyframes drawLine {
    to {
        left: 110%;
    }
}


/* ========================================
   ANIMATED BACKGROUND PARTICLES
   ======================================== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 15s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0);
    }
    10% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-100vh) translateX(50px) scale(1);
    }
    90% {
        opacity: 0.4;
    }
}

/* Generate multiple particles with different delays */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; background: var(--accent-rose); }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; background: var(--accent-sage); }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; background: var(--accent-rose); }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; background: var(--accent-sage); }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; background: var(--accent-rose); }

/* ========================================
   NAVIGATION WITH ADVANCED EFFECTS
   ======================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0);
}

nav.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.15);
    background: rgba(10, 10, 10, 0.99);
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-gold) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

nav.scrolled::before {
    opacity: 0.5;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0);
}

nav,
.storybook-banner,
main,
footer {
    position: relative;
    z-index: 2;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-rose));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    color: var(--accent-rose);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-rose));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    transform: translateY(-50%) scale(1);
}

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

.nav-links a[aria-current="page"] {
    color: var(--accent-gold);
}

.nav-links a[aria-current="page"]::after {
    width: 100%;
}

.logo {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: inkReveal 4s ease forwards;
}

@keyframes inkReveal {
    to { transform: translateX(100%); }
}
.ambient-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ambient-toggle .toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.ambient-toggle .toggle-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.small-toggle .toggle-slider {
    width: 48px;
    height: 24px;
}

.small-toggle .toggle-slider::after {
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
}

.small-toggle input:checked + .toggle-slider::after {
    transform: translateX(22px);
}

/* ========================================
   HERO SECTION WITH ADVANCED ANIMATIONS
   ======================================== */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Animated gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(232, 180, 188, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(157, 181, 165, 0.05) 0%, transparent 50%);
    animation: heroGlow 12s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: rotate(120deg) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: rotate(240deg) scale(0.9);
        opacity: 0.6;
    }
}

/* Floating geometric shapes */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 3px;
    animation: textReveal 1.5s ease-out 0.3s backwards;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 10px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 3px;
    }
}

.hero h1 strong {
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

@keyframes shimmer {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeIn 1.5s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   ADVANCED BUTTON EFFECTS
   ======================================== */

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--accent-gold);
    text-decoration: none;
    border: 2px solid var(--accent-gold);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.5s ease-out 0.9s backwards;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transition: left 0.5s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    width: 300%;
    height: 300%;
}

.cta-button:hover {
    color: var(--primary-bg);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.cta-button:focus-visible,
.book-link:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.15);
}

.cta-button.ghost {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.cta-button.ghost:hover {
    color: var(--primary-bg);
    border-color: var(--accent-gold);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding: 0 5%;
}

.hero-profile {
    display: grid;
    gap: 1rem;
    justify-items: start;
    position: relative;
    z-index: 2;
}

.hero-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-photo-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-photo-glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 40% 30%, rgba(212, 175, 55, 0.2), transparent 60%), radial-gradient(circle at 70% 70%, rgba(232, 180, 188, 0.18), transparent 60%);
    filter: blur(30px);
    z-index: -1;
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-photo-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-photo-sparkles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fff, rgba(212, 175, 55, 0.6));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    animation: sparkle-pop 2.5s ease-in-out infinite;
}

.hero-photo-sparkles span:nth-child(1) { top: 8%; left: 12%; animation-delay: 0s; }
.hero-photo-sparkles span:nth-child(2) { top: 16%; right: 10%; animation-delay: 0.4s; }
.hero-photo-sparkles span:nth-child(3) { bottom: 14%; left: 18%; animation-delay: 0.8s; }
.hero-photo-sparkles span:nth-child(4) { bottom: 10%; right: 14%; animation-delay: 1.2s; }
.hero-photo-sparkles span:nth-child(5) { top: 48%; left: 50%; animation-delay: 1.6s; }

.hero-tagline {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 420px;
}

.hero-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

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

.hero-glow {
    position: absolute;
    right: 5%;
    bottom: 10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    filter: blur(50px);
    animation: glowPulse 10s ease-in-out infinite;
}

.hero-sparkles {
    position: absolute;
    inset: 0;
}

.hero-sparkles span {
    position: absolute;
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, #fff, rgba(232, 180, 188, 0.6));
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    animation: starFloat 7s ease-in-out infinite;
}

.hero-sparkles span:nth-child(1) { top: 18%; left: 60%; animation-delay: 0s; }
.hero-sparkles span:nth-child(2) { top: 32%; left: 78%; animation-delay: 1s; }
.hero-sparkles span:nth-child(3) { top: 44%; left: 68%; animation-delay: 2s; }
.hero-sparkles span:nth-child(4) { top: 52%; left: 82%; animation-delay: 3s; }
.hero-sparkles span:nth-child(5) { top: 24%; left: 88%; animation-delay: 4s; }

/* ========================================
   SECTION STYLES WITH ANIMATIONS
   ======================================== */

.section {
    padding: var(--section-gap) 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInScale 1s ease-out;
    position: relative;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sticky-note-wrap {
    position: absolute;
    right: -80px;
    top: 0;
    width: 180px;
    pointer-events: none;
}

.sticky-note {
    width: 100%;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
    opacity: 0;
    transform: translateY(20px) rotate(2deg);
    transition: all 0.9s ease;
}

.note-hand {
    position: absolute;
    bottom: -20px;
    right: -60px;
    width: 220px;
    opacity: 0;
    transform: translateX(80px) rotate(6deg);
    transition: all 1.6s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.sticky-note-wrap.animate .sticky-note {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.sticky-note-wrap.animate-hand .note-hand {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transform: translateX(-50%);
    animation: expandLine 1.5s ease-out;
}

.section-spaced {
    margin-top: var(--section-gap-small);
    margin-bottom: 2rem;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 60%;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   PAGE SYSTEM WITH TRANSITIONS
   ======================================== */

.page {
    display: none;
    min-height: 100vh;
    animation: pageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

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

main {
    transition: background 0.6s ease;
    background: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05), transparent 35%), radial-gradient(circle at 80% 60%, rgba(232, 180, 188, 0.04), transparent 40%);
}

body[data-active-page="wumble"] main {
    background: radial-gradient(circle at 20% 30%, rgba(232, 180, 188, 0.06), transparent 35%), radial-gradient(circle at 75% 70%, rgba(157, 181, 165, 0.06), transparent 40%);
}

body[data-active-page="selfcare"] main {
    background: radial-gradient(circle at 15% 40%, rgba(157, 181, 165, 0.07), transparent 45%), radial-gradient(circle at 85% 50%, rgba(232, 180, 188, 0.05), transparent 40%);
}

body[data-active-page="about"] main {
    background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.05), transparent 45%);
}

/* ========================================
   FEATURED BOOK LAYOUT WITH ADVANCED EFFECTS
   ======================================== */

.featured-book {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: var(--card-gap);
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-book:not(:first-of-type) {
    margin-top: var(--card-gap);
}

.featured-book.visible {
    opacity: 1;
    transform: translateY(0);
}

.featured-book:nth-child(even) {
    grid-template-columns: 1.5fr 1fr;
}

.featured-book:nth-child(even) .book-image-container {
    order: 2;
}

.book-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glowing border effect */
.book-image-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--accent-gold), 
        var(--accent-rose), 
        var(--accent-sage), 
        var(--accent-gold));
    background-size: 400% 400%;
    opacity: 0;
    border-radius: 4px;
    z-index: -1;
    transition: opacity 0.6s ease;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.book-image-container:hover::before {
    opacity: 0.8;
}

.book-image-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.3);
}

.book-cover {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.book-image-container:hover .book-cover {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.book-image-container::after {
    content: 'Discover the magic inside';
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    padding: 0.5rem 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 20px;
    opacity: 0;
    transition: all 0.4s ease;
}

.book-image-container:hover::after {
    opacity: 1;
    bottom: 14px;
}

.book-image-container:hover::before {
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.book-details {
    padding: 2rem 0;
}

.book-category {
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.book-category::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 8px;
    height: 2px;
    background: var(--accent-gold);
    transform: translateY(-50%);
}

.book-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
    position: relative;
}

.book-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.book-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0;
    margin: 0 0 2rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.book-meta li {
    position: relative;
    padding-left: 1.1rem;
}

.book-meta li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.book-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--accent-gold);
    text-decoration: none;
    border: 2px solid var(--accent-gold);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.book-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.book-link::after {
    content: '>';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.book-link:hover::before {
    width: 300%;
    height: 300%;
}

.book-link:hover {
    color: var(--primary-bg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
    padding-right: 3.5rem;
}

.book-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   GALLERY GRID WITH 3D EFFECTS
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: var(--card-gap);
    perspective: 1000px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 3/4;
    cursor: pointer;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 50%, 
        rgba(232, 180, 188, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

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

.gallery-item:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4);
    background-size: 115%;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: blur(2px);
}

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

.gallery-overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.image-guard {
    position: relative;
}

.image-guard .image-watermark {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='150'%3E%3Ctext x='0' y='65' fill='rgb(212,175,55)' fill-opacity='0.5' font-size='30' font-family='Cormorant Garamond, serif' transform='rotate(-20 0 65)'%3EAngel Dennis%3C/text%3E%3Ctext x='8' y='125' fill='rgb(212,175,55)' fill-opacity='0.5' font-size='26' font-family='Cormorant Garamond, serif' transform='rotate(-20 0 125)'%3EAngel Dennis%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 150px;
    mix-blend-mode: multiply;
    opacity: 0.9;
    pointer-events: none;
    z-index: 3;
}

.image-guard img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Staggered animation for gallery items */
.gallery-item:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s backwards; }
.gallery-item:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s backwards; }
.gallery-item:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s backwards; }
.gallery-item:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s backwards; }
.gallery-item:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.5s backwards; }
.gallery-item:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.6s backwards; }

/* ========================================
   ABOUT EXTRAS (SLIDER, POPUPS, CTA, SOUND)
   ======================================== */

.about-extras {
    margin-top: 4rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.about-extras.card + .about-extras.card {
    margin-top: 2rem;
}

.about-extras-header {
    margin-bottom: 1.5rem;
}

.extras-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.extras-subtitle {
    color: var(--text-secondary);
    line-height: 1.7;
}

.character-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.character-track {
    overflow: hidden;
    position: relative;
    min-height: 320px;
}

.character-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.character-slide img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.character-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.character-copy h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.character-copy .fact {
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.character-copy .quote {
    color: var(--accent-gold);
    font-style: italic;
}

.slider-nav {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.slider-dots {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

/* Illustrated portrait and section breaks */
.about-illustrated {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.portrait-card {
    position: sticky;
    top: 140px;
}

.portrait-frame {
    position: relative;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08), transparent 60%), rgba(20, 20, 20, 0.5);
    animation: glowPulse 8s ease-in-out infinite;
}

.portrait-frame img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(1.05);
}

.portrait-sketch {
    position: absolute;
    inset: 8%;
    border: 1px dashed rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    pointer-events: none;
}

.portrait-sparkles {
    position: absolute;
    inset: 0;
}

.portrait-sparkles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fff, rgba(212, 175, 55, 0.5));
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    animation: sparkle-pop 2s ease-in-out infinite;
}

.portrait-sparkles span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.portrait-sparkles span:nth-child(2) { top: 20%; right: 14%; animation-delay: 0.4s; }
.portrait-sparkles span:nth-child(3) { bottom: 18%; left: 22%; animation-delay: 0.8s; }
.portrait-sparkles span:nth-child(4) { bottom: 10%; right: 18%; animation-delay: 1.2s; }

.portrait-note {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-copy {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.about-block {
    margin-bottom: 1.5rem;
}

.about-block:last-child {
    margin-bottom: 0;
}

.fade-section.visible,
.about-copy.visible {
    opacity: 1;
    transform: translateY(0);
}

.gold {
    color: var(--accent-gold);
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 15px 40px rgba(212, 175, 55, 0.18); }
    50% { box-shadow: 0 15px 48px rgba(232, 180, 188, 0.3); }
}

.behind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.behind-card {
    width: 100%;
    padding: 1.2rem 1.4rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.behind-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.behind-card .label {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.behind-card .cta {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    overflow-y: auto;
}

.popup-overlay.active {
    display: flex;
}

.popup-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    max-width: 720px;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-height: 85vh;
    overflow-y: auto;
}

.popup-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.popup-section {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.popup-section strong {
    color: var(--accent-gold);
}

.popup-sketch {
    margin-top: 1.2rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.popup-sketch img {
    width: 100%;
    display: block;
}

.freebie {
    display: grid;
    gap: 0.8rem;
}

.freebie-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: fit-content;
}

.freebie-button:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.sound-toggle .toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.toggle input {
    display: none;
}

.toggle-slider {
    width: 56px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.toggle input:checked + .toggle-slider {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.15);
}

.toggle input:checked + .toggle-slider::after {
    transform: translateX(24px);
}

.toggle-label {
    color: var(--text-secondary);
}

.easter-eggs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.egg {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.8s ease;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.egg.dragon {
    left: 10%;
    top: 58%;
    background: radial-gradient(circle at 30% 30%, rgba(232, 180, 188, 0.9), rgba(212, 175, 55, 0.7));
}

.egg.fish {
    right: 12%;
    bottom: 14%;
    background: radial-gradient(circle at 40% 60%, rgba(157, 181, 165, 0.9), rgba(232, 180, 188, 0.6));
}

.egg.teapot {
    right: 18%;
    top: 32%;
    background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.8), rgba(212, 175, 55, 0.7));
}

@keyframes sparkle-pop {
    0% { transform: scale(0.6) translateY(0); opacity: 0; }
    50% { transform: scale(1.4) translateY(-6px); opacity: 1; }
    100% { transform: scale(0.9) translateY(-10px); opacity: 0; }
}

.egg.active {
    opacity: 1;
    animation: sparkle-pop 1.4s ease forwards;
}

/* ========================================
   FOOTER WITH GRADIENT EFFECTS
   ======================================== */

.illustrated-footer {
    background: var(--secondary-bg);
    padding: 6rem 5% 3rem;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.illustrated-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-gold) 50%, 
        transparent 100%);
}

.illustrated-footer::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 60px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: -18px;
    opacity: 0;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

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

.footer-section a:hover::before {
    left: 0;
    opacity: 1;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 2px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.newsletter-form button {
    padding: 0.9rem 1.8rem;
    background: var(--accent-gold);
    color: var(--primary-bg);
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.newsletter-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-rose);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.newsletter-form button:hover::before {
    width: 300%;
    height: 300%;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.newsletter-form button span {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.newsletter-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.newsletter-feedback {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.newsletter-feedback.error {
    color: #ffb4b4;
}

.newsletter-feedback.success {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Illustrated footer scene */
.footer-illustration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.footer-illustration .meadow {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 45%;
    background: linear-gradient(180deg, rgba(157, 181, 165, 0.3), rgba(212, 175, 55, 0.05));
    clip-path: ellipse(70% 50% at 50% 100%);
    filter: blur(1px);
}

.footer-illustration .mountains {
    position: absolute;
    bottom: 25%;
    left: -5%;
    width: 110%;
    height: 30%;
    background: linear-gradient(180deg, rgba(20, 24, 30, 0.6), rgba(10, 10, 12, 0.9));
    clip-path: polygon(0 70%, 10% 50%, 25% 65%, 35% 52%, 50% 68%, 60% 50%, 75% 64%, 85% 48%, 100% 70%, 100% 100%, 0 100%);
    opacity: 0.7;
}

.footer-illustration .lanterns {
    position: absolute;
    bottom: 18%;
    left: 10%;
    width: 80%;
    height: 20%;
    background:
        radial-gradient(circle at 10% 50%, rgba(212, 175, 55, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 35% 60%, rgba(232, 180, 188, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 60% 55%, rgba(157, 181, 165, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 85% 50%, rgba(212, 175, 55, 0.6) 0%, transparent 40%);
    opacity: 0.9;
    filter: blur(1px);
}

.footer-illustration .creature-peek {
    position: absolute;
    bottom: 12%;
    right: 14%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 40% 40%, rgba(232, 180, 188, 0.85), rgba(212, 175, 55, 0.3));
    border-radius: 45% 55% 50% 50%;
    box-shadow: 0 0 20px rgba(232, 180, 188, 0.4);
    filter: blur(0.3px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.connect-links {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links a:hover {
    border-color: var(--accent-gold);
    color: var(--primary-bg);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.social-links a span {
    position: relative;
    z-index: 1;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   WELCOME POP-OUT LANDING MODAL
   ======================================== */

.welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.welcome-modal[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.welcome-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: linear-gradient(135deg, #0c0c12 0%, #141622 50%, #0c0c12 100%);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 3rem;
    overflow-y: auto;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(212, 175, 55, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.welcome-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.welcome-close:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
    transform: rotate(90deg);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.welcome-inner {
    text-align: center;
    position: relative;
}

.welcome-signature {
    font-family: 'Allura', cursive;
    font-size: 4.4rem;
    font-weight: 400;
    background: linear-gradient(120deg, #f4d376, #ffffff, #f4d376);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.2rem 0 1.1rem;
    animation: titleFadeIn 1s ease-out 0.1s backwards, signatureShimmer 5s ease-in-out infinite;
}

@keyframes signatureShimmer {
    0% {
        background-position: 0% 50%;
        opacity: 0.7;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.7;
    }
}

.welcome-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: titleFadeIn 1s ease-out 0.3s backwards;
}

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

.welcome-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: titleFadeIn 1s ease-out 0.5s backwards;
}

/* Stationery Scene */
.stationery-scene {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 280px;
    margin: 1.5rem auto 2rem;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03), transparent 70%);
    border-radius: 8px;
}

.stationery-item {
    position: absolute;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIn 0.8s ease-out backwards;
}

.stationery-item:nth-child(1) { animation-delay: 0.6s; }
.stationery-item:nth-child(2) { animation-delay: 0.7s; }
.stationery-item:nth-child(3) { animation-delay: 0.8s; }
.stationery-item:nth-child(4) { animation-delay: 0.9s; }
.stationery-item:nth-child(5) { animation-delay: 1s; }
.stationery-item:nth-child(6) { animation-delay: 1.1s; }
.stationery-item:nth-child(7) { animation-delay: 1.2s; }

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stationery-item img {
    width: auto;
    height: auto;
    max-width: 95px;
    max-height: 95px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.stationery-item:hover {
    transform: translateY(-10px) rotate(3deg) scale(1.1);
    z-index: 10;
}

.stationery-item:hover img {
    filter: drop-shadow(0 15px 30px rgba(212, 175, 55, 0.4));
}

.sticky-notes img { max-width: 100px; }
.book-item img { max-width: 80px; }
.pencil-item img { max-width: 110px; }
.paper-stack img { max-width: 85px; }
.single-paper img { max-width: 90px; }
.pen-item img { max-width: 95px; }
.airplane-item {
    animation: paperPlane 3s ease-in-out infinite;
}

.airplane-item img {
    max-width: 95px;
    transform-origin: center;
}

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

/* Small popup for book preview */
.book-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 11000;
}

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

.book-popup-card {
    position: relative;
    background: linear-gradient(145deg, #101018, #0a0a0f);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 3.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 175, 55, 0.12);
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.book-popup-card img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.book-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.book-popup-close:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
    transform: rotate(90deg);
}

.book-popup-buy {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    padding: 0.9rem 1.9rem;
    background: var(--accent-gold);
    color: var(--primary-bg);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-popup-buy:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 14px 36px rgba(212, 175, 55, 0.45);
}

.book-popup-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.85rem 0 0.5rem;
}

#bookPopup .book-popup-buy {
    position: relative;
    left: 0;
    bottom: 0;
    transform: none;
    display: inline-block;
    margin-top: 1rem;
}

.freebie-popup .book-popup-card {
    max-width: 520px;
}

.freebie-popup img {
    max-width: 420px;
}

.freebie-popup .book-popup-buy {
    position: relative;
    left: 0;
    bottom: 0;
    transform: none;
    display: inline-block;
    margin-top: 1.4rem;
}

.newwork-popup .book-popup-card {
    max-width: 360px;
    padding-bottom: 3.3rem;
}

.newwork-subtitle {
    color: var(--text-secondary);
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.newwork-popup .book-popup-buy {
    position: relative;
    left: 0;
    bottom: 0;
    transform: none;
    display: inline-block;
    margin-top: 1.2rem;
}

/* Sticky note popup */
.sticky-popup .book-popup-card {
    max-width: 480px;
    padding-bottom: 2.2rem;
}

.sticky-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.sticky-sub {
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.sticky-preview {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.6rem;
    margin-bottom: 0.85rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sticky-preview img {
    width: 100%;
    display: block;
    border-radius: 6px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.sticky-preview-text {
    position: absolute;
    inset: 20% 20% 18% 20%;
    white-space: pre-wrap;
    color: #3a2a0f;
    font-family: "Dancing Script", "Caveat", "Shadows Into Light", "Patrick Hand", cursive;
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.55;
    text-align: center;
    pointer-events: none;
    overflow: hidden;
}

.sticky-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
}

.sticky-textarea:focus {
    outline: 2px solid var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.18);
}

.sticky-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 0.5rem;
}

.sticky-save {
    padding: 0.85rem 1.6rem;
    background: var(--accent-gold);
    color: var(--primary-bg);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.45);
}

/* Notepad popup */
.notepad-popup .book-popup-card {
    max-width: 520px;
    padding-bottom: 2rem;
}

.notepad-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

.notepad-sub {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.notepad-area {
    width: 100%;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notepad-area:focus {
    outline: 2px solid var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.18);
}

.notepad-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.notepad-save {
    padding: 0.85rem 1.6rem;
    background: var(--accent-gold);
    color: var(--primary-bg);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notepad-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.45);
}

/* Drawing pad popup */
.drawing-popup .book-popup-card {
    max-width: 620px;
    padding-bottom: 2.2rem;
}

.drawing-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.drawing-sub {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.drawing-canvas-wrap {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-subtle);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.drawing-canvas {
    width: 100%;
    height: 340px;
    display: block;
    background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.05), transparent 45%), rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    cursor: crosshair;
}

.drawing-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.drawing-btn {
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.drawing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.drawing-btn.primary {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.32);
}

.drawing-btn.primary:hover {
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.45);
}

/* Paper Airplane Flight Animation */
.airplane-item.flying {
    animation: none !important;
    z-index: 100;
}

.airplane-item.flying img {
    animation-play-state: paused;
}

.item-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.85);
    color: var(--accent-gold);
    font-size: 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
}

.stationery-item:hover .item-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -40px;
}

.welcome-message {
    max-width: 620px;
    margin: 2.5rem auto 2rem;
    animation: titleFadeIn 1s ease-out 0.7s backwards;
}

.welcome-message p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.welcome-message p:last-child {
    color: var(--accent-gold);
    font-weight: 500;
}

.welcome-enter {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: titleFadeIn 1s ease-out 0.9s backwards;
}

.welcome-enter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.welcome-enter:hover::before {
    width: 300%;
    height: 300%;
}

.welcome-enter:hover {
    color: var(--primary-bg);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}


/* Responsive Welcome Modal */
@media (max-width: 968px) {
    .welcome-content {
        padding: 2.5rem 2rem;
    }

    .welcome-signature {
        font-size: 3.6rem;
    }

    .welcome-title {
        font-size: 2.5rem;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
    }

    .stationery-scene {
        height: 250px;
    }

    .stationery-item img {
        max-width: 80px;
        max-height: 80px;
    }

    .sticky-notes img { max-width: 68px; }
    .book-item img { max-width: 62px; }
    .pencil-item img { max-width: 90px; }
    .paper-stack img { max-width: 68px; }
    .single-paper img { max-width: 72px; }
    .pen-item img { max-width: 76px; }
    .airplane-item img { max-width: 76px; }
}

@media (max-width: 640px) {
    .welcome-content {
        padding: 2rem 1.5rem;
    }

    .welcome-signature {
        font-size: 3rem;
    }

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

    .welcome-subtitle {
        font-size: 1rem;
    }

    .stationery-scene {
        height: 210px;
        margin: 1rem auto 1.5rem;
    }

    .stationery-item img {
        max-width: 60px;
        max-height: 60px;
    }

    .sticky-notes img { max-width: 52px; }
    .book-item img { max-width: 48px; }
    .pencil-item img { max-width: 72px; }
    .paper-stack img { max-width: 52px; }
    .single-paper img { max-width: 56px; }
    .pen-item img { max-width: 58px; }
    .airplane-item img { max-width: 58px; }

    .welcome-message p {
        font-size: 1rem;
    }

    .welcome-enter {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

}

@media (max-height: 700px) {
    .welcome-content {
        max-height: 88vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 820px) {
    :root {
        --section-gap: 5rem;
        --card-gap: 3rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 5%;
        left: 5%;
        background: rgba(10, 10, 10, 0.98);
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
        display: none;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    }

    .nav-links.open {
        display: flex;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 968px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .featured-book,
    .featured-book:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .featured-book:nth-child(even) .book-image-container {
        order: 1;
    }

    .nav-links {
        gap: 1.5rem;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .character-slide {
        grid-template-columns: 1fr;
    }

    .character-slider {
        grid-template-columns: 1fr;
    }

    .slider-nav {
        display: none;
    }

    .about-illustrated {
        grid-template-columns: 1fr;
    }

    .portrait-card {
        position: relative;
        top: 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-profile {
        justify-items: center;
    }

    .sticky-note-wrap {
        position: static;
        margin: 1.5rem auto 0;
    }
}

@media (max-width: 640px) {
    :root {
        --section-gap: 4rem;
        --card-gap: 2.5rem;
    }

    nav {
        padding: 1rem 0;
    }

    nav.scrolled {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .nav-links {
        width: 90%;
        left: 5%;
    }

    .nav-links.open {
        display: flex;
    }

    .section {
        padding: 4rem 5%;
    }

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

    .book-meta {
        flex-direction: column;
    }

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

    .gallery-item:hover {
        transform: translateY(-5px);
    }

    .particles {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-rose));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-rose), var(--accent-gold));
}

/* ========================================
   UTILITY ANIMATIONS
   ======================================== */

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
