/* ========================================
   STORY & NARRATIVE SECTIONS
   ======================================== */

/* Hero Enhancements */
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: fadeIn 1s ease 0.5s;
    animation-fill-mode: both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.btn i {
    margin-right: 8px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(226, 232, 240, 0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Story Section - Enhanced with Video Background */
.story-section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.story-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.story-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.05);
    object-fit: cover;
    filter: brightness(0.35) contrast(1.15) saturate(1.3);
    animation: videoZoom 30s ease-in-out infinite alternate;
}

@keyframes videoZoom {
    0% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Video Overlay - Cinematic Effect */
.story-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 14, 26, 0.7) 50%, rgba(10, 14, 26, 0.95) 100%),
        linear-gradient(180deg, rgba(10, 14, 26, 0.8) 0%, rgba(10, 14, 26, 0.95) 100%);
    z-index: 1;
}

/* Ensure content is above video */
.story-section .container {
    position: relative;
    z-index: 2;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.5;
    z-index: 3;
}

.story-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.story-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-bg);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--dark-bg), 0 0 0 6px var(--primary-color);
}

.timeline-icon.danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    box-shadow: 0 0 0 4px var(--dark-bg), 0 0 0 6px #ff4444;
}

.timeline-content {
    flex: 1;
    padding: 30px;
    background: rgba(26, 31, 46, 0.85);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    margin: 0 30px;
    transition: var(--transition);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    background: rgba(26, 31, 46, 0.95);
    box-shadow: 
        0 20px 60px rgba(201, 169, 97, 0.3),
        0 0 0 1px var(--primary-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.timeline-content h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.timeline-content p {
    color: rgba(226, 232, 240, 0.95);
    line-height: 1.7;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Races Section - Dark & Gold Premium */
.races-section {
    padding: 140px 0;
    background: 
        radial-gradient(ellipse at center, rgba(201, 169, 97, 0.03) 0%, transparent 60%),
        linear-gradient(180deg, #000000 0%, #0a0e1a 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.races-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.5;
}

.races-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.5;
}

/* Ensure content is above background images */
.races-section .container {
    position: relative;
    z-index: 2;
}

.races-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .races-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.race-card {
    background: 
        linear-gradient(135deg, rgba(10, 14, 26, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(201, 169, 97, 0.1);
}

.race-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.race-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 
        0 20px 60px rgba(201, 169, 97, 0.3),
        0 0 0 1px var(--primary-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: 
        linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(26, 31, 46, 0.8) 100%);
}

.race-card:hover::before {
    opacity: 1;
}

.race-card.featured {
    border-color: var(--primary-color);
    background: 
        linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(10, 14, 26, 0.95) 100%);
    box-shadow: 
        0 10px 40px rgba(201, 169, 97, 0.2),
        inset 0 1px 0 rgba(201, 169, 97, 0.2);
}

.race-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #000000;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.race-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.2), rgba(201, 169, 97, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    box-shadow: 
        0 10px 30px rgba(201, 169, 97, 0.4),
        0 0 0 3px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(201, 169, 97, 0.3);
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.race-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.race-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    transform: scale(1.5);
}

.race-card:hover .race-icon img {
    transform: scale(1.6);
}

.race-card h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.race-description {
    color: rgba(226, 232, 240, 0.95);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.race-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.race-features li {
    color: rgba(226, 232, 240, 0.95);
    padding: 12px 0;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.race-features li:hover {
    color: #ffffff;
    padding-left: 5px;
}

.race-features li:first-child {
    border-top: none;
}

.race-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Journey Section - Dark & Gold Premium with Video Background */
.journey-section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

/* Journey Video Background */
.journey-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.journey-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.journey-video-background .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

/* Ensure content is above video */
.journey-section .container {
    position: relative;
    z-index: 2;
}

.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.5;
    z-index: 3;
}

.journey-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.5;
    z-index: 3;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.journey-card {
    background: 
        linear-gradient(135deg, rgba(10, 14, 26, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(201, 169, 97, 0.1);
}

.journey-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.journey-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(201, 169, 97, 0.3),
        0 0 0 1px var(--primary-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: 
        linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(26, 31, 46, 0.8) 100%);
}

.journey-card:hover::before {
    opacity: 0.1;
}

.journey-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.05));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 20px rgba(201, 169, 97, 0.2);
}

.journey-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.2), rgba(201, 169, 97, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 
        0 8px 25px rgba(201, 169, 97, 0.3),
        inset 0 0 20px rgba(201, 169, 97, 0.1);
    position: relative;
}

.journey-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.journey-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.journey-card p {
    color: rgba(226, 232, 240, 0.95);
    line-height: 1.7;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 80px;
    }

    .timeline-icon {
        position: absolute;
        left: 0;
    }

    .timeline-content {
        margin: 0;
        width: 100%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .races-grid,
    .journey-grid {
        grid-template-columns: 1fr;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .timeline-content h4 {
        font-size: 1.2rem;
    }

    .race-card h3,
    .journey-card h3 {
        font-size: 1.3rem;
    }
}
