/*
Theme Name: krimi.gratis
Theme URI: https://https://krimi.gratis/
Author: Loopus
Author URI: https://loopus.tech
Description: Theme for the promotion of krimi.gratis - Liquid Design
Version: 1.0.0
License: Proprietary
Text Domain: liebelesen
*/

:root {
    /* Mystery/Thriller color palette */
    --mystery-dark: #1a1a2e;
    --mystery-navy: #16213e;
    --mystery-slate: #0f3460;
    --mystery-teal: #53a8b6;
    --mystery-red: #c41e3a;
    --mystery-amber: #e94b3c;

    /* Glassmorphic gradients */
    --glass-gradient-1: linear-gradient(135deg, rgba(83, 168, 182, 0.2) 0%, rgba(15, 52, 96, 0.3) 100%);
    --glass-gradient-2: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, rgba(26, 26, 46, 0.35) 100%);
    --glass-gradient-3: linear-gradient(135deg, rgba(233, 75, 60, 0.15) 0%, rgba(83, 168, 182, 0.2) 100%);

    --blob-size: clamp(250px, 35vw, 450px);
    --animation-duration: 25s;
    --brand-ink: #0d0d1a;
    --brand-ink-soft: #2a2a3e;
    --brand-muted: #4a4a5e;
    --brand-accent: #c41e3a;
    --brand-accent-soft: #e94b3c;
    --brand-light: #f5f5f5;
    --brand-fog: #e8e8ec;
    --surface-glass: rgba(255, 255, 255, 0.75);
    --surface-card: rgba(255, 255, 255, 0.9);
    --border-soft: rgba(42, 42, 62, 0.2);
    --shadow-soft: 0 25px 60px rgba(13, 13, 26, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Crimson Text', serif;
    background: radial-gradient(circle at 20% 0%, rgba(15, 52, 96, 0.3), transparent 55%),
        radial-gradient(circle at 80% 15%, rgba(196, 30, 58, 0.15), transparent 60%),
        linear-gradient(135deg, #0a0a0f 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    color: var(--brand-light);
    line-height: 1.6;
    cursor: none;
}


/* Cursor Effects - Crime/Thriller Style */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--mystery-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px var(--mystery-red);
}

.cursor-outline {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(196, 30, 58, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

/* Spotlight removed
.cursor-spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center,
        transparent 0%,
        rgba(196, 30, 58, 0.03) 20%,
        rgba(15, 52, 96, 0.08) 40%,
        rgba(0, 0, 0, 0.2) 100%);
    mix-blend-mode: multiply;
    opacity: 0.6;
    transition: opacity 0.3s ease;
} */

/* Blood trail effect on hover */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--mystery-red), var(--mystery-amber));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Enhanced hover states for interactive elements */
a:hover~.cursor-outline,
button:hover~.cursor-outline,
.format-btn:hover~.cursor-outline {
    width: 45px;
    height: 45px;
    border-color: var(--mystery-amber);
    background: rgba(233, 75, 60, 0.1);
}

a:hover~.cursor-dot,
button:hover~.cursor-dot,
.format-btn:hover~.cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--mystery-amber);
}

.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg,
            rgba(196, 30, 58, 0.05) 0%,
            rgba(15, 52, 96, 0.1) 25%,
            rgba(83, 168, 182, 0.05) 50%,
            rgba(26, 26, 46, 0.15) 100%),
        url('assets/img/backgroundImg.webp') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(0.7) contrast(1.2) saturate(0.8);
    animation: subtleShift 30s ease-in-out infinite;
}

@keyframes subtleShift {

    0%,
    100% {
        filter: brightness(0.7) contrast(1.2) saturate(0.8) hue-rotate(0deg);
    }

    50% {
        filter: brightness(0.6) contrast(1.3) saturate(0.9) hue-rotate(-10deg);
    }
}

.liquid-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: url(#gooey);
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0;
    will-change: transform;
    animation: morphing var(--animation-duration) ease-in-out infinite;
    transition: opacity 0.8s ease-out, transform 0.1s ease-out;
}

