/* 
   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;
    }
}

.team-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.10);
    border: 2px solid rgba(var(--primary-rgb), 0.20);
    font-size: 2.5rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.glass-card:hover .team-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.glass-card h3 {
    font-weight: 700;
}

.glass-card p {
    line-height: 1.9;
    text-align: justify;
}

/* =========================================
   Founder Profile
   ========================================= */

.founder-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(var(--primary-rgb), 0.35);
    background: var(--bg-card);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 6px rgba(var(--primary-rgb), 0.05);
    transition: var(--transition-smooth);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.glass-card:hover .founder-image {
    border-color: var(--accent);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.2),
        0 0 0 6px rgba(var(--accent-rgb), 0.08);
}

.glass-card:hover .founder-image img {
    transform: scale(1.05);
}

.founder-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem !important;
}

.founder-title {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

/* =========================================
   Leadership Team - Side by Side Profiles
   ========================================= */

@media (min-width: 992px) {
    .leadership-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .leadership-row>.col-lg-6 {
        flex: 0 0 50%;
        width: 50%;
    }
}

@media (max-width: 991.98px) {
    .leadership-row {
        display: block;
    }
}

/* =========================================
   Leadership Team - Two Column Layout
   ========================================= */

.leadership-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

.leadership-row>.col-lg-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}


/* =========================================
   Leadership Profile Images
   Same Size & Alignment
   ========================================= */

.founder-image {
    width: 190px;
    height: 230px;

    margin: 0 auto 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border-radius: 14px;

    border: 3px solid rgba(var(--primary-rgb), 0.35);

    background: var(--bg-card);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 6px rgba(var(--primary-rgb), 0.05);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.founder-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}


/* =========================================
   Leadership Profile Hover
   ========================================= */

.glass-card:hover .founder-image {
    border-color: var(--accent);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.20),
        0 0 0 6px rgba(var(--accent-rgb), 0.08);

    transform: translateY(-3px);
}

.glass-card:hover .founder-image img {
    transform: none;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 767.98px) {

    .leadership-row {
        grid-template-columns: 1fr !important;
    }

    .founder-image {
        width: 180px;
        height: 220px;
    }
}