/* ==========================================================================
   Anmol Digital — Team + Empty State + Pagination Compact Final V1
   ========================================================================== */

/* ==========================================================================
   TEAM CARD — SHARED FINAL
   ========================================================================== */

.team-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(0, 0, 0, .035),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f3
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 15px 38px rgba(0, 0, 0, .055);
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.team-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -96px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: 50%;
    pointer-events: none;
}

.team-card:hover {
    border-color: rgba(0, 0, 0, .17);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 22px 50px rgba(0, 0, 0, .085);
    transform: translateY(-3px);
}

.team-card__media {
    position: relative;
    z-index: 1;
    min-height: 0 !important;
    aspect-ratio: 4 / 4.18;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background:
        linear-gradient(
            145deg,
            #e7e7e3,
            #d8d8d3
        );
}

.team-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 58%,
            rgba(0, 0, 0, .38) 100%
        );
    pointer-events: none;
}

.team-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1);
    transition: transform 280ms ease;
}

.team-card:hover .team-card__media img {
    filter: none !important;
    transform: scale(1.025);
}

.team-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 50% 34%,
            rgba(255, 255, 255, .10),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #191919,
            #080808
        );
    color: #ffffff;
}

.team-card__placeholder span {
    font-size: clamp(52px, 7vw, 76px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.09em;
}

.team-card__socials {
    position: absolute;
    right: 11px;
    bottom: 11px;
    left: auto !important;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 1 !important;
    transform: none !important;
}

.team-card__socials a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(8, 8, 8, .72);
    color: #ffffff;
    font-size: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
}

.team-card__socials a:hover,
.team-card__socials a:focus-visible {
    background: #ffffff;
    color: #111111;
    outline: none;
    transform: translateY(-2px);
}

.team-card__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 18px;
}

.team-card__content h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #111111;
    font-size: clamp(22px, 2.3vw, 29px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.team-card__designation {
    margin: 7px 0 0;
    color: #727272;
    font-size: 9.5px;
    font-weight: 830;
    line-height: 1.45;
    letter-spacing: .10em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.team-card__bio {
    margin: 13px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #666666;
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.team-card__email {
    max-width: 100%;
    margin-top: 14px;
    padding-top: 13px;
    display: block;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, .09);
    color: #111111;
    font-size: 10.5px;
    font-weight: 780;
    line-height: 1.45;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-card__email:hover,
.team-card__email:focus-visible {
    color: #676767;
}

/* Public Team page grid */

.team-page__grid {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    ) !important;
    align-items: stretch;
    gap: 12px !important;
}

.team-page__grid .team-card {
    width: 100%;
    max-width: 350px;
    margin-inline: auto;
}

/* Homepage team preview */

.team-section .team-grid,
.home-page .team-grid {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 12px;
}

.team-section .team-card,
.home-page .team-card {
    width: 100%;
    max-width: 350px;
    margin-inline: auto;
}

/* ==========================================================================
   EMPTY STATE — SHARED FINAL
   ========================================================================== */

.empty-state {
    position: relative;
    max-width: 720px;
    min-width: 0;
    margin: 0 auto;
    padding: clamp(24px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(0, 0, 0, .03),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f3
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 14px 34px rgba(0, 0, 0, .045);
    text-align: center;
}

.empty-state::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -95px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: 50%;
    pointer-events: none;
}

.empty-state > * {
    position: relative;
    z-index: 1;
}

.empty-state__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            #202020,
            #080808
        );
    color: #ffffff;
    font-size: 15px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .10) inset,
        0 12px 26px rgba(0, 0, 0, .15);
}

.empty-state h2 {
    max-width: 620px;
    margin: 0 auto;
    color: #111111;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 880;
    line-height: 1.08;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.empty-state p {
    max-width: 570px;
    margin: 11px auto 0;
    color: #6c6c6c;
    font-size: 13.5px;
    line-height: 1.65;
}

.empty-state .button {
    min-height: 44px;
    margin-top: 19px;
    padding-inline: 17px;
    justify-content: center;
    border-radius: 11px;
}

/* Empty states inside dark sections */

.testimonials-section .empty-state,
.about-page__highlights .empty-state,
.services-page__process .empty-state {
    border-color: rgba(255, 255, 255, .11);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .07),
            rgba(255, 255, 255, .025)
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .04) inset,
        0 16px 38px rgba(0, 0, 0, .18);
}

.testimonials-section .empty-state h2,
.about-page__highlights .empty-state h2,
.services-page__process .empty-state h2 {
    color: #ffffff;
}

.testimonials-section .empty-state p,
.about-page__highlights .empty-state p,
.services-page__process .empty-state p {
    color: rgba(255, 255, 255, .58);
}

/* ==========================================================================
   PAGINATION — SHARED FINAL
   ========================================================================== */

.pagination-nav {
    max-width: 100%;
    margin: clamp(24px, 4vw, 38px) auto 0;
    padding: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.pagination-nav::-webkit-scrollbar {
    display: none;
}

.pagination {
    width: max-content;
    min-width: min-content;
    margin: 0 auto;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .80);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 12px 28px rgba(0, 0, 0, .045);
    list-style: none;
}

.page-item {
    flex: 0 0 auto;
}

.page-link {
    min-width: 37px;
    height: 37px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #555555;
    font-size: 11px;
    font-weight: 780;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

a.page-link:hover,
a.page-link:focus-visible {
    border-color: rgba(0, 0, 0, .08);
    background: rgba(0, 0, 0, .045);
    color: #111111;
    outline: none;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .10) inset,
        0 8px 18px rgba(0, 0, 0, .14);
}

.page-item.disabled .page-link {
    color: #a0a0a0;
    cursor: default;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 820px) {
    .team-page__grid,
    .team-section .team-grid,
    .home-page .team-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        ) !important;
    }
}

@media (max-width: 560px) {
    .team-page__grid,
    .team-section .team-grid,
    .home-page .team-grid {
        grid-template-columns: 1fr !important;
        max-width: 420px;
        margin-inline: auto;
    }

    .team-card {
        max-width: 420px !important;
        border-radius: 17px;
    }

    .team-card__media {
        aspect-ratio: 4 / 4.05;
    }

    .team-card__content {
        padding: 17px 15px;
    }

    .team-card__content h3 {
        font-size: 24px;
    }

    .team-card__bio {
        font-size: 11.8px;
        -webkit-line-clamp: 4;
    }

    .team-card__socials {
        right: 9px;
        bottom: 9px;
    }

    .team-card__socials a {
        width: 30px;
        height: 30px;
    }

    .empty-state {
        padding: 22px 16px;
        border-radius: 17px;
    }

    .empty-state__icon {
        width: 46px;
        height: 46px;
        margin-bottom: 13px;
        border-radius: 13px;
    }

    .empty-state h2 {
        font-size: clamp(23px, 7.8vw, 30px);
    }

    .empty-state p {
        margin-top: 9px;
        font-size: 12.5px;
    }

    .empty-state .button {
        width: 100%;
        min-height: 45px;
    }

    .pagination-nav {
        margin-top: 24px;
    }

    .pagination {
        padding: 5px;
        gap: 4px;
        border-radius: 12px;
    }

    .page-link {
        min-width: 35px;
        height: 35px;
        padding: 7px 9px;
        border-radius: 8px;
        font-size: 10.5px;
    }
}

@media (hover: none) {
    .team-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-card__media img,
    .team-card__socials a,
    .page-link {
        transition: none !important;
        transform: none !important;
    }
}

@media print {
    .pagination-nav {
        display: none !important;
    }
}