.blob-1 {
    width: var(--blob-size);
    height: var(--blob-size);
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 107, 157, 0.4) 0%,
            rgba(255, 192, 203, 0.2) 50%,
            transparent 70%);
    top: 10%;
    left: 10%;
    animation-duration: 30s;
    filter: blur(40px);
}

.blob-2 {
    width: calc(var(--blob-size) * 0.8);
    height: calc(var(--blob-size) * 0.8);
    background: radial-gradient(circle at 50% 50%,
            rgba(200, 130, 255, 0.4) 0%,
            rgba(228, 181, 255, 0.2) 50%,
            transparent 70%);
    top: 60%;
    right: 10%;
    animation-duration: 25s;
    animation-delay: -5s;
    filter: blur(45px);
}

.blob-3 {
    width: calc(var(--blob-size) * 1.2);
    height: calc(var(--blob-size) * 1.2);
    background: radial-gradient(circle at 70% 70%,
            rgba(255, 143, 163, 0.3) 0%,
            rgba(255, 192, 203, 0.15) 50%,
            transparent 70%);
    bottom: 10%;
    left: 50%;
    animation-duration: 35s;
    animation-delay: -10s;
    filter: blur(50px);
}

@keyframes morphing {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: translate(-20px, 20px) rotate(180deg) scale(0.9);
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: translate(10px, -15px) rotate(270deg) scale(1.05);
    }
}


.site-header {
    background: linear-gradient(135deg,
            rgba(26, 26, 46, 0.9) 0%,
            rgba(15, 52, 96, 0.85) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    padding: 0px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    border-bottom: 2px solid rgba(83, 168, 182, 0.3);
    box-shadow: 0 8px 32px rgba(13, 13, 26, 0.4);
}

.site-header .logo {
    max-height: 200px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-header .logo:hover {
    transform: scale(1.05);
}


.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    z-index: 5;
}

.content-panel {
    background: linear-gradient(160deg,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(245, 245, 245, 0.88) 50%,
            rgba(235, 235, 235, 0.85) 100%);
    backdrop-filter: blur(30px) saturate(160%) brightness(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(160%) brightness(1.1);
    padding: clamp(48px, 5vw, 80px);
    border-radius: 32px;
    max-width: 1100px;
    width: 100%;
    box-shadow:
        0 50px 100px rgba(13, 13, 26, 0.7),
        0 30px 60px rgba(196, 30, 58, 0.2),
        0 0 0 1px rgba(196, 30, 58, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    color: var(--brand-ink);
    animation: panelGlow 8s ease-in-out infinite;
}

@keyframes panelGlow {

    0%,
    100% {
        box-shadow:
            0 50px 100px rgba(13, 13, 26, 0.7),
            0 30px 60px rgba(196, 30, 58, 0.2),
            0 0 0 1px rgba(196, 30, 58, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow:
            0 50px 100px rgba(13, 13, 26, 0.7),
            0 30px 60px rgba(196, 30, 58, 0.3),
            0 0 20px rgba(196, 30, 58, 0.2),
            0 0 0 2px rgba(196, 30, 58, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
}

.panel-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

.content-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -35%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 25% 50%, rgba(83, 168, 182, 0.12) 0%, rgba(196, 30, 58, 0.08) 45%, transparent 75%);
    animation: liquidRotate 20s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes liquidRotate {
    to {
        transform: rotate(360deg);
    }
}

.book-cover-section {
    position: relative;
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;

    filter: brightness(1.05) contrast(1.1);
}

/* Book cover hover removed
.book-cover:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 35px 70px rgba(13, 13, 26, 0.8),
                0 0 0 3px rgba(83, 168, 182, 0.5),
                0 0 50px rgba(196, 30, 58, 0.4);
} */

.content-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-panel h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--brand-ink);
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
    letter-spacing: -0.5px;
    position: relative;
}

.content-panel h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a 0%, #53a8b6 100%);
    border-radius: 2px;
}

.main-text {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    color: var(--brand-ink-soft);
    margin-top: 8px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 90%;
}

.format-instruction {
    font-size: 1.05rem;
    color: var(--brand-muted);
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.format-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.format-btn {
    padding: 20px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.9) 100%);
    color: var(--brand-ink);
    border: 2px solid rgba(83, 168, 182, 0.5);
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(13, 13, 26, 0.2);
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.format-btn .btn-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.format-btn .btn-text {
    flex: 1;
}

.format-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(83, 168, 182, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.format-btn:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.12) 0%, rgba(83, 168, 182, 0.15) 100%);
    border-color: rgba(196, 30, 58, 0.7);
    box-shadow: 0 12px 36px rgba(196, 30, 58, 0.25),
        0 0 0 1px rgba(196, 30, 58, 0.2);
}

