/*=============== MODERN TIMELINE DESIGN ===============*/

/* Modern Story Section - Dark Background */
.story-section.modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.story-section.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(239, 193, 169, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(239, 193, 169, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Modern Story Header */
.story-section.modern .story-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.story-section.modern .section__subtitle {
    color: #efc1a9;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.story-section.modern .section__title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Modern Timeline Container */
.story-section.modern .story-timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Modern Timeline Items */
.story-section.modern .timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.story-section.modern .timeline-item:last-child {
    margin-bottom: 0;
}

/* Modern Timeline Content Boxes */
.story-section.modern .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 193, 169, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    max-width: 400px;
}

.story-section.modern .timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(239, 193, 169, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Content positioning */
.story-section.modern .timeline-item:nth-child(1) .timeline-content {
    justify-self: end;
}

.story-section.modern .timeline-item:nth-child(2) .timeline-content {
    justify-self: start;
}

.story-section.modern .timeline-item:nth-child(3) .timeline-content {
    justify-self: end;
}

/* Modern Timeline Line */
.story-section.modern .timeline-line {
    width: 4px;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, #efc1a9 20%, #efc1a9 80%, transparent 100%);
    position: relative;
    justify-self: center;
}

/* Modern Timeline Dots */
.story-section.modern .timeline-dot {
    width: 20px;
    height: 20px;
    background: #efc1a9;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(239, 193, 169, 0.3);
    transition: all 0.3s ease;
}

.story-section.modern .timeline-dot:hover {
    background: #d4a894;
    box-shadow: 0 0 0 8px rgba(239, 193, 169, 0.2);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Modern Typography */
.story-section.modern .timeline-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.story-section.modern .timeline-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* RTL Support for Modern Timeline */
body.rtl .story-section.modern .timeline-content,
body[dir="rtl"] .story-section.modern .timeline-content,
html[lang="ar"] .story-section.modern .timeline-content {
    text-align: right !important;
    direction: rtl !important;
}

body.rtl .story-section.modern .timeline-title,
body[dir="rtl"] .story-section.modern .timeline-title,
html[lang="ar"] .story-section.modern .timeline-title {
    text-align: right !important;
    direction: rtl !important;
}

body.rtl .story-section.modern .timeline-text,
body[dir="rtl"] .story-section.modern .timeline-text,
html[lang="ar"] .story-section.modern .timeline-text {
    text-align: right !important;
    direction: rtl !important;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .story-section.modern .timeline-item {
        gap: 2rem;
    }
    
    .story-section.modern .timeline-content {
        max-width: 350px;
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .story-section.modern {
        padding: 4rem 0;
    }
    
    .story-section.modern .section__title {
        font-size: 2rem;
    }
    
    .story-section.modern .timeline-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .story-section.modern .timeline-content {
        max-width: 100%;
        justify-self: center !important;
    }
    
    .story-section.modern .timeline-line {
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, transparent 0%, #efc1a9 20%, #efc1a9 80%, transparent 100%);
    }
    
    .story-section.modern .timeline-dot {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .story-section.modern .timeline-content {
        padding: 1.5rem;
    }
    
    .story-section.modern .timeline-title {
        font-size: 1.25rem;
    }
    
    .story-section.modern .timeline-text {
        font-size: 0.9rem;
    }
}

/* Animation Effects */
.story-section.modern .timeline-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.story-section.modern .timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.story-section.modern .timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.story-section.modern .timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}