/* ============================================
   ARK LIGHT — Single Team (Light Version)
   Primary: #0C4DA2
   ============================================ */

:root {
    /* Primary Palette */
    --ark-primary: #0C4DA2;
    --ark-primary-600: #0A3D82;
    --ark-primary-500: #0C4DA2;
    --ark-primary-400: #3D7BD4;
    --ark-primary-300: #7BA3E0;
    --ark-primary-100: #E8F0FA;
    --ark-primary-50: #F5F9FF;
    
    /* Complementary — Copper/Teal */
    --ark-accent: #C75B39;
    --ark-accent-light: #E8A598;
    --ark-teal: #2A9D8F;
    --ark-gold: #D4A574;
    
    /* Neutrals */
    --ark-white: #FFFFFF;
    --ark-gray-50: #FAFBFC;
    --ark-gray-100: #F0F2F5;
    --ark-gray-200: #E1E5EA;
    --ark-gray-300: #C5CCD6;
    --ark-gray-400: #9BA5B3;
    --ark-gray-500: #6B7280;
    --ark-gray-600: #4B5563;
    --ark-gray-700: #374151;
    --ark-gray-800: #1F2937;
    --ark-gray-900: #111827;
    
    /* Effects */
    --ark-shadow-sm: 0 1px 2px rgba(12, 77, 162, 0.05);
    --ark-shadow: 0 4px 6px -1px rgba(12, 77, 162, 0.08), 0 2px 4px -2px rgba(12, 77, 162, 0.06);
    --ark-shadow-md: 0 10px 15px -3px rgba(12, 77, 162, 0.1), 0 4px 6px -4px rgba(12, 77, 162, 0.08);
    --ark-shadow-lg: 0 20px 25px -5px rgba(12, 77, 162, 0.12), 0 8px 10px -6px rgba(12, 77, 162, 0.08);
    
    --ark-radius: 16px;
    --ark-radius-lg: 24px;
    --ark-radius-xl: 32px;
}

/* Base */
.ark-team-single {
    min-height: 100vh;
    background: var(--ark-white);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.ark-team-single::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, var(--ark-primary-50) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, var(--ark-primary-50) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.ark-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ark-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.ark-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ark-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.ark-reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ark-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   HERO SECTION — Portrait Focus
   ============================================ */

.ark-team-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 80px 80px;
    max-width: 1440px;
    margin: 0 auto;
    z-index: 1;
}

/* Portrait Container — Minimal 3D */
.ark-portrait-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    min-height: 600px;
}

.ark-portrait-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Subtle gradient behind portrait */
.ark-portrait-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 85%;
    background: linear-gradient(180deg, var(--ark-primary-100) 0%, var(--ark-primary-50) 100%);
    border-radius: var(--ark-radius-xl) var(--ark-radius-xl) 200px 200px;
    opacity: 0.6;
}

/* Portrait image — PNG with transparent background */
.ark-portrait {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.ark-portrait img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 20px 40px rgba(12, 77, 162, 0.15));
    transition: transform 0.4s ease;
}

/* Very subtle hover effect */
.ark-portrait-wrap:hover .ark-portrait img {
    transform: translateY(-8px) scale(1.01);
}

/* Decorative elements */
.ark-portrait-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid var(--ark-primary-100);
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.ark-portrait-accent::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid var(--ark-primary-50);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.ark-team-content {
    padding-left: 40px;
}

.ark-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--ark-primary-50);
    border: 1px solid var(--ark-primary-100);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ark-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.ark-team-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ark-teal);
    border-radius: 50%;
}

.ark-team-name {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    color: var(--ark-gray-900);
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.ark-team-name span {
    color: var(--ark-primary);
}

.ark-team-position {
    font-size: 20px;
    color: var(--ark-gray-500);
    font-weight: 500;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}
/* =========================================
   ARK Team Bio — Industrial Resume Lists
   ========================================= */

.ark-team-bio {
    --ark-blue: #075aa8;
    --ark-blue-dark: #0b3158;
    --ark-cyan: #17b8c4;
    --ark-orange: #d36b39;
    --ark-text: #344054;
    --ark-muted: #667085;
    --ark-line: rgba(7, 90, 168, 0.13);
}

/* تیترهای موجود قبل از پاراگراف و لیست */
.ark-team-bio p:has(> strong:only-child) {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 15px;
    padding: 0 14px 0 0;
    color: var(--ark-blue-dark);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.7;
}

.ark-team-bio p:has(> strong:only-child)::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 27px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        var(--ark-cyan) 0%,
        var(--ark-blue) 70%,
        var(--ark-orange) 100%
    );
    box-shadow: 0 5px 13px rgba(7, 90, 168, 0.22);
}

/* فاصله تیتر اول */
.ark-team-bio > p:first-child:has(> strong:only-child) {
    margin-top: 0;
}

/* متن توضیحی */
.ark-team-bio > p {
    color: var(--ark-text);
    font-size: 0.95rem;
    line-height: 2.25;
}

