<div class="page-banner">
    <div class="container">
        <h2>About Us</h2>
        <p>Learn more about Alpha Genomics and our mission</p>
        <div class="breadcrumb">
            <a href="/">Home</a>
            <span class="separator"><i class="fas fa-chevron-right"></i></span>
            <span>About Us</span>
        </div>
    </div>
</div>

<section class="page-content">
    <div class="container">
        <div class="welcome-grid fade-in-up">
            <div class="welcome-content">
                <span class="subtitle">Who We Are</span>
                <h3><?= htmlspecialchars($settings['about_title'] ?? 'About Us') ?></h3>
                <p><?= htmlspecialchars($settings['about_text'] ?? '') ?></p>
                <a href="/services" class="btn btn-primary">View Our Services <i class="fas fa-arrow-right"></i></a>
            </div>
            <div class="welcome-image fade-in-right">
                <img src="https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?w=600&h=400&fit=crop" alt="Laboratory">
            </div>
        </div>
    </div>
</section>

<section class="sections-area bg-light">
    <div class="container">
        <div class="section-title fade-in-up">
            <h2>Our Core Values</h2>
            <p>The principles that guide everything we do at Alpha Genomics</p>
        </div>
        <div class="mission-grid">
            <div class="mission-card fade-in-up" style="border-top: 4px solid var(--primary);">
                <div class="icon"><i class="fas fa-bullseye"></i></div>
                <h3>Our Mission</h3>
                <p><?= htmlspecialchars($settings['mission'] ?? '') ?></p>
            </div>
            <div class="mission-card fade-in-up" style="border-top: 4px solid var(--accent);">
                <div class="icon"><i class="fas fa-eye"></i></div>
                <h3>Our Vision</h3>
                <p><?= htmlspecialchars($settings['vision'] ?? '') ?></p>
            </div>
            <div class="mission-card fade-in-up" style="border-top: 4px solid var(--secondary);">
                <div class="icon"><i class="fas fa-landmark"></i></div>
                <h3>Our History</h3>
                <p><?= htmlspecialchars($settings['history'] ?? '') ?></p>
            </div>
        </div>
    </div>
</section>

<?php $teamMembers = getActiveTeamMembers(); ?>
<?php if (!empty($teamMembers)): ?>
<section class="sections-area">
    <div class="container">
        <div class="section-title fade-in-up">
            <h2>Our Team</h2>
            <p>Meet the professionals driving innovation at Alpha Genomics</p>
        </div>
        <div class="team-grid">
            <?php foreach ($teamMembers as $member): ?>
            <div class="team-card fade-in-up">
                <?php if ($member['image_url']): ?>
                <div class="team-card-image">
                    <img src="<?= htmlspecialchars($member['image_url']) ?>" alt="<?= htmlspecialchars($member['name']) ?>">
                    <div class="team-social">
                        <?php if (!empty($member['linkedin'])): ?>
                        <a href="<?= htmlspecialchars($member['linkedin']) ?>" target="_blank" title="LinkedIn"><i class="fab fa-linkedin-in"></i></a>
                        <?php endif; ?>
                        <?php if (!empty($member['email'])): ?>
                        <a href="mailto:<?= htmlspecialchars($member['email']) ?>" title="Email"><i class="fas fa-envelope"></i></a>
                        <?php endif; ?>
                        <?php if (!empty($member['twitter'])): ?>
                        <a href="<?= htmlspecialchars($member['twitter']) ?>" target="_blank" title="Twitter"><i class="fab fa-twitter"></i></a>
                        <?php endif; ?>
                        <?php if (!empty($member['facebook'])): ?>
                        <a href="<?= htmlspecialchars($member['facebook']) ?>" target="_blank" title="Facebook"><i class="fab fa-facebook-f"></i></a>
                        <?php endif; ?>
                    </div>
                </div>
                <?php endif; ?>
                <div class="team-card-body">
                    <h3><?= htmlspecialchars($member['name']) ?></h3>
                    <span><?= htmlspecialchars($member['position']) ?></span>
                    <p><?= htmlspecialchars($member['bio']) ?></p>
                </div>
            </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>
<?php endif; ?>
