/* Stories Page Specific Variables */
:root {
    /* New enchanted forest color palette */
    --story-primary: #2E7D32;  /* Forest Green */
    --story-secondary: #8D6E63;  /* Warm Brown */
    --story-accent: #FFB300;  /* Golden Yellow */
    --story-light: #E8F5E9;  /* Light Mint */
    --story-dark: #1B5E20;  /* Dark Forest */
    
    /* New Gradients */
    --story-gradient: linear-gradient(135deg, var(--story-primary) 0%, var(--story-dark) 100%);
    --story-accent-gradient: linear-gradient(135deg, var(--story-accent) 0%, #FFA000 100%);
    --story-light-gradient: linear-gradient(135deg, var(--story-light) 0%, #C8E6C9 100%);
    
    /* Enhanced Shadows and glows */
    --story-shadow: 0 8px 32px rgba(27, 94, 32, 0.15);
    --story-glow: 0 0 20px rgba(46, 125, 50, 0.3);
    --story-accent-glow: 0 0 20px rgba(255, 179, 0, 0.3);
}

/* Falling Petals Animation - Optimized for Mobile */
.rose-petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.falling-petal {
    position: absolute;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.7;
    animation: falling 8s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.3));
    will-change: transform;
}

/* Drastically reduce petals on mobile */
@media (max-width: 768px) {
    .falling-petal {
        opacity: 0.4;
        animation-duration: 6s;
    }
    
    /* Hide all petals except for 7 specific ones */
    .falling-petal {
        display: none;
    }
    
    /* Show only 7 petals with specific positions */
    .falling-petal:nth-child(1) { display: block; left: 10%; }
    .falling-petal:nth-child(2) { display: block; left: 25%; }
    .falling-petal:nth-child(3) { display: block; left: 40%; }
    .falling-petal:nth-child(4) { display: block; left: 55%; }
    .falling-petal:nth-child(5) { display: block; left: 70%; }
    .falling-petal:nth-child(6) { display: block; left: 85%; }
    .falling-petal:nth-child(7) { display: block; left: 95%; }
    
    /* Adjust animation timing for each petal to prevent piling */
    .falling-petal:nth-child(1) { animation-delay: 0s; }
    .falling-petal:nth-child(2) { animation-delay: 0.8s; }
    .falling-petal:nth-child(3) { animation-delay: 1.6s; }
    .falling-petal:nth-child(4) { animation-delay: 2.4s; }
    .falling-petal:nth-child(5) { animation-delay: 3.2s; }
    .falling-petal:nth-child(6) { animation-delay: 4s; }
    .falling-petal:nth-child(7) { animation-delay: 4.8s; }
}

@keyframes falling {
    0% {
        transform: translateY(-10%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Add a subtle swaying motion */
.falling-petal:nth-child(odd) {
    animation-name: falling-left;
}

.falling-petal:nth-child(even) {
    animation-name: falling-right;
}

@keyframes falling-left {
    0% {
        transform: translateY(-10%) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) translateX(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes falling-right {
    0% {
        transform: translateY(-10%) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(-360deg);
        opacity: 0;
    }
}

/* Story Hero Section */
.story-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 80vh;
    padding: 6rem 2rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Stars Animation */
.story-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.story-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.story-intro h1 {
    font-size: 4.5rem;
    color: #fff;
    margin: 1.5rem 0;
    line-height: 1.2;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ff69b4,
        0 0 30px #ff69b4,
        0 0 40px #ff69b4;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff69b4, 0 0 30px #ff69b4, 0 0 40px #ff69b4; }
    50% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff69b4, 0 0 40px #ff69b4, 0 0 50px #ff69b4; }
}

.story-intro p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
}

.story-badge i {
    font-size: 1.1rem;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--story-glow);
}

.stat-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.stat-info .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-info .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Story Filter */
.story-filter {
    background: var(--story-light);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--story-shadow);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.filter-group::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--story-primary);
    color: var(--story-primary);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--story-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--story-light);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--story-shadow);
}

/* Featured Story */
.featured-story {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.story-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 105, 180, 0.3);
}

