﻿/* --- Hero Overrides --- */
.about-hero {
    background: radial-gradient(circle at top right, rgba(var(--color-5-rgb) / 0.8), var(--color5)), url('https://placehold.co/1920x600/1e293b/0f172a?text=Office+Space');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .about-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to top, var(--color5), transparent);
    }

/* --- Interactive Timeline --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

    /* The vertical line */
    .timeline::after {
        content: '';
        position: absolute;
        width: 2px;
        background-color: var(--color4);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1px;
    }

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

    /* Circles on the line */
    .timeline-item::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        right: -10px;
        background-color: var(--color5);
        border: 3px solid var(--color1);
        top: 25px;
        border-radius: 50%;
        z-index: 1;
        transition: all 0.3s ease;
    }

    /* Left side content */
    .timeline-item.left {
        left: 0;
    }

    /* Right side content */
    .timeline-item.right {
        left: 50%;
    }

        .timeline-item.right::after {
            left: -10px;
        }

/* Content Box */
.timeline-content {
    padding: 20px 30px;
    background-color: var(--color4);
    position: relative;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--color1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.timeline-item:hover::after {
    background-color: var(--color1);
    box-shadow: 0 0 15px var(--color1);
}

/* --- Team Cards --- */
.team-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.team-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.team-image {
    width: 100%;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(var(--color-5-rgb) / 0.9);
    backdrop-filter: blur(5px);
    padding: 20px;
    transition: bottom 0.4s ease;
    border-top: 2px solid var(--color1);
}

.team-card:hover .team-overlay {
    bottom: 0;
}

/* --- Value Cards --- */
.value-card {
    height: 100%;
    background: linear-gradient(180deg, var(--color4) 0%, rgba(var(--color-5-rgb) / 0) 100%);
    border: 1px solid var(--color4);
    transition: transform 0.3s ease;
}

    .value-card:hover {
        transform: translateY(-10px);
        border-color: var(--color3);
    }

/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

        .timeline-item.right {
            left: 0;
        }

        .timeline-item::after {
            left: 21px;
        }

        .timeline-item.right::after {
            left: 21px;
        }
}