/* ============================================
   About Page — Hero / Story
   ============================================ */

   .about-intro-shell {
    position: relative;
    overflow: hidden;
}

.about-intro-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.about-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}


/* Background grid + accents */
.about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    opacity: 0.04;
}

.grid-lines span {
    width: 1px;
    height: 100%;
    background: var(--text-primary);
}

[data-theme="light"] .grid-lines {
    opacity: 0.06;
}

.floating-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.07;
}

.accent-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: floatSlow 20s ease-in-out infinite;
}

.accent-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-light);
    bottom: -80px;
    left: -80px;
    animation: floatSlow 25s ease-in-out infinite reverse;
}

.accent-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    left: 50%;
    animation: floatSlow 15s ease-in-out infinite 3s;
}

[data-theme="light"] .floating-accent {
    opacity: 0.12;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Hero Content */
.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

/* Story Badge */
.story-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.2s;
}

.badge-line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Story Title */
.story-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 48px;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.5s;
}

.story-title .highlight {
    color: var(--accent);
    position: relative;
}

.story-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.4;
    animation: expandWidth 0.8s ease forwards 1.2s;
    transform-origin: center;
    transform: scaleX(0);
}

@keyframes expandWidth {
    to { transform: scaleX(1); }
}

/* Poem / Story Text */
.story-poem {
    max-width: 600px;
    margin: 0 auto 60px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.8s;
}

.poem-line {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 2.2;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.poem-line em {
    font-style: normal;
    color: var(--text-primary);
    font-weight: 600;
}

.poem-keyword {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.poem-keyword .poem-accent {
    color: var(--accent);
    font-weight: 700;
    position: relative;
}

.poem-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-tertiary);
}

.poem-divider span {
    width: 30px;
    height: 1px;
    background: var(--text-tertiary);
    opacity: 0.4;
}

/* Scroll Cue */
.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.3s;
}

.scroll-cue-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

.scroll-cue-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================
   Team Section
   ============================================ */

.team-section {
    padding: 80px 24px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 20px;
    border: 1px solid var(--accent);
    border-radius: 30px;
    opacity: 0.7;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
}

.section-title .highlight {
    color: var(--accent);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Team Card */
.team-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-glass-border);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s ease;
    cursor: default;
}

.team-card:hover {
    transform: translateY(-8px);
}

[data-theme="dark"] .team-card:hover {
    box-shadow: 0 20px 60px rgba(45, 212, 191, 0.08),
                0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .team-card:hover {
    box-shadow: 0 20px 60px rgba(13, 148, 136, 0.1),
                0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Card Image */
.card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card:hover .card-image-wrap img {
    transform: scale(1.05);
}

/* Dark grey shadow overlay on images — company policy */
.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: background 0.5s ease;
}

[data-theme="dark"] .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(18, 18, 26, 0.15) 0%,
        rgba(18, 18, 26, 0.35) 50%,
        rgba(18, 18, 26, 0.75) 100%
    );
}

[data-theme="light"] .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(100, 116, 139, 0.08) 0%,
        rgba(100, 116, 139, 0.2) 50%,
        rgba(100, 116, 139, 0.55) 100%
    );
}

.team-card:hover .card-overlay {
    /* Slightly less overlay on hover to brighten */
}

[data-theme="dark"] .team-card:hover .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(18, 18, 26, 0.05) 0%,
        rgba(18, 18, 26, 0.2) 40%,
        rgba(18, 18, 26, 0.7) 100%
    );
}

[data-theme="light"] .team-card:hover .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(100, 116, 139, 0.02) 0%,
        rgba(100, 116, 139, 0.1) 40%,
        rgba(100, 116, 139, 0.5) 100%
    );
}

/* Card Info — Always visible, enhances on hover */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 24px;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.5s ease;
}

