 

 
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 50%, #fff7ed 100%);
}

 
.animated-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(79, 209, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10%, 10%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

 
.floating-letters {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.letter {
    position: absolute;
    font-family: 'Amiri', serif;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0;
    color: transparent;
    background: linear-gradient(135deg, rgba(79, 209, 255, 0.15), rgba(168, 85, 247, 0.15));
    -webkit-background-clip: text;
    background-clip: text;
    animation: floatLetter 15s ease-in-out infinite;
    pointer-events: none;
}

 
.letter:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; font-size: 4rem; }
.letter:nth-child(2) { top: 25%; left: 75%; animation-delay: 2s; font-size: 3.5rem; }
.letter:nth-child(3) { top: 45%; left: 30%; animation-delay: 4s; font-size: 3rem; }
.letter:nth-child(4) { top: 65%; left: 80%; animation-delay: 6s; font-size: 3.8rem; }
.letter:nth-child(5) { top: 80%; left: 20%; animation-delay: 8s; font-size: 3.2rem; }
.letter:nth-child(6) { top: 35%; left: 90%; animation-delay: 10s; font-size: 3.6rem; }
.letter:nth-child(7) { top: 55%; left: 10%; animation-delay: 12s; font-size: 3.4rem; }
.letter:nth-child(8) { top: 15%; left: 50%; animation-delay: 14s; font-size: 3.9rem; }

@keyframes floatLetter {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50px) rotate(180deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) rotate(360deg);
    }
}

 
.floating-books {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.book {
    position: absolute;
    width: 40px;
    height: 55px;
    opacity: 0;
    animation: floatBook 20s ease-in-out infinite;
}

.book::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 209, 255, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 2px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.book::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 1px;
}

.book:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.book:nth-child(2) { top: 40%; left: 85%; animation-delay: 4s; }
.book:nth-child(3) { top: 70%; left: 25%; animation-delay: 8s; }
.book:nth-child(4) { top: 50%; left: 70%; animation-delay: 12s; }
.book:nth-child(5) { top: 85%; left: 60%; animation-delay: 16s; }

@keyframes floatBook {
    0% {
        opacity: 0;
        transform: translateY(100px) translateX(0) rotate(-10deg);
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-100px) translateX(30px) rotate(10deg);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) translateX(0) rotate(-10deg);
    }
}

 
.floating-pens {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.pen {
    position: absolute;
    width: 60px;
    height: 6px;
    opacity: 0;
    animation: floatPen 18s ease-in-out infinite;
}

.pen::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(79, 209, 255, 0.3) 0%, 
        rgba(168, 85, 247, 0.3) 100%);
    border-radius: 3px;
}

.pen::after {
    content: '';
    position: absolute;
    right: 0;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 15px solid rgba(168, 85, 247, 0.3);
}

.pen:nth-child(1) { top: 15%; left: 70%; animation-delay: 0s; transform: rotate(-30deg); }
.pen:nth-child(2) { top: 60%; left: 15%; animation-delay: 6s; transform: rotate(45deg); }
.pen:nth-child(3) { top: 75%; left: 80%; animation-delay: 12s; transform: rotate(-15deg); }

@keyframes floatPen {
    0% {
        opacity: 0;
        transform: translateY(50px) translateX(0) rotate(-30deg);
    }
    10% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
        transform: translateY(-80px) translateX(20px) rotate(30deg);
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) translateX(0) rotate(-30deg);
    }
}

 
.ink-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ink-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(79, 209, 255, 0.4), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: inkDrop 12s ease-in-out infinite;
}

.ink-particle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.ink-particle:nth-child(2) { top: 40%; left: 60%; animation-delay: 1.5s; }
.ink-particle:nth-child(3) { top: 60%; left: 45%; animation-delay: 3s; }
.ink-particle:nth-child(4) { top: 30%; left: 80%; animation-delay: 4.5s; }
.ink-particle:nth-child(5) { top: 70%; left: 25%; animation-delay: 6s; }
.ink-particle:nth-child(6) { top: 50%; left: 90%; animation-delay: 7.5s; }
.ink-particle:nth-child(7) { top: 85%; left: 50%; animation-delay: 9s; }
.ink-particle:nth-child(8) { top: 25%; left: 15%; animation-delay: 10.5s; }

@keyframes inkDrop {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translateY(80px) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translateY(120px) scale(0.5);
    }
}

 
.floating-quotes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.quote-mark {
    position: absolute;
    font-family: 'Amiri', serif;
    font-size: 5rem;
    opacity: 0;
    color: transparent;
    background: linear-gradient(135deg, rgba(79, 209, 255, 0.12), rgba(168, 85, 247, 0.12));
    -webkit-background-clip: text;
    background-clip: text;
    animation: quoteFloat 16s ease-in-out infinite;
}

.quote-mark:nth-child(1) { 
    content: '"'; 
    top: 30%; 
    left: 25%; 
    animation-delay: 0s; 
}

.quote-mark:nth-child(2) { 
    content: '"'; 
    top: 65%; 
    left: 75%; 
    animation-delay: 8s;
}

@keyframes quoteFloat {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    20% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2) rotate(5deg);
    }
    80% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(10deg);
    }
}

 
.writing-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.line {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(79, 209, 255, 0.2) 50%, 
        transparent 100%);
    opacity: 0;
    animation: lineWrite 10s ease-in-out infinite;
}

.line:nth-child(1) { top: 35%; left: 20%; animation-delay: 0s; }
.line:nth-child(2) { top: 45%; left: 60%; animation-delay: 3s; width: 180px; }
.line:nth-child(3) { top: 65%; left: 35%; animation-delay: 6s; width: 120px; }

@keyframes lineWrite {
    0% {
        opacity: 0;
        width: 0;
    }
    20% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
        width: 150px;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        width: 0;
    }
}

 
.paper-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(79, 209, 255, 0.02) 30px,
            rgba(79, 209, 255, 0.02) 31px
        );
    animation: paperShift 30s linear infinite;
}

@keyframes paperShift {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

 
 
.author-page {
    position: relative;
    z-index: 10;
}

.main-header {
    position: fixed !important;
    z-index: 2000 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.content-tabs {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important;
}

 
body {
    position: relative;
}

html {
    position: relative;
}

 
@media (max-width: 768px) {
    .letter {
        font-size: 2rem;
    }
    
    .letter:nth-child(1),
    .letter:nth-child(2),
    .letter:nth-child(4),
    .letter:nth-child(8) {
        font-size: 2.5rem;
    }
    
    .book {
        width: 30px;
        height: 40px;
    }
    
    .pen {
        width: 40px;
        height: 4px;
    }
    
    .quote-mark {
        font-size: 3rem;
    }
}

 
@media (prefers-reduced-motion: reduce) {
    .animated-background *,
    .animated-background::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}