.format-btn:hover .btn-icon {
    transform: scale(1.2) rotate(5deg);
}

.format-btn:hover::before {
    opacity: 1;
}

.format-btn:focus-visible {
    outline: 3px solid rgba(196, 30, 58, 0.4);
    outline-offset: 4px;
}

.format-btn.active {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.18) 0%, rgba(83, 168, 182, 0.2) 100%);
    border-color: rgba(196, 30, 58, 0.8);
    box-shadow: 0 16px 40px rgba(196, 30, 58, 0.35),
        0 0 0 2px rgba(196, 30, 58, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(8px) scale(1.02);
}

.format-btn.active .btn-icon {
    transform: scale(1.15);
}

.format-btn.liquid-ripple {
    animation: liquidRipple 0.6s ease-out;
}

@keyframes liquidRipple {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.email-form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.95) 100%);
    border-radius: 20px;
    border: 2px solid rgba(83, 168, 182, 0.4);
    box-shadow: 0 16px 48px rgba(13, 13, 26, 0.25),
        0 0 0 1px rgba(83, 168, 182, 0.2);
    padding: clamp(28px, 4vw, 40px);
}

.email-form.active {
    display: block;
    animation: liquidSlideIn 0.6s ease-out forwards;
}

@keyframes liquidSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-form label {
    display: block;
    margin-bottom: 16px;
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.email-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(83, 168, 182, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--brand-ink);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(13, 13, 26, 0.1);
    font-family: inherit;
}

.email-form input[type="email"]::placeholder {
    color: rgba(42, 42, 62, 0.5);
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(196, 30, 58, 0.6);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.12),
        0 8px 24px rgba(196, 30, 58, 0.15);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #c41e3a 0%, #16213e 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 12px 32px rgba(196, 30, 58, 0.4),
        0 0 0 1px rgba(196, 30, 58, 0.3);
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 48%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.45s ease;
}

.submit-btn:hover::after {
    transform: translateX(100%);
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(135deg, #e94b3c 0%, #0f3460 100%);
    box-shadow: 0 16px 48px rgba(196, 30, 58, 0.5),
        0 0 0 2px rgba(233, 75, 60, 0.4),
        0 0 30px rgba(196, 30, 58, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #e6e0f2 0%, #f0d8e4 100%);
    color: #a28fad;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn.liquid-pulse {
    animation: liquidPulse 1s ease-out;
}

@keyframes liquidPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.message {
    margin-top: 28px;
    padding: 18px 22px;
    border-radius: 22px;
    text-align: center;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-soft);
    color: var(--brand-ink);
    animation: liquidMessageIn 0.5s ease-out;
    box-shadow: 0 18px 40px rgba(28, 23, 51, 0.12);
}

@keyframes liquidMessageIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message.success {
    background: linear-gradient(135deg, rgba(199, 77, 123, 0.12) 0%, rgba(243, 212, 226, 0.35) 100%);
    color: var(--brand-rose);
    border: 1px solid rgba(199, 77, 123, 0.28);
    box-shadow: 0 12px 32px rgba(199, 77, 123, 0.18);
}

.message.error {
    background: linear-gradient(135deg, rgba(231, 111, 81, 0.12) 0%, rgba(255, 196, 188, 0.32) 100%);
    color: #d16055;
    border: 1px solid rgba(231, 111, 81, 0.24);
    box-shadow: 0 12px 32px rgba(231, 111, 81, 0.18);
}


.site-footer {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.55) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    color: #fff;
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -8px 32px rgba(255, 107, 157, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 107, 157, 0.6) 25%,
            rgba(200, 130, 255, 0.6) 50%,
            rgba(255, 192, 203, 0.6) 75%,
            transparent 100%);
    animation: liquidFooterLine 10s linear infinite;
}