/* کانتینر لیست */
.ark-team-bio ul {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 18px 0 30px;
    padding: 0;
    list-style: none;
}

/* خط عمودی تایم‌لاین */
.ark-team-bio ul::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 17px;
    bottom: 22px;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(23, 184, 196, 0.6),
        rgba(7, 90, 168, 0.15)
    );
}

/* هر آیتم */
.ark-team-bio ul li {
    position: relative;
    z-index: 1;
    padding: 17px 56px 17px 22px;
    overflow: hidden;
    color: var(--ark-text);
    background:
        linear-gradient(115deg, rgba(255,255,255,0.98), rgba(240,247,253,0.84));
    border: 1px solid var(--ark-line);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(10, 53, 92, 0.045);
    font-size: 0.93rem;
    line-height: 2.1;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;
}

/* نشانگر تایم‌لاین */
.ark-team-bio ul li::before {
    content: "";
    position: absolute;
    top: 26px;
    right: 10px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--ark-cyan);
    box-shadow:
        0 0 0 2px rgba(23, 184, 196, 0.25),
        0 4px 10px rgba(7, 90, 168, 0.18);
}

/* نوار رنگی ظریف در سمت راست کارت */
.ark-team-bio ul li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(
        180deg,
        var(--ark-cyan),
        var(--ark-blue)
    );
    opacity: 0.72;
}

/* هایلایت عنوان‌ها و تاریخ‌های strong */
.ark-team-bio ul li strong {
    display: inline;
    color: var(--ark-blue);
    font-weight: 800;
}

/* Hover دسکتاپ */
@media (hover: hover) {
    .ark-team-bio ul li:hover {
        z-index: 3;
        transform: translateX(-7px);
        border-color: rgba(7, 90, 168, 0.28);
        background: linear-gradient(115deg, #fff, #eef8fc);
        box-shadow: 0 16px 36px rgba(7, 90, 168, 0.12);
    }

    .ark-team-bio ul li:hover::before {
        background: var(--ark-orange);
        box-shadow:
            0 0 0 3px rgba(211, 107, 57, 0.17),
            0 5px 14px rgba(211, 107, 57, 0.26);
    }
}

/* موبایل */
@media (max-width: 600px) {
    .ark-team-bio > p {
        font-size: 0.9rem;
        line-height: 2.1;
    }

    .ark-team-bio ul {
        gap: 10px;
    }

    .ark-team-bio ul li {
        padding: 14px 45px 14px 16px;
        border-radius: 12px;
        font-size: 0.88rem;
        line-height: 2;
    }

    .ark-team-bio ul::before {
        right: 14px;
    }

    .ark-team-bio ul li::before {
        top: 23px;
        right: 8px;
        width: 12px;
        height: 12px;
    }
}

.ark-team-position::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--ark-accent);
}

.ark-team-bio {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ark-gray-600);
    margin-bottom: 40px;
    max-width: 520px;
}

/* ============================================
   CONTACT BAR
   ============================================ */

.ark-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.ark-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--ark-white);
    border: 1px solid var(--ark-gray-200);
    border-radius: var(--ark-radius);
    text-decoration: none;
    font-family:'roboto';
    color: var(--ark-gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ark-contact-item:hover {
    border-color: var(--ark-primary-300);
    box-shadow: var(--ark-shadow);
    transform: translateY(-2px);
}

.ark-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--ark-primary);
    flex-shrink: 0;
}

.ark-contact-item.primary {
    background: var(--ark-primary);
    color: var(--ark-white);
    border-color: var(--ark-primary);
}

.ark-contact-item.primary:hover {
    background: var(--ark-primary-600);
}

.ark-contact-item.primary svg {
    color: var(--ark-white);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.ark-social-row {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.ark-social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ark-radius);
    background: var(--ark-gray-100);
    color: var(--ark-gray-600);
    transition: all 0.2s ease;
}

.ark-social-link:hover {
    background: var(--ark-primary);
    color: var(--ark-white);
    transform: translateY(-3px);
    box-shadow: var(--ark-shadow-md);
}

.ark-social-link svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   STATS SECTION
   ============================================ */

.ark-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--ark-gray-200);
}

.ark-stat-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--ark-radius);
    background: var(--ark-gray-50);
    transition: all 0.3s ease;
}

.ark-stat-item:hover {
    background: var(--ark-white);
    box-shadow: var(--ark-shadow);
}

.ark-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--ark-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.ark-stat-number span {
    font-size: 20px;
    color: var(--ark-accent);
}

