/* ===========================
   About Page — Layout Container
   =========================== */
.about-page {
    display: flex;
    flex-direction: column;
}

/* ===========================
   About Page — Hero Section
   =========================== */
.about-hero {
    position: relative;
    width: 100%;
    height: 969px;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Side shadow: left-to-right in LTR */
.about-hero-shadow-side {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 11, 11, 0.8) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Bottom shadow */
.about-hero-shadow-bottom {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 262px;
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0) 0%, rgba(11, 11, 11, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Blur content band at bottom */
.about-hero-blur {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 728px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: linear-gradient(to bottom, rgba(44, 51, 130, 0) 0%, rgba(var(--color-secondary-rgb), 0.6) 100%);
    z-index: 3;
    display: flex;
    align-items: flex-start;
    padding-top: 14px;
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 780px;
}

/* Title */
.about-hero-title {
    font-weight: 900;
    font-size: clamp(43px, 6vw, 86px);
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(70deg, var(--color-white) 4%, var(--color-secondary) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    min-height: 3em;
}


/* Description with accent border */
.about-hero-desc-wrap {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.about-hero-desc-border {
    width: 3px;
    flex-shrink: 0;
    background: var(--color-primary-light);
    border-radius: 2px;
}

.about-hero-desc {
    font-weight: 300;
    font-size: 16px;
    line-height: 26px;
    text-align: justify;
    color: var(--color-white);
    margin: 0;
    margin-inline-start: 1.5rem;
    max-width: 713px;
}

/* Stats box */
.about-hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 20px;
    height: 138px;
    max-width: 605px;
    padding: 25px 47px;
    position: relative;
    z-index: 0;
}

    .about-hero-stats::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        z-index: -1;
    }

.about-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-hero-stat-number {
    font-weight: 700;
    font-size: 36px;
    line-height: normal;
    background: linear-gradient(226deg, var(--color-primary) 1%, var(--color-primary-light) 82%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero-stat-label {
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    text-transform: capitalize;
}

/* Floating glass cards (desktop) */
@keyframes aboutFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.about-hero-float-cards {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 420px;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.about-hero-float-card {
    position: absolute;
    width: 183px;
    height: 163px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 12px;
    pointer-events: auto;
    animation: aboutFloat 4s ease-in-out infinite;
}

    .about-hero-float-card:nth-child(1) {
        animation-duration: 4s;
        animation-delay: 0s;
    }

    .about-hero-float-card:nth-child(2) {
        animation-duration: 4.5s;
        animation-delay: 0.6s;
    }

    .about-hero-float-card:nth-child(3) {
        animation-duration: 5s;
        animation-delay: 1.2s;
    }

.about-hero-float-number {
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--color-white);
}

.about-hero-float-label {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    text-transform: capitalize;
    color: var(--color-white);
}

/* ===========================
   About Page — Values Section
   =========================== */
.about-values {
    padding: 80px 0;
}

.about-values-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-values-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 200px;
}

.about-values-icon {
    width: 200px;
    height: 200px;
    border: none;
    border-radius: 12px;
    background: rgba(79, 205, 245, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 0;
}

    .about-values-icon::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        z-index: -1;
    }

    .about-values-icon.show {
        opacity: 1;
        transform: scale(1);
    }

    .about-values-icon img,
    .about-values-icon video {
        width: 100px;
        height: 100px;
        object-fit: contain;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .about-values-icon img.show,
        .about-values-icon video.show {
            opacity: 1;
        }

.about-values-label {
    font-weight: 900;
    font-size: 18px;
    line-height: normal;
    text-transform: uppercase;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .about-values-label.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Connecting dashed lines between values */
.about-values-line {
    flex: 1;
    height: 0;
    border-top: 2px solid rgba(var(--color-primary-rgb), 0.4);
    margin-top: -30px;
    max-width: 166px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s ease;
}

    .about-values-line.draw {
        transform: scaleX(1);
    }

[dir="rtl"] .about-values-line {
    transform-origin: right center;
}

/* ===========================
   About Page — Clients Section
   =========================== */
.about-clients {
    padding: 60px 0 80px;
}

.about-clients-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.about-clients-title {
    font-weight: 900;
    font-size: 66px;
    line-height: 86px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(21deg, var(--color-white) 40%, var(--color-secondary) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-clients-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    text-transform: capitalize;
    color: var(--color-white);
    max-width: 800px;
    margin: 0;
}

/* Logo grid */
.about-clients-track {
    overflow: hidden;
}

.about-clients-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    overflow: hidden;
}

.about-clients-grid > .about-clients-logo {
    display: none;
}

.about-marquee-row {
    display: flex;
    width: max-content;
    gap: 30px;
    direction: ltr;
}

.about-marquee-row .about-clients-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 200px;
    height: 60px;
    padding: 4px 10px;
}

    .about-clients-logo img {
        display: block;
        width: 120px;
        height: 100px;
        object-fit: contain;
        filter: brightness(0) invert(1);
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

        .about-clients-logo img:hover {
            opacity: 1;
        }


@keyframes aboutMarqueeLtr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes aboutMarqueeRtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.about-marquee-row--even {
    animation-direction: reverse;
}

/* Pagination (hidden — marquee replaces carousel) */
.about-clients-pagination {
    display: none !important;
}

.about-clients-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .about-clients-dot.active {
        width: 40px;
        border-radius: 52px;
        background: var(--color-white);
        border-color: var(--color-white);
    }

/* ===========================
   Responsive — Large (max-width: 1200px)
   =========================== */
@media (max-width: 1200px) {
    /* Hero: hide float cards */
    .about-hero-float-cards {
        display: none;
    }

    .about-hero {
        height: auto;
        min-height: 700px;
    }

    .about-hero-blur {
        position: relative;
        height: auto;
    }

    .about-hero-content {
        padding-top: 200px;
        padding-bottom: 40px;
    }

    /* Values */
    .about-values-icon {
        width: 160px;
        height: 160px;
    }

        .about-values-icon img,
        .about-values-icon video {
            width: 80px;
            height: 80px;
        }

    .about-values-item {
        width: 160px;
    }

    .about-values-label {
        font-size: 16px;
    }

    /* Clients */
    .about-clients-title {
        font-size: 52px;
        line-height: 66px;
    }
}

/* ===========================
   Responsive — Mobile (max-width: 991px)
   =========================== */
@media (max-width: 991px) {
    /* Reorder sections: V&M before Values on mobile */
    .vm-section {
        order: 2;
    }

    .about-values {
        order: 3;
    }

    .about-clients {
        order: 4;
    }

    /* Hero — height driven by blur content, no extra min-height */
    .about-hero {
        height: auto;
        min-height: 0;
    }

    .about-hero-content {
        padding-top: 120px;
        padding-bottom: 40px;
        max-width: 100%;
    }

    .about-hero-blur {
        position: relative;
        height: auto;
        align-items: flex-end;
    }

    /* Hide accent border on mobile */
    .about-hero-desc-border {
        display: none;
    }

    .about-hero-desc {
        margin-inline-start: 0;
    }

    /* Stats as standalone section (moved outside hero by JS) */
    .about-hero-stats {
        order: 1;
        width: auto;
        max-width: none;
        height: 92px;
        padding: 16px 28px;
        margin: 40px var(--content-padding) 0;
    }

    .about-hero-stat-number {
        font-size: 26px;
    }

    .about-hero-stat-label {
        font-size: 12px;
    }

    /* Values */
    .about-values {
        padding: 40px 0 20px;
    }

    .about-values-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        justify-items: center;
    }

    .about-values-line {
        display: none;
    }

    .about-values-item {
        width: auto;
    }

    .about-values-icon {
        width: 60px;
        height: 60px;
    }

        .about-values-icon img,
        .about-values-icon video {
            width: 30px;
            height: 30px;
        }

    .about-values-label {
        font-size: 8px;
    }

    /* Clients */
    .about-clients {
        padding: 40px 0 60px;
    }

    .about-clients-header {
        margin-bottom: 30px;
    }

    .about-clients-title {
        font-size: 34px;
        line-height: 86px;
    }

    .about-clients-desc {
        font-size: 13px;
        line-height: 20px;
    }

    .about-marquee-row .about-clients-logo {
        width: 160px;
        height: 50px;
    }
}

/* ===========================
   Responsive — Small Mobile (max-width: 576px)
   =========================== */
@media (max-width: 576px) {
    .about-marquee-row .about-clients-logo {
        width: 130px;
        height: 44px;
    }
}

/* ===========================
   About Page — Entrance Animations
   =========================== */
@keyframes aboutSlideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-page--animate .about-hero {
    animation: aboutSlideUp 0.8s ease-out both;
}

.about-page--animate .about-values {
    opacity: 0;
    animation: aboutSlideUp 0.8s 0.15s ease-out both;
}

.about-page--animate .vm-section {
    opacity: 0;
    animation: aboutSlideUp 0.8s 0.3s ease-out both;
}

.about-page--animate .about-clients {
    opacity: 0;
    animation: aboutSlideUp 0.8s 0.45s ease-out both;
}

.about-page--animate .site-footer {
    opacity: 0;
    animation: aboutSlideUp 0.8s 0.6s ease-out both;
}

/* ===========================
   Reduced Motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
    .about-hero-float-card {
        animation: none;
    }

    .about-page--animate .about-hero,
    .about-page--animate .about-values,
    .about-page--animate .vm-section,
    .about-page--animate .about-clients,
    .about-page--animate .site-footer {
        animation: none;
        opacity: 1;
    }
}

/* ===========================
   RTL Overrides
   =========================== */

/* Flip the side shadow direction */
[dir="rtl"] .about-hero-title {
    line-height: 1.2;
}

[dir="rtl"] .about-hero-shadow-side {
    background: linear-gradient(to left, rgba(11, 11, 11, 0.8) 0%, transparent 100%);
}