@keyframes liquidFooterLine {
    to {
        background-position: 200% 0;
    }
}

.site-footer p {
    margin-bottom: 10px;
    font-size: 14px;
}

.site-footer a {
    color: #f8bcd0;
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.site-footer a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d 0%, #c882ff 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.site-footer a:hover {
    color: #c882ff;
    text-shadow: 0 2px 8px rgba(200, 130, 255, 0.3);
}

.site-footer a:hover::after {
    width: 100%;
}


.liquid-cursor {
    position: fixed;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
            rgba(255, 107, 157, 0.8) 0%,
            rgba(200, 130, 255, 0.5) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.08s ease-out;
    filter: blur(1px);
    box-shadow:
        0 0 20px rgba(255, 107, 157, 0.4),
        0 0 40px rgba(200, 130, 255, 0.2);
}

/* Cursor heart particles */
.cursor-heart {
    position: fixed;
    width: 12px;
    height: 12px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    animation: floatHeartCursor var(--duration, 2000ms) ease-out forwards;
}

.cursor-heart::before,
.cursor-heart::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 9px;
    background: linear-gradient(135deg,
            rgba(255, 107, 157, 0.8) 0%,
            rgba(200, 130, 255, 0.6) 100%);
    border-radius: 6px 6px 0 0;
}

.cursor-heart::before {
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    left: 6px;
}

.cursor-heart::after {
    transform: rotate(45deg);
    transform-origin: 100% 100%;
    left: 0;
}

@keyframes floatHeartCursor {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(var(--scale, 1));
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translate(var(--offsetX, 0), calc(-1 * var(--offsetY, 30px))) scale(0);
    }
}

/* Cursor sparkle particles */
.cursor-sparkle {
    position: fixed;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 192, 203, 0.7) 50%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: sparkleFloat 1s ease-out forwards;
    box-shadow: 0 0 6px rgba(255, 192, 203, 0.6);
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }

    20% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-20px);
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .blob {
        display: none;
    }
}


@media (max-width: 768px) {
    :root {
        --blob-size: clamp(150px, 40vw, 250px);
        --animation-duration: 30s;
    }

    .panel-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .book-cover-section {
        text-align: center;
    }

    .book-cover {
        max-width: 240px;
        margin: 0 auto;
    }

    .content-panel {
        padding: 32px 24px;
        margin: 20px;
    }

    .content-panel h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .main-text {
        max-width: 100%;
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .format-buttons {
        gap: 12px;
    }

    .format-btn {
        padding: 16px 24px;
        font-size: 0.95rem;
    }

    .blob {
        filter: blur(60px);
    }
}

@media (hover: none) {
    .format-btn:hover::before {
        width: 0;
        height: 0;
    }

    .submit-btn:hover::after {
        transform: translate(-50%, -50%) scale(0);
    }
}


.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
            rgba(196, 30, 58, 0.12) 0%,
            rgba(15, 52, 96, 0.85) 35%,
            rgba(26, 26, 46, 0.95) 70%,
            rgba(0, 0, 0, 0.98) 100%);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px) brightness(0.6) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) brightness(0.6) saturate(1.2);
}

.success-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(155deg,
            rgba(26, 26, 46, 0.95) 0%,
            rgba(15, 52, 96, 0.92) 50%,
            rgba(196, 30, 58, 0.2) 100%);
    backdrop-filter: blur(25px) saturate(150%) brightness(1.1);
    -webkit-backdrop-filter: blur(25px) saturate(150%) brightness(1.1);
    border: 1px solid rgba(196, 30, 58, 0.25);
    border-radius: 20px;
    padding: 48px clamp(24px, 4vw, 56px);
    max-width: 520px;
    width: min(92%, 520px);
    text-align: center;
    position: relative;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 32px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(196, 30, 58, 0.15),
        inset 0 0 40px rgba(83, 168, 182, 0.05);
    color: var(--brand-light);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg,
            var(--mystery-red) 0%,
            var(--mystery-amber) 50%,
            var(--mystery-teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2.5s ease-in-out infinite;
    box-shadow:
        0 14px 28px rgba(196, 30, 58, 0.4),
        0 0 40px rgba(196, 30, 58, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.6);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 25px rgba(196, 30, 58, 0);
    }
}

