/* Shared client pages — aligns with Home (no video hero) */
:root {
    --client-primary: #00c8ff;
    --client-accent: #ff2d2d;
    --client-text: #f0f0f0;
    --client-muted: rgba(220, 224, 235, 0.85);
    --client-surface-0: linear-gradient(165deg, rgba(10, 14, 24, 0.97) 0%, rgba(18, 22, 34, 0.95) 50%, rgba(8, 10, 18, 0.98) 100%);
    --client-surface-1: linear-gradient(175deg, rgba(14, 18, 28, 0.96), rgba(22, 28, 42, 0.94), rgba(12, 16, 26, 0.97));
    --client-border: rgba(255, 255, 255, 0.1);
}

.client-page {
    min-height: 100%;
}

/* Static header (replaces video hero) */
/* Contact page: video hero (same pattern as Home — video + overlay + text) */
.client-contact-hero {
    position: relative;
    overflow: hidden;
    margin-top: -78px;
    padding: clamp(7rem, 18vw, 11rem) 1.25rem clamp(2.75rem, 6vw, 4rem);
    text-align: center;
    color: var(--client-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(22rem, 52vh, 38rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.client-contact-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.client-contact-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.58));
    z-index: 1;
}

.client-contact-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    margin: 0 auto;
}

.client-contact-hero__title {
    margin: 0 auto 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 0 24px rgba(0, 200, 255, 0.25);
}

.client-contact-hero__lead {
    margin: 0 auto;
    max-width: 40rem;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(240, 240, 245, 0.88);
    font-weight: 400;
}

@media (max-width: 991.98px) {
    .client-contact-hero {
        margin-top: calc(-1 * (24px + var(--nav-menu-mobile-height, 64px)));
        padding-top: clamp(6.5rem, 22vw, 10rem);
    }
}

.client-static-hero {
    position: relative;
    padding: clamp(2.75rem, 7vw, 4.5rem) 1.25rem;
    text-align: center;
    color: var(--client-text);
    background: var(--client-surface-0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.client-static-hero__title {
    margin: 0 auto 0.75rem;
    max-width: 56rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 0 24px rgba(0, 200, 255, 0.2);
}

.client-static-hero__lead {
    margin: 0 auto 1.5rem;
    max-width: 40rem;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--client-muted);
    font-weight: 400;
}

.client-static-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

/* Content sections (alternate like Home) */
.client-section {
    padding: clamp(48px, 6vw, 88px) 0 !important;
    background: var(--client-surface-0);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--client-text);
}

.client-section--alt {
    background: var(--client-surface-1) !important;
}

.client-section--cta {
    text-align: center;
    background: var(--client-surface-1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.client-section--narrow .container {
    max-width: 800px;
}

/* H2 with gradient underline (centered) */
.client-section-title {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    font-weight: 800;
    color: var(--client-text);
    margin-bottom: 2.5rem !important;
    padding-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.client-section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--client-primary) 0%, var(--client-accent) 100%);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.45);
}

.client-section-title--left {
    text-align: left;
    width: auto;
    display: block;
}

.client-section-title--left::after {
    left: 0;
    transform: none;
}

/* Outline buttons (match Home) */
.client-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

button.client-outline-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.client-outline-btn:hover:not(:disabled),
.client-outline-btn:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(0, 200, 255, 0.85);
    background: rgba(0, 200, 255, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    color: #fff !important;
    outline: none;
}

.client-outline-btn--accent:hover:not(:disabled),
.client-outline-btn--accent:focus-visible {
    border-color: rgba(255, 90, 100, 0.65);
    background: rgba(255, 60, 80, 0.12);
    box-shadow: 0 10px 28px rgba(255, 40, 60, 0.15);
}

/* Glass cards (service / detail blocks) */
.client-glass-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.client-glass-card:hover {
    border-color: rgba(0, 200, 255, 0.35) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

.client-glass-card--focus {
    border-color: rgba(0, 200, 255, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.2), 0 14px 36px rgba(0, 0, 0, 0.32) !important;
}

/* Icon accent (services) */
.client-icon-accent {
    color: var(--client-primary) !important;
    filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.35));
}

