/* 
   Jagam Technologies - About Us Styles
*/

/* Philosophy / Quote block */
.philosophy-banner {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.philosophy-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Vision & Mission boxes */
.vision-mission-row {
    margin-top: 2rem;
}

.vision-card, .mission-card {
    position: relative;
    padding: 3rem;
    height: 100%;
}

.vision-card {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
}
.vision-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.1);
}

.mission-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}
.mission-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.1);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.vision-card .card-icon-wrapper {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.mission-card .card-icon-wrapper {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Timeline/Approach section */
.approach-timeline {
    position: relative;
    margin-top: 4rem;
}

/* Connecting line */
.approach-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 50%, var(--border-color) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    z-index: 2;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--accent);
    transform: translateX(-50%);
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-glow);
}
.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}
.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.25);
    background: var(--text-white);
}

.timeline-content {
    width: 45%;
    position: relative;
}

/* Alternating logic */
.timeline-item:nth-child(odd) .timeline-content {
    float: left;
    text-align: right;
}
.timeline-item:nth-child(even) .timeline-content {
    float: right;
    text-align: left;
}

.timeline-step-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}
.timeline-item:nth-child(odd) .timeline-step-badge {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.timeline-item:nth-child(even) .timeline-step-badge {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Clearfix utility */
.approach-timeline::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive timeline rules */
@media (max-width: 767.98px) {
    .approach-timeline::before {
        left: 20px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-content {
        width: calc(100% - 50px);
    }
    .timeline-item:nth-child(odd) .timeline-content {
        float: right;
        text-align: left;
    }
    .timeline-item:nth-child(even) .timeline-content {
        float: right;
        text-align: left;
    }
}
