/* ═══════════════════════════════════════════════════════════
   Farada — About Page Styles
   Prefix: fab- (Farada About)
   ═══════════════════════════════════════════════════════════ */


/* ═══ HERO ═══ */

.fab-hero {
    padding-bottom: 40px !important;
}

.fab-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .fab-hero-stats {
        display: inline-flex;
        gap: 0;
        padding: 12px 8px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 100px;
        box-shadow: 0 4px 20px rgba(99, 102, 241, .06);
        max-width: none;
    }
}

.fab-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 90px;
}

@media (min-width: 640px) {
    .fab-hero-stat {
        border: none;
        border-radius: 0;
        padding: 0 24px;
        border-right: 1px solid var(--border);
    }

    .fab-hero-stat:first-child {
        border-right: none;
    }
}

.fab-hero-num {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fab-hero-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 5px;
}


/* ═══ SECTIONS ═══ */

.fab-section {
    padding: 70px 0;
    background: var(--surface);
}

.fab-section:nth-child(even) {
    background: var(--bg);
}

@media (min-width: 640px) {
    .fab-section {
        padding: 90px 0;
    }
}

.fab-section-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--heading);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 18px 0 14px;
}

@media (min-width: 640px) {
    .fab-section-title {
        font-size: 32px;
    }
}

.fab-section-desc {
    font-size: 14px;
    line-height: 2;
    color: var(--body);
    margin-bottom: 16px;
}

.fab-section-desc strong {
    color: var(--heading);
    font-weight: 800;
}

.fab-section-desc-center {
    font-size: 14px;
    line-height: 1.9;
    color: var(--body);
    max-width: 640px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   WHO WE ARE Section
   ═══════════════════════════════════════════════════════════ */

.fab-who-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .fab-who-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
    }
}

.fab-who-info {}

.fab-who-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
}

@media (min-width: 640px) {
    .fab-who-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fab-who-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .04), rgba(168, 85, 247, .04));
    border: 1px solid rgba(99, 102, 241, .1);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--heading);
}

.fab-who-feat i {
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════
   WHO WE ARE - Orbit Visual (چرخش تکنولوژی‌ها)
   ═══════════════════════════════════════════════════════════ */

.fab-who-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fab-orbit {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.fab-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px dashed rgba(99, 102, 241, .2);
    transform: translate(-50%, -50%);
}

.fab-orbit-ring-1 {
    width: 60%;
    height: 60%;
    animation: fabOrbitSpin 30s linear infinite;
}

.fab-orbit-ring-2 {
    width: 100%;
    height: 100%;
    animation: fabOrbitSpin 40s linear infinite reverse;
    border-color: rgba(168, 85, 247, .15);
}

@keyframes fabOrbitSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.fab-orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32%;
    height: 32%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(99, 102, 241, .35);
    z-index: 3;
}

.fab-orbit-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.fab-orbit-logo span {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.fab-orbit-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.fab-orbit-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    color: var(--tech);
    font-size: 22px;
    z-index: 2;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 400ms ease;
    will-change: transform;
}

.fab-orbit-item:hover {
    transform: scale(1.15);
    border-color: var(--fab-color);
}

/* Positioning around circle */
.fab-orbit-item-1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fab-orbit-item-2 {
    top: 25%;
    right: 0;
    transform: translate(50%, -50%);
}

.fab-orbit-item-3 {
    bottom: 25%;
    right: 0;
    transform: translate(50%, 50%);
}