.story-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-badge.featured {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.author-info h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.verified {
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.story-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.story-text {
    max-width: 800px;
    margin: 0 auto;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.story-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 105, 180, 0.2);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag:hover {
    background: rgba(255, 105, 180, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: white;
    font-style: italic;
    position: relative;
    padding: 2.5rem;
    background: rgba(255, 105, 180, 0.1);
    border-radius: 20px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 4rem;
    color: #ff69b4;
    opacity: 0.3;
    position: absolute;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.quote-text::before {
    top: 1rem;
    left: 1rem;
}

.quote-text::after {
    bottom: 0;
    right: 1rem;
}

/* Story Gallery */
.story-gallery {
    margin: 3rem 0;
}

.main-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.main-photo:hover img {
    transform: scale(1.05);
}

.main-photo:hover .photo-overlay {
    opacity: 1;
}

.photo-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.timeline-photo {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--story-shadow);
    aspect-ratio: 4/3;
}

.timeline-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--story-primary);
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-photo:hover img {
    transform: scale(1.1);
}

.story-reactions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
}

.reaction-btn i {
    font-size: 1.3rem;
}

.reaction-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
    background: rgba(255, 105, 180, 0.2);
}

.reaction-btn.hearts {
    color: #ff69b4;
}

.reaction-btn.comments {
    color: #ff69b4;
}

.reaction-btn.share {
    color: #ff69b4;
}

/* Story Grid with Space Theme */
.story-grid {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
}

.story-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 100px 100px;
    opacity: 0.1;
    pointer-events: none;
}

.grid-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.grid-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #ff69b4,
        0 0 20px #ff69b4;
    animation: neonPulse 2s ease-in-out infinite;
}

.stories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.load-more-btn {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 2px solid var(--story-primary);
    color: var(--story-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--story-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--story-glow);
}

/* Share Story Section with Space Theme */
.share-story {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.share-story::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 100px 100px;
    opacity: 0.1;
    pointer-events: none;
}

.share-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.share-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.share-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #ff69b4,
        0 0 20px #ff69b4;
    animation: neonPulse 2s ease-in-out infinite;
}

.share-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
    transform-origin: center bottom;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
}

.benefit-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.9);
}

.share-story-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
}

.share-story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
}

/* Instagram Feed with Space Theme */
.instagram-feed {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.instagram-feed::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 100px 100px;
    opacity: 0.1;
    pointer-events: none;
}

.feed-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.feed-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #ff69b4,
        0 0 20px #ff69b4;
    animation: neonPulse 2s ease-in-out infinite;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 2;
}

.instagram-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
    background: rgba(255, 105, 180, 0.2);
}

