/* Origin Story Section with Super Mario Hero Background */
.avatar-hero-section {
    background: url('../images/super-mario-hero-dark.png?v=20260224');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    padding: 120px 0;
    position: relative;
    /* Removed transform: scaleX(-1) to fix flipped image */
    image-rendering: auto;
    image-rendering: high-quality;
}

.avatar-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(-90deg, 
            rgba(10, 15, 28, 0.1) 0%, 
            rgba(10, 15, 28, 0.3) 40%, 
            rgba(10, 15, 28, 0.7) 70%, 
            rgba(10, 15, 28, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.avatar-hero-section .container {
    position: relative;
    z-index: 3;
    /* Removed transform: scaleX(-1) to keep text readable */
}

.origin-story-section {
    border-left: 6px solid var(--brand-eggplant);
    box-shadow: inset 6px 0 20px rgba(37, 34, 51, 0.1);
}

.origin-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.origin-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 3;
}

.origin-story p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 3;
}

.story-intro {
    font-size: 1.2rem !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95) !important;
}

.story-highlight {
    background: rgba(37, 34, 51, 0.2);
    border-left: 4px solid var(--brand-eggplant);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.story-highlight::before {
    content: '"';
    font-size: 4rem;
    color: var(--brand-eggplant);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.story-highlight blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.6;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 3;
}

.story-highlight cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--brand-orange);
    font-size: 0.95rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(37, 34, 51, 0.3);
}

.story-stat {
    text-align: center;
}

.story-stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 5px;
}

.story-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-pivot {
    background: rgba(255, 77, 31, 0.08);
    border-left: 4px solid var(--brand-orange);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
}

.story-pivot h4 {
    color: var(--brand-orange);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.story-pivot p {
    margin-bottom: 15px !important;
}

.story-conclusion {
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(37, 34, 51, 0.4);
    padding-top: 25px;
    margin-top: 30px;
    font-style: italic;
    text-align: center;
}

/* Visual Elements */
.origin-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-passion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 300px;
}

.passion-item {
    background: rgba(37, 34, 51, 0.3);
    border: 2px solid rgba(37, 34, 51, 0.6);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: subtleHint 4s ease-in-out infinite;
}

@keyframes subtleHint {
    0%, 100% {
        border-color: rgba(37, 34, 51, 0.6);
    }
    50% {
        border-color: rgba(255, 77, 31, 0.4);
    }
}

.passion-item:hover {
    background: rgba(37, 34, 51, 0.35);
    border-color: var(--brand-eggplant);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 34, 51, 0.2);
}

.passion-item:hover span {
    color: rgba(255, 255, 255, 0.95);
}

.passion-item i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    display: block;
    transition: all 0.3s ease;
}

.passion-item:hover i {
    color: var(--brand-orange);
}

.passion-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 968px) {
    .origin-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .origin-title {
        font-size: 2rem;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .movie-passion-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .movie-passion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-highlight {
        padding: 20px;
        margin: 30px 0;
    }
    
    .story-stats {
        padding: 20px;
    }
    
    .passion-item {
        padding: 20px 15px;
    }
}