.fab-orbit-item-4 {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.fab-orbit-item-5 {
    bottom: 25%;
    left: 0;
    transform: translate(-50%, 50%);
}

.fab-orbit-item-6 {
    top: 25%;
    left: 0;
    transform: translate(-50%, -50%);
}

.fab-orbit-item-1:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.fab-orbit-item-2:hover {
    transform: translate(50%, -50%) scale(1.15);
}

.fab-orbit-item-3:hover {
    transform: translate(50%, 50%) scale(1.15);
}

.fab-orbit-item-4:hover {
    transform: translate(-50%, 50%) scale(1.15);
}

.fab-orbit-item-5:hover {
    transform: translate(-50%, 50%) scale(1.15);
}

.fab-orbit-item-6:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

@media (max-width: 640px) {
    .fab-orbit {
        max-width: 320px;
    }

    .fab-orbit-item {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .fab-orbit-logo {
        width: 42px;
        height: 42px;
    }

    .fab-orbit-logo span {
        font-size: 18px;
    }
}


/* ═══════════════════════════════════════════════════════════
   MISSION & VISION
   ═══════════════════════════════════════════════════════════ */

.fab-mv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .fab-mv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fab-mv-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    position: relative;
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 500ms ease,
        border-color 500ms ease;
    will-change: transform;
}

.fab-mv-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, .12);
    border-color: rgba(99, 102, 241, .2);
}

.fab-mv-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(99, 102, 241, .25);
}

.fab-mv-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #6366f1;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}

.fab-mv-card h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--heading);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.fab-mv-card p {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--body);
    margin-bottom: 18px;
}

.fab-mv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fab-mv-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--body);
}

.fab-mv-list li i {
    color: #10b981;
    font-size: 11px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: rgba(16, 185, 129, .08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ═══════════════════════════════════════════════════════════
   VALUES CIRCLE (شبیه پراسس اما ۶ نود)
   ═══════════════════════════════════════════════════════════ */

.fab-values-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.fab-values-circle {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
}

.fab-values-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34%;
    height: 34%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(79, 70, 229, .35);
    z-index: 5;
}

.fab-values-center i {
    font-size: 28px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.fab-values-center-title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.fab-values-center-sub {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 600;
}

/* Nodes */
.fab-value-node {
    position: absolute;
    width: 130px;
    padding: 16px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    z-index: 3;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 400ms ease,
        box-shadow 400ms ease;
    will-change: transform;
}

.fab-value-node:hover {
    border-color: rgba(99, 102, 241, .35);
    box-shadow: 0 12px 32px rgba(99, 102, 241, .12);
}

.fab-value-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin: 0 auto 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.fab-value-node :is(h3, h4) {
    font-size: 13px;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.fab-value-node p {
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 600;
}

/* Positions - 6 nodes around center */
.fab-vn-1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.fab-vn-2 {
    top: 25%;
    right: -10px;
    transform: translate(0, 0);
}

.fab-vn-3 {
    bottom: 25%;
    right: -10px;
    transform: translate(0, 0);
}

.fab-vn-4 {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.fab-vn-5 {
    bottom: 25%;
    left: -10px;
    transform: translate(0, 0);
}

.fab-vn-6 {
    top: 25%;
    left: -10px;
    transform: translate(0, 0);
}

.fab-vn-1:hover {
    transform: translate(-50%, -4px);
}

.fab-vn-2:hover {
    transform: translate(0, -4px);
}

.fab-vn-3:hover {
    transform: translate(0, -4px);
}

.fab-vn-4:hover {
    transform: translate(-50%, -4px);
}

.fab-vn-5:hover {
    transform: translate(0, -4px);
}

.fab-vn-6:hover {
    transform: translate(0, -4px);
}

/* Connection lines (SVG-like using pseudo-elements) */
.fab-values-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(99, 102, 241, .15);
    border-radius: 50%;
    animation: fabValuesSpin 40s linear infinite;
    pointer-events: none;
}

@keyframes fabValuesSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile: تبدیل به grid */
@media (max-width: 900px) {
    .fab-values-circle {
        position: relative;
        aspect-ratio: auto;
        max-width: 100%;
    }

    .fab-values-circle::before {
        display: none;
    }

    .fab-values-center {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 200px;
        height: 200px;
        margin: 0 auto 30px;
    }

    .fab-value-node {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
    }

    .fab-value-node:hover {
        transform: translate3d(0, -4px, 0) !important;
    }

    .fab-values-circle {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .fab-values-center {
        grid-column: span 2;
    }
}

@media (max-width: 500px) {
    .fab-values-circle {
        grid-template-columns: 1fr;
    }

    .fab-values-center {
        grid-column: span 1;
    }
}


/* ═══════════════════════════════════════════════════════════
   JOURNEY TIMELINE
   ═══════════════════════════════════════════════════════════ */

.fab-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.fab-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 65px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.fab-timeline-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
}

.fab-timeline-item:last-child {
    margin-bottom: 0;
}

.fab-timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.fab-timeline-marker-active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
}

.fab-timeline-year {
    font-size: 18px;
    font-weight: 900;
    color: var(--heading);
    font-family: 'JetBrains Mono', monospace;
}

.fab-timeline-marker-active .fab-timeline-year {
    color: #fff;
}

.fab-timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    position: relative;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 400ms ease,
        box-shadow 400ms ease;
}

.fab-timeline-content:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(99, 102, 241, .2);
    box-shadow: 0 12px 32px rgba(99, 102, 241, .08);
}