.client-icon-accent-warm {
    color: #ff5a5a !important;
    filter: drop-shadow(0 0 10px rgba(255, 80, 100, 0.35));
}

/* Text inside sections */
.client-section p,
.client-section .lead,
.client-section li,
.client-section .card-text,
.client-static-hero p {
    color: var(--client-muted) !important;
}

.client-section h3,
.client-section h4,
.client-section h5,
.client-section .card-title {
    color: var(--client-text) !important;
}

/* Lists with check (cards) */
.client-glass-card ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-bottom: 0;
}

.client-glass-card ul li {
    position: relative;
    padding-left: 1.65rem;
    margin-bottom: 0.5rem;
    color: var(--client-muted);
}

.client-glass-card ul li::before {
    content: "\f26a";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--client-accent);
    font-size: 0.95em;
}

/* Compat: map old class names to shared look */
.client-page .custom-gradient-button,
.client-page .custom-gradient-button-inverted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 0.75rem 1.5rem;
    transition: transform 0.35s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.35s ease;
}

.client-page .custom-gradient-button:hover:not(:disabled),
.client-page .custom-gradient-button-inverted:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: rgba(0, 200, 255, 0.85) !important;
    background: rgba(0, 200, 255, 0.1) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
    filter: none;
}

.client-section .simple-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: start;
}

.client-section .simple-list li {
    margin-bottom: 0.5rem;
    color: var(--client-muted) !important;
}

.client-section .simple-list strong {
    color: var(--client-primary) !important;
}

/* Contact / plain blocks (no box) */
.client-contact-plain {
    padding: 0;
    border: none;
    background: none;
}

.client-map-plain img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Legal / long-form readability */
.client-prose {
    max-width: 52rem;
    margin: 0 auto;
}

.client-prose h2,
.client-prose h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--client-text);
}

.client-prose a {
    color: var(--client-primary);
    text-decoration: none;
}

.client-prose a:hover {
    text-decoration: underline;
}

/* Simple centered message pages */
.client-message-panel {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.25rem;
}

/* Offer sent confirmation */
.client-confirm-wrap {
    display: flex;
    align-items: center;
    min-height: min(70vh, 720px);
    padding: 2rem 0 3rem;
}

.client-confirm-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: #fff;
    background: linear-gradient(125deg, #00c8ff, #c93a4a 60%, #ff2d2d);
    box-shadow: 0 0 28px rgba(0, 200, 255, 0.35);
}

a.client-action-tile {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.35rem 1.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.22);
    transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

a.client-action-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 200, 255, 0.55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

a.client-action-tile--home:hover {
    border-color: rgba(255, 80, 100, 0.5);
}

.client-page-footer {
    text-align: center;
    padding: 1.75rem 1rem;
    font-size: 0.95rem;
    color: rgba(200, 200, 210, 0.88) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(10, 12, 20, 0.96), #0a0c12);
}

.client-page-footer p {
    margin: 0;
    color: inherit !important;
}

/* Pricing page — same language as Home “Serviciile noastre” (tile grid) */
.client-pricing-like-home {
    text-align: center;
    background: linear-gradient(160deg, rgba(8, 12, 22, 0.94), rgba(16, 24, 39, 0.92)) !important;
}

.client-pricing-like-home .home-lower-container {
    position: relative;
    z-index: 1;
}

.client-pricing-like-home .home-lower-title {
    font-size: clamp(1.75rem, 4vw, 3.2rem);
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    font-weight: 800;
    position: relative;
    display: inline-block;
    width: 100%;
    padding-bottom: 0.5rem;
}

.client-pricing-like-home .home-lower-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--client-primary) 0%, var(--client-accent) 100%);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.45);
}

.client-pricing-like-home .client-pricing-sub {
    max-width: 40rem;
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--client-muted) !important;
}

.client-pricing-like-home .home-service-grid--prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 2.25rem;
    text-align: left;
}

