/* About Us Page Styles 5.1 - Refined Visuals */

/* ============================================
   PAGE LAYOUT & GLOBALS
   ============================================ */
.about-page-content {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    font-family: var(--font-family);
}

/* ============================================
   BREADCRUMB - On Dark
   ============================================ */
.apc-breadcrumb {
    /* Integrated into hero content */
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.breadcrumb-list li,
.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-list a:hover,
.breadcrumb-list li[aria-current="page"] {
    color: white;
}

/* ============================================
   CURVED HERO SECTION
   ============================================ */
.apc-curved-hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 250px;
    /* Using hex codes to ensure background is always visible */
    background: #0f172a;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    text-align: center;
    overflow: hidden;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.apc-hero-bg-curve {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.apc-hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -50px;
    left: -100px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    bottom: -100px;
    right: -150px;
}

.apc-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.apc-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.apc-hero-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FLOATING VISUAL (The Overlap)
   ============================================ */
.apc-floating-visual-container {
    margin-top: -60px;
    position: relative;
    z-index: 15;
    margin-bottom: 100px;
}

.apc-floating-card {
    background: transparent;
    /* Removing white frame, deep shadow */
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.apc-main-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.apc-features {
    padding-bottom: 100px;
}

.apc-feature-item {
    text-align: center;
    padding: 40px 20px;
    transition: transform 0.3s ease;
}

.apc-feature-item:hover {
    transform: translateY(-5px);
}

.apc-feature-icon {
    width: 80px;
    height: 80px;
    background: var(--brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.apc-feature-item:hover .apc-feature-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.apc-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.apc-feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ============================================
   MISSION & STATS (Refined)
   ============================================ */
.apc-mission-stats {
    padding: 100px 0;
    background: #f8fafc;
}

.apc-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand);
    margin-bottom: 16px;
}

.apc-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Slogan Box */
.apc-slogan-box {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    border-left: 4px solid var(--brand);
    padding-left: 24px;
    margin-bottom: 30px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 0 12px 12px 0;
}

.apc-small-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

/* Collage / Pattern Visual */
.apc-pattern-box {
    position: relative;
    display: inline-block;
}

.apc-collage {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apc-collage .fa-dna {
    animation: pulse-glow 3s infinite alternate;
}

.opacity-10 {
    opacity: 0.1 !important;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    background: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.team-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 28px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid #f1f5f9;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0633ff 0%, #4357c1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(6, 51, 255, 0.25);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(6, 51, 255, 0.35);
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.team-role {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand, #3b82f6);
    background: rgba(59, 130, 246, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.team-bio {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-socials a:hover {
    background: var(--brand, #3b82f6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .apc-curved-hero {
        padding-bottom: 200px;
        clip-path: ellipse(180% 100% at 50% 0%);
    }

    .apc-floating-visual-container {
        margin-top: -150px;
        padding: 0 20px;
    }

    .apc-heading {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .apc-curved-hero {
        padding-top: 150px;
        padding-bottom: 150px;
    }

    .apc-floating-visual-container {
        margin-top: -100px;
    }

    .apc-feature-item {
        padding: 20px;
    }

    .team-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .team-card {
        padding: 32px 20px 24px;
    }
}

/* DNA Image Styling */
.apc-dna-image {
    width: 300px;
    max-width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Responsive adjustment for DNA image */
@media (max-width: 991px) {
    .apc-mission-stats .row {
        text-align: center;
        /* flex-direction: column-reverse;  Optional: put image on top */
    }

    .apc-mission-stats .col-lg-6 {
        width: 100%;
    }

    /* Reset absolute positioning on mobile to prevent overlap */
    .apc-collage {
        height: auto;
        min-height: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
        display: block;
        /* Ensure it behaves as a block */
    }

    .apc-dna-image {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: block;
        margin: 0 auto;
        max-width: 80%;
        /* Limit width on mobile */
    }
}