.fab-timeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.fab-timeline-content :is(h3, h4) {
    font-size: 17px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.fab-timeline-content p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--body);
    margin-bottom: 12px;
}

.fab-timeline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fab-timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--body);
}

.fab-timeline-badge i {
    font-size: 9px;
    color: #6366f1;
}

.fab-timeline-badge-active {
    background: rgba(99, 102, 241, .08);
    border-color: rgba(99, 102, 241, .2);
    color: #6366f1;
}

.fab-timeline-badge-active i {
    color: #10b981;
}

@media (max-width: 640px) {
    .fab-timeline::before {
        right: 40px;
    }

    .fab-timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 14px;
    }

    .fab-timeline-year {
        font-size: 14px;
    }

    .fab-timeline-marker {
        height: 50px;
    }

    .fab-timeline-content {
        padding: 18px 18px;
    }

    .fab-timeline-content :is(h3, h4) {
        font-size: 15px;
    }

    .fab-timeline-content p {
        font-size: 12.5px;
    }
}


/* ═══════════════════════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════════════════════ */

.fab-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .fab-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .fab-team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fab-team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 500ms ease,
        border-color 500ms ease;
    will-change: transform;
}

.fab-team-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, .15);
    border-color: rgba(99, 102, 241, .25);
}

.fab-team-cover {
    position: relative;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.fab-team-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .15) 2px, transparent 2.5px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .1) 2.5px, transparent 3px);
    background-size: 30px 30px, 40px 40px;
}

.fab-team-avatar {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    margin-bottom: -40px;
    border: 4px solid var(--surface);
}

[data-theme="midnight"] .fab-team-avatar {
    background: #1e293b;
    color: #a5b4fc;
}

.fab-team-body {
    padding: 52px 20px 22px;
    text-align: center;
}

.fab-team-body :is(h3, h4) {
    font-size: 16px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.fab-team-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, .08);
    color: #6366f1;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 800;
    margin-bottom: 12px;
}

.fab-team-role i {
    font-size: 9px;
}

.fab-team-body p {
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--body);
    margin-bottom: 14px;
    min-height: 44px;
}

.fab-team-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 16px;
}

.fab-team-skill {
    padding: 4px 9px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--body);
}

.fab-team-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.fab-team-link {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    transition: background 300ms ease, color 300ms ease, border-color 300ms ease, transform 300ms ease;
    will-change: transform;
}

.fab-team-link:hover {
    background: var(--tc);
    color: #fff;
    border-color: var(--tc);
    transform: translate3d(0, -2px, 0);
}


/* ═══════════════════════════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════════════════════════ */

.fab-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .fab-tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .fab-tech-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.fab-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 400ms ease,
        box-shadow 400ms ease;
    will-change: transform;
}

