/**
 * About Us — numeric / TatvaSoft-inspired layout for Funky Developers
 */

.about-page .content-wrapper {
    max-width: none;
    margin: 0;
}

.about-page .page-content {
    padding: 0 0 4rem;
}

/* —— Intro —— */
.about-intro-band {
    position: relative;
    padding: 3.5rem 0 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 113, 227, 0.08), transparent 55%),
        linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    overflow: hidden;
}

.about-intro-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 113, 227, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
    pointer-events: none;
    opacity: 0.55;
}

.about-intro-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    z-index: 1;
}

.about-intro-copy .about-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.about-intro-copy h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.about-intro-copy h2 .about-stat-accent {
    color: var(--primary-color);
}

.about-intro-copy > p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.about-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.about-intro-actions .btn-text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.25s ease, color 0.2s;
}

.about-intro-actions .btn-text-link:hover {
    gap: 0.55rem;
    color: #005bb5;
}

.about-intro-story {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(210, 210, 215, 0.8);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(6px);
}

.about-intro-story p {
    margin: 0;
    line-height: 1.75;
    color: #444;
    font-size: 0.98rem;
}

/* —— Section shells —— */
.about-section-block {
    padding: 4rem 0;
}

.about-section-block--alt {
    background: #f8f9fb;
}

.about-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.about-section-head h2 {
    margin-bottom: 0.75rem;
    color: #1d1d1f;
}

.about-section-head p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* —— In a Nutshell —— */
.about-nutshell-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.about-nutshell-card {
    background: #fff;
    border: 1px solid #e8e8ed;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: aboutFadeUp 0.6s ease both;
}

.about-nutshell-card:nth-child(1) { animation-delay: 0.05s; }
.about-nutshell-card:nth-child(2) { animation-delay: 0.1s; }
.about-nutshell-card:nth-child(3) { animation-delay: 0.15s; }
.about-nutshell-card:nth-child(4) { animation-delay: 0.2s; }
.about-nutshell-card:nth-child(5) { animation-delay: 0.25s; }
.about-nutshell-card:nth-child(6) { animation-delay: 0.3s; }
.about-nutshell-card:nth-child(7) { animation-delay: 0.35s; }
.about-nutshell-card:nth-child(8) { animation-delay: 0.4s; }

.about-nutshell-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 40, 100, 0.08);
    border-color: rgba(0, 113, 227, 0.35);
}

.about-nutshell-card .nutshell-value {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.about-nutshell-card .nutshell-label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* —— Technology tabs (aligned with website-development) —— */
.about-section-block--tech {
    background: #fff;
}

.about-tech-platforms.tech-platforms {
    margin: 0;
    padding: 0;
    text-align: center;
}

.about-tech-platforms .tech-platforms__title {
    text-align: center;
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    color: #1d1d1f;
}

.about-tech-platforms .tech-platforms__intro {
    max-width: 44rem;
    margin: 0 auto 1.75rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.about-tech-platforms .tech-platforms__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.5rem;
    margin: 0 auto 2rem;
    padding: 0 0 0.15rem;
    border-bottom: 1px solid #e8e8ed;
    max-width: 58rem;
}

.about-tech-platforms .tech-platforms__tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    padding: 0.85rem 0.1rem;
    font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d1d1f;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.about-tech-platforms .tech-platforms__tab:hover {
    color: var(--primary-color, #0071e3);
}

.about-tech-platforms .tech-platforms__tab.is-active {
    color: #1d1d1f;
    border-bottom-color: #1d1d1f;
}

.about-tech-platforms .tech-platforms__tab:focus-visible {
    outline: 2px solid var(--primary-color, #0071e3);
    outline-offset: 3px;
    border-radius: 2px;
}

.about-tech-platforms .tech-platforms__panels {
    min-height: 10rem;
}

.about-tech-platforms .tech-platforms__panel[hidden] {
    display: none;
}

.about-tech-platforms .tech-stack--platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.25rem;
    margin: 0.5rem auto 0;
    max-width: 52rem;
}

.about-tech-platforms .tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 88px;
    padding: 0.35rem;
}

.about-tech-platforms .tech-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.about-tech-platforms .tech-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
}

@media (max-width: 768px) {
    .about-tech-platforms .tech-platforms__tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.25rem 1.1rem;
        max-width: 100%;
        padding-bottom: 0.35rem;
    }

    .about-tech-platforms .tech-platforms__tabs::-webkit-scrollbar {
        height: 4px;
    }

    .about-tech-platforms .tech-item img {
        width: 48px;
        height: 48px;
    }
}

/* —— Services (TatvaSoft-style split) —— */
.about-section-block--services {
    background: linear-gradient(180deg, #eef3f9 0%, #f7f9fc 100%);
}

.about-services-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 2.5rem;
    align-items: start;
}

.about-services-intro h2 {
    margin-bottom: 0.75rem;
    text-align: left;
}

.about-services-intro > p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.about-ai-panel {
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 16px;
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.04);
}

.about-ai-panel-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 1rem;
}

.about-ai-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}

.about-ai-logo-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
}

.about-ai-logo-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.about-ai-logo-item span {
    font-size: 0.92rem;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.01em;
}

.ai-logo--openai img,
.ai-logo--grok img,
.ai-logo--deepseek img,
.ai-logo--cursor img {
    color: #111;
    filter: none;
}

.ai-logo--openai img,
.ai-logo--grok img,
.ai-logo--deepseek img {
    /* currentColor SVGs inherit via CSS filter fallback: dark fill */
    background: transparent;
}

.about-services-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-service-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e4e8ef;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-service-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 40, 100, 0.07);
    border-color: rgba(0, 113, 227, 0.35);
}

