/* About Page Specific Styles */

/* --- Override pages.css to bring the hero and story sections closer --- */
.page-hero {
    padding-bottom: var(--space-lg);
}

/* --- Story Section --- */
.about-story {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-3xl); /* Նվազեցված ներքևի լիցքը՝ բաժինները մոտեցնելու համար */
}

.story-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-md);
}

.story-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    z-index: 0;
}

.story-item {
    padding: var(--space-xl) 0;
    position: relative;
    width: 50%;
    text-align: right;
    z-index: 1;
}

.story-item:nth-child(odd) {
    left: 0;
}

.story-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.story-content {
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.story-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.story-text h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-text p {
    color: var(--text-secondary);
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* Image container flexbox for multiple images */
.story-images-group {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap; /* Allows images to wrap on smaller screens */
}

/* Base style for all images inside the story section */
.story-image img {
    max-width: 100%;
    height: auto; /* Ensures aspect ratio is maintained */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-primary);
    object-fit: cover; 
}

/* Individual image styles to control their base size */
.story-image--building-robot,
.story-image--teaching,
.story-image--first-agency,
.story-image--collaboration,
.story-image--pitching,
.story-image--golden-gate,
.story-image--military {
    width: 100%;
    max-width: 500px;
}

.story-image--founder,
.story-image--producer {
    flex: 1; /* Makes images in the group take up equal space */
    min-width: 200px; /* Prevents them from getting too small */
    height: auto;
}

.story-image--interview {
    max-width: 400px;
}


/* For image-right layout */
.story-item--image-right .story-content {
    flex-direction: column-reverse;
}


/* --- Media queries for screens up to 991px (Tablets and Mobiles) --- */
@media (max-width: 991px) {
    .story-timeline {
        padding: var(--space-xl) var(--space-md);
    }
    
    .story-timeline::after {
        left: 20px;
        margin-left: 0;
    }

    .story-item,
    .story-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 40px; 
        text-align: left;
    }
    
    .story-content {
        max-width: 550px; /* Փոքրացրած չափսը միջին էկրանների համար */
        margin: 0;
    }

    .story-item::before {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: var(--accent-primary);
        left: 12px;
        top: 40px;
        z-index: 2;
    }
    
    .story-item--image-right .story-content {
        flex-direction: column;
    }

    .story-images-group {
        flex-direction: column;
        gap: var(--space-md);
    }
    .story-image--founder,
    .story-image--producer {
        width: 100%;
    }
}