.fab-tech-item:hover {
    transform: translate3d(0, -4px, 0);
    border-color: var(--tech);
    box-shadow: 0 12px 24px rgba(99, 102, 241, .1);
}

.fab-tech-item i {
    font-size: 28px;
    color: var(--tech);
}

.fab-tech-item span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--heading);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE FIX — نسخه نهایی
   ═══════════════════════════════════════════════════════════ */

/* جلوگیری از overflow افقی */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.page-main {
    overflow-x: hidden;
    max-width: 100%;
}

.fab-section {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}


/* ═══════════════════════════════════════════════════════════
   FIX 1: دایره اول (Orbit تکنولوژی‌ها)
   مشکل: آیکون‌ها با translate بیرون container میرن
   ═══════════════════════════════════════════════════════════ */

/* Container باید padding داشته باشه که آیکون‌های بیرون‌زده جا شن */
.fab-who-visual {
    padding: 40px 30px !important;
    overflow: visible;
}

@media (max-width: 900px) {

    /* حذف انیمیشن چرخش که باعث overflow می‌شد */
    .fab-orbit-ring-1,
    .fab-orbit-ring-2 {
        animation: none !important;
    }

    .fab-orbit {
        max-width: 280px !important;
        margin: 0 auto;
    }

    .fab-orbit-item {
        width: 44px !important;
        height: 44px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }

    .fab-orbit-logo {
        width: 40px !important;
        height: 40px !important;
    }

    .fab-orbit-logo span {
        font-size: 17px !important;
    }

    .fab-orbit-text {
        font-size: 11px !important;
    }

    /* اطمینان از اینکه آیکون‌ها بیرون نزنن */
    .fab-who-visual {
        padding: 30px 25px !important;
    }
}