.team-card:hover .card-info {
    transform: translateY(0);
    opacity: 1;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card-role {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Accent bar on card hover */
.team-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 3;
}

.team-card:hover::after {
    transform: scaleX(1);
}

/* ============================================
   Former Colleagues
   ============================================ */

.colleagues-section {
    padding: 40px 24px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.colleagues-inner {
    border-radius: 20px;
    padding: 48px 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-glass-border);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern */
.colleagues-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: radial-gradient(var(--text-primary) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

[data-theme="light"] .colleagues-inner::before {
    opacity: 0.04;
}

/* Header */
.colleagues-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 36px;
}

.colleagues-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(
        to var(--line-dir, left),
        var(--accent),
        transparent
    );
    opacity: 0.4;
}

.colleagues-header .colleagues-line:first-child {
    --line-dir: right;
}

.colleagues-header .colleagues-line:last-child {
    --line-dir: left;
}

[dir="ltr"] .colleagues-header .colleagues-line:first-child {
    --line-dir: left;
}

[dir="ltr"] .colleagues-header .colleagues-line:last-child {
    --line-dir: right;
}

.colleagues-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* List */
.colleagues-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.colleague-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.colleague-item:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .colleague-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .colleague-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.colleague-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.colleague-item:hover .colleague-bullet {
    opacity: 1;
    transform: scale(1.4);
}

/* ============================================
   Reveal Animation
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for team cards */
.team-card.reveal:nth-child(1) { transition-delay: 0s; }
.team-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.team-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.team-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.team-card.reveal:nth-child(5) { transition-delay: 0.4s; }
.team-card.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Stagger for colleague items */
.colleague-item.reveal:nth-child(1) { transition-delay: 0s; }
.colleague-item.reveal:nth-child(2) { transition-delay: 0.05s; }
.colleague-item.reveal:nth-child(3) { transition-delay: 0.1s; }
.colleague-item.reveal:nth-child(4) { transition-delay: 0.15s; }
.colleague-item.reveal:nth-child(5) { transition-delay: 0.2s; }
.colleague-item.reveal:nth-child(6) { transition-delay: 0.25s; }
.colleague-item.reveal:nth-child(7) { transition-delay: 0.3s; }

/* ============================================
   Keyframes
   ============================================ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 60px 20px;
        min-height: 90vh;
    }

    .story-poem {
        margin-bottom: 40px;
    }

    .team-section {
        padding: 60px 16px 40px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-info {
        padding: 16px;
    }

    .card-name {
        font-size: 0.95rem;
    }

    .card-role {
        font-size: 0.75rem;
    }

    .colleagues-inner {
        padding: 32px 24px;
    }

    .colleagues-list {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 48px 16px;
        min-height: 85vh;
    }

    .story-title {
        font-size: 1.5rem;
    }

    .poem-line {
        font-size: 0.9rem;
        line-height: 2;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .colleagues-inner {
        padding: 28px 18px;
    }

    .colleagues-title {
        font-size: 1rem;
    }

    .colleague-item {
        font-size: 0.9rem;
    }
}

/* ============================================
   Mission Section
   ============================================ */

   /* ============================================
   Mission Section
   ============================================ */
   .mission-section {
    position: relative;
    z-index: 1;
    padding: 40px 24px 110px;
    max-width: 1000px;
    margin: 0 auto;
}


.mission-section .section-header {
    margin-bottom: 42px;
}

.mission-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.mission-text {
    position: relative;
}

.mission-paragraph {
    margin: 0 0 22px;
    font-size: clamp(1rem, 2.1vw, 1.12rem);
    line-height: 2.25;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.mission-paragraph:last-child {
    margin-bottom: 0;
}

.mission-paragraph strong {
    color: var(--text-primary);
    font-weight: 700;
}

.mission-closing {
    color: var(--text-primary);
    font-weight: 600;
}

.mission-content .poem-divider {
    margin: 26px 0 30px;
}

html[lang="fa"] .mission-content,
html[lang="ar"] .mission-content {
    direction: rtl;
}

html[lang="en"] .mission-content {
    direction: ltr;
}

@media (max-width: 768px) {
    .mission-section {
        padding: 30px 18px 90px;
    }

    .mission-section .section-header {
        margin-bottom: 30px;
    }

    .mission-content {
        max-width: 100%;
    }

    .mission-paragraph {
        font-size: 0.98rem;
        line-height: 2.05;
        margin-bottom: 18px;
    }

    .mission-content .poem-divider {
        margin: 20px 0 24px;
    }
}

@media (max-width: 480px) {
    .mission-section {
        padding: 24px 16px 72px;
    }

    .mission-paragraph {
        font-size: 0.92rem;
        line-height: 2;
    }
}