.ark-stat-label {
    font-size: 13px;
    color: var(--ark-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RESUME SECTION
   ============================================ */

.ark-resume-section {
    padding: 100px 80px;
    background: var(--ark-gray-50);
    position: relative;
}

.ark-resume-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

.ark-resume-nav {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.ark-resume-nav-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ark-gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.ark-resume-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ark-resume-nav-item {
    margin-bottom: 8px;
}

.ark-resume-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--ark-radius);
    color: var(--ark-gray-600);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.ark-resume-nav-link:hover,
.ark-resume-nav-link.active {
    background: var(--ark-white);
    color: var(--ark-primary);
    border-left-color: var(--ark-primary);
    box-shadow: var(--ark-shadow-sm);
}

.ark-resume-nav-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.ark-resume-content {
    background: var(--ark-white);
    border-radius: var(--ark-radius-lg);
    padding: 48px;
    box-shadow: var(--ark-shadow);
}

.ark-resume-block {
    margin-bottom: 48px;
}

.ark-resume-block:last-child {
    margin-bottom: 0;
}

.ark-resume-block-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ark-gray-900);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ark-resume-block-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ark-accent);
    border-radius: 2px;
}

.ark-timeline {
    position: relative;
    padding-left: 32px;
}

.ark-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--ark-gray-200);
}

.ark-timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.ark-timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--ark-white);
    border: 2px solid var(--ark-primary);
    border-radius: 50%;
}

.ark-timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--ark-primary);
    margin-bottom: 8px;
}

.ark-timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ark-gray-800);
    margin-bottom: 6px;
}

.ark-timeline-company {
    font-size: 14px;
    color: var(--ark-gray-500);
    margin-bottom: 12px;
}

.ark-timeline-desc {
    font-size: 15px;
    color: var(--ark-gray-600);
    line-height: 1.7;
}

/* Skills */
.ark-skills-grid {
    display: grid;
    gap: 20px;
}

.ark-skill-item {
    display: grid;
    gap: 8px;
}

.ark-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ark-skill-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ark-gray-700);
}

.ark-skill-level {
    font-size: 13px;
    color: var(--ark-primary);
    font-weight: 600;
}

.ark-skill-bar {
    height: 6px;
    background: var(--ark-gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.ark-skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--ark-primary) 0%, var(--ark-primary-400) 100%);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ============================================
   RELATED TEAM
   ============================================ */

.ark-related-section {
    padding: 100px 80px;
    background: var(--ark-white);
}

.ark-related-header {
    text-align: center;
    margin-bottom: 60px;
}

.ark-related-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--ark-gray-900);
    margin-bottom: 16px;
}

.ark-related-subtitle {
    font-size: 17px;
    color: var(--ark-gray-500);
}

.ark-related-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ark-related-card {
    background: var(--ark-white);
    border-radius: var(--ark-radius-lg);
    overflow: hidden;
    box-shadow: var(--ark-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--ark-gray-100);
}

.ark-related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ark-shadow-lg);
}

.ark-related-image {
    height: 280px;
    background: var(--ark-primary-50);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.ark-related-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 70%;
    background: linear-gradient(180deg, var(--ark-primary-100) 0%, transparent 100%);
    border-radius: 50% 50% 0 0;
}

.ark-related-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.ark-related-card:hover .ark-related-image img {
    transform: scale(1.05);
}

.ark-related-info {
    padding: 24px;
}

.ark-related-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ark-gray-900);
    margin-bottom: 6px;
}

.ark-related-position {
    font-size: 14px;
    color: var(--ark-gray-500);
}

.ark-related-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--ark-gray-50);
    color: var(--ark-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ark-related-link:hover {
    background: var(--ark-primary);
    color: var(--ark-white);
}

.ark-related-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.ark-related-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.ark-team-nav {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: var(--ark-white);
    border-radius: 100px;
    box-shadow: var(--ark-shadow-lg);
    z-index: 100;
}

.ark-team-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ark-team-nav-btn.prev {
    color: var(--ark-gray-600);
    background: var(--ark-gray-100);
}

.ark-team-nav-btn.next {
    color: var(--ark-white);
    background: var(--ark-primary);
}

.ark-team-nav-btn:hover {
    transform: scale(1.02);
}

.ark-team-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .ark-team-hero {
        grid-template-columns: 1fr;
        padding: 100px 40px 60px;
        gap: 40px;
    }
    
    .ark-portrait-wrap {
        height: 60vh;
        min-height: 400px;
    }
    
    .ark-team-content {
        padding-left: 0;
        text-align: center;
    }
    
    .ark-team-bio {
        max-width: 100%;
    }
    
    .ark-contact-bar,
    .ark-social-row {
        justify-content: center;
    }
    
    .ark-stats-row {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .ark-resume-grid {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }
    
    .ark-resume-nav {
        display: none;
    }
    
    .ark-related-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }
}

@media (max-width: 640px) {
    .ark-team-hero {
        padding: 80px 24px 40px;
    }
    
    .ark-portrait-wrap {
        height: 50vh;
        min-height: 350px;
    }
    
    .ark-contact-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ark-contact-item {
        justify-content: center;
    }
    
    .ark-stats-row {
        grid-template-columns: 1fr;
    }
    
    .ark-related-grid {
        grid-template-columns: 1fr;
    }
    
    .ark-team-nav {
        bottom: 20px;
        padding: 12px 16px;
    }
    
    .ark-team-nav-btn span {
        display: none;
    }
}