.modal-icon::after {
    content: '\2713';
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
}


.modal-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.4px;
    color: var(--brand-light);
    text-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

.modal-message {
    color: rgba(245, 245, 245, 0.85);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 32px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.modal-close {
    background: linear-gradient(135deg,
            var(--mystery-red) 0%,
            var(--mystery-amber) 100%);
    color: #ffffff;
    border: 1px solid rgba(196, 30, 58, 0.4);
    padding: 14px 40px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.4px;
    box-shadow:
        0 12px 24px rgba(196, 30, 58, 0.3),
        0 0 40px rgba(196, 30, 58, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

.modal-close:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg,
            var(--mystery-amber) 0%,
            var(--mystery-teal) 100%);
    box-shadow:
        0 16px 32px rgba(196, 30, 58, 0.4),
        0 0 60px rgba(83, 168, 182, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--mystery-teal);
}

/* Mystery/Thriller glassmorphic enhancement */
.glass-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle,
            var(--mystery-red) 0%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 3s linear infinite;
    filter: blur(0.5px);
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 8px var(--mystery-red);
    }
}

/* Mystery floating elements animation */
.floating-mystery {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    animation: floatHeart 10s linear infinite;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 13px;
    height: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.4) 0%, rgba(200, 130, 255, 0.4) 100%);
    border-radius: 20px 20px 0 0;
}

.heart::before {
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    left: 10px;
}

.heart::after {
    transform: rotate(45deg);
    transform-origin: 100% 100%;
    left: 0;
}

@keyframes floatHeart {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(80px) scale(1.2);
    }
}

/* Enhanced glassmorphic panels */
.glass-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 192, 203, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(255, 107, 157, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 24px;
}

/* Shimmer effect for buttons */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.format-btn::after,
.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 48%, rgba(255, 255, 255, 0) 100%);
    border-radius: inherit;
    pointer-events: none;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.format-btn:hover::after,
.submit-btn:hover::after {
    transform: translateX(100%);
    opacity: 1;
}

/* Soft glow for focus states */
:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 107, 157, 0.2),
        0 0 20px rgba(255, 107, 157, 0.15);
}

/* Romantic gradient text animation */
@keyframes romanticGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.romantic-text {
    background: linear-gradient(90deg,
            #ff6b9d 0%,
            #c882ff 25%,
            #ff8fa3 50%,
            #e4b5ff 75%,
            #ff6b9d 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: romanticGradient 5s ease infinite;
}

/* Crime/Mystery Book Showcase Styles */
.book-showcase {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 40px;
}

.book-cover {
    width: 100%;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 30px 60px rgba(13, 13, 26, 0.7),
        0 0 0 3px rgba(196, 30, 58, 0.3),
        0 0 40px rgba(83, 168, 182, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
    filter: brightness(0.98) contrast(1.1) saturate(0.95);
    position: relative;
}

/* Hover glow effect removed for book cover
.book-cover::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg,
        var(--mystery-red) 0%,
        var(--mystery-teal) 50%,
        var(--mystery-dark) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(20px);
}

.book-cover:hover::before {
    opacity: 0.5;
} */

/* Hover effect removed for book cover
.book-cover img:hover {
    transform: translateY(-10px) scale(1.05) rotate(-1deg);
    box-shadow:
        0 40px 80px rgba(13, 13, 26, 0.9),
        0 0 0 4px rgba(196, 30, 58, 0.5),
        0 0 60px rgba(83, 168, 182, 0.4);
    filter: brightness(1.05) contrast(1.15) saturate(1);
} */

.book-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.book-info h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--mystery-dark) 0%, var(--mystery-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
    position: relative;
}

.book-info h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--mystery-red) 0%, var(--mystery-teal) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.4);
}

