/* ===============================================
   ABOUT US SECTION - FULL WIDTH PREMIUM LAYOUT
   Gradient Background + Pattern on Team Side
   =============================================== */

.about-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Main Wrapper - Full Width Split */
.about-wrapper {
    display: flex;
    min-height: 600px;
}

/* RTL (Arabic): Photos on Left, Text on Right */
[dir="rtl"] .about-wrapper {
    flex-direction: row-reverse;
}

/* LTR (English): Text on Left, Photos on Right */
[dir="ltr"] .about-wrapper {
    flex-direction: row-reverse;
}

/* ===== TEAM SIDE - PATTERN ONLY (NO GRADIENT BG) ===== */
.about-team-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    background: transparent;
    overflow: hidden;
}

/* Animated Pattern Overlay */
.about-team-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, rgba(0, 212, 255, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.1) 87.5%, rgba(0, 212, 255, 0.1)),
        linear-gradient(150deg, rgba(139, 92, 246, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(139, 92, 246, 0.1) 87.5%, rgba(139, 92, 246, 0.1)),
        linear-gradient(30deg, rgba(139, 92, 246, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(139, 92, 246, 0.1) 87.5%, rgba(139, 92, 246, 0.1)),
        linear-gradient(150deg, rgba(0, 212, 255, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.1) 87.5%, rgba(0, 212, 255, 0.1));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    animation: patternFloat 20s linear infinite;
    opacity: 0.5;
}

@keyframes patternFloat {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-140px) translateX(-80px);
    }
}

/* Glowing Orbs */
.about-team-side::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

/* Team Grid - CEO + Team */
.team-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* CEO Member - Large and Prominent */
.ceo-member {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: visible;
    position: relative;
    margin-bottom: 70px;
}

.ceo-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5),
        0 0 80px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.ceo-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.7),
        0 0 100px rgba(0, 212, 255, 0.4);
}

/* CEO Glow Ring */
.ceo-member::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.4;
    filter: blur(20px);
    animation: ceoGlow 3s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes ceoGlow {
    from {
        opacity: 0.3;
        transform: scale(1);
    }

    to {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* CEO Info */
.member-info {
    text-align: center;
    margin-top: 15px;
}

.member-name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
    white-space: nowrap;
}

.member-role {
    display: block;
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Team Members Row */
.team-members-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
}

.team-member {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
    z-index: 10;
}

/* Experience Badge */
.experience-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
    margin-top: 30px;
    position: relative;
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(0, 212, 255, 0.7);
    }
}

.exp-number {
    font-size: 36px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.exp-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ===== CONTENT SIDE ===== */
.about-content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
    padding-inline-start: max(60px, calc((100vw - 1440px) / 2 + 24px));
    padding-inline-end: 60px;
    background: var(--bg-primary);
    position: relative;
}

/* Subtle Shadow Edge */
.about-content-side::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
}

[dir="rtl"] .about-content-side::before {
    right: 0;
    background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.1));
}

[dir="ltr"] .about-content-side::before {
    left: 0;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1));
}

.about-title {
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-subtitle {
    font-size: clamp(18px, 2.5vw, 26px);
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 30px;
}

.about-desc {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
}

/* Features List */
.about-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 550px;
}

.about-features-list li {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 17px;
    line-height: 1.6;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-features-list li:last-child {
    border-bottom: none;
}

.about-features-list li:hover {
    padding-inline-start: 15px;
    border-color: var(--accent-cyan);
}

.about-features-list strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.about-features-list span {
    color: var(--text-secondary);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] .about-team-side {
    background: linear-gradient(135deg,
            rgba(0, 153, 204, 0.1) 0%,
            rgba(139, 92, 246, 0.15) 50%,
            rgba(236, 72, 153, 0.1) 100%);
}

[data-theme="light"] .member-name {
    color: #1a1a2e;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .team-member {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .about-features-list li {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about-features-list li:hover {
    border-color: var(--accent-cyan);
}

[data-theme="light"] .about-content-side::before {
    background: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column !important;
    }

    .about-team-side {
        padding: 60px 30px;
    }

    .about-content-side {
        padding: 60px 30px;
        text-align: center;
    }

    .about-desc,
    .about-features-list {
        max-width: 100%;
    }

    .about-features-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-wrapper {
        min-height: auto;
    }

    .ceo-member {
        width: 130px;
        height: 130px;
        margin-bottom: 90px;
    }

    .team-members-row {
        gap: 10px;
    }

    .team-member {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
    }

    .member-name {
        font-size: 18px;
    }

    .experience-badge {
        width: 90px;
        height: 90px;
    }

    .exp-number {
        font-size: 28px;
    }

    .about-content-side {
        padding: 50px 20px;
    }
}