/* About page overrides */

.about-hero {
    background-image: none !important;
    overflow: hidden;
    animation: heroFadeIn 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/service-manpower.webp");
    background-size: cover;
    background-position: center;
    transform: scale(1);
    animation: aboutHeroZoom 11s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: 0;
}

.about-hero .page-hero-content h1,
.about-hero .page-hero-subtitle,
.about-hero .hero-actions,
.about-hero .hero-kpis {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-hero.text-show .page-hero-content h1,
.about-hero.text-show .page-hero-subtitle,
.about-hero.text-show .hero-actions,
.about-hero.text-show .hero-kpis {
    opacity: 1;
    transform: translateY(0);
}

.about-hero.text-show .page-hero-content h1 {
    transition-delay: 0.2s;
    animation: titleGlowIn 1.35s ease-out both 0.2s;
}

.about-hero.text-show .page-hero-subtitle {
    transition-delay: 0.55s;
}

.about-hero.text-show .hero-actions {
    transition-delay: 0.85s;
}

.about-hero.text-show .hero-kpis {
    transition-delay: 1s;
}

@keyframes aboutHeroZoom {
    from {
        transform: scale(1);
        filter: brightness(1);
    }
    to {
        transform: scale(1.12);
        filter: brightness(0.92);
    }
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.92);
}

.hero-kpis {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-kpi-card {
    background: rgba(11, 16, 30, 0.72);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-kpi-card i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(108, 111, 255, 0.18);
    color: var(--accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-kpi-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.hero-kpi-card p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.hero-kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 34px;
    align-items: start;
}

.narrative-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.narrative-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.narrative-item i {
    color: var(--accent2);
    margin-top: 3px;
    font-size: 0.95rem;
}

.narrative-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.narrative-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.about-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    align-items: stretch;
}

.media-frame {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-surface);
}

.media-main {
    grid-column: 1 / 3;
}

.media-sub {
    grid-column: 1 / 2;
}

.media-frame img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

.media-chip {
    grid-column: 2 / 3;
    align-self: end;
    background: rgba(17, 34, 64, 0.75);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.media-chip i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(108, 111, 255, 0.2);
    color: var(--accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.media-chip p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
    background-size: 200% 100%;
    animation: cardLineShimmer 3s ease infinite;
    transform: scaleX(0);
    transition: transform 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
    transform-origin: left;
    z-index: 4;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--border-accent);
}

.team-card:hover::before {
    transform: scaleX(1);
    height: 3px;
    box-shadow: 0 0 12px rgba(108, 111, 255, 0.5), 0 0 24px rgba(143, 240, 251, 0.2);
}

.team-img-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, var(--bg-surface) 0%, transparent 100%);
}

.team-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    filter: grayscale(50%);
}

.team-card:hover .team-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-info {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.team-role {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.team-title {
    color: var(--accent2);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-tags {
    margin-top: 14px;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.team-tags span {
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.74rem;
    border: 1px solid var(--border-accent);
    background: rgba(108, 111, 255, 0.08);
    color: var(--accent2);
    letter-spacing: 0.4px;
}

.sector-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: stretch;
}

.sector-media {
    min-height: 100%;
    border-radius: 16px;
}

.sector-media img {
    width: 100%;
    min-height: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: stretch;
}

.sector-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sector-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
    background-size: 200% 100%;
    animation: cardLineShimmer 3s ease infinite;
    transform: scaleX(0);
    transition: transform 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
    transform-origin: left;
}

.sector-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.sector-card:hover::before {
    transform: scaleX(1);
    height: 3px;
    box-shadow: 0 0 12px rgba(108, 111, 255, 0.5), 0 0 24px rgba(143, 240, 251, 0.2);
}

.sector-card i {
    color: var(--accent2);
    margin-bottom: 8px;
    font-size: 1rem;
}

.sector-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.35;
}

.sector-card p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent);
    top: 4px;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    background: var(--accent);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-content p:first-of-type {
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.timeline-content p:last-of-type {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .hero-kpis,
    .split-layout,
    .assurance-grid,
    .sector-layout,
    .sector-grid {
        grid-template-columns: 1fr;
    }

    .sector-media {
        min-height: 260px;
    }

    .sector-grid {
        gap: 12px;
    }

    .sector-card {
        min-height: auto;
    }
}

/* About contact section spacing fixes */
#contact .contact-card {
    padding: 48px 42px;
    gap: 32px;
}

#contact .contact-info .process-step-pill {
    margin-bottom: 12px;
}

#contact .contact-info h3 {
    margin-bottom: 15px;
    line-height: 1.2;
}

#contact .contact-info > p {
    margin-bottom: 12px;
    max-width: 54ch;
    line-height: 1.5;
}

#contact .contact-details {
    gap: 14px;
}

#contact .contact-detail-item {
    align-items: flex-start;
    gap: 12px;
}

#contact .contact-detail-item > div {
    display: grid;
    gap: 2px;
}

#contact .contact-detail-item h4 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

#contact .contact-detail-item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    #contact .contact-card {
        padding: 34px 24px;
        gap: 24px;
    }
}

/* About stats alignment */
#about-stats .stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 14px;
    max-width: 1200px;
    margin: 0 auto;
}

#about-stats .stat-item {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 14px;
}

#about-stats .stat-item:not(:last-child) {
    border-right: 1px solid var(--border);
}

#about-stats .stat-label {
    margin-top: 8px;
    max-width: 22ch;
    line-height: 1.45;
}

@media (max-width: 992px) {
    #about-stats .stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px 10px;
    }

    #about-stats .stat-item {
        min-height: 102px;
    }

    #about-stats .stat-item {
        border-right: 0 !important;
    }

    #about-stats .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border) !important;
    }

    #about-stats .stat-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }
}