@media (max-width: 500px) {
    .fab-orbit {
        max-width: 240px !important;
    }

    .fab-orbit-item {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    .fab-orbit-logo {
        width: 36px !important;
        height: 36px !important;
    }

    .fab-orbit-logo span {
        font-size: 15px !important;
    }

    .fab-orbit-text {
        font-size: 10px !important;
    }

    .fab-who-visual {
        padding: 25px 20px !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   FIX 2: دایره دوم (Values Center)
   مشکل: در موبایل خیلی بزرگ شده
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .fab-values-circle::before {
        display: none !important;
        animation: none !important;
    }

    /* دایره وسط کوچک‌تر */
    .fab-values-center {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto 24px !important;
        padding: 16px !important;
    }

    .fab-values-center i {
        font-size: 22px !important;
        margin-bottom: 4px !important;
    }

    .fab-values-center-title {
        font-size: 11px !important;
    }

    .fab-values-center-sub {
        font-size: 9px !important;
    }

    .fab-values-container {
        padding: 20px 0 !important;
    }

    .fab-values-circle {
        gap: 12px !important;
    }

    .fab-value-node {
        padding: 14px 12px !important;
    }

    .fab-value-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .fab-value-node :is(h3, h4) {
        font-size: 12.5px !important;
        margin-bottom: 3px !important;
    }

    .fab-value-node p {
        font-size: 10px !important;
    }
}

@media (max-width: 500px) {
    .fab-values-center {
        width: 130px !important;
        height: 130px !important;
    }

    .fab-values-center i {
        font-size: 20px !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   FIX 3: بقیه مشکلات موبایل
   ═══════════════════════════════════════════════════════════ */

/* Timeline */
@media (max-width: 640px) {
    .fab-timeline {
        padding: 20px 0;
        max-width: 100%;
    }

    .fab-timeline::before {
        right: 32px;
    }

    .fab-timeline-item {
        grid-template-columns: 65px 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .fab-timeline-marker {
        height: 44px;
    }

    .fab-timeline-year {
        font-size: 12px;
    }

    .fab-timeline-content {
        padding: 16px 14px;
        min-width: 0;
        overflow: hidden;
    }

    .fab-timeline-content :is(h3, h4) {
        font-size: 14px;
    }

    .fab-timeline-content p {
        font-size: 12px;
        word-wrap: break-word;
    }

    .fab-timeline-badges {
        flex-wrap: wrap;
    }

    .fab-timeline-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Team Cards */
@media (max-width: 640px) {
    .fab-team-card {
        max-width: 100%;
        overflow: hidden;
    }

    .fab-team-body {
        padding: 52px 16px 20px;
    }

    .fab-team-body :is(h3, h4) {
        font-size: 15px;
    }

    .fab-team-body p {
        font-size: 12px;
        min-height: auto;
    }

    .fab-team-skills {
        flex-wrap: wrap;
    }
}

/* Hero Stats */
@media (max-width: 640px) {
    .fab-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        padding: 0 16px;
    }

    .fab-hero-stat {
        padding: 14px 10px;
        min-width: 0;
    }

    .fab-hero-num {
        font-size: 20px;
    }

    .fab-hero-label {
        font-size: 10px;
    }
}

/* Mission & Vision */
@media (max-width: 640px) {
    .fab-mv-card {
        padding: 24px 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .fab-mv-card h3 {
        font-size: 18px;
    }

    .fab-mv-card p {
        font-size: 13px;
        word-wrap: break-word;
    }

    .fab-mv-list li {
        font-size: 12px;
        word-wrap: break-word;
    }
}

/* Who We Are */
@media (max-width: 640px) {
    .fab-who-info {
        max-width: 100%;
        overflow: hidden;
    }

    .fab-section-title {
        font-size: 22px !important;
        line-height: 1.35;
        word-wrap: break-word;
    }

    .fab-section-desc {
        font-size: 13px;
        line-height: 1.9;
        word-wrap: break-word;
    }

    .fab-who-features {
        grid-template-columns: 1fr;
    }

    .fab-who-feat {
        font-size: 12.5px;
    }
}

/* Tech Stack */
@media (max-width: 640px) {
    .fab-tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fab-tech-item {
        padding: 16px 8px;
    }

    .fab-tech-item i {
        font-size: 22px;
    }

    .fab-tech-item span {
        font-size: 10.5px;
        word-wrap: break-word;
    }
}

/* Section Head */
@media (max-width: 640px) {
    .fab-section-desc-center {
        font-size: 13px;
        padding: 0 16px;
    }

    .section-head {
        padding: 0 8px;
    }
}

/* Breadcrumb */
@media (max-width: 640px) {
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 11px;
    }
}

/* Mesh backgrounds */
@media (max-width: 640px) {
    .mesh {
        max-width: 300px !important;
        max-height: 300px !important;
    }
}

/* General safety */
@media (max-width: 900px) {

    .fab-values-container,
    .fab-who-visual,
    .fab-team-grid,
    .fab-tech-grid,
    .fab-mv-grid,
    .fab-timeline {
        max-width: 100%;
    }
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}
/* ── Values (phase 3.9): responsive card grid instead of the circle ── */
.fab-vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.fab-vgrid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.fab-vgrid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.fab-vcard {
    display: flex; gap: 14px; align-items: flex-start; padding: 20px; min-width: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .18); transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.fab-vcard:hover { border-color: rgba(99, 102, 241, .35); transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(99, 102, 241, .3); }
.fab-vcard-icon { flex: 0 0 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }
.fab-vcard-body { min-width: 0; }
.fab-vcard h3 { font-size: 15px; font-weight: 800; color: var(--heading); margin: 2px 0 6px; line-height: 1.6; }
.fab-vcard p { font-size: 13px; line-height: 1.9; color: var(--body); margin: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .fab-vgrid, .fab-vgrid[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fab-vgrid, .fab-vgrid[data-count] { grid-template-columns: 1fr; gap: 12px; } .fab-vcard { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .fab-vcard:hover { transform: none; } }