/* Pricing tiles: extended cards (not square; no aspect-ratio lock) */
.client-pricing-like-home .home-service-tile--pricing {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    aspect-ratio: auto;
    padding: 1.25rem 1.15rem 1.1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.4s ease, background 0.35s ease;
}

.client-pricing-like-home .home-service-tile--pricing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.12), transparent 55%, rgba(255, 45, 45, 0.08));
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
    pointer-events: none;
}

.client-pricing-like-home .home-service-tile--pricing .home-service-tile-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65);
    background: radial-gradient(circle, rgba(0, 200, 255, 0.22) 0%, transparent 65%);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
    z-index: 0;
    pointer-events: none;
}

.client-pricing-like-home .home-service-tile--pricing .home-service-tile-icon,
.client-pricing-like-home .home-service-tile--pricing .client-price-tile-body {
    position: relative;
    z-index: 1;
}

.client-pricing-like-home .home-service-tile--popular {
    border-color: rgba(255, 90, 90, 0.55);
}

.client-pricing-like-home .home-service-tile-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.55rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(200, 40, 50, 0.85);
    line-height: 1.2;
}

.client-pricing-like-home .client-price-tile-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    gap: 0.65rem;
}

.client-pricing-like-home .client-price-tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.client-pricing-like-home .client-price-lead {
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(235, 235, 245, 0.75);
    margin: 0;
}

.client-pricing-like-home .client-price-amounts {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(220, 220, 235, 0.88);
    padding: 0.4rem 0 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.client-pricing-like-home .client-price-amounts span.client-price-numeric {
    color: #7ee3ff;
    font-weight: 600;
}

.client-pricing-like-home .client-price-technical {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
}

.client-pricing-like-home .client-price-technical li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(220, 220, 235, 0.8);
}

.client-pricing-like-home .client-price-technical li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 0.65rem;
    color: #00c8ff;
}

.client-pricing-like-home .client-price-tech-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(0, 200, 255, 0.65);
    margin: 0.2rem 0 0.15rem;
}

.client-pricing-like-home .home-service-tile--pricing:hover,
.client-pricing-like-home .home-service-tile--pricing:focus-within {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 200, 255, 0.75);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 200, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.client-pricing-like-home .home-service-tile--pricing:hover::after,
.client-pricing-like-home .home-service-tile--pricing:focus-within::after {
    opacity: 1;
}

.client-pricing-like-home .home-service-tile--pricing:hover .home-service-tile-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.client-pricing-like-home .home-service-tile--popular:hover,
.client-pricing-like-home .home-service-tile--popular:focus-within {
    border-color: rgba(255, 120, 120, 0.85);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 32px rgba(255, 60, 60, 0.12);
}

/* Founder / team (About) */
.client-founder-block {
    max-width: 52rem;
    margin: 0 auto;
}

.client-founder-photo {
    max-width: 14rem;
    margin: 0 auto;
    border: 1.5px solid rgba(0, 200, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.client-founder-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
}

.client-founder-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.client-founder-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #7ee3ff;
    margin: 0 0 0.15rem;
}

.client-founder-sub {
    font-size: 0.9rem;
    color: var(--client-muted) !important;
    margin: 0 0 1rem;
}

a.client-founder-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(10, 102, 194, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.client-founder-linkedin:hover {
    background: rgba(10, 102, 194, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 1199.98px) {
    .client-pricing-like-home .home-service-grid--prices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .client-pricing-like-home .home-service-grid--prices {
        grid-template-columns: 1fr;
        max-width: 24rem;
        margin-left: auto;
        margin-right: auto;
    }
}

.client-action-tile .card-link {
    margin-top: auto;
    padding-top: 0.75rem;
    color: #7ee3ff;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .client-static-hero__actions {
        width: 100%;
    }

    .client-outline-btn,
    .client-page .custom-gradient-button {
        width: 100%;
    }
}

/* Offer request form (GetAnOffer) */
.client-offer-form .alert-success-custom {
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.55);
    color: #7ee3ff;
}

