/* Story Page Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Signika', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #2e001f 0%, #791e45 50%, #2e001f 100%);
    background-size: 400% 400%;
    animation: GradientFlow 15s ease infinite;
    min-height: 100vh;
    color: #fff;
}

@keyframes GradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating background orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.3) 0%, rgba(121, 30, 69, 0) 70%);
    top: -100px;
    left: -100px;
    animation: floatOrb 25s infinite alternate;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -50px;
    right: -50px;
    animation: floatOrb 20s infinite alternate-reverse;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 50px);
    }
}

/* Container */
.story-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

/* Header */
.story-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-header h1 {
    font-size: 3.5em;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 105, 180, 1),
        0 0 60px rgba(255, 0, 222, 0.8);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 105, 180, 1),
            0 0 60px rgba(255, 0, 222, 0.8);
    }

    100% {
        text-shadow:
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(255, 105, 180, 1),
            0 0 90px rgba(255, 0, 222, 1),
            0 0 120px rgba(255, 0, 222, 0.6);
    }
}

.story-header .subtitle {
    font-size: 1.3em;
    color: #f0f0f0;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.story-header .sparkles {
    font-size: 0.6em;
    display: inline-block;
    animation: sparkleRotate 3s linear infinite;
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Story Cards */
.story-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.story-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 40px;
    opacity: 0;
    transform: translateY(50px);
    animation: cardSlideIn 0.8s ease-out forwards;
}

.story-card:nth-child(1) {
    animation-delay: 0.3s;
}

.story-card:nth-child(2) {
    animation-delay: 0.5s;
}

.story-card:nth-child(3) {
    animation-delay: 0.7s;
}

.story-card:nth-child(4) {
    animation-delay: 0.9s;
}

.story-card:nth-child(5) {
    animation-delay: 1.1s;
}

/* Add more nth-child selectors as needed for additional cards */

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.story-card .card-number {
    background: linear-gradient(45deg, #791e45, #a62a5c);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(121, 30, 69, 0.5);
    flex-shrink: 0;
}

.story-card .card-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffb3d9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.story-card .card-content {
    color: #f0f0f0;
    font-size: 1.1em;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.story-card .card-content p {
    margin-bottom: 15px;
}

.story-card .card-content p:last-child {
    margin-bottom: 0;
}

.story-card .card-content strong {
    color: #ffb3d9;
    font-weight: 700;
}

.story-card .card-content em {
    font-style: italic;
    color: #ffd4e9;
}

/* Quote styling */
.story-card .quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ff69b4;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    font-style: italic;
    color: #ffd4e9;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-family: 'Signika', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    animation: fadeInButton 1s ease-out 0.5s forwards;
}

@keyframes fadeInButton {
    to {
        opacity: 1;
    }
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.4);
}

.back-button .arrow {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.back-button:hover .arrow {
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-header h1 {
        font-size: 2.5em;
    }

    .story-header .subtitle {
        font-size: 1.1em;
    }

    .story-card {
        padding: 30px 25px;
    }

    .story-card .card-title {
        font-size: 1.4em;
    }

    .story-card .card-content {
        font-size: 1em;
    }

    .back-button {
        top: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 1em;
    }

    .story-container {
        padding: 40px 15px 80px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #791e45, #a62a5c);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #a62a5c, #791e45);
}