.book-info .main-text {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--brand-ink-soft);
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.format-selection-text {
    font-size: 1.15rem;
    color: var(--mystery-slate);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Enhanced Crime Theme Buttons */
.format-btn {
    background: linear-gradient(135deg,
            rgba(26, 26, 46, 0.98) 0%,
            rgba(15, 52, 96, 0.95) 50%,
            rgba(196, 30, 58, 0.9) 100%);
    background-size: 200% 200%;
    animation: crimePulse 10s ease infinite;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    padding: 24px 40px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(196, 30, 58, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes crimePulse {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.format-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(233, 75, 60, 0.8),
            rgba(196, 30, 58, 0.6),
            transparent);
    transform: translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: none;
}

.format-btn:hover::before {
    width: 400%;
    height: 400%;
    animation: pulseWave 1.5s ease-out infinite;
}

@keyframes pulseWave {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.format-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            var(--mystery-red),
            var(--mystery-amber),
            var(--mystery-teal),
            var(--mystery-navy));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.format-btn:hover::after {
    opacity: 1;
}

.format-btn:hover {
    transform: translateY(-8px) scale(1.08) rotateX(5deg);
    box-shadow:
        0 30px 60px rgba(196, 30, 58, 0.6),
        0 15px 35px rgba(233, 75, 60, 0.5),
        0 0 40px rgba(196, 30, 58, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg,
            rgba(196, 30, 58, 0.98) 0%,
            rgba(233, 75, 60, 0.95) 50%,
            rgba(15, 52, 96, 0.9) 100%);
    background-size: 150% 150%;
    color: #ffffff !important;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.3);
    border-color: var(--mystery-amber);
    letter-spacing: 1.5px;
}

.format-btn:active {
    transform: translateY(-2px) scale(1.03);
}

/* Additional hover effects for button text */
.format-btn {
    position: relative;
    overflow: hidden;
}

.format-btn span {
    position: relative;
    z-index: 2;
}

/* Glitch effect on hover */
.format-btn:hover {
    animation: glitchText 0.3s ease-out;
}

@keyframes glitchText {

    0%,
    100% {
        transform: translateY(-8px) scale(1.08) rotateX(5deg);
    }

    25% {
        transform: translateY(-8px) scale(1.08) rotateX(5deg) translateX(2px);
        filter: hue-rotate(90deg);
    }

    50% {
        transform: translateY(-8px) scale(1.08) rotateX(5deg) translateX(-2px);
    }

    75% {
        transform: translateY(-8px) scale(1.08) rotateX(5deg) translateX(1px);
        filter: hue-rotate(-90deg);
    }
}

/* Spotlight sweep effect */
.format-btn:hover::after {
    animation: sweepLight 0.8s ease-out;
}

@keyframes sweepLight {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Crime Theme Email Form */
.email-form {
    background: linear-gradient(135deg,
            rgba(26, 26, 46, 0.08) 0%,
            rgba(196, 30, 58, 0.05) 100%);
    padding: 32px;
    border-radius: 16px;
    border: 2px solid rgba(15, 52, 96, 0.2);
    margin-top: 20px;
}

.email-form label {
    color: var(--mystery-navy);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: block;
}

.email-form input[type="email"] {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(15, 52, 96, 0.3);
    color: var(--mystery-dark);
    padding: 16px 20px;
    font-size: 1.05rem;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.email-form input[type="email"]:focus {
    border-color: var(--mystery-red);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
    background: #fff;
}

.submit-btn {
    background: linear-gradient(135deg, var(--mystery-red) 0%, var(--mystery-amber) 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 12px 30px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--mystery-amber) 0%, var(--mystery-red) 100%);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(233, 75, 60, 0.5);
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Enhanced Site Footer Crime Theme */
.site-footer {
    background:
        linear-gradient(180deg,
            rgba(196, 30, 58, 0.1) 0%,
            transparent 20%),
        linear-gradient(135deg,
            rgba(26, 26, 46, 0.98) 0%,
            rgba(15, 52, 96, 0.96) 40%,
            rgba(196, 30, 58, 0.95) 100%);
    background-size: 100% 100%, 200% 200%;
    animation: footerShift 15s ease infinite;
    color: var(--brand-light);
    padding: 45px 40px 35px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    backdrop-filter: blur(15px) saturate(150%);
    overflow: hidden;
    box-shadow:
        0 -20px 60px rgba(196, 30, 58, 0.2),
        0 -10px 30px rgba(15, 52, 96, 0.3),
        inset 0 1px 0 rgba(196, 30, 58, 0.3);
}

@keyframes footerShift {

    0%,
    100% {
        background-position: 0% 50%, 0% 50%;
    }

    50% {
        background-position: 0% 50%, 100% 50%;
    }
}

/* Crime tape decoration */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg,
            var(--mystery-red) 0px,
            var(--mystery-red) 10px,
            var(--mystery-amber) 10px,
            var(--mystery-amber) 20px);
    animation: tapeMoveLeft 10s linear infinite;
}

@keyframes tapeMoveLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-20px);
    }
}

