﻿:root {
    --brand-dark: #1a1a2e;
    --brand-mid: #16213e;
    --brand-deep: #0f3460;
    --accent: #e63946;
    --accent-dark: #0f3460;
    --gold: #ffd166;
    --accent2: #457b9d;
    --surface: var(--color-background-primary, #fff);
    --surface2: var(--color-background-secondary, #f5f5f5);
    --text1: var(--color-text-primary, #111);
    --text2: var(--color-text-secondary, #666);
    --border: var(--color-border-tertiary, rgba(0,0,0,0.1));
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --ff: @(fontFamily);
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--ff);
}
.ag-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
    direction: @dir;
}
/* ── HERO PROFILE ── */
.ag-hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 55%, var(--brand-deep) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem 2rem 1.75rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
    .ag-hero::before {
        content: '';
        position: absolute;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(230,57,70,0.13);
        top: -90px;
        @(isAr ? "left: -90px;" : "right: -90px;") pointer-events: none;
    }
    .ag-hero::after {
        content: '';
        position: absolute;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: rgba(69,123,157,0.15);
        bottom: -50px;
        @(isAr ? "right: 30px;" : "left: 30px;") pointer-events: none;
    }
.ag-logo {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
    .ag-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
.ag-info {
    flex: 1;
    min-width: 0;
}
    .ag-info h1 {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 5px;
        line-height: 1.2;
        color: white;
    }
    .ag-info .tagline {
        font-size: 13px;
        opacity: 0.72;
        margin-bottom: 14px;
    }
.ag-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.ag-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}
    .ag-badge.red {
        background: #4A6EFF;
        border-color: #4A6EFF;
    }
.ag-rating-box {
    text-align: center;
    background: rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.16);
    flex-shrink: 0;
    min-width: 100px;
}
    .ag-rating-box .rnum {
        font-size: 38px;
        font-weight: 800;
        color: var(--gold);
        line-height: 1;
    }
    .ag-rating-box .rstars {
        color: var(--gold);
        font-size: 14px;
        margin: 4px 0;
        letter-spacing: 2px;
    }
    .ag-rating-box .rlabel {
        font-size: 11px;
        opacity: 0.6;
    }
/* ── TABS ── */
.ag-tabs {
    display: flex;
    gap: 5px;
    background: var(--surface2);
    border-radius: var(--radius-lg);
    padding: 5px;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    border: 0.5px solid var(--border);
    scrollbar-width: none;
}
    .ag-tabs::-webkit-scrollbar {
        display: none;
    }
.ag-tab {
    flex: 1;
    min-width: max-content;
    padding: 9px 14px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    color: var(--text2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-family: var(--ff);
}
    .ag-tab.active {
        background: var(--surface);
        color: #4A6EFF;
        box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    }
    .ag-tab i {
        font-size: 16px;
    }
/* ── SECTION TITLE ── */
.ag-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text1);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
    .ag-section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }
/* ── PROJECTS GRID ── */
.ag-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 1.5rem;
}
.ag-project-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
    .ag-project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
.ag-project-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, var(--brand-dark), var(--accent2));
}
    .ag-project-img.placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.25);
        font-size: 32px;
    }
.ag-project-body {
    padding: 11px 13px 13px;
}
.ag-project-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text1);
    margin-bottom: 3px;
}
.ag-project-meta {
    font-size: 11px;
    color: var(--text2);
    line-height: 1.6;
}
.ag-service-tag {
    display: inline-block;
    margin-top: 7px;
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    background: #e6f1fb;
    color: #185fa5;
    font-weight: 700;
}
.ag-project-desc {
    font-size: 12px;
    color: var(--text2);
    margin-top: 6px;
    line-height: 1.5;
}
.ag-view-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #4A6EFF;
    margin-top: 8px;
    text-decoration: none;
}
/* ── CLIENTS ── */
.ag-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}
.ag-client-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
}
    .ag-client-card:hover {
        border-color: var(--accent2);
        transform: scale(1.03);
    }
    .ag-client-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
    }
    .ag-client-card.no-img {
        font-size: 12px;
        font-weight: 700;
        color: var(--text2);
        text-align: center;
        padding: 8px;
    }
/* ── BLOGS ── */
.ag-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 1.5rem;
}
.ag-blog-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s;
}
    .ag-blog-card:hover {
        transform: translateY(-3px);
    }