.about-service-row-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
    flex-shrink: 0;
}

.about-service-row-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.about-service-row-body strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #1d1d1f;
}

.about-service-row-body span {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #555;
}

.about-service-row-arrow {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.about-service-row:hover .about-service-row-arrow {
    transform: translateX(4px);
}

.about-services-more {
    margin: 0.5rem 0 0;
    text-align: left;
}

.about-services-more a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.about-services-more a:hover {
    text-decoration: underline;
}

/* —— Customers / map —— */
.about-section-block--customers {
    background: #fff;
}

.about-customers-head {
    margin-bottom: 1.5rem;
}

.about-customers-head h2 {
    margin-bottom: 0.4rem;
    text-align: left;
}

.about-customers-head p {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
}

.about-map-stage {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #f5f7fb;
    border: 1px solid #e8ecf2;
    min-height: 360px;
    margin-bottom: 2.5rem;
}

.about-map-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
}

.about-map-countries {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: min(240px, 42%);
    max-height: min(420px, 78%);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(210, 218, 230, 0.9);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(20, 40, 80, 0.08);
    padding: 0.85rem 0.35rem 0.85rem 0.85rem;
    scrollbar-width: thin;
}

.about-map-countries ul {
    list-style: none;
    margin: 0;
    padding: 0 0.5rem 0 0;
}

.about-map-countries li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.35rem;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #eef1f5;
}

.about-map-countries li:last-child {
    border-bottom: none;
}

.about-map-pin-icon {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.12);
}

.about-customers-proof {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
}

/* —— Approach —— */
.about-approach-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    counter-reset: approach-step;
}

.about-approach-step {
    background: #fff;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    padding: 1.35rem 1.1rem;
    position: relative;
    counter-increment: approach-step;
}

.about-approach-step::before {
    content: counter(approach-step, decimal-leading-zero);
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.65rem;
    letter-spacing: 0.04em;
}

.about-approach-step h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.about-approach-step p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #555;
}

.about-customers-proof-copy h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.about-customers-proof-copy p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-customers-proof-copy a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.about-customers-proof-copy a:hover {
    gap: 0.55rem;
}

.about-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.about-logo-cell {
    background: #fff;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-logo-cell:hover {
    border-color: rgba(0, 113, 227, 0.3);
    box-shadow: 0 6px 16px rgba(0, 40, 100, 0.06);
}

.about-logo-cell img,
.about-logo-cell .client-logo {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.15);
}

.about-logo-cell a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* —— Why / Mission / Vision —— */
.about-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.about-why-card {
    background: #fff;
    border: 1px solid #e8e8ed;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
}

.about-why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
    color: #1d1d1f;
}

.about-why-card p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.about-mv-grid--narrow {
    max-width: 900px;
    margin: 0 auto;
}

.about-secondary-link {
    display: block;
    margin-top: 0.65rem;
}

.about-why-bullets {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.about-why-bullets li {
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
    color: #333;
}

.about-mv-card {
    background: #fff;
    border: 1px solid #e8e8ed;
    border-radius: 14px;
    padding: 1.75rem;
}

.about-mv-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--primary-color);
}

.about-mv-card p {
    margin: 0;
    color: #555;
    line-height: 1.75;
}

.about-strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.about-strength-item {
    background: #fff;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-strength-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 40, 100, 0.07);
}

.about-strength-item h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-color);
}

/* —— Industries —— */
.about-industries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.about-industry-chip {
    padding: 0.55rem 1rem;
    background: #fff;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* —— Closing —— */
.about-closing {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-closing p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-closing .about-summary-line {
    font-size: 1.1rem;
    color: #1d1d1f;
    margin-top: 1.5rem;
}

.about-cta-band {
    margin-top: 2.5rem;
    padding: 2.25rem 1.75rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a2540 0%, #123a66 55%, #0071e3 140%);
    color: #fff;
    text-align: center;
}

.about-cta-band h2 {
    color: #fff;
    margin-bottom: 0.65rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.about-cta-band p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 1.35rem;
    max-width: 36rem;
    line-height: 1.65;
}

.about-cta-band .btn {
    background: #fff;
    color: #0a2540;
    border: none;
}

.about-cta-band .btn:hover {
    background: #f0f4fa;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.about-cta-band .btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.about-cta-band .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* —— Motion —— */
@keyframes aboutFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aboutPinPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-nutshell-card,
    .about-map-pin {
        animation: none;
    }
}

/* —— Responsive —— */
@media (max-width: 1024px) {
    .about-nutshell-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-services-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-approach-step:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .about-intro-grid,
    .about-customers-proof,
    .about-mv-grid {
        grid-template-columns: 1fr;
    }

    .about-intro-band {
        padding: 2.5rem 0 2rem;
    }

    .about-intro-band::before {
        mask-image: none;
        -webkit-mask-image: none;
        opacity: 0.3;
    }

    .about-section-block {
        padding: 3rem 0;
    }

    .about-why-grid,
    .about-strength-grid {
        grid-template-columns: 1fr;
    }

    .about-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-approach-grid {
        grid-template-columns: 1fr;
    }

    .about-approach-step:last-child {
        grid-column: auto;
    }

    .about-map-stage {
        min-height: 280px;
    }

    .about-map-countries {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        max-height: 220px;
        margin: 0 1rem 1rem;
    }

    .about-map-img {
        max-height: 320px;
    }

    .about-ai-logo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-service-row {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }

    .about-service-row-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-nutshell-grid,
    .about-logo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-logo-cell {
        min-height: 60px;
        padding: 0.65rem;
    }
}