.client-offer-form .alert-error-custom {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.55);
    color: #ff8a9a;
}

.client-offer-form .custom-checkbox {
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    border: 1px solid #00c8ff;
    background: rgba(0, 0, 0, 0.3);
    appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.client-offer-form .custom-checkbox:checked {
    background: #ff2d2d;
    border-color: #ff2d2d;
}

.client-offer-form .custom-checkbox:checked::after {
    content: "✓";
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    font-size: 0.7em;
    font-weight: bold;
}

.client-offer-form .custom-checkbox-container {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem !important;
}

/* Legal long-form (terms) */
.client-legal .content-block {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.client-legal .content-block:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.client-legal ul:not(.client-glass-card ul) {
    text-align: start;
    color: var(--client-muted);
}

/* Portfolio */
.portfolio-tab-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.portfolio-tab-switcher {
    background: rgba(255, 255, 255, 0.06);
    padding: 5px;
    border-radius: 12px;
    display: inline-flex;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-tab-switcher button {
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    background: transparent;
    color: var(--client-muted);
}

.portfolio-tab-switcher button:hover {
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-tab-switcher button.active {
    background: rgba(0, 200, 255, 0.15);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Portfolio logo tab: 5 columns desktop, responsive; home-style hover */
.client-logo-showcase {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 2.75rem;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.client-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    width: 100%;
}

.client-logo-item .client-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(156px, 19.5vw, 228px);
    object-fit: contain;
    cursor: default;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease;
    will-change: transform;
}

.client-logo-item:hover .client-logo-img {
    transform: scale(1.08) translateY(-12px) rotate(-1.5deg);
    filter:
        brightness(1.14)
        drop-shadow(0 18px 36px rgba(0, 0, 0, 0.48))
        drop-shadow(0 0 28px rgba(0, 200, 255, 0.42))
        drop-shadow(0 0 60px rgba(0, 200, 255, 0.15));
}

.client-logo-item .client-logo-name {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    color: var(--client-muted);
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 991px) {
    .client-logo-showcase {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .client-logo-item .client-logo-img {
        max-height: clamp(156px, 27vw, 228px);
    }
}

@media (max-width: 767px) {
    .client-logo-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 0.75rem;
        row-gap: 2rem;
    }

    .client-logo-item .client-logo-img {
        max-height: clamp(144px, 33vw, 216px);
    }

    .client-logo-item .client-logo-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .client-logo-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-logo-item .client-logo-img {
        transition: none;
    }

    .client-logo-item:hover .client-logo-img {
        transform: none;
        filter: brightness(1.06);
    }
}

.client-portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 0.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.client-project-card {
    overflow: hidden;
    text-align: left;
}

.client-project-card .client-project-carousel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.client-project-card .client-project-carousel .carousel-item img,
.client-project-card .client-project-carousel .project-image {
    height: min(500px, 55vh);
    width: 100%;
    object-fit: cover;
    display: block;
}

.client-project-info {
    padding: 1.5rem 1.75rem 1.75rem;
}

.client-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.client-project-tags span {
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--client-muted);
    background: rgba(0, 0, 0, 0.2);
}

.client-page .client-project-card .carousel-control-prev,
.client-page .client-project-card .carousel-control-next {
    width: 10%;
    opacity: 0.85;
}

/* Error / maintenance panels */
.client-simple-page {
    min-height: min(78vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: var(--client-surface-0);
}

.client-simple-page .client-glass-card {
    max-width: 32rem;
}

.client-maintenance-wrap {
    min-height: min(88vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: var(--client-surface-0);
    background-image: linear-gradient(165deg, rgba(10, 14, 24, 0.92), rgba(8, 10, 18, 0.94)), url("images/background-maintenance.png");
    background-size: cover;
    background-position: center;
}

@media (prefers-reduced-motion: reduce) {
    .client-outline-btn,
    .client-glass-card,
    .client-page .custom-gradient-button {
        transition: none;
    }
}
