/* ========================================
   N-Expert.ai About Us Page Styles
   ======================================== */

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

.about-mission {
    padding: 5rem 0;
}

.about-mission .mission-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.about-mission .mission-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(29, 161, 242, 0.15);
    border-color: var(--border-hover);
}

.mission-card i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: block;
}

.mission-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

.mission-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   Leadership Section
   ======================================== */

.leadership-section {
    padding: 6rem 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.leader-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(29, 161, 242, 0.15);
    border-color: var(--border-hover);
}

.leader-photo {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.leader-card:hover .leader-photo img {
    transform: scale(1.05);
}

.leader-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(17, 29, 43, 1) 0%, transparent 100%);
    pointer-events: none;
}

.leader-info {
    padding: 1.5rem 2rem 2rem;
    position: relative;
    margin-top: -2rem;
    z-index: 1;
}

.leader-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.leader-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.leader-role {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.leader-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.leader-social {
    display: flex;
    gap: 0.75rem;
}

.leader-social a {
    width: 40px;
    height: 40px;
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.leader-social a:hover {
    background: var(--accent-cyan);
    color: white;
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.3);
}

/* ========================================
   Community Impact Section
   ======================================== */

.about-community {
    padding: 6rem 0;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.community-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.community-column p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.assistant-list {
    list-style: none;
    padding: 0;
}

.assistant-list li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

.assistant-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ========================================
   CTA Banner Section
   ======================================== */

.about-cta {
    position: relative;
    padding: 6rem 0;
    background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1200&q=60');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.92), rgba(11, 18, 32, 0.88));
    z-index: 0;
}

.about-cta .container {
    position: relative;
    z-index: 1;
}

.about-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
}

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

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .mission-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
    }


    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .about-mission {
        padding: 3rem 0;
    }

    .mission-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-card {
        padding: 2rem 1.5rem;
    }

    .leadership-section {
        padding: 4rem 0;
    }

    .leader-photo {
        height: 260px;
    }

    .leader-info {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .about-community {
        padding: 4rem 0;
    }


    .about-cta {
        padding: 4rem 0;
        background-attachment: scroll;
    }

    .about-cta h2 {
        font-size: 1.8rem;
    }
}

/* ========================================
   About Us Sub-Page (/company/about/)
   ======================================== */

.about-sub-hero {
    padding: 10rem 0 5rem;
    position: relative;
    text-align: center;
}

.about-sub-hero .deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(29, 161, 242, 0.08);
    pointer-events: none;
}

.about-sub-hero .deco-circle:nth-child(1) { width: 500px; height: 500px; top: -80px; left: -120px; }
.about-sub-hero .deco-circle:nth-child(2) { width: 350px; height: 350px; top: 60px; right: -80px; }

.about-sub-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.about-sub-hero h1 span { color: var(--accent-cyan); }

.about-sub-hero .hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Story — text above, two images side by side below */
.story-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.97rem;
    margin-bottom: 1rem;
    max-width: 820px;
}

.story-images-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.story-images-row img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: block;
    transition: transform 0.5s ease;
}

.story-images-row img:hover { transform: scale(1.02); }

/* Mission two-column */
.story-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-mission-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.story-mission-content p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.mission-tagline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(29, 161, 242, 0.08);
    border: 1px solid rgba(29, 161, 242, 0.25);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.story-mission-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.story-mission-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.story-mission-image:hover img { transform: scale(1.04); }

/* Team grid — avatar-style cards (square profile photos) */
.team-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(29, 161, 242, 0.12);
    border-color: var(--border-hover);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 3px solid rgba(29, 161, 242, 0.25);
    transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: var(--accent-cyan);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 1024px) {
    .story-mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .team-grid-3col { grid-template-columns: repeat(2, 1fr); }
    .about-sub-hero { padding: 8rem 0 4rem; }
}

@media (max-width: 768px) {
    .team-grid-3col { grid-template-columns: 1fr; }
    .story-images-row { grid-template-columns: 1fr; }
    .team-card { padding: 1.75rem 1.25rem; }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .mission-card i {
        font-size: 2rem;
    }

    .mission-card h4 {
        font-size: 1.1rem;
    }

    .leader-photo {
        height: 220px;
    }

    .leader-info h3 {
        font-size: 1.3rem;
    }

    .leader-bio {
        font-size: 0.9rem;
    }


    .community-column h3 {
        font-size: 1.3rem;
    }
}