/* Blood drip effect */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg,
            var(--mystery-red),
            transparent);
    animation: bloodDrip 8s ease-in-out infinite;
    transform: translateX(-50%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

@keyframes bloodDrip {

    0%,
    90%,
    100% {
        height: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    85% {
        height: 40px;
        opacity: 0.8;
    }
}

.site-footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: var(--mystery-teal);
    text-decoration: none;
    margin: 0 12px;
    padding: 2px 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.site-footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mystery-amber), var(--mystery-red));
    transition: width 0.3s ease;
}

.site-footer a:hover::before {
    width: 100%;
}

.site-footer a::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: radial-gradient(circle at center,
            rgba(233, 75, 60, 0.2),
            transparent);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-footer a:hover {
    color: var(--mystery-amber);
    text-shadow: 0 0 20px rgba(233, 75, 60, 0.6);
    transform: translateY(-2px);
}

.site-footer a:hover::after {
    opacity: 1;
}

/* Fog/Mist Effect for Crime Atmosphere */
.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
    background:
        radial-gradient(ellipse at top, transparent 0%, rgba(196, 30, 58, 0.1) 70%),
        radial-gradient(ellipse at bottom, rgba(15, 52, 96, 0.2) 0%, transparent 70%);
    animation: fogDrift 20s ease-in-out infinite;
}

@keyframes fogDrift {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-20px);
        opacity: 0.6;
    }
}

/* Mystery Scanning Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(196, 30, 58, 0.8),
            transparent);
    z-index: 3;
    pointer-events: none;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        top: -2px;
    }

    100% {
        top: 100vh;
    }
}

/* Book Cover - 3D Effect removed */
/* Duplicate .book-cover img rule removed
.book-cover img {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
} */

/* Hover effect removed
.book-cover:hover img {
    transform: translateY(-10px) rotateY(-5deg) rotateX(2deg) scale(1.05);
} */

/* Animated Text Shadow for Headers */
.book-info h1 {
    animation: textPulse 4s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        text-shadow:
            0 4px 12px rgba(196, 30, 58, 0.2),
            0 0 30px rgba(196, 30, 58, 0.1);
    }

    50% {
        text-shadow:
            0 4px 20px rgba(196, 30, 58, 0.4),
            0 0 50px rgba(196, 30, 58, 0.2),
            0 0 80px rgba(233, 75, 60, 0.1);
    }
}

/* Crime Scene Tape Effect for Borders */
.crime-tape {
    position: absolute;
    top: 50%;
    left: -50px;
    right: -50px;
    height: 40px;
    background: repeating-linear-gradient(-45deg,
            var(--mystery-amber),
            var(--mystery-amber) 20px,
            var(--mystery-dark) 20px,
            var(--mystery-dark) 40px);
    transform: rotate(-2deg);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Submit Button with Pulse */
.submit-btn {
    position: relative;
    overflow: visible;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--mystery-red), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    border-radius: inherit;
    animation: pulsateGlow 2s ease-in-out infinite;
}

@keyframes pulsateGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
}

/* Typewriter effect for labels */
@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    body {
        cursor: default;
    }

    .cursor-dot,
    .cursor-outline,
    .cursor-trail {
        display: none !important;
    }

    .book-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .book-cover {
        max-width: 280px;
        margin: 0 auto;
    }

    .book-info h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .format-buttons {
        max-width: 400px;
        margin: 0 auto 24px;
    }

    .content-panel {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .book-info h1 {
        font-size: 2rem;
    }

    .book-info .main-text {
        font-size: 1.1rem;
    }

    .format-btn {
        padding: 18px 28px;
        font-size: 1rem;
    }
}