/* Floating Button */
.floating-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--story-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--story-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-button:hover {
    transform: scale(1.1) rotate(10deg);
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-button:hover .fab-tooltip {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .story-hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 1rem;
    }

    .story-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .share-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .story-intro h1 {
        font-size: 3rem;
    }

    .story-stats {
        grid-template-columns: 1fr;
    }

    .story-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .story-meta {
        justify-content: center;
    }

    .photo-timeline {
        grid-template-columns: 1fr;
    }

    .story-reactions {
        flex-direction: column;
    }

    .floating-button {
        bottom: 5rem;
    }

    .benefit-card:hover {
        transform: translateY(-5px);
    }

    .story-content {
        padding: 1.5rem;
    }

    .story-text h2 {
        font-size: 2rem;
    }

    .quote-text {
        font-size: 1.1rem;
        padding: 2rem;
    }

    .photo-timeline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-photo {
        aspect-ratio: 16/9;
    }

    .story-reactions {
        flex-direction: column;
        gap: 1rem;
    }

    .reaction-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-stories {
    animation: float 6s ease-in-out infinite;
}

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

.story-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.share-story-btn {
    animation: pulse 2s infinite;
}

/* Mobile Navigation with Space Theme */
.mobile-nav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.mobile-nav .nav-item {
    color: white;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

.mobile-nav .nav-item.active {
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .share-benefits {
        grid-template-columns: 1fr;
    }
    
    .benefit-card:hover {
        transform: translateY(-5px);
    }
    
    .share-content h2 {
        font-size: 2rem;
    }
    
    .feed-header h2 {
        font-size: 2rem;
    }
    
    .grid-header h2 {
        font-size: 2rem;
    }
}

/* Polaroid Gallery Styles */
.polaroid-gallery {
    padding: 4rem 2rem;
    background: #fff;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.gallery-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Enhanced Customer Story Cards */
.polaroid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.polaroid {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3, #fbcfe8);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.polaroid:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.25);
}

.polaroid.featured {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3, #fbcfe8, #f9a8d4);
    border: 2px solid rgba(236, 72, 153, 0.4);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
}

.polaroid-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
}

.polaroid-image img,
.polaroid-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.polaroid:hover .polaroid-image img,
.polaroid:hover .polaroid-image video {
    transform: scale(1.05);
}

/* Story Badges */
.story-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-badge.trending {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.story-badge.romance {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.85), rgba(219, 39, 119, 0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.polaroid:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.polaroid:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.overlay-content span {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Caption Styles */
.polaroid-caption {
    padding: 0 0.5rem;
}

.caption-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.caption-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #831843;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Star Rating */
.story-rating {
    display: flex;
    gap: 2px;
}

.story-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.story-rating .far {
    color: #d1d5db;
}

/* Description */
.polaroid-caption p {
    color: #581c87;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Enhanced Tags */
.polaroid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.polaroid-tags .tag {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    color: #831843;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
}

.polaroid-tags .tag:hover {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.polaroid-tags .tag.premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #92400e;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.polaroid-tags .tag.romance {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.polaroid-tags .tag i {
    margin-right: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .polaroid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .polaroid {
        padding: 1rem;
    }
    
    .caption-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .story-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .overlay-content i {
        font-size: 1.5rem;
    }
    
    .overlay-content span {
        font-size: 0.9rem;
    }
}

/* Animation Enhancements */
.polaroid {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Glassmorphism Effect */
.polaroid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
}

/* Hover Effects */
.polaroid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(219, 39, 119, 0.1));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.polaroid:hover::after {
    opacity: 1;
}

/* Space and Stars Background */
.stories-hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
    padding: 6rem 0;
}

/* Neon Text Effect */
.stories-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ff69b4,
        0 0 30px #ff69b4,
        0 0 40px #ff69b4;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff69b4, 0 0 30px #ff69b4, 0 0 40px #ff69b4; }
    50% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff69b4, 0 0 40px #ff69b4, 0 0 50px #ff69b4; }
}

/* Story Cards with Glass Effect */
.story-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.2),
        0 0 20px rgba(255,105,180,0.3);
}

/* Story Content Styling */
.story-content {
    position: relative;
    z-index: 2;
}

.story-content h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255,105,180,0.5);
}

.story-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Customer Info with Neon Accent */
.customer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ff69b4;
    box-shadow: 0 0 10px rgba(255,105,180,0.5);
}

.customer-info .customer-name {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255,105,180,0.5);
}

/* Falling Flowers Animation */
.falling-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flower {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: falling linear infinite;
}

@keyframes falling {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Quiz Styles */
.quiz-content {
    background: var(--space-gradient);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.quiz-screen h2 {
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: 600;
}

.quiz-screen p {
    color: #ffd700;
    font-size: 1.1em;
    margin-bottom: 25px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    font-weight: 500;
}

.quiz-screen p:hover {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.option-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 25px;
    margin: 10px 0;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    font-size: 1.1em;
    backdrop-filter: blur(5px);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.match-button {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.match-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Review Section Styles */
.review-section {
    padding: 60px 0;
    background: var(--space-gradient);
}

.review-card {
    background: var(--space-gradient);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-preview {
    margin-bottom: 20px;
}

.stars {
    color: var(--space-accent);
    font-size: 1.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--space-accent);
}

.rating-text {
    color: #ffffff;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.review-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.review-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.review-button i {
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stories-hero h1 {
        font-size: 2.5rem;
    }
    
    .story-card {
        padding: 1.5rem;
    }
    
    .story-content h3 {
        font-size: 1.5rem;
    }
    
    .story-content p {
        font-size: 1rem;
    }
}

.question-container h3 {
    color: #ffd700;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: 600;
}

.question-container p {
    color: #ffd700;
    font-size: 1.1em;
    margin-bottom: 25px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    font-weight: 500;
} 