/* About Page - Story Theme Animations */

/* Decorative quote marks in hero */
.about-hero-content::before,
.about-hero-content::after {
    content: '"';
    position: absolute;
    font-size: 20rem;
    font-weight: 900;
    font-family: Georgia, serif;
    color: rgba(255, 215, 0, 0.08);
    line-height: 1;
    z-index: -1;
    pointer-events: none;
    animation: floatQuote 8s ease-in-out infinite;
}

.about-hero-content::before {
    top: -80px;
    left: -50px;
    animation-delay: 0s;
}

.about-hero-content::after {
    content: '"';
    bottom: -100px;
    right: -50px;
    animation-delay: 2s;
}

@keyframes floatQuote {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
    50% { transform: translateY(-20px) rotate(3deg); opacity: 0.15; }
}

.about-hero-content {
    position: relative;
}
/* Ensure text content is above decorative elements */.about-hero-content > * {    position: relative;    z-index: 10;}

/* Rotating story glow background */
.about-hero::before {
    top: -100% !important;
    left: -100% !important;
    right: -100% !important;
    bottom: -100% !important;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 201, 167, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(10, 31, 68, 0.2) 0%, transparent 60%) !important;
    animation: rotateStoryGlow 50s linear infinite !important;
    will-change: transform;
}

@keyframes rotateStoryGlow {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.1); }
}

/* Shimmer effect */
.about-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 0.3; }
}

/* Animated title gradient - removed !important to allow hero section to use inline dark text */
.about-hero h1 {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-gold) 40%, var(--accent-teal) 80%, #ffffff 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleFlow 6s ease infinite;
}

@keyframes titleFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Story content fade in on scroll */
.story-content p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.story-content p:nth-child(1) { animation-delay: 0.2s; }
.story-content p:nth-child(2) { animation-delay: 0.4s; }
.story-content p:nth-child(3) { animation-delay: 0.6s; }
.story-content p:nth-child(4) { animation-delay: 0.8s; }
.story-content p:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated quote marks */
.story-content strong::before,
.story-content strong::after {
    content: '"';
    color: var(--primary-gold);
    opacity: 0.6;
    font-size: 1.3em;
}

/* Floating book pages effect */
.origin-story::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    transform: rotate(15deg);
    animation: floatPage 8s ease-in-out infinite;
}

.origin-story::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 8%;
    width: 80px;
    height: 80px;
    background: rgba(0, 201, 167, 0.08);
    border-radius: 10px;
    transform: rotate(-12deg);
    animation: floatPage 10s ease-in-out infinite reverse;
}

@keyframes floatPage {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-30px) rotate(20deg); }
}

.origin-story {
    position: relative;
}

/* Typewriter cursor effect on h2 */
.origin-story h2::after {
    content: '|';
    color: var(--primary-gold);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