.ag-blog-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.ag-blog-body {
    padding: 10px 13px 13px;
}
.ag-blog-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text1);
    line-height: 1.45;
}
.ag-blog-date {
    font-size: 11px;
    color: var(--text2);
    margin-top: 5px;
}
/* ── REVIEWS ── */
.ag-review-summary {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
    .ag-review-summary .big-num {
        font-size: 52px;
        font-weight: 800;
        color: var(--gold);
        line-height: 1;
    }
    .ag-review-summary .stars-row {
        color: var(--gold);
        font-size: 18px;
        letter-spacing: 2px;
        margin: 5px 0 3px;
    }
    .ag-review-summary .count {
        font-size: 13px;
        opacity: 0.7;
    }
.ag-review-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.ag-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid var(--border);
}
.ag-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A6EFF, var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}
.ag-reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text1);
}
.ag-reviewer-title {
    font-size: 12px;
    color: var(--text2);
    margin-top: 1px;
}
.ag-review-score {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
    .ag-review-score span {
        font-size: 12px;
        color: var(--text2);
        font-weight: 400;
    }
.ag-review-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.ag-review-q {
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 3px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ag-review-a {
    font-size: 13px;
    color: var(--text1);
    line-height: 1.65;
}
.ag-recommend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #eaf3de;
    color: #3b6d11;
}
    .ag-recommend.no {
        background: #fcebeb;
        color: #a32d2d;
    }
.ag-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    font-size: 12px;
}
.ag-bar-label {
    width: @(isAr ? "70px" : "85px");
    color: var(--text2);
    font-weight: 600;
    @(isAr ? "text-align:right;" : "")
}
.ag-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--surface2);
    border-radius: 4px;
    overflow: hidden;
}
.ag-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #4A6EFF, var(--gold));
}
.ag-bar-val {
    width: 30px;
    font-weight: 700;
    color: var(--text1);
}
.ag-write-review {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    margin-top: 1rem;
}
    .ag-write-review .wr-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        background: rgba(255,255,255,0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex-shrink: 0;
    }
    .ag-write-review .wr-title {
        font-size: 14px;
        font-weight: 700;
    }
    .ag-write-review .wr-sub {
        font-size: 12px;
        opacity: 0.7;
        margin-top: 2px;
    }
    .ag-write-review .wr-btn {
        @(isAr ? "margin-right: auto;" : "margin-left: auto;") background: #4A6EFF;
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 9px 18px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        text-decoration: none;
        font-family: var(--ff);
        display: inline-block;
    }
/* ── VIEW MORE BUTTON ── */
.ag-view-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border: 0.5px dashed var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    color: var(--text2);
    cursor: pointer;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
}
    .ag-view-more-btn:hover {
        border-color: #4A6EFF;
        color: #4A6EFF;
    }
/* ── CONTACT FORM ── */
.ag-contact-wrap {
    padding-bottom: 1rem;
}
.ag-contact-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.4rem;
    color: #fff;
    margin-bottom: 1.25rem;
}
    .ag-contact-intro .ci-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: rgba(255,255,255,0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex-shrink: 0;
    }
    .ag-contact-intro h2 {
        font-size: 16px;
        font-weight: 800;
    }
    .ag-contact-intro p {
        font-size: 12px;
        opacity: 0.7;
        margin-top: 2px;
    }
.ag-form-block {
    background: var(--surface2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 0.5px solid var(--border);
}
.ag-form-block-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ag-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ag-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
    .ag-field label {
        font-size: 12px;
        color: var(--text2);
        font-weight: 700;
    }
    .ag-field input,
    .ag-field select,
    .ag-field textarea {
        padding: 10px 13px;
        border: 0.5px solid var(--border);
        border-radius: 10px;
        background: var(--surface);
        color: var(--text1);
        font-size: 13px;
        font-family: var(--ff);
        width: 100%;
        transition: border-color 0.2s, box-shadow 0.2s;
        direction: @dir;
    }
        .ag-field input:focus,
        .ag-field select:focus,
        .ag-field textarea:focus {
            outline: none;
            border-color: #4A6EFF;
            box-shadow: 0 0 0 3px rgba(230,57,70,0.08);
        }
.ag-phone-row {
    display: flex;
    gap: 8px;
}
    .ag-phone-row .code {
        width: 120px;
        flex-shrink: 0;
    }
    .ag-phone-row .num {
        flex: 1;
    }
.ag-msg-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ag-msg-type {
    padding: 11px 8px;
    border: 0.5px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text2);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: var(--ff);
}
    .ag-msg-type i {
        font-size: 22px;
    }
    .ag-msg-type.selected {
        border-color: #4A6EFF;
        background: #fcebeb;
        color: var(--accent-dark);
    }
.ag-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface2);
    border-radius: 10px;
    border: 0.5px solid var(--border);
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text2);
}
    .ag-security-note i {
        font-size: 18px;
        color: #4A6EFF;
        flex-shrink: 0;
    }
.ag-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4A6EFF, var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ff);
    margin-top: 0.75rem;
    transition: opacity 0.2s;
}
    .ag-submit-btn:hover {
        opacity: 0.9;
    }
.ag-tab-content {
    display: none;
}
    .ag-tab-content.active {
        display: block;
    }
.ag-success-msg {
    background: #eaf3de;
    color: #3b6d11;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ag-error-msg {
    background: #fcebeb;
    color: #a32d2d;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 600px) {
    .ag-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
    }
    .ag-badges {
        justify-content: center;
    }
    .ag-rating-box {
        width: 100%;
    }
    .ag-form-grid {
        grid-template-columns: 1fr;
    }
    .ag-review-body {
        grid-template-columns: 1fr;
    }
    .ag-msg-types {
        grid-template-columns: repeat(2, 1fr